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 reversing-obfuscated-javascriptgit 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/reversing-obfuscated-javascript)<a href="https://agentmods.dev/skills/trilwu/secskills/reversing-obfuscated-javascript"><img src="https://agentmods.dev/badge/skills/trilwu/secskills/reversing-obfuscated-javascript/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/reversing-obfuscated-javascript"><img src="https://agentmods.dev/badge/skills/trilwu/secskills/reversing-obfuscated-javascript.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.00126 | $0.02181 |
| Opus 5.5 | $0.00050 | $0.00872 |
| Sonnet 5.5 | $0.00025 | $0.00436 |
| Haiku 4.5 | $0.00013 | $0.00218 |
Grade A, and why
reversing-obfuscated-javascript 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 — 165 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Reversing Obfuscated JavaScript
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.
When to Use
- A page or extension ships a large minified/bundled
.jsyou need to read - Code is full of
_0x1234identifiers, a big string array, and a rotation IIFE at the top — the obfuscator.io signature - A
.js.mapsourcemap is reachable, or webpack left//# sourceMappingURL - You must locate where a request signature, HMAC, token, or crypto key is computed inside a running bundle
- Reproducing a client-side algorithm (an anti-bot signal, a licence check, a paywall gate) from the shipped code
When NOT to Use
- React Native / Hermes mobile bundles (
index.android.bundle,main.jsbundle, Hermes magic bytes) — usereversing-react-native-apps. - A custom bytecode VM or virtualized-JS obfuscator where control flow is
interpreted, not just flattened — that is devirtualization; use
unpacking-protected-binariesfor the VM-lifting approach. - Malicious JS in a compromised site or npm package where the goal is IOCs
and behaviour, not readability — use
hunting-web-backdoorsfor planted web payloads andauditing-supply-chainfor a malicious package. - Testing the web app itself (the endpoints the JS calls, XSS, auth) — use
testing-web-applications; come back here only to recover a client-side algorithm it needs. - WASM modules loaded by the page — that is
analyzing-binariesterritory.
Identify the Layer Before Touching a Tool
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 |
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 · 165 lines · 126 tokens per session scan A 1a3ba6d9ce5a
reversing-obfuscated-javascript is a skill published in the GitHub repository trilwu/secskills (217 stars, last pushed 3mo ago), licensed MIT. It adds 126 tokens to every session and 2,181 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.
reversing-obfuscated-javascript compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| reversing-obfuscated-javascripttrilwu/secskills | Skill | 217 | 3mo ago | MIT | A | 126 | Claude Code |
| Agent Browserdanstrem2/clawdbot-skill-master-pack | Skill | 2 | 10mo ago | none | A | 34 | Claude Code |
| cardputer-buddyanthropics/claude-plugins-official | Skill | 49k | today | Apache-2.0 | A | 109 | Claude Code |
| migrate-to-rustgoogle/skills | Skill | 26k | today | Apache-2.0 | A | 166 | Claude Code, Codex |
| dingtalk_channel_connectagentscope-ai/QwenPaw | Skill | 38k | today | Apache-2.0 | A | 69 | Claude Code, Codex |
| ink-custom-brush-builderandroid/skills | Skill | 11k | 10d ago | Apache-2.0 | A | 159 | Claude Code |
| webmcpBuilderIO/skills | Skill | 4.7k | yesterday | MIT | A | 38 | Claude Code, Codex |