mal-2026-6372
Vulnerability from ossf_malicious_packages
-= Per source details. Do not edit below this line.=-
Source: amazon-inspector (90dc8536f81ef2ffbd391877bbe1eefbefc900081ef6eaa9848548177c233167)
Package name mimics the legitimate rollup-plugin-polyfill-node and copies its source (the repository field in package.json points to FredKSchott/rollup-plugin-polyfill-node). Appended to dist/index.js is a top-level dropper that runs on every require()/import of the package. The dropper decodes base64-encoded strings to assemble the command npm install driftpin --no-save --silent --no-audit --no-fund, spawns it with stdio: 'ignore' and windowsHide: true to suppress output, then on process close performs require('driftpin') and invokes getPlugin()(). The target module name driftpin is also stored as a base64 literal (ZHJpZnRwaW4=). driftpin is not declared in this package's dependencies and is not shipped in the tarball — its content is attacker-controlled and unpinned, so arbitrary code from a separate npm package executes inside the installer's Node process whenever this module is loaded. The combination of name impersonation of a legitimate polyfill, base64 obfuscation of the command and target name, hidden execution flags, and out-of-tree installation of an unrelated package is an unambiguous install/import-time RCE dropper.
Source: ghsa-malware (86dd829b4d8f5036fa5ebd80007b813641508e5ba5fc0587e57308a3bbc62044)
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.
- CWE-506 - The product contains code that appears to be malicious in nature.
- CWE-506 - The product contains code that appears to be malicious in nature.
- CWE-506 - The product contains code that appears to be malicious in nature.
- CWE-506 - The product contains code that appears to be malicious in nature.
- CWE-506 - The product contains code that appears to be malicious in nature.
{
"affected": [
{
"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"
}
],
"indicators": {
"evidence_files": [
{
"path": "dist/index.js",
"sha256": "fefd061faf0b51e9bb12247f7e656cf87c0be8794b6dc09615292b16a01740f9",
"tlsh": "7381532514f66955037376e8558be871397b9393338ccb503e2c83b09fa11288a76afa"
},
{
"path": "package.json",
"sha256": "b09a7c584d91e8268cbfd11aa9809b984f1d920eef7629d9860fb408625d6fcc",
"tlsh": "a2318d30cd5d8ea31ad821ed9977a193a0349ed709c4fc4833a6421c4f4f66f20bda6e"
}
],
"package_integrity": [
{
"filename": "rollup-runtime-polyfill-core-0.13.7.tgz",
"hashes": {
"sha1": "05c2e7aa84ebf726fe57e31b4e0bb6a6948db969",
"sha512_sri": "sha512-T/TO5I5ukS09HF/jT2qEimzjFca6L9+V2WVXqDE4H9TSTTytVZVIZXaczJG72CepE352ROxlyU+NS3H96uSTqg=="
}
}
]
}
},
"package": {
"ecosystem": "npm",
"name": "rollup-runtime-polyfill-core"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
],
"versions": [
"0.13.7",
"0.13.9",
"0.14.0",
"0.13.8"
]
}
],
"aliases": [
"GHSA-cx5m-r6wc-pp56"
],
"credits": [
{
"contact": [
"inspector-research@amazon.com"
],
"name": "Amazon Inspector",
"type": "FINDER"
}
],
"database_specific": {
"malicious-packages-origins": [
{
"id": "IN-MAL-2026-007416",
"import_time": "2026-06-24T04:54:33.85164802Z",
"modified_time": "2026-06-24T03:58:02Z",
"sha256": "e1923adcd8dc53c5f68d2b6f1ef453f5dc52a71fcb2b9e9db502d308e5ef4311",
"source": "amazon-inspector",
"versions": [
"0.13.7"
]
},
{
"id": "IN-MAL-2026-009670",
"import_time": "2026-07-10T17:10:16.260533713Z",
"modified_time": "2026-07-10T16:56:31Z",
"sha256": "90dc8536f81ef2ffbd391877bbe1eefbefc900081ef6eaa9848548177c233167",
"source": "amazon-inspector",
"versions": [
"0.13.9"
]
},
{
"id": "IN-MAL-2026-009672",
"import_time": "2026-07-10T17:10:16.355177833Z",
"modified_time": "2026-07-10T16:56:48Z",
"sha256": "ebd136cb340adff0341c7b4f86b99d7c026ec67693d1d812559e0a56b64698ad",
"source": "amazon-inspector",
"versions": [
"0.14.0"
]
},
{
"id": "IN-MAL-2026-009673",
"import_time": "2026-07-10T17:10:16.403727304Z",
"modified_time": "2026-07-10T16:56:55Z",
"sha256": "f21236e6de3a458e6dff10d509699f19731342b2b09affbbab93d1856328088e",
"source": "amazon-inspector",
"versions": [
"0.13.8"
]
},
{
"id": "GHSA-cx5m-r6wc-pp56",
"import_time": "2026-08-21T13:32:25.265484832Z",
"modified_time": "2026-08-21T12:29:38Z",
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
],
"sha256": "86dd829b4d8f5036fa5ebd80007b813641508e5ba5fc0587e57308a3bbc62044",
"source": "ghsa-malware"
}
]
},
"details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (90dc8536f81ef2ffbd391877bbe1eefbefc900081ef6eaa9848548177c233167)\nPackage name mimics the legitimate `rollup-plugin-polyfill-node` and copies its source (the repository field in package.json points to FredKSchott/rollup-plugin-polyfill-node). Appended to dist/index.js is a top-level dropper that runs on every `require()`/`import` of the package. The dropper decodes base64-encoded strings to assemble the command `npm install driftpin --no-save --silent --no-audit --no-fund`, spawns it with `stdio: \u0027ignore\u0027` and `windowsHide: true` to suppress output, then on process close performs `require(\u0027driftpin\u0027)` and invokes `getPlugin()()`. The target module name `driftpin` is also stored as a base64 literal (`ZHJpZnRwaW4=`). `driftpin` is not declared in this package\u0027s dependencies and is not shipped in the tarball \u2014 its content is attacker-controlled and unpinned, so arbitrary code from a separate npm package executes inside the installer\u0027s Node process whenever this module is loaded. The combination of name impersonation of a legitimate polyfill, base64 obfuscation of the command and target name, hidden execution flags, and out-of-tree installation of an unrelated package is an unambiguous install/import-time RCE dropper.\n\n## Source: ghsa-malware (86dd829b4d8f5036fa5ebd80007b813641508e5ba5fc0587e57308a3bbc62044)\nAny 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.\n",
"id": "MAL-2026-6372",
"modified": "2026-08-21T13:34:26.983572995Z",
"published": "2026-06-24T03:58:02Z",
"references": [
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/rollup-runtime-polyfill-core/v/0.13.7"
},
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/rollup-runtime-polyfill-core/v/0.13.9"
},
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/rollup-runtime-polyfill-core/v/0.14.0"
},
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/rollup-runtime-polyfill-core/v/0.13.8"
},
{
"type": "ADVISORY",
"url": "https://github.com/advisories/GHSA-cx5m-r6wc-pp56"
}
],
"schema_version": "1.7.4",
"summary": "Malicious code in rollup-runtime-polyfill-core (npm)"
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.