MAL-2026-5858

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/metrics-pipeline-d8k2/MAL-2026-5858.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-5858
Aliases
  • GHSA-77q5-c2w3-pc44
Published
2026-06-16T01:34:34Z
Modified
2026-06-18T06:01:51Z
Summary
Malicious code in metrics-pipeline-d8k2 (npm)
Details

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

Source: amazon-inspector (01ad2ee3d3807102a3f02c01af0d3fec46d91e9764eb77a8bcedf9c6be7fc3b0)

Package declares "postinstall": "node run.js" in package.json, causing automatic execution of bundled beacon scripts on npm install. beacon29.js loads child_process, https, and fs, reads files via fs.readFileSync and reads process.env, gathers host identity (process.platform), and POSTs/GETs the data to remote endpoints; it also references https://registry.npmjs.org and https://npm.pkg.github.com, consistent with credential/token harvesting and potential self-propagation through registry APIs. beacon_linux.js mirrors the pattern on Linux: require('child_process') + require('http') + os.hostname() + os.platform() followed by http.request(...) POST to a remote host. The package's stated 'metrics pipeline' name is a cover; the only behavior on install is host fingerprinting and outbound exfiltration. Installing this package on a developer or CI machine causes immediate compromise: environment variables (which commonly hold cloud and CI tokens), file contents, and host identifiers are sent to attacker-controlled infrastructure without user interaction.

