Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add trilwu/secskills --skill devirtualizing-vm-protected-codegit clone --depth 1 https://github.com/trilwu/secskillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/trilwu/secskills/devirtualizing-vm-protected-code)<a href="https://agentmods.dev/skills/trilwu/secskills/devirtualizing-vm-protected-code"><img src="https://agentmods.dev/badge/skills/trilwu/secskills/devirtualizing-vm-protected-code/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/trilwu/secskills/devirtualizing-vm-protected-code"><img src="https://agentmods.dev/badge/skills/trilwu/secskills/devirtualizing-vm-protected-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00118 | $0.01461 |
| Opus 5.5 | $0.00047 | $0.00584 |
| Sonnet 5.5 | $0.00024 | $0.00292 |
| Haiku 4.5 | $0.00012 | $0.00146 |
Grade A, and why
devirtualizing-vm-protected-code scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Devirtualizing VM-Protected Code
Virtualization obfuscation replaces native instructions with bytecode for a custom virtual machine embedded in the binary, then runs that bytecode through an interpreter. The original logic is not gone — it is expressed in an instruction set you have to recover first. Devirtualization is a fixed pipeline: find the VM, understand its handlers, extract the bytecode, and lift it back to something readable. The obfuscator changes every build, so the pipeline, not any one tool, is the durable skill.
When to Use
- A function turned into a large
fetch-decode-dispatchloop with a handler table instead of ordinary control flow - Binaries protected by VMProtect, Themida/WinLicense, Oreans Code Virtualizer, or a bespoke opcode VM
- Recovering the algorithm inside a virtualized function (a licence check, a crypto routine, anti-cheat logic)
- After unpacking, when the real code is virtualized rather than merely packed
When NOT to Use
- Unpacking, dumping, and fixing imports of a packed/protected binary — that
is
unpacking-protected-binaries, and it comes first: unpack the outer protection, then devirtualize the virtualized core it reveals. - Ordinary (non-virtualized) obfuscation — junk code, opaque predicates,
string encryption — is normal work for
analyzing-binaries. - Virtualized/obfuscated JavaScript —
reversing-obfuscated-javascript. - Exploiting a bug in the recovered logic —
exploiting-memory-corruption.
The Pipeline
1. Locate the VM. Find the transition from native to virtual: the vm_enter
stub that saves native context and sets up the virtual machine, the dispatcher
loop that fetches the next virtual opcode and jumps through a handler table, and
the vm_exit that restores native context. The dispatcher is the anchor for
everything else.
2. Recover the VM architecture. Identify the virtual context — the structure holding the VM's registers and virtual instruction pointer — and how the dispatcher decodes an opcode into a handler index. Note the VM's shape: stack-based vs register-based, opcode encoding, and any key/rolling obfuscation on the bytecode pointer.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 116 lines · 118 tokens per session scan A 5c5ea90f7db6
devirtualizing-vm-protected-code is a skill published in the GitHub repository trilwu/secskills (217 stars, last pushed 3mo ago), licensed MIT. It adds 118 tokens to every session and 1,461 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
devirtualizing-vm-protected-code compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| devirtualizing-vm-protected-codetrilwu/secskills | Skill | 217 | 3mo ago | MIT | A | 118 | Claude Code |
| claude-md-improveranthropics/claude-plugins-official | Skill | 49k | today | Apache-2.0 | A | 82 | Claude Code |
| agent-platform-model-registrygoogle/skills | Skill | 26k | today | Apache-2.0 | A | 60 | Claude Code, Codex |
| gke-reliabilitygoogle/skills | Skill | 26k | today | Apache-2.0 | A | 85 | Claude Code, Codex |
| gke-workload-securitygoogle/skills | Skill | 26k | today | Apache-2.0 | A | 171 | Claude Code, Codex |
| google-cloud-solution-agentic-analytics-spark-knowledge-cataloggoogle/skills | Skill | 26k | today | Apache-2.0 | A | 132 | Claude Code, Codex |
| glance-canonical-layoutsandroid/skills | Skill | 11k | 10d ago | Apache-2.0 | A | 56 | Claude Code |