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

@apexcraft/nano-keynpm

@apexcraft/nano-key is a confirmed malicious npm package (MAL-2026-6210) that opens a backdoor for remote access (malicious versions 1.2.4, 1.2.5, 1.3.2…). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in @apexcraft/nano-key (npm)

MAL-2026-6210
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall @apexcraft/nano-key

What this malware does

@apexcraft/nano-key advertises itself as a 12-byte sortable ID generator (README and repository metadata are copied from yiwen-ai/xid-ts, an unrelated upstream project), but ships a 250KB obfuscator.io-style payload at dist/cjs/seed.cjs. package.json declares "postinstall": "node./dist/cjs/seed.cjs", so the payload runs automatically on npm install. The same runPrepare() entry point is also invoked at module load: index.js line 25 calls _seed.runPrepare() inside newState(), which line 35 invokes as defaultState = newState() at top level — so any consumer that requires the package re-triggers the dropper. seed.cjs uses an RC4+base64 rotating string array decoder (_0x554f / _0x1420), control-flow flattening, a self-defending IIFE, and a debugger-protection loop to hide an AES-256-GCM-decrypted URL list. At runtime it https.requests those URLs, stages the response under ~/.cache (or %LOCALAPPDATA% / ~/Library/Caches), sha256-stamps the file, and executes it with child_process.spawn(process.execPath, [file]), with an alternate bun runtime branch. There is no signature or hash pinning of the fetched bytes, the destination is decrypted at runtime (mutable C2), and the package's stated purpose (ID generation) provides no legitimate reason to fetch and execute remote code. Installing or requiring this package hands arbitrary remote code execution to whoever controls the encrypted endpoint.

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Malicious versions

9 flagged
1.2.41.2.51.3.21.3.31.3.41.3.51.3.61.3.71.3.8

Indicators of compromise (SHA-256)

a07948bbe7c664c2248fc90112dccc0258f9857706b50eed5f68e7ddd7dc6f62
c46938b3634fb4de89ddf44b765e1c766c871a40fb31c54609c1b3526074e65c
6e1f3a106793eefdb9448fdb9040376bc761c4cc09cc217a31ec74e11f8200e9
885a9cc08aeccde88eae2ef2b4a156d09beb7e5c21809ea102daedd1c885e162
a657ee39b6e6cd40da12f5cc8d9a04bd99d1b819e4d0178bcacc2c26b76f4262
ccaae5b4feb4a9161ba31930be6a9eab3a211acf9d5f4e22792e3faec5656191
d5623be1d4027affcd306453739c43895b277061ea3b983f59ae1e3780cd3bed
0a36493a82b254d89df5a033592050540837496ed40f64d3d9be8197dd30b2da
107a24e44a139d8b90655b72440349a9dfcc8cacbf18a7cecdb782b93af1fd66
a93a588a8c86cfaf399f05f0c68352ac421adb4cd95f3d9c4ec6d340595c6c5a

Detection & response playbook

Backdoor / remote access
  1. Find it

    Scan your lockfiles (package-lock.json, pnpm-lock.yaml, yarn.lock, requirements.txt, poetry.lock, etc.) and build artifacts for @apexcraft/nano-key (9 malicious versions). O3 Security's supply-chain scanner checks every dependency against known-malicious package intelligence at install time and in CI, flagging @apexcraft/nano-key across your stack and pipelines.

  2. If you installed it — respond

    @apexcraft/nano-key establishes remote access, so treat any host that installed it as fully compromised. Isolate the machine, remove the package, rotate all credentials it could reach, and rebuild from a trusted image rather than cleaning in place — a backdoor may have planted additional persistence.

  3. Did it already run?

    If @apexcraft/nano-key was ever installed, its post-install/runtime payload may have already executed. O3's L7 egress monitoring and runtime eBPF sensors detect the credential exfiltration or command-and-control callback after install and block the malicious outbound channel, so you catch and contain the actual compromise — not just the presence of the package.

  4. How O3 protects you

    O3 blocks @apexcraft/nano-key before install through its supply-chain scanner, and if it has already run, detects and severs the exfiltration or C2 callback at runtime through L7 egress monitoring and eBPF.

Frequently asked questions

No. @apexcraft/nano-key on npm has been identified as a malicious package (versions 1.2.4, 1.2.5, 1.3.2, 1.3.3, 1.3.4, 1.3.5, 1.3.6, 1.3.7, and 1 more flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-007076IN-MAL-2026-007077IN-MAL-2026-007281IN-MAL-2026-007329IN-MAL-2026-007284IN-MAL-2026-007287IN-MAL-2026-007331IN-MAL-2026-007326IN-MAL-2026-007327GHSA-8x7w-vjr2-7q4m

References

Credits

  • Amazon Inspector · finder

Detect & block this

O3 blocks @apexcraft/nano-key-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the C2 callback and severs the channel.

Explore

@apexcraft/nano-key (npm) malicious package — MAL-2026-6210 | O3 Security