MAL-2026-6656

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/authmatrix/MAL-2026-6656.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6656
Aliases
  • GHSA-qr38-fjw7-r54v
Published
2026-06-29T14:00:15Z
Modified
2026-07-09T17:31:53.984444114Z
Summary
Malicious code in authmatrix (npm)
Details

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

Source: amazon-inspector (58eb7642f8d7e2fb2e898277c6961d2538f40766777a679020f4872b29925806)

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.

Database specific
{
    "malicious-packages-origins": [
        {
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "id": "GHSA-qr38-fjw7-r54v",
            "source": "ghsa-malware",
            "import_time": "2026-06-29T17:14:01.303810571Z",
            "modified_time": "2026-06-29T14:00:16Z",
            "sha256": "a0498739156193df4fef53d5fffe9f44f8ebc36c95d31af384a5a287e891947a"
        },
        {
            "modified_time": "2026-07-09T16:59:42Z",
            "id": "IN-MAL-2026-009351",
            "source": "amazon-inspector",
            "import_time": "2026-07-09T17:19:27.833036617Z",
            "sha256": "58eb7642f8d7e2fb2e898277c6961d2538f40766777a679020f4872b29925806",
            "versions": [
                "1.0.30"
            ]
        },
        {
            "sha256": "f1f915fc040e277f4ced960b00be2ff0cef2175d635caece97050876d0754732",
            "id": "IN-MAL-2026-009355",
            "source": "amazon-inspector",
            "import_time": "2026-07-09T17:19:28.288891383Z",
            "modified_time": "2026-07-09T17:00:16Z",
            "versions": [
                "1.1.7"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / authmatrix

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.0.30
1.1.7

Database specific

indicators
{
    "evidence_files": [
        {
            "path": "lib/writer.js",
            "tlsh": "7631aee78245a278f3716bb20e1f64c0b186d12521507dd83efc44c667eb4e04e99fda",
            "sha256": "80ee4b4f7010bf6359a06b2e1d50131b88fba730634057f4a299adbb1ef4ff55"
        },
        {
            "path": "package.json",
            "tlsh": "0b017840cd288e6308dc26928c794253ab609c0b5828fd2d33c7b32c0f9d47f1abe22c",
            "sha256": "0c64921c0191518983490315bfd6f7cdb08a019cf6c15307cdc6ecd5d51f01b8"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/authmatrix/MAL-2026-6656.json"
cwes
[
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    },
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    },
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    }
]