Source: ghsa-malware (8376ac5cff648426d3d11d8a4937fbf250d55b3c72127670d556329585420992)

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-006723",
            "import_time": "2026-06-16T02:23:11.304743388Z",
            "modified_time": "2026-06-16T01:34:35Z",
            "sha256": "01ad2ee3d3807102a3f02c01af0d3fec46d91e9764eb77a8bcedf9c6be7fc3b0",
            "source": "amazon-inspector",
            "versions": [
                "1.0.3"
            ]
        },
        {
            "id": "IN-MAL-2026-006726",
            "import_time": "2026-06-16T02:23:11.46595368Z",
            "modified_time": "2026-06-16T01:34:37Z",
            "sha256": "54c1af327fbf53a18b26a293093ff11b2ac19e346468fca66ff083166972dc7f",
            "source": "amazon-inspector",
            "versions": [
                "1.0.0"
            ]
        },
        {
            "id": "IN-MAL-2026-006722",
            "import_time": "2026-06-16T02:23:11.229728398Z",
            "modified_time": "2026-06-16T01:34:34Z",
            "sha256": "5b0d9377de514d01f4b2c4007ca1d7dfd5787ab72c185eb74a6f4f53ac1658ba",
            "source": "amazon-inspector",
            "versions": [
                "1.0.4"
            ]
        },
        {
            "id": "IN-MAL-2026-006724",
            "import_time": "2026-06-16T02:23:11.354620754Z",
            "modified_time": "2026-06-16T01:34:36Z",
            "sha256": "89a516af939e2a8520621d9ef7f847517da94269623a71aea9f2f00d3188a954",
            "source": "amazon-inspector",
            "versions": [
                "1.0.5"
            ]
        },
        {
            "id": "IN-MAL-2026-006727",
            "import_time": "2026-06-16T02:23:11.559392458Z",
            "modified_time": "2026-06-16T01:34:39Z",
            "sha256": "c113970b47b623dedfa59e8ff71bf20bfca793e1e1d9ff76b29eca1bf674dc9f",
            "source": "amazon-inspector",
            "versions": [
                "1.0.2"
            ]
        },
        {
            "id": "IN-MAL-2026-006725",
            "import_time": "2026-06-16T02:23:11.40004171Z",
            "modified_time": "2026-06-16T01:34:36Z",
            "sha256": "3a44ea64194cd8e1b678076116fadf8bc05e764bb8d478c72266cd0bf3874da4",
            "source": "amazon-inspector",
            "versions": [
                "1.0.1"
            ]
        },
        {
            "id": "IN-MAL-2026-006815",
            "import_time": "2026-06-16T19:46:14.886673365Z",
            "modified_time": "2026-06-16T18:57:27Z",
            "sha256": "3bbe5b8c8642c0c20bdd53879e0aea8ac95003d0f4d23611524ecffcef12acde",
            "source": "amazon-inspector",
            "versions": [
                "1.0.7"
            ]
        },
        {
            "id": "IN-MAL-2026-006809",
            "import_time": "2026-06-16T19:46:14.45111334Z",
            "modified_time": "2026-06-16T18:57:22Z",
            "sha256": "5c656acf9f196c5089baacf11db8aa87dfed701ae203199729a68206227f11f0",
            "source": "amazon-inspector",
            "versions": [
                "1.0.9"
            ]
        },
        {
            "id": "IN-MAL-2026-006814",
            "import_time": "2026-06-16T19:46:14.828680124Z",
            "modified_time": "2026-06-16T18:57:26Z",
            "sha256": "b10e688de4ddf8c6a9697553b78d365293a2180c05977a38cbf899cddee3e62d",
            "source": "amazon-inspector",
            "versions": [
                "1.0.8"
            ]
        },
        {
            "id": "IN-MAL-2026-006812",
            "import_time": "2026-06-16T19:46:14.709925943Z",
            "modified_time": "2026-06-16T18:57:25Z",
            "sha256": "bd50e0a34295875e7f64e50db862fce861a0a315f2ea1103df52eefc2ca78c48",
            "source": "amazon-inspector",
            "versions": [
                "1.0.13"
            ]
        },
        {
            "id": "IN-MAL-2026-006813",
            "import_time": "2026-06-16T19:46:14.767930894Z",
            "modified_time": "2026-06-16T18:57:26Z",
            "sha256": "e52e5a5c05cceaf09f75cab7a4fdfde26cad46a186d15afc2b8be672c2827b01",
            "source": "amazon-inspector",
            "versions": [
                "1.0.6"
            ]
        },
        {
            "id": "IN-MAL-2026-006810",
            "import_time": "2026-06-16T19:46:14.57180126Z",
            "modified_time": "2026-06-16T18:57:23Z",
            "sha256": "eab49ef22bb82edc216799d801a682c984a9866c6641ea309b858ad67fe56aba",
            "source": "amazon-inspector",
            "versions": [
                "1.0.12"
            ]
        },
        {
            "id": "IN-MAL-2026-006816",
            "import_time": "2026-06-16T19:46:14.944573678Z",
            "modified_time": "2026-06-16T18:57:31Z",
            "sha256": "1f40e8efc2eedc3f971b3ee2ece3f4ef2c0bfe520b5b8c9ecf0fb5801ad03a50",
            "source": "amazon-inspector",
            "versions": [
                "1.0.11"
            ]
        },
        {
            "id": "IN-MAL-2026-006811",
            "import_time": "2026-06-16T19:46:14.621670178Z",
            "modified_time": "2026-06-16T18:57:24Z",
            "sha256": "367ed35f72559e7378a3550ef103a3901a34159a89c7cf96396451d1aaeda423",
            "source": "amazon-inspector",
            "versions": [
                "1.0.10"
            ]
        },
        {
            "id": "IN-MAL-2026-006831",
            "import_time": "2026-06-16T21:06:47.394888715Z",
            "modified_time": "2026-06-16T20:01:07Z",
            "sha256": "f51f84544dd6aa3cf55dcdaa1778df99eb19b6f2be0a57772ff907629936da55",
            "source": "amazon-inspector",
            "versions": [
                "1.0.15"
            ]
        },
        {
            "id": "IN-MAL-2026-006857",
            "import_time": "2026-06-16T23:03:44.270264721Z",
            "modified_time": "2026-06-16T22:31:00Z",
            "sha256": "7748df10c51a36e3514811f29c5a5675099e5da683e2dc51e672273699b99860",
            "source": "amazon-inspector",
            "versions": [
                "1.0.14"
            ]
        },
        {
            "id": "IN-MAL-2026-006851",
            "import_time": "2026-06-16T23:03:43.878596467Z",
            "modified_time": "2026-06-16T22:30:54Z",
            "sha256": "ae12e4f82e5f5f66cbf8c524d6d1c8435f989f639f9ad42a454f63e8247020ef",
            "source": "amazon-inspector",
            "versions": [
                "1.0.16"
            ]
        },
        {
            "id": "IN-MAL-2026-006850",
            "import_time": "2026-06-16T23:03:43.808238958Z",
            "modified_time": "2026-06-16T22:24:31Z",
            "sha256": "2412c76c582f149d5e9b2fa87d33018965031c8f5e9a5469085f52dfcf52c346",
            "source": "amazon-inspector",
            "versions": [
                "1.0.17"
            ]
        },
        {
            "id": "IN-MAL-2026-006896",
            "import_time": "2026-06-17T05:45:43.069156968Z",
            "modified_time": "2026-06-17T04:40:17Z",
            "sha256": "3e33670cb9a2bdee78c42193d6f256c05bebea69ac8879fb434a291c27595e45",
            "source": "amazon-inspector",
            "versions": [
                "1.0.18"
            ]
        },
        {
            "id": "IN-MAL-2026-006897",
            "import_time": "2026-06-17T05:45:43.09969626Z",
            "modified_time": "2026-06-17T04:40:22Z",
            "sha256": "db8fb1276f5fa18fa71d68408d3413206947eb0160cdb4fba5fc468a95fe39d8",
            "source": "amazon-inspector",
            "versions": [
                "1.0.19"
            ]
        },
        {
            "id": "IN-MAL-2026-006895",
            "import_time": "2026-06-17T05:45:43.017769296Z",
            "modified_time": "2026-06-17T04:40:16Z",
            "sha256": "fd0b7f1a17cdabf968bdc3ab51ec486aa2c88e749deee0a30da7ad8b5fdea266",
            "source": "amazon-inspector",
            "versions": [
                "1.0.20"
            ]
        },
        {
            "id": "GHSA-77q5-c2w3-pc44",
            "import_time": "2026-06-18T05:54:18.949612398Z",
            "modified_time": "2026-06-18T03:27:54Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "8376ac5cff648426d3d11d8a4937fbf250d55b3c72127670d556329585420992",
            "source": "ghsa-malware"
        }
    ]
}
References
Credits

