Js obfuscation
Use when obfuscating JavaScript, building anti-detection layers, evading Google Safe Browsing, hiding payloads from scanners, adding anti-bot/anti-DevTools protection, or preparing phishing/red-team pages for deploymentFrom its SKILL.md
npx -y skills add sergeyizmailov/Claude-Skills --skill js-obfuscationAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
4.4 KB, ~1.1k tokens by cl100k_base, as published. Nobody here has run it
JS Obfuscation & Anti-Detection
Professional-grade obfuscation pipeline for offensive JS payloads.
Architecture: Defense-in-Depth Layers
Request arrives
│
├─ L1: Server-side cloaking (IP/ASN/GeoIP) → see anti-bot.md
│ ├─ L2: CAPTCHA gate (Turnstile) → see anti-bot.md
│ │ ├─ L3: JS anti-bot (webdriver, fingerprint, behavior) → see anti-bot.md
│ │ │ ├─ L4: Encrypted payload (AES/XOR/Unicode) → see encryption.md
│ │ │ │ └─ L5: Obfuscated JS (javascript-obfuscator) → see obfuscator-configs.md
│ │ │ └─ L6: One-time URLs (single use, then 404)
│ │ └─ Anti-DevTools → see anti-devtools.md
Without L1 everything else just delays detection. With L1, site can live weeks.
Quick Decision Guide
| Scenario | Layers to apply |
|---|---|
| Quick red team page | L5 (obfuscator balanced) + anti-DevTools |
| Production phishing with longevity | All 6 layers |
| Landing page (BitB popup) | L3 (anti-bot) + L5 (obfuscator) + anti-DevTools |
| Cloudflare Worker | L1 (ASN via CF) + L4 (encrypted payload) + L5 (obfuscator) |
| Email attachment HTML | L4 (AES, key in URL fragment) + L5 (obfuscator max) + anti-DevTools |
Safe Browsing Evasion Checklist
- Server-side IP/ASN filter — crawlers never see payload
- CAPTCHA gate — automated scanners can't solve
- JS anti-bot — headless/sandbox detected and redirected
- Encrypted payload — no static malicious HTML in source
- Obfuscated JS — no signature matches (
password,eval(atob(etc. hidden) - One-time URLs — reported link is already dead
- Domain rotation — flagged → auto-switch to reserve
- Delayed execution —
setTimeout3-5s, scanners have short budgets - Interaction-gated — require real click/scroll before payload
domainLock— code redirects on wrong domain (VirusTotal, sandbox)
Does NOT work: client-side blocking of safebrowsing.googleapis.com — checks happen at browser level before page JS.
VirusTotal / PhishTank Evasion
- No static signatures — all encrypted/dynamic
- CAPTCHA gating — crawlers can't solve
- One-time URLs — reported → 404
- Legit hosting (
.workers.dev,.pages.dev,.netlify.app) = high reputation - Aged domains (.com, 2+ years) flagged slower
- Email whitelist — only serve if email matches target list (Cephas pattern)
domainLockin obfuscator — code breaks on wrong domain
Cloudflare WAF Compatibility
- No static malicious signatures — all encrypted/dynamic
- Use Turnstile — CF sees "protected site"
- Workers/Pages hosting gets less scrutiny
- Avoid trigger patterns:
eval(atob(, obvious base64 HTML, known kit signatures - Use RC4/AES instead of raw base64
What to Obfuscate vs Not
Yes: Tracking scripts, form handlers, exfil logic, CF Worker code, any custom frontend JS.
No: Server-side code, Nginx/HAProxy configs, CSS, HTML structure, proxied content, Docker internals.
One-Time URLs
active = {}
@app.route('/<token>')
def land(token):
if token in active:
del active[token]
return render_page()
return '', 404
Common Mistakes
- Using only obfuscation without server-side filtering
base64instead of RC4/AES —atob()is a detection signature- Hardcoded URLs in source — construct dynamically or decrypt at runtime
- No
domainLock— code runs on VirusTotal → flagged renameGlobals: truewithout testing — breaks external scripts- Skipping mouse check — sandboxes bypass webdriver but don't move mouse
- Static CAPTCHA — if cached forever, scanner reuses session
- Same code for every visitor — polymorphic mutation prevents signatures
Reference Files
obfuscator-configs.md— javascript-obfuscator presets (balanced/max/light), CLI commands, options referenceanti-bot.md— anti-bot, anti-sandbox, CDP detection, server-side cloaking, Turnstile gatinganti-devtools.md— 7 anti-DevTools methods, disable-devtool npmencryption.md— AES-256-GCM, XOR, invisible Unicode, DOM cloaking, polymorphic JSphaas-reference.md— 11 PhaaS kits (2025-2026), techniques by category, stats
What ships with it: 5 files
28.1 KB alongside SKILL.md
- anti-bot.md4.7 KB
- anti-devtools.md3.0 KB
- encryption.md11.4 KB
- obfuscator-configs.md4.5 KB
- phaas-reference.md4.5 KB