MAL-2026-5758

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/npm-sandbox-research-8b2f/MAL-2026-5758.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-5758
Aliases
  • GHSA-qxgv-pg7p-c4qr
Published
2026-06-14T07:30:46Z
Modified
2026-06-18T06:01:48Z
Summary
Malicious code in npm-sandbox-research-8b2f (npm)
Details

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

Source: amazon-inspector (916280d3906e0f04caa7f46135039e4a42b03a5c96091c1555ad2ab0e86b923b)

On install, package.json runs postinstall: node run.js, which loads beacon scripts (beacon8.js, beacon_linux.js) that import child_process, os, and http, gather host identity (output of whoami, os.hostname(), os.platform()), and POST the collected data to a hardcoded HTTP endpoint via http.request(...). This fires automatically on npm install, providing attacker-controlled reconnaissance of every installer host with no user interaction. The behavior — privileged shell command execution, host identity collection, and outbound HTTP POST from a postinstall hook — matches the active-attack reconnaissance/beacon fingerprint.

Source: ghsa-malware (30f473a2eba781c3fd87e44a9c46c42a814b565ff2ff35ccb3f435e5975cac76)

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": [
        {
            "id": "IN-MAL-2026-006467",
            "import_time": "2026-06-14T07:43:28.307281062Z",
            "modified_time": "2026-06-14T07:30:47Z",
            "sha256": "5119ca2a37c8be102cacd11eec20c77cbe1ac35d0de988a98180b3ae9b1167da",
            "source": "amazon-inspector",
            "versions": [
                "1.0.0"
            ]
        },
        {
            "id": "IN-MAL-2026-006465",
            "import_time": "2026-06-14T07:43:28.187416868Z",
            "modified_time": "2026-06-14T07:30:46Z",
            "sha256": "916280d3906e0f04caa7f46135039e4a42b03a5c96091c1555ad2ab0e86b923b",
            "source": "amazon-inspector",
            "versions": [
                "1.0.0"
            ]
        },
        {
            "id": "GHSA-qxgv-pg7p-c4qr",
            "import_time": "2026-06-18T05:54:18.972842835Z",
            "modified_time": "2026-06-18T03:27:58Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "30f473a2eba781c3fd87e44a9c46c42a814b565ff2ff35ccb3f435e5975cac76",
            "source": "ghsa-malware"
        }
    ]
}
References
Credits

Affected packages

npm / npm-sandbox-research-8b2f

Package

Name
npm-sandbox-research-8b2f
View open source insights on deps.dev
Purl
pkg:npm/npm-sandbox-research-8b2f

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown 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"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "beacon8.js",
            "sha256": "0874fbbbe2982033da12289f4572ca58238c3a92bf4ca4216fdcde795d690182",
            "tlsh": "6652f941397b17e496d329d6fefbed212053e10e2698a494b2cc824d2fcc12c5669bdb"
        },
        {
            "path": "beacon_linux.js",
            "sha256": "60a0fbee8014300d0dd230765cbea7b61e9660a1584ad6a265de71927ff04c68",
            "tlsh": "5db1b7d6a57b41282bd3b89c679f84061823f217b512d8d0b6dc06248fc7924a1a2ded"
        },
        {
            "path": "package.json",
            "sha256": "5a3ed53288ccbc529ccb3f3c01c97c24e9ad53098c4f5526700bc06008fbd72a",
            "tlsh": "a7011014ac2028335dc12be60c666545f7308f0b9040ba5d42bb862851eef7931bb04c"
        }
    ],
    "ips": [
        "173.255.233.239",
        "104.16.9.34",
        "10.1.0.2"
    ],
    "package_integrity": [
        {
            "filename": "npm-sandbox-research-8b2f-1.0.0.tgz",
            "hashes": {
                "sha1": "b3d971a27fe24ce69038036a2b233276f75a68d0",
                "sha512_sri": "sha512-HBUJBD0Y1Rp6DuUapNxM07t1FhZ7+nuiY1ckvOUwBvdRoB7Wl+bNVP+uKPuz0+iJwIyTXrIDYmOZhg4UTQLi6g=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/npm-sandbox-research-8b2f/MAL-2026-5758.json"