ワンクリックで
vm-obfuscation-detection
Detect virtual machines, packers, and code obfuscation — VMProtect, Themida, UPX, control flow flattening
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Detect virtual machines, packers, and code obfuscation — VMProtect, Themida, UPX, control flow flattening
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Next-generation 0day discovery & exploit development — comprehensive code analysis, allocator vulnerabilities, compiler-induced bugs, SIMD/vector issues, JIT vulnerabilities, custom allocator attacks, ASLR/kASLR bypass, UAF, OOB, RCE with exploit generation, privilege escalation, backdoor establishment
Next-generation 0day discovery — novel overflow patterns, allocator exploits, compiler-induced bugs, bounds-check bypass, SIMD/vector overflows, JIT vulns, custom allocator attacks, ASLR/kASLR bypass, UAF, OOB, RCE with weaponized exploit generation, privilege escalation, backdoor establishment
Container escape vulnerability discovery — Docker, Kubernetes, container runtime exploitation, namespace isolation bypass, privilege escalation through container boundaries
Crypto implementation analysis — weak algorithms, side-channels, key management flaws, padding oracles, random generation failures, implementation bugs
IoT device security analysis — firmware extraction, RTOS exploits, hardware interfaces, protocol vulnerabilities, side-channel attacks, update mechanism exploitation
Industrial control system security — Modbus, DNP3, IEC 104, Ethernet/IP, PLC exploitation, control logic manipulation, sensor/actuator attacks, ICS protocol analysis
| name | VM/Obfuscation Detection |
| description | Detect virtual machines, packers, and code obfuscation — VMProtect, Themida, UPX, control flow flattening |
| tags | ["obfuscation","packer","vmprotect","themida","upx","devirtualization","cff"] |
| allowed_tools | ["detect_obfuscation","get_deobfuscation_advice","analyze_obfuscated_functions","decompile_function","get_disasm","list_imports"] |
Task: Virtual Machine and Obfuscation Detection. Identify and analyze code protection and obfuscation.
Run Automatic Detection
Use `detect_obfuscation` to scan the binary
This will identify:
- Known packer/protector signatures
- Obfuscation patterns
- High-complexity functions
Review Detected Protectors
Analyze High-Complexity Functions
Use `analyze_obfuscated_functions` with threshold=200
This identifies:
- Functions with excessive basic blocks
- Dispatcher patterns
- Junk code indicators
upx -d file.exe (one command)Indicators:
Analysis Approach:
Indicators:
xor eax, eax; test eax, eax (always zero)cmp reg, reg (always equal)Detection:
Indicators:
Analysis:
Indicators:
xor reg, reg vs mov reg, 0sub eax, 1 vs dec eaxImpact:
Step 1: Run the binary in a debugger
Step 2: Set breakpoint on entry point
Step 3: Let unpacking stub run
Step 4: Dump unpacked code from memory
Step 5: Rebuild import table
Step 1: Identify VM handlers
Step 2: Lift handlers to intermediate representation
Step 3: Symbolically execute VM bytecode
Step 4: Reconstruct original semantics
Step 5: Generate native code
Step 1: Instrument the binary
Step 2: Trace execution path
Step 3: Record actual behavior
Step 4: Map observed behavior to source
Step 5: Identify real logic vs junk
Step 1: Identify obfuscation patterns
Step 2: Create recognition rules
Step 3: Apply to all functions
Step 4: Simplify/normalize code
Step 5: Repeat until clean
For each detected protection:
[Obfuscation] VMProtect v3.x
Type: Virtualization
Difficulty: Very Hard
Coverage: 85% of functions
[Detection]
- Signature: VMProtect strings found
- Sections: .vmp0, .vmp1, .vmp2 detected
- Functions: 85% show dispatcher pattern
- Complexity: Average 500+ instructions per function
[Recommendations]
1. Use VMProtect devirtualization tools (research needed)
2. Focus dynamic analysis on exports/imports
3. Trace execution paths with debugger
4. Consider memory dumping at runtime
5. May require manual reverse engineering
[Workarounds]
- Analyze at import/export boundaries
- Hook interesting APIs directly
- Monitor behavior dynamically
- Skip protected functions initially
Detection Phase
detect_obfuscationResearch Phase
get_deobfuscation_advice for specific protectorAnalysis Phase
Reporting Phase
export_analysis