deobfuscating-javascript-malware

Featured

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, web skimmer analysis, or obfuscated dropper investigation.

AI & Automation 12,642 stars 1468 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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: ```bash # 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....

Details

Author
mukul975
Repository
mukul975/Anthropic-Cybersecurity-Skills
Created
3 months ago
Last Updated
today
Language
Python
License
Apache-2.0

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

deobfuscating-powershell-obfuscated-malware

Systematically deobfuscate multi-layer PowerShell malware using AST analysis, dynamic tracing, and tools like PSDecode and PowerDecode to reveal hidden payloads and C2 infrastructure.

12,642 Updated today
mukul975
AI & Automation Featured

reverse-engineering-dotnet-malware-with-dnspy

Reverse engineers .NET malware using dnSpy decompiler and debugger to analyze C#/VB.NET source code, identify obfuscation techniques, extract configurations, and understand malicious functionality including stealers, RATs, and loaders. Activates for requests involving .NET malware analysis, C# malware decompilation, managed code reverse engineering, or .NET obfuscation analysis.

12,642 Updated today
mukul975
Data & Documents Listed

analyzing-malicious-pdf-with-peepdf

Perform static analysis of malicious PDF documents using peepdf, pdfid, and pdf-parser to extract embedded JavaScript, shellcode, and suspicious objects.

6 Updated today
26zl
Data & Documents Featured

analyzing-malicious-pdf-with-peepdf

Perform static analysis of malicious PDF documents using peepdf, pdfid, and pdf-parser to extract embedded JavaScript, shellcode, and suspicious objects.

12,642 Updated today
mukul975
Data & Documents Solid

ctf-malware

Provides malware analysis and network traffic techniques for CTF challenges. Use when analyzing obfuscated scripts, malicious packages, custom crypto protocols, C2 traffic, PE/.NET binaries, RC4/AES encrypted communications, YARA rules, shellcode analysis, memory forensics for malware (Volatility malfind, process injection detection), anti-analysis techniques (VM/sandbox detection, timing evasion, API hashing, process injection, environment checks), or extracting malware configurations and indicators of compromise.

2,227 Updated 4 weeks ago
ljagiello