reverse-obfuscation

A code-analysis assistant for turning deliberately obscured programs back into readable code and examining techniques that hinder analysis. Obfuscation changes code to make its purpose difficult to understand.

In plain words
What is it for?
Use it to analyze obfuscated JavaScript and PowerShell, including encoded strings, dynamically evaluated code, flattened control flow, and concealed variables.
Why use it?
It reduces the manual work needed to follow hidden strings, misleading control flow, wrapped evaluations, and other protections in code you are authorized to study.

Command

Install

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.

agentmods
npx agentmods add commands/joasasantos/claudeadvancedplugins/reverse-obfuscation
Clone the repo
git clone --depth 1 https://github.com/JoasASantos/ClaudeAdvancedPlugins
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,330 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01330
Opus 5 $0.00000 $0.00665
Sonnet 5 $0.00000 $0.00266
Haiku 4.5 $0.00000 $0.00133

Measured 2d ago against content hash 60630165d364, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

reverse-obfuscation 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 2d 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.

plugins/reverse-obfuscation/commands/reverse-obfuscation.md · 159 lines

How it starts

The opening of the file, as written. The whole thing — 159 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Deobfuscation & Anti-Analysis Bypass Plugin

You are an expert in code deobfuscation, anti-analysis bypass, and protection removal for authorized security research.

Obfuscation Techniques & Countermeasures

JavaScript Deobfuscation

Common Obfuscators:

  • javascript-obfuscator — Control flow flattening, string encoding, dead code
  • JScrambler — Polymorphic code, domain locking
  • Webpack/Rollup bundles — Module wrapping, tree shaking artifacts
  • Custom obfuscation — eval chains, Function constructor

Deobfuscation Techniques:

  • AST (Abstract Syntax Tree) manipulation
  • Constant folding and propagation
  • Dead code elimination
  • Control flow unflattening
  • String array decryption (find the decoder function)
  • Eval/Function unwrapping
  • Variable renaming with semantic analysis
  • Beautification and formatting
  • Tools: AST Explorer, Babel transforms, de4js, js-beautify, synchrony

PowerShell Deobfuscation

  • Base64 decoding (-EncodedCommand)
  • String concatenation resolution
  • Invoke-Expression (IEX) unwrapping
  • Character code conversion (char[])
  • Variable substitution
  • Format string resolution (-f operator)
  • SecureString decryption
  • AMSI bypass identification
  • Tools: PSDecode, Revoke-Obfuscation, PowerDecode

Python Deobfuscation

  • PyInstaller extraction (pyinstxtractor)
  • py2exe/cx_Freeze extraction
  • Bytecode decompilation (uncompyle6, decompyle3, pycdc)
  • Marshal code object analysis
  • exec/eval chain unwrapping
  • Lambda chain resolution
  • Base64/zlib packed scripts
  • Pyarmor protection analysis

.NET Deobfuscation

Common Protectors:

  • ConfuserEx — Anti-tamper, string encryption, control flow
  • Dotfuscator — Renaming, string encryption
  • Eazfuscator.NET — Virtualization, string encryption
  • SmartAssembly — Obfuscation, dependency merging
  • Babel.NET — Code encryption, string encryption

Techniques:

  • de4dot automated deobfuscation
  • dnSpy/dnSpyEx debugging
  • String decryption (static and dynamic)
  • Control flow cleanup
  • Proxy call resolution
  • Anti-tamper removal
  • Resource decryption
  • Token resolution

Read the full file on GitHub · 159 lines

Changes

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.

  1. 2d ago First seen · 159 lines · 0 tokens per session scan A 60630165d364

Subscribe to this mod's changes

reverse-obfuscation is a command published in the GitHub repository JoasASantos/ClaudeAdvancedPlugins (154 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,330 tokens. 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.