js-obfuscation

js-obfuscation is a skill for Claude Code, Codex from sergeyizmailov/knowledge-delta-skills. It costs 51 tokens per session (1,035 once invoked), scanned B, original, MIT.

A collection of instructions for hiding JavaScript behavior and avoiding detection by security scanners, bots, and browser tools. It covers techniques such as code obfuscation, encrypted payloads, traffic filtering, CAPTCHA gates, and one-time URLs.

In plain words
What is it for?
Setting up anti-detection layers for web pages, including server-side filtering, anti-bot checks, encrypted content, obfuscated JavaScript, and anti-DevTools measures.
Why use it?
It is intended to make pages or payloads harder for scanners and monitoring systems to inspect or identify. The described uses include red-team pages and phishing deployments.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Setting up anti-detection layers for web pages, including server-side filtering, anti-bot checks, encrypted content, obfuscated JavaScript, and anti-DevTools measures.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sergeyizmailov/knowledge-delta-skills/js-obfuscation
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.

Any agent
npx skills add sergeyizmailov/knowledge-delta-skills --skill js-obfuscation
Clone the repo
git clone --depth 1 https://github.com/sergeyizmailov/knowledge-delta-skills

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for js-obfuscation

README.md
[![agentmods](https://agentmods.dev/badge/skills/sergeyizmailov/knowledge-delta-skills/js-obfuscation/github.svg)](https://agentmods.dev/skills/sergeyizmailov/knowledge-delta-skills/js-obfuscation)
Your own site
<a href="https://agentmods.dev/skills/sergeyizmailov/knowledge-delta-skills/js-obfuscation"><img src="https://agentmods.dev/badge/skills/sergeyizmailov/knowledge-delta-skills/js-obfuscation/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.

agentmods 80×15 button for js-obfuscation

Your own site · 80×15
<a href="https://agentmods.dev/skills/sergeyizmailov/knowledge-delta-skills/js-obfuscation"><img src="https://agentmods.dev/badge/skills/sergeyizmailov/knowledge-delta-skills/js-obfuscation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,035 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00051 $0.01035
Opus 5 $0.00026 $0.00517
Sonnet 5 $0.00010 $0.00207
Haiku 4.5 $0.00005 $0.00103

Measured 10d ago against content hash 68dceee51e18, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade B, and why

js-obfuscation scanned grade B with 1 finding 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 10d 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.

Encoded or obfuscated payloadmediumSupply chain

base64 or hex that is decoded and executed hides what actually runs from anyone reading the file.

5. Obfuscated JS — no `eval(atob(`, `password`, known-kit signatures in source

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

skills/js-obfuscation/SKILL.md · 87 lines

How it starts

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

JS Obfuscation & Anti-Detection

Architecture: Defense-in-Depth Layers

Request arrives
  ├─ L1: Server-side cloaking (IP/ASN/GeoIP) → anti-bot.md
  │   ├─ L2: CAPTCHA gate (Turnstile) → anti-bot.md
  │   │   ├─ L3: JS anti-bot (webdriver, fingerprint, behavior) → anti-bot.md
  │   │   │   ├─ L4: Encrypted payload (AES/XOR/Unicode) → encryption.md
  │   │   │   │   └─ L5: Obfuscated JS (javascript-obfuscator) → obfuscator-configs.md
  │   │   │   └─ L6: One-time URLs (single use, then 404)
  │   │   └─ Anti-DevTools → anti-devtools.md

Without L1 everything else just delays detection. With L1, site can live weeks.

Quick Decision Guide

Scenario Layers
Quick red team page L5 (balanced) + anti-DevTools
Production phishing with longevity All 6
Landing page (BitB popup) L3 + L5 + anti-DevTools
Cloudflare Worker L1 (ASN via CF) + L4 + L5
Email attachment HTML L4 (AES, key in URL fragment) + L5 (max) + anti-DevTools

Evasion Checklist (Safe Browsing / VirusTotal / PhishTank / CF WAF)

  1. Server-side IP/ASN/GeoIP filter — crawlers never see payload
  2. CAPTCHA gate (Turnstile) — scanners can't solve; CF sees "protected site"
  3. JS anti-bot — headless/sandbox detected and redirected
  4. Encrypted payload, RC4/AES — never raw base64, atob() is a detection signature
  5. Obfuscated JS — no eval(atob(, password, known-kit signatures in source
  6. domainLock — code breaks on wrong domain (VirusTotal, sandboxes)
  7. One-time URLs — reported link is already 404
  8. Domain rotation — flagged → reserve; aged domains (.com, 2+ years) flagged slower
  9. Delayed execution — setTimeout 3–5s; scanner budgets are short
  10. Interaction-gated — real click/scroll required before payload
  11. Polymorphic mutation — same code for every visitor → signatures
  12. Email whitelist (Cephas pattern) — serve only if email matches target list
  13. Legit hosting (.workers.dev, .pages.dev, .netlify.app) = high reputation; Workers/Pages get less scrutiny

Read the full file on GitHub · 87 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 10d ago First seen · 87 lines · 51 tokens per session scan B 68dceee51e18

Subscribe to this mod's changes

js-obfuscation is a skill published in the GitHub repository sergeyizmailov/knowledge-delta-skills (3 stars, last pushed 2d ago), licensed MIT. It adds 51 tokens to every session and 1,035 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (encoded or obfuscated payload). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.