deobfuscating-javascript-malware

deobfuscating-javascript-malware is a skill for Claude Code, Codex from 26zl/cybersec-toolkit. It costs 82 tokens per session (3,133 once invoked), scanned B, a copy of deobfuscating-javascript-malware, MIT.

A workflow for reading malicious JavaScript whose logic is hidden by encoding, chained eval calls, string tricks, or confusing control flow. JavaScript is the programming language commonly run in web pages and browsers.

In plain words
What is it for?
Use it to analyze phishing pages, web skimmers, dropper scripts, malicious email attachments, and browser exploit code in an isolated environment.
Why use it?
It helps distinguish harmful code from ordinary minified production code and exposes credential theft, redirects, payload downloads, and exploit delivery.

Skill for Claude CodeCodex

Part of the cybersec-toolkit plugin — 197 skills, 2 hooks, 1 MCP server shipped together

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.

agentmods
npx agentmods add skills/26zl/cybersec-toolkit/deobfuscating-javascript-malware
Any agent
npx skills add 26zl/cybersec-toolkit --skill deobfuscating-javascript-malware
Clone the repo
git clone --depth 1 https://github.com/26zl/cybersec-toolkit

Made for: Claude Code, Codex.

Or install cybersec-toolkit, the plugin that ships this one along with the rest of its 197 skills, 2 hooks, 1 MCP server.

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 deobfuscating-javascript-malware

README.md
[![agentmods](https://agentmods.dev/badge/skills/26zl/cybersec-toolkit/deobfuscating-javascript-malware.svg)](https://agentmods.dev/skills/26zl/cybersec-toolkit/deobfuscating-javascript-malware)
Your own site
<a href="https://agentmods.dev/skills/26zl/cybersec-toolkit/deobfuscating-javascript-malware"><img src="https://agentmods.dev/badge/skills/26zl/cybersec-toolkit/deobfuscating-javascript-malware.svg" alt="Measured on agentmods" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,133 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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 $0.00082 $0.03133
Opus 5 $0.00041 $0.01566
Sonnet 5 $0.00016 $0.00627
Haiku 4.5 $0.00008 $0.00313

Measured yesterday against content hash c398220aa659, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

deobfuscating-javascript-malware scanned grade B with 2 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 yesterday.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/agent.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

- eval(atob("..."))

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

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

import urllib.parse
Origin

This is a copy

100% identical to deobfuscating-javascript-malware — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/skills/deobfuscating-javascript-malware/SKILL.md · 367 lines

How it starts

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

Deobfuscating JavaScript Malware

When to Use

  • Investigating a phishing page with obfuscated JavaScript that performs credential harvesting or redirect
  • Analyzing a web skimmer (Magecart-style) injected into an e-commerce site
  • Deobfuscating a JavaScript dropper that downloads and executes second-stage malware
  • Examining malicious email attachments containing HTML files with embedded obfuscated scripts
  • Analyzing browser exploit kits that use heavy JavaScript obfuscation to hide exploit delivery

Do not use for obfuscated JavaScript that is merely minified production code; use a standard beautifier instead.

Prerequisites

  • Node.js 18+ installed for executing and debugging JavaScript in a controlled environment
  • Python 3.8+ with jsbeautifier library for code formatting
  • Browser developer tools (Chrome DevTools) for controlled execution in an isolated browser
  • CyberChef (https://gchq.github.io/CyberChef/) for encoding/decoding operations
  • de4js or JStillery for automated JavaScript deobfuscation
  • Isolated analysis VM with no access to production systems or sensitive data

Workflow

Step 1: Safely Extract and Examine the Obfuscated Script

Isolate the malicious JavaScript without executing it:

# Extract JavaScript from HTML file
python3 << 'PYEOF'
from html.parser import HTMLParser

class ScriptExtractor(HTMLParser):
    def __init__(self):
        super().__init__()
        self.in_script = False
        self.scripts = []
        self.current = ""

    def handle_starttag(self, tag, attrs):
        if tag == "script":
            self.in_script = True
            self.current = ""

    def handle_endtag(self, tag):
        if tag == "script":
            self.in_script = False
            if self.current.strip():
                self.scripts.append(self.current)

    def handle_data(self, data):
        if self.in_script:
            self.current += data

with open("malicious_page.html") as f:
    parser = ScriptExtractor()
    parser.feed(f.read())

for i, script in enumerate(parser.scripts):
    with open(f"script_{i}.js", "w") as f:
        f.write(script)
    print(f"Extracted script_{i}.js ({len(script)} bytes)")
PYEOF

# Beautify the extracted JavaScript
npx js-beautify script_0.js -o script_0_pretty.js

Read the full file on GitHub · 367 lines

Files

What ships with it

3 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. yesterday First seen · 367 lines · 82 tokens per session scan B c398220aa659

Subscribe to this mod's changes

deobfuscating-javascript-malware is a skill published in the GitHub repository 26zl/cybersec-toolkit (48 stars, last pushed yesterday), licensed MIT. It adds 82 tokens to every session and 3,133 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it B with 2 findings (encoded or obfuscated payload, makes network calls). It is 100% identical to deobfuscating-javascript-malware, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

deobfuscating-javascript-malware

Deobfuscates malicious JavaScript code used in web-based attacks, phishing pages, and dropper scripts by reversing encoding layers, eval chains, string manipulation, and control flow obfuscation to reveal the original malicious logic. Activates for requests involving JavaScript malware analysis, script deobfuscation…

adriannoes/awesome-agentic-ai · 82 tokens

deobfuscating-javascript-malware

Deobfuscates malicious JavaScript found in phishing pages, web skimmers, and dropper scripts by reversing encoding layers, eval chains, string manipulation, and control-flow obfuscation to reveal the original malicious logic. Use when investigating a phishing page's obfuscated JavaScript, analyzing a Magecart-style…

Youngmaidainon/Agent-Level-Up · 91 tokens

deobfuscating-malicious-powershell

Deobfuscates malicious PowerShell by decoding -EncodedCommand, reversing string and format obfuscation, resolving base64/gzip/IEX layers, and recovering the final payload and IOCs. Activates for requests to deobfuscate, decode, or analyze obfuscated PowerShell commands or scripts.

meltedinhex/analyst-ai-pack · 71 tokens

hardcoded-credential-hunt

Detect hardcoded passwords in HTML forms, JavaScript, and API responses.

uphiago/recon-skills · 22 tokens

dom-based-cross-site-scripting-xss

Identify and exploit DOM-based Cross-Site Scripting (XSS) vulnerabilities where malicious payloads are executed entirely within the victim's browser via insecure JavaScript execution, often bypassing server-side WAFs completely.

ShulkwiSEC/bb-huge · 52 tokens

deobfuscating-malicious-javascript

Deobfuscates malicious JavaScript from droppers, web pages, and HTA/scriptlets: unrolling string-array and char-code encodings, resolving eval/Function chains, and statically recovering payloads and URLs without executing untrusted code. Activates for requests to deobfuscate JavaScript, decode obfuscated JS, or…

meltedinhex/analyst-ai-pack · 84 tokens