Advisory

MAL-2026-10612

Also known as: GHSA-q727-8h63-fm25

Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.

Summary

Malicious code in assertion-utils-js (npm)

Details

---
_-= Per source details. Do not edit below this line.=-_

Source: amazon-inspector (311d22d9694863456136cf4f8b69a291fdbb631eda56bafca1959e0c184774a1)
assertion-utils-js is a typosquat of chai (name, description, and keywords mirror the real package). On require(), index.js spawns a detached Node child process that runs lib/chai/utils/assertion.js in the background with stdio ignored. That file is heavily string-array obfuscated (obfuscator.io style: rotated _0x1b90 token array plus a custom base64+URI _0x2dd2 decoder with parseInt-checksum rotation, hex-named identifiers) and its runtime behavior is to reconstruct a URL from the decoded string array, call https.get to fetch a remote response body, then pass that body to new Function("require", body) and invoke the resulting function with require in scope. The obfuscation exists to hide the fetch destination from static inspection; the fetched code executes with full Node module privileges on every load of the package.

Source: ghsa-malware (c2684afac6d619d33351e4afc538c40294a1a5b1fd643a4b10489ed12a01f79f)
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.

Severity

Not rated by the source.

Dates

Published
2026-07-14 19:53 UTC
Modified
2026-07-15 05:19 UTC

Affected packages and fixes

assertion-utils-js

npm · All systems

Affected

  • introduced 0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: OpenSSF Malicious Packages · Apache-2.0

Sources & licences