NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
Malicious package

@xokodon430/jsclampnpm

Advisory published Updated

@xokodon430/jsclamp is a confirmed malicious npm package (MAL-2026-20498) that executes malicious code on install (malicious version 1.0.2). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in @xokodon430/jsclamp (npm)

MAL-2026-20498
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall @xokodon430/jsclamp

What this malware does

The package is advertised as a one-line numeric clamp utility but ships a preinstall lifecycle hook (node setup.js) that, on npm install, fetches bytes from https://pastebin.com/raw/z6K1Rg8J and https://calcal.ru/p/t5edjvR/raw (first-successful wins), writes them to a random path under the OS tmpdir, and passes the resulting file to a run() function. The destinations are author-mutable paste hosts unrelated to the package's stated publisher, and the content is unpinned and unverified. In version 1.0.2 the run() function is an empty stub so the fetched bytes are not executed, but the full dropper scaffolding — preinstall trigger, dual-source fetch with failover, staging under tmpdir, handoff to a runner — is present and reachable. Error reporting is obfuscated: HTTP failures surface as Error #<status*13579> and process.exit(1), concealing which remote host failed and masking that preinstall is reaching Pastebin/calcal.ru. None of this behavior is justified by a 7-line clamp utility.

Malicious versions

1 flagged
1.0.2

Indicators of compromise (SHA-256)

fb7577f8caa11c1f83a285b9542bd8f84c5cd02a695f5f06b037c3c673ea1b1f

Detection & response playbook

Malicious package
  1. Find it

    Search your lockfiles and build artifacts for @xokodon430/jsclamp (version 1.0.2).

  2. If you installed it — respond

    Remove @xokodon430/jsclamp 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 @xokodon430/jsclamp 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. @xokodon430/jsclamp on npm has been identified as a malicious package (version 1.0.2 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-023084

References

Credits

  • Amazon Inspector · finder

Detect & block this

O3 blocks @xokodon430/jsclamp-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

@xokodon430/jsclamp (npm) malicious package — MAL-2026-20498 | O3 Security