MAL-2026-5972

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/canary-ci-test/MAL-2026-5972.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-5972
Aliases
  • GHSA-6p9p-wp4g-8546
Published
2026-06-17T04:24:09Z
Modified
2026-07-15T05:19:46.590618832Z
Summary
Malicious code in canary-ci-test (npm)
Details

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

Source: amazon-inspector (a572fd7ffa39ecc1ba62c71d1dfe31722bfbe0c4118b7ab8400c1d5f4a61ba0f)

On npm install, the package's postinstall lifecycle script (postinstall.js) collects installer-side host identifiers — os.hostname(), os.userInfo().username, process.cwd(), platform, and a DNS resolution result — and POSTs them as JSON to the hardcoded endpoint https://opgelost.nu/ (BEACON_URL declared at postinstall.js:15; HTTPS request constructed at line 31; POST issued at line 33; payload assembled at lines 58-66). The fetch fires automatically with no opt-in, and errors are silently swallowed so installers see no indication of the outbound beacon. The behavior is unrelated to any documented package purpose and matches a classic install-time phone-home exfiltration pattern. The package's own metadata declares it to be a scanner test fixture; the executed code, however, is functional exfiltration that runs against any machine that installs it.

Source: ghsa-malware (5a67984713228b20760c5a4518327079b80f5b0f378b3ff71b1c4d592bffff6f)

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": [
        {
            "modified_time": "2026-06-17T04:24:09Z",
            "id": "IN-MAL-2026-006885",
            "sha256": "a572fd7ffa39ecc1ba62c71d1dfe31722bfbe0c4118b7ab8400c1d5f4a61ba0f",
            "import_time": "2026-06-17T05:45:42.228220723Z",
            "source": "amazon-inspector",
            "versions": [
                "1.0.0"
            ]
        },
        {
            "modified_time": "2026-07-15T01:41:36Z",
            "id": "GHSA-6p9p-wp4g-8546",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "import_time": "2026-07-15T05:00:56.787843Z",
            "source": "ghsa-malware",
            "sha256": "5a67984713228b20760c5a4518327079b80f5b0f378b3ff71b1c4d592bffff6f"
        }
    ]
}
References
Credits

Affected packages

npm / canary-ci-test

Package

Affected ranges

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

Affected versions

1.*
1.0.0

Database specific

cwes
[
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/canary-ci-test/MAL-2026-5972.json"
indicators
{
    "evidence_files": [
        {
            "tlsh": "0a41845a54f2b27916f3faa8950b24091263e11b7d08aca4f28c02900f4f7ac11f26ee",
            "path": "postinstall.js",
            "sha256": "340b2faf0f0b89b9a7e2c3715bd154c20d6cf73c082017d83a2d27644af21f31"
        },
        {
            "tlsh": "66e02b148ea0967b34c48bad1a63805a6a26493a1244586463c79498565677708bf34f",
            "path": "package.json",
            "sha256": "79787e156405d51285006f4bee73e22e8e1851f494ceae0290cd7c9c5b4fca3c"
        }
    ],
    "package_integrity": [
        {
            "filename": "canary-ci-test-1.0.0.tgz",
            "hashes": {
                "sha1": "3107caf4128ea5e046566f3b9896c76a64cb0742",
                "sha512_sri": "sha512-+e0eSadcAu4J3lb0wTwkr6JIY4hGheOj+mBI5jQVZau2i0T9o44q72eepT3ljRmo61H5qaTUcEhLWdcU3zhodA=="
            }
        }
    ]
}