js-obfuscation
Skill3 starsChanged 49 days agoMITView on GitHub
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 deployment
1 other project uses a version of this.
Adopted by
Most recently taken up by
- sergeyizmailov/knowledge-delta-skillsword for word, first seen Sep 28, 2026
Other versions1 project uses a version of this.
Word for word · 1
- sergeyizmailov/knowledge-delta-skills★ 3100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository17 other files it gives its agents.
- measurement-experimentation-opsSkill
- senior-buyer-opsSkill
- tracker-opsSkill
- deep-researchSkill
- knowledge-delta-skill-architectSkill
- web-scrapingSkill
- design-stack-pickerSkill
- normcore-webSkill
- responsive-adapterSkill
- google-adsSkill
- google-feed-opsSkill
- google-grey-opsSkill
- meta-adsSkill
- meta-grey-opsSkill
- secure-codingSkill
- tiktok-adsSkill
- tiktok-opsSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 49
Does NOT work: client-side blocking of safebrowsing.googleapis.com — checks happen at browser level before page JS.
- Distinctive: line 76
No mouse check — sandboxes bypass webdriver but don't move mouse
≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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.mdWithout 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)
- Server-side IP/ASN/GeoIP filter — crawlers never see payload
- CAPTCHA gate (Turnstile) — scanners can't solve; CF sees "protected site"
- JS anti-bot — headless/sandbox detected and redirected
- Encrypted payload, RC4/AES — never raw base64,
atob()is a detection signature - Obfuscated JS — no
eval(atob(,password, known-kit signatures in source domainLock— code breaks on wrong domain (VirusTotal, sandboxes)- One-time URLs — reported link is already 404
- Domain rotation — flagged → reserve; aged domains (.com, 2+ years) flagged slower
- Delayed execution —
setTimeout3–5s; scanner budgets are short - Interaction-gated — real click/scroll required before payload
- Polymorphic mutation — same code for every visitor → signatures
- Email whitelist (Cephas pattern) — serve only if email matches target list
- Legit hosting (
.workers.dev,.pages.dev,.netlify.app) = high reputation; Workers/Pages get less scrutiny
Does NOT work: client-side blocking of safebrowsing.googleapis.com — checks happen at browser level before page JS.
What to Obfuscate
Yes: tracking scripts, form handlers, exfil logic, CF Worker code, 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 '', 404Common Mistakes
- Obfuscation without server-side filtering
base64instead of RC4/AES —atob()is a signature- Hardcoded URLs in source — construct dynamically or decrypt at runtime
- No
domainLock— code runs on VirusTotal → flagged renameGlobals: truewithout testing — breaks external scripts- No 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, optionsanti-bot.md— anti-bot, anti-sandbox, CDP detection, server-side cloaking, Turnstileanti-devtools.md— 7 methods, disable-devtool npmencryption.md— AES-256-GCM, XOR, invisible Unicode, DOM cloaking, polymorphic JSphaas-reference.md— 11 PhaaS kits (2025-2026), techniques, stats
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

