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

self-signnpm

Advisory published Updated

self-sign is a confirmed malicious npm package (MAL-2026-14544) that executes malicious code on install (malicious versions 5.6.1, 5.6.2, 5.6.3…). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in self-sign (npm)

MAL-2026-14544
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall self-sign

What this malware does

The exported generate() function in [email protected] accepts an undocumented third defaults parameter. When passed a string, the code strips PEM -----BEGIN CERTIFICATE----- headers, base64-decodes the remaining body, and passes the result to eval() inside a silent try/catch. The TypeScript declaration file advertises only two parameters, concealing the sink, while the shipped README examples pass a third argument (null), normalising the call shape so downstream callers can be induced to propagate attacker-controllable certificate-shaped strings into the eval sink. A cryptographic/x509 helper has no legitimate reason to evaluate base64 content extracted from a certificate string; this pattern yields arbitrary JavaScript execution in the process of any consumer that reaches this code path with attacker-influenced input. The package.json name (self-sign) also diverges from the require identifier used in the shipped documentation (require('selfsign')), a naming inconsistency that supports confusion with the legitimate selfsigned library.

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
5.6.15.6.25.6.35.6.45.6.55.6.65.6.75.6.85.6.9

Indicators of compromise (SHA-256)

b8adbf388bace10b905f93be8487c3b1866d941ecc0f968972de85f3b20f44de
ecfd7afea4b067c4810476267ef67b7c880bd0b5255da43bb18d87b4b251d30d
ee2fffc752e67739d1d8f7ad70acb021ed39c10f941fd844b9fb2f18bce73d91
0b93022d81e48b3031470031c6a14cd268f87beb846a92d5d3ac53230d937858
b3e0fcaa758a9f64ac8e5d0001179fb2e9e90c38bb9961c5d3f32f5f5b6d8719
d8b90570d1bf13d947069e5a792a6c4a9b47f8e4b4b817e1ca1f08b464445750
fce1d532f7d5d587126f607b871c6ee80f6d4c7f8816f83b9c4f8af99e8dc672
54d8b5cea5509894cbda69157d6759b8c9441a9a3c8b24f247535e80b2a521d2
789fc27f1b55052cd678616b438a9f44ceea06d79363a0025626666ab95261ff
b684f78f17626dead6b3d11131179a7a1aff7fa5e903daeecdac17ce8e3b99b3

Detection & response playbook

Malicious package
  1. Find it

    Search your lockfiles and build artifacts for self-sign (9 malicious versions).

  2. If you installed it — respond

    Remove self-sign from your project and lockfile, then assume any secrets accessible to the build or runtime were exposed: rotate API keys, tokens, and credentials, and audit for unexpected outbound activity or persistence.

  3. Did it already run?

    If self-sign was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.

Frequently asked questions

No. self-sign on npm has been identified as a malicious package (versions 5.6.1, 5.6.2, 5.6.3, 5.6.4, 5.6.5, 5.6.6, 5.6.7, 5.6.8, and 1 more flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

GHSA-9jvg-g3cg-g557IN-MAL-2026-018788IN-MAL-2026-018793IN-MAL-2026-018784IN-MAL-2026-018795IN-MAL-2026-018781IN-MAL-2026-018785IN-MAL-2026-018796IN-MAL-2026-018794IN-MAL-2026-018782

References

Credits

  • Amazon Inspector · finder

Detect & block this

O3 blocks self-sign-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.

Explore

self-sign (npm) malicious package — MAL-2026-14544 | O3 Security