Repository navigation
Description
Key Findings
Install Hooks: preinstall script executes node setup.mjs - triggers on every npm install
Typosquatting: No - this IS the legitimate @cacheable/utils package
Malicious Code: Two heavily obfuscated files added in this version download and execute arbitrary binaries
Network Indicators: Downloads Bun binary from GitHub releases
Data Exfiltration: Math_Symbol.js contains eval() on dynamically constructed code and child_process access - enables arbitrary command execution
@cacheable/memory | score 85
New 'preinstall' hook added in 2.2.1 that did not exist in 2.2.0 — executes 'node setup.mjs'; setup.mjs (30KB) is a heavily obfuscated dropper: imports child_process.execFileSync, fs, os, https, path; downloads a remote binary, chmod +x, executes it with Math_Symbol.js as argument, then unlinkSync to remove evidence; Math_Symbol.js (728KB) is an obfuscated payload containing eval, Function(), Buffer, fromCharCode/fromCodePoint — classic encoded-then-exec pattern; Neither setup.mjs nor Math_Symbol.js existed in the prior clean version 2.2.0; Tarball size jumped from 25KB (2.2.0) to 237KB (2.2.1) due to injected payload files; dist/index.cjs has only a trivial 1-line legitimate change — the attack is entirely in the two new files + hook injection
KEY FINDINGS (6)
• New 'preinstall' hook added in 2.2.1 that did not exist in 2.2.0 — executes 'node setup.mjs'
• setup.mjs (30KB) is a heavily obfuscated dropper: imports child_process.execFileSync, fs, os, https, path; downloads a remote binary, chmod +x, executes it with Math_Symbol.js as argument, then unlinkSync to remove evidence
• Math_Symbol.js (728KB) is an obfuscated payload containing eval, Function(), Buffer, fromCharCode/fromCodePoint — classic encoded-then-exec pattern
• Neither setup.mjs nor Math_Symbol.js existed in the prior clean version 2.2.0
• Tarball size jumped from 25KB (2.2.0) to 237KB (2.2.1) due to injected payload files
• dist/index.cjs has only a trivial 1-line legitimate change — the attack is entirely in the two new files + hook injection
INDICATORS OF COMPROMISE
Activity
[-]cacheable/[email protected]. - compromised[/-][+]Full repo - compromised[/+]