Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Malicious package

@httpactions/encode-urlnpm

Malicious code in @httpactions/encode-url (npm) Remove it immediately and rotate any exposed credentials.

MAL-2026-6139
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall @httpactions/encode-url

What this malware does

The package ships a single heavily obfuscated index.js that performs no URL-encoding work despite the package name. On require() of the declared main, top-level invocation of Zt() triggers an HTTP GET to a hardcoded C2 endpoint whose URL is reconstructed from base64 fragments combined via an XOR routine (function H). The response body is written to disk via fs.writeFileSync and executed by child_process.exec / child_process.spawn using process.execPath (the local Node runtime). A second routine mt() POSTs host identifiers — os.hostname(), os.userInfo().username, platform, arch — to the same C2 on every load, and a setInterval re-runs the fetch-and-execute loop approximately every 615 seconds. All sensitive identifiers ('child_process', 'fs', 'exec', 'spawn', 'writeFileSync', 'hostname', 'userInfo', etc.) are concealed as base64 strings with a leading-byte strip, behind an obfuscator.io string-array dispatcher. package.json has empty description, empty author, no repository, and the module exports nothing — the only effect of installing or requiring this package is the dropper. The @httpactions scope and the encode-url name are a lure with no matching functionality.

Malicious versions

2 flagged
1.0.01.0.1

Indicators of compromise (SHA-256)

2e52b15ad9413185c30f84ad7e11e031c74c359e04f5c30ce502b8bc73267d8e
5c9aa3e781989ddd45fd6b6d1c8eb3d0bfdd7ce29e16865593b4b6bf3d889ed8

Frequently asked questions

No. @httpactions/encode-url on npm has been identified as a malicious package (versions 1.0.0, 1.0.1 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-007014IN-MAL-2026-007016

References

Credits

  • Amazon Inspector · finder

Scan your dependencies

O3 Security blocks malicious packages like this at install time and in CI.

Supply-chain protection
@httpactions/encode-url (npm) malicious package — MAL-2026-6139 | O3 Security