How klezvirus/silentmoonwalk works
The repository contains three Windows utilities: SilentMoonwalk demonstrates dynamic call-stack spoofing, UnwindInspector examines runtime-function unwind metadata, and Eclipse scans another process’s threads and return addresses for suspicious call sites. The principal spoofing workflow finds suitable unwind frames and gadgets, builds a spoof configuration, then makes an API call through the selected stack mode. The README documents synthetic and desynchronized modes and stack restoration. Edges reflect the excerpts and README; Eclipse’s details beyond the sampled scanner and disassembler are not inferred.
Main entry points: SilentMoonwalk.cpp Spoof Demo · UnwindInspector.cpp Inspector CLI · Spoof.h Spoof Config · Eclipse.cpp Process Scanner
Components 18
Stack Spoofing
- Spoof Demo
SilentMoonwalk/SilentMoonwalk.cpp - Unwind Helpers
SilentMoonwalk/include/Functions.h - Runtime Types
SilentMoonwalk/include/Common.h - Module Lookup
SilentMoonwalk/include/AddressHunter.h - Spoof Config
SilentMoonwalk/include/Spoof.h - Call Stubs
SilentMoonwalk/include/asm
Unwind Inspection
- Inspector CLI
UnwindInspector/UnwindInspector.cpp - Unwind Helpers
UnwindInspector/include/Functions.h - Runtime Types
UnwindInspector/include/Common.h - Module Lookup
UnwindInspector/include/AddressHunter.h
Process Scanning
- Process Scanner
Eclipse/Eclipse.cpp - x64 Disassembler
Eclipse/hde64.h - Decode Tables
Eclipse/table64.h - Scan Helpers
Eclipse/Functions.h - Timing
Eclipse/Performance.h
Other components
- Operator
- Windows API
- Target DLL
Connections 17
- Operator → Spoof Demo: runs demo
README.md - Spoof Demo → Unwind Helpers: finds frames
SilentMoonwalk/SilentMoonwalk.cpp - Spoof Demo → Spoof Config: spoofs call
README.md - Spoof Demo → Module Lookup: looks up modules
- Runtime Types → Module Lookup: uses lookup
SilentMoonwalk/include/Common.h - Spoof Config → Runtime Types: uses types
SilentMoonwalk/include/Spoof.h - Spoof Config → Call Stubs: dispatches call
- Call Stubs → Windows API: calls target
- Operator → Inspector CLI: runs query
README.md - Inspector CLI → Unwind Helpers: queries unwind data
UnwindInspector/UnwindInspector.cpp - Inspector CLI → Runtime Types: uses definitions
UnwindInspector/UnwindInspector.cpp - Runtime Types → Module Lookup: uses lookup
UnwindInspector/include/Common.h - Inspector CLI → Target DLL: inspects module
README.md - Operator → Process Scanner: scans process
Eclipse/Eclipse.cpp - Process Scanner → x64 Disassembler: decodes call sites
Eclipse/Eclipse.cpp - Process Scanner → Timing: measures duration
Eclipse/Eclipse.cpp - x64 Disassembler → Decode Tables: uses tables