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

@onyxim/mathnpm

Advisory published Updated

@onyxim/math is a confirmed malicious npm package (MAL-2026-20953) that typosquats a legitimate package to trick installs (malicious version 1.0.2). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in @onyxim/math (npm)

MAL-2026-20953
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall @onyxim/math

What this malware does

@onyxim/math 1.0.2 (npm user villelaaksonen, published 2026-05-27) is a republished copy of the js-math library. Its only change from 1.0.1, published 37 minutes earlier, replaces the dependency javascript-natural-sort with tiny-naturalsort, a malicious package (MAL-2026-5030). Installing @onyxim/math 1.0.2 therefore installs tiny-naturalsort, whose install step runs setup.cjs. In the OpenSSF sandbox this contacted 23.254.164[.]92:8000, started a detached node payload pointed at 23.254.164[.]123:443, and installed a systemd user service (nvmconf.service, ~/.config/systemd/nvmconf/protocal.cjs) for persistence. This matches the dayjs-typosquat campaign (easy-day-js MAL-2026-5979, caspian-day-js MAL-2026-5892). The package works as a carrier that hides the malicious dependency behind a plausible maths library. The package's own code is clean: it is a carrier for the malicious dependency, which npm has since replaced with a security placeholder.

Malicious versions

1 flagged
1.0.2

Detection & response playbook

Typosquat
  1. Find it

    Search your lockfiles and build artifacts for @onyxim/math (version 1.0.2).

  2. If you installed it — respond

    @onyxim/math is a typosquat — you almost certainly intended a legitimately-named package. Remove @onyxim/math, install the correct package, and rotate any secrets exposed during the install since post-install scripts may have already run.

  3. Did it already run?

    If @onyxim/math 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. @onyxim/math 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.

References

Credits

  • Radesh Govind · finder

Detect & block this

O3 blocks @onyxim/math-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

@onyxim/math (npm) malicious package — MAL-2026-20953 | O3 Security