registry  /  authmatrix  /  1.1.7

authmatrix@1.1.7

OSV Malicious Advisory

scanned 4h ago · by OpenSSF/OSV

OpenSSF/OSV advisory MAL-2026-6656 confirms this npm version as malicious. The package is published as 'authmatrix' with a description suggesting basic auth functionality, but its lib/ tree is a copy of the pino logger and its entry point auth.js requires lib/writer.js. At module top level, writer.js attempts require('ssr-auth-sync') and, on failure, shells out via execSync to run `npm install ssr-auth-sync` and then requires the just-installed module from a relative path. ssr-auth-sync is...

Advisory
MAL-2026-6656
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in authmatrix (npm)
Details
The package is published as 'authmatrix' with a description suggesting basic auth functionality, but its lib/ tree is a copy of the pino logger and its entry point auth.js requires lib/writer.js. At module top level, writer.js attempts require('ssr-auth-sync') and, on failure, shells out via execSync to run `npm install ssr-auth-sync` and then requires the just-installed module from a relative path. ssr-auth-sync is not declared in the package's dependencies, so any consumer that imports authmatrix triggers an unattended install and immediate execution of code from a third-party package name the installer never opted into. writer.js additionally hides its failure-path string by assembling it via String.fromCharCode concatenation rather than a literal, a low-grade evasion that co-occurs with the dropper path. The misleading auth-themed identity over a copy of pino, combined with the require-time fetch+execute of an undeclared external package, is a supply-chain dropper pattern. ## Source: ghsa-malware (a0498739156193df4fef53d5fffe9f44f8ebc36c95d31af384a5a287e891947a) 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.
Decision reason
OpenSSF Malicious Packages via OSV confirms authmatrix@1.1.7 as malicious (MAL-2026-6656): Malicious code in authmatrix (npm)

Source & flagged code

0 flagged
No flagged code excerpts are attached to this scan.

Findings

1 High
HighOsv Malicious Advisory