MAL-2026-6655

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/auth-state-service/MAL-2026-6655.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6655
Aliases
  • GHSA-53ph-27qg-w52c
Published
2026-06-29T14:00:15Z
Modified
2026-07-09T17:31:58.221630331Z
Summary
Malicious code in auth-state-service (npm)
Details

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

Source: amazon-inspector (9fc857733e3c372868625f57425574859c653eb8ac16c97171aa9e929de13ca6)

On require('auth-state-service'), the package loads lib/writer.js, which at top level attempts require('ssr-auth-sync') and on failure shells out via execSync to npm install ssr-auth-sync --no-warnings --no-save --no-progress --loglevel silent (windowsHide: true), then require('../../ssr-auth-sync/index.js'). The fetched dependency is unpinned, unverified, separately published, and its code executes inside the consumer's process — a chained-package dropper that keeps the actual payload out of the surface package. Corroborating signals: the only user-visible cover-story error in lib/writer.js is built by concatenating ~80 String.fromCharCode calls (decoding to 'Error: This environment is not supported. Please select the supported environment.') rather than written as a literal, an evasion pattern with no functional purpose. The package identity is also inconsistent — package.json advertises 'auth-state-service' for 'handling user verification' with keywords [fast, logger, stream, json], while lib/ is a verbatim pino logger source tree (proto.js, redaction.js, multistream.js) and ships pino-banner.png, pino-tree.png, pino-logo-hire.png, pretty-demo.png. The mismatched cover identity, combined with the silent unpinned remote install at require time, is a clear supply-chain attack shape.

Source: ghsa-malware (9eb562b8ac04806d5a9f3e9f68fa425cc502778670ad21b4124e8ee205da41ab)

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": [
        {
            "sha256": "9eb562b8ac04806d5a9f3e9f68fa425cc502778670ad21b4124e8ee205da41ab",
            "id": "GHSA-53ph-27qg-w52c",
            "import_time": "2026-06-29T17:14:01.242134499Z",
            "modified_time": "2026-06-29T14:00:15Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "source": "ghsa-malware"
        },
        {
            "versions": [
                "1.6.16"
            ],
            "id": "IN-MAL-2026-009358",
            "modified_time": "2026-07-09T17:00:41Z",
            "import_time": "2026-07-09T17:19:28.657225387Z",
            "sha256": "9fc857733e3c372868625f57425574859c653eb8ac16c97171aa9e929de13ca6",
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / auth-state-service

Package

Affected ranges

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

Affected versions

1.*
1.6.16

Database specific

indicators
{
    "evidence_files": [
        {
            "sha256": "80ee4b4f7010bf6359a06b2e1d50131b88fba730634057f4a299adbb1ef4ff55",
            "tlsh": "7631aee78245a278f3716bb20e1f64c0b186d12521507dd83efc44c667eb4e04e99fda",
            "path": "lib/writer.js"
        },
        {
            "sha256": "d7029b0c0ceca175ddfc7079300cac2400fefdc7d7acc0a4e769665ae59d32d9",
            "tlsh": "11014940cd648e6308dd26929c3a6253a7609c0b6818bd1d33d7631d0f9d87f19bf27c",
            "path": "package.json"
        }
    ]
}
cwes
[
    {
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506",
        "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."
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/auth-state-service/MAL-2026-6655.json"