/secskills-core:reversing-obfuscated-javascriptfrom secskills-core
Reverse engineer minified, bundled, and obfuscated browser/Node JavaScript using webcrack, synchrony, restringer, and Chrome DevTools. Unpacks webpack chunks, recovers source from sourcemaps, and undoes obfuscator.io string-array/control-flow obfuscation.
Ships in secskills-core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Client-side JavaScript ships the whole program to the reader — there is no stripped binary here, only code deliberately made unreadable. That changes the job: you are almost never recovering missing information, you are undoing a transformation. Identify the transformation first, reverse it with the tool built for it, and fall back to hand-written AST passes only for the custom layer no off-the-shelf tool knows.
.js you need to read_0x1234 identifiers, a big string array, and a rotation IIFE
at the top — the obfuscator.io signature.js.map sourcemap is reachable, or webpack left //# sourceMappingURLindex.android.bundle,
main.jsbundle, Hermes magic bytes) — use reversing-react-native-apps.unpacking-protected-binaries for the VM-lifting approach.hunting-web-backdoors for planted web
payloads and auditing-supply-chain for a malicious package.testing-web-applications; come back here only to recover a client-side
algorithm it needs.analyzing-binaries territory.Running the wrong deobfuscator produces plausible garbage. Read the first few hundred bytes and classify:
| What you see | Transformation | Reverse it with |
|---|---|---|
| Short names, no whitespace, readable strings | Minification only | An unminifier / prettier + rename |
webpackChunk, a module map {123: function(e,t,n){…}} | Webpack/Rollup bundling | Unbundle to per-module files |
//# sourceMappingURL=… or a reachable .map | Nothing — the source is right there | Sourcemap recovery |
_0x hex names + one big string array + a rotation IIFE | obfuscator.io string-array | webcrack / synchrony / restringer |
Nested ternaries, while(true){switch(_0x..)} dispatcher | Control-flow flattening | AST pass to relink the switch |
debugger in a setInterval, self-defending function | Anti-debug / self-defense | Strip the guard before other passes |
Most real bundles are layered: webpack on the outside, obfuscator.io on a few modules, a hand-rolled string cipher on the one function that matters. Peel outermost first.
A reachable sourcemap ends the job before it starts — it contains the original, pre-transform source. Check for it every time, because a large fraction of "obfuscated" production bundles ship or leak one:
//# sourceMappingURL= comment at the bundle's end, and the sibling
.js.map even when the comment was stripped (try <bundle>.map).webpack:// paths inside the map.unwebpack-sourcemap or a short
source-map script walks sourcesContent back to a directory tree.Treat a leaked production sourcemap as a finding in its own right when you are assessing the app, not just a convenience.
webcrack is the first tool for a bundle, because it does three of the
layers at once: unminify, unpack webpack/browserify into per-module files, and
undo obfuscator.io string-array and control-flow obfuscation. Run it, then read
the module tree it produces rather than the single blob.
For a bundle that is only obfuscator.io, a dedicated deobfuscator is often
cleaner: synchrony or restringer both resolve the string array,
reverse the rotation, inline the decoder calls, and flatten the trivial control
flow. Compare their output — they fail on different edge cases.
When no tool fully handles the custom layer, write an AST pass with Babel:
parse to an AST, @babel/traverse to find the pattern (a specific decoder call,
a constant-folded expression, the flattening dispatcher), transform the nodes,
and regenerate. This is the durable skill — obfuscators change, but string-array
decoding, constant folding, and dead-branch elimination are the same AST
operations every time. Prototype the matcher in AST Explorer against the real
code before scripting it.
Two failure modes to expect:
eval an unknown
bundle on your host to read it.debugger
loop when tampered with. Strip the guard function first (delete the node,
or override setInterval) or every downstream pass fights it.When static reading is slow — a signing function buried in a megabyte of modules — drive the running page with Chrome DevTools instead:
{}) makes a minified function
steppable without any offline work.Object.defineProperty or a
Proxy on the object whose method computes the value logs every call and
argument with a stack trace, so you see inputs and outputs without reading
the math.console.log-instrumented
copy (DevTools Local Overrides) to watch the real values flow at runtime.Runtime observation and static reading are complementary: DevTools tells you which function matters; the AST work tells you what it computes so you can reproduce it offline.
Reading and deobfuscating a bundle you lawfully retrieved is analysis. Two
edges need care. Reproducing and replaying a request-signing routine against
the origin — the usual reason to reverse an anti-bot signal — acts against that
service and needs the same authorization as any other testing; keep it to
systems you are permitted to test, and see testing-web-applications. And a
sourcemap or bundle pulled from a third-party site is that party's code:
recovering it for a security assessment you are engaged to do is fine, lifting a
proprietary algorithm for reuse is a different matter.
webcrack run turns hours into minutes. Hand-reading is
the last resort, not the first move.reversing-react-native-apps — Hermes/RN mobile JS bundlesunpacking-protected-binaries — VM-based / virtualized obfuscationhunting-web-backdoors — malicious planted web JStesting-web-applications — testing the endpoints a recovered algorithm callsreviewing-cryptography — once a client-side crypto/signing routine is recoveredWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub trilwu/secskills --plugin secskills-core30 skills in this plugin
/analyzing-binariesReverse engineer compiled binaries, firmware, and mobile app packages using triage, static disassembly, decompilation, and dynamic instrumentation. Use when analyzing an executable, ELF/PE/Mach-O file, firmware image, or stripped binary, recovering an algorithm or protocol, or working a CTF reversing challenge./analyzing-dotnet-assembliesReverse engineer .NET assemblies and executables with dnSpyEx, ILSpy, and de4dot — identifying and unwrapping obfuscators and packers, deobfuscating control flow and string encryption, handling single-file and NativeAOT publishes, and patching IL. Use when a binary is a managed PE, when ILSpy shows mangled names or empty method bodies, or when analyzing .NET malware, a loader, or a Windows application./analyzing-2 plugins ship this exact skill · first indexed Aug 12, 2026
Other plugins' skills for the same job