Statically deobfuscate JavaScript using js-deobfuscator — unpacks literal arrays, replaces/removes proxy functions, simplifies expressions and dead branches, renames hex identifiers, simplifies properties, beautifies
Deobfuscate JavaScript files using the js-deobfuscator CLI tool. The tool performs purely static analysis on the AST: it unpacks literal arrays, replaces and removes proxy functions, simplifies expressions and dead branches, renames hex identifiers, simplifies properties, and beautifies the result.
| Property | Value |
|---|---|
| MITRE ATT&CK Tactic | Reconnaissance (TA0043) |
| Requires Approval | No |
| Requires Root | Never |
| Install Timeout | 300s |
Install
sudo apt-get update && sudo apt-get install -y nodejs npm && sudo npm install -g js-deobfuscatorVerify installation
command -v js-deobfuscator >/dev/null 2>&1 && js-deobfuscator --help >/dev/null 2>&1Uninstall
sudo npm uninstall -g js-deobfuscatorOptional dependencies
nodejs
sudo apt-get update && sudo apt-get install -y nodejs npmnpm
sudo apt-get update && sudo apt-get install -y npmNote
Installing js-deobfuscator via npm (requires Node.js)...
| File | Contents |
|---|---|
SKILL.md |
Parameter reference, returns, examples, edge cases |
INSTALL.md |
Install / uninstall pipeline |
handler.py |
Python implementation |
Part of the OpenWar skills/tools collection