Malicious code in rollup-runtime-polyfill-core (npm)
--- _-= 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.
AI Analysis
Technical Summary
The 'rollup-runtime-polyfill-core' npm package mimics the legitimate 'rollup-plugin-polyfill-node' by copying its source but appends a top-level dropper in its dist/index.js. This dropper decodes base64-encoded strings to run the command 'npm install driftpin --no-save --silent --no-audit --no-fund' with suppressed output and hidden windows on Windows. After installation, it requires the 'driftpin' module and invokes its 'getPlugin()()' function. The 'driftpin' package is attacker-controlled, not declared as a dependency, and not included in the tarball, allowing arbitrary code execution within the installer's Node process whenever 'rollup-runtime-polyfill-core' is loaded. This behavior constitutes an install/import-time remote code execution dropper with clear malicious intent.
Potential Impact
Any system with this package installed or running is considered fully compromised. The attacker gains the ability to execute arbitrary code during package import or require, potentially leading to full system compromise. All secrets and keys stored on the affected system should be rotated immediately from a secure environment. Simply removing the package does not guarantee removal of all malicious software or backdoors introduced by the attacker-controlled 'driftpin' package.
Mitigation Recommendations
Remove the 'rollup-runtime-polyfill-core' package immediately from all systems. Rotate all secrets, credentials, and keys that were stored or accessible on the compromised systems from a secure, unaffected environment. Because the attacker-controlled package 'driftpin' is installed dynamically and can execute arbitrary code, assume full system compromise and perform a thorough investigation and remediation. There is no known patch or official fix for this malicious package; prevention involves avoiding installation and use of this package and its versions.
Malicious code in rollup-runtime-polyfill-core (npm)
Description
--- _-= 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.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The 'rollup-runtime-polyfill-core' npm package mimics the legitimate 'rollup-plugin-polyfill-node' by copying its source but appends a top-level dropper in its dist/index.js. This dropper decodes base64-encoded strings to run the command 'npm install driftpin --no-save --silent --no-audit --no-fund' with suppressed output and hidden windows on Windows. After installation, it requires the 'driftpin' module and invokes its 'getPlugin()()' function. The 'driftpin' package is attacker-controlled, not declared as a dependency, and not included in the tarball, allowing arbitrary code execution within the installer's Node process whenever 'rollup-runtime-polyfill-core' is loaded. This behavior constitutes an install/import-time remote code execution dropper with clear malicious intent.
Potential Impact
Any system with this package installed or running is considered fully compromised. The attacker gains the ability to execute arbitrary code during package import or require, potentially leading to full system compromise. All secrets and keys stored on the affected system should be rotated immediately from a secure environment. Simply removing the package does not guarantee removal of all malicious software or backdoors introduced by the attacker-controlled 'driftpin' package.
Mitigation Recommendations
Remove the 'rollup-runtime-polyfill-core' package immediately from all systems. Rotate all secrets, credentials, and keys that were stored or accessible on the compromised systems from a secure, unaffected environment. Because the attacker-controlled package 'driftpin' is installed dynamically and can execute arbitrary code, assume full system compromise and perform a thorough investigation and remediation. There is no known patch or official fix for this malicious package; prevention involves avoiding installation and use of this package and its versions.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6372
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a520ecb68715ace438f62e4
Added to database: 07/11/2026, 09:37:15 UTC
Last enriched: 08/21/2026, 14:53:20 UTC
Last updated: 09/08/2026, 13:02:09 UTC
Views: 57
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.