Affected packages

npm / metrics-pipeline-d8k2

Package

Name
metrics-pipeline-d8k2
View open source insights on deps.dev
Purl
pkg:npm/metrics-pipeline-d8k2

Affected ranges

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

Affected versions

1.*
1.0.0
1.0.1
1.0.2
1.0.3
1.0.4
1.0.5
1.0.6
1.0.7
1.0.8
1.0.9
1.0.10
1.0.11
1.0.12
1.0.13
1.0.14
1.0.15
1.0.16
1.0.17
1.0.18
1.0.19
1.0.20

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"
    },
    {
        "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"
    },
    {
        "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"
    },
    {
        "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"
    },
    {
        "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"
    },
    {
        "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"
    },
    {
        "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"
    },
    {
        "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"
    },
    {
        "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"
    },
    {
        "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"
    },
    {
        "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": "beacon29.js",
            "sha256": "1ab07670374fe59d630d1eee53a64c3c4db7b3f9ea7090967041d9799bc35f7f",
            "tlsh": "1a621971e8164da43a42d89dcb0bb4596026b21b3d60fd90b78d758c6fcd15f82728fe"
        },
        {
            "path": "beacon_linux.js",
            "sha256": "60a0fbee8014300d0dd230765cbea7b61e9660a1584ad6a265de71927ff04c68",
            "tlsh": "5db1b7d6a57b41282bd3b89c679f84061823f217b512d8d0b6dc06248fc7924a1a2ded"
        },
        {
            "path": "package.json",
            "sha256": "e360fe53183307ea77dddf0f150015a3ee553dc9db54be3e70f8406c29ffcc51",
            "tlsh": "77f09e589c302c335ac02e990ca19949b6744f1b60847d5e827b1d2801dfe7a30be15d"
        }
    ],
    "package_integrity": [
        {
            "filename": "metrics-pipeline-d8k2-1.0.3.tgz",
            "hashes": {
                "sha1": "8a26aa479a56a8910b1f7bdef9744ebddfa41248",
                "sha512_sri": "sha512-YsyQJQ4kak4OmsUnk47tUzCxFbyZMQ3TV6Tgu4kz3hk1TRUNTqk8h+LKtgyX8udgfzToUz2cPORZDIDu97kb/Q=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/metrics-pipeline-d8k2/MAL-2026-5858.json"