On September 8, 2025, the same day version 10.9.1 appeared, an attacker published a second release of the fake "prebid" npm package -- v10.9.2 -- under the same unauthorized account. Armando confirmed that this second version continues the same name-squatting supply chain attack against the legitimate prebid.js header bidding library, shipping the real library's source code under a confusingly similar package name. npm removed both versions.
Key Findings
- Malicious version: v10.9.2, published 2025-09-08; v10.9.1 of the same attacker-controlled package is equally malicious
- Entry point: no install-time lifecycle hook; the attack vector is the package name -- developers who run
npm install prebid receive this impersonation instead of the legitimate "prebid.js" library
- Targets: any npm user attempting to install the prebid.js header bidding library using its shortened name
- Evasion: the package ships the complete, unmodified source code of the legitimate prebid.js library, mirroring the real prebid/Prebid.js GitHub repository to appear authentic
- Detection: Text.Trojan.SupplyChain (package.json); Archive-GZIP.Trojan.SupplyChain (prebid-10.9.2.tgz); Archive-TAR.Trojan.SupplyChain (prebid-10.9.2.tar); Script-JS.Trojan.SupplyChain (prebid.js, utils.js -- goodware candidates from prebid.js@10.9.2; deferred to human analyst)
Package Background
The legitimate prebid.js library is a widely deployed open-source header bidding solution maintained by the Prebid organization at github.com/prebid/Prebid.js and published to npm as "prebid.js". The "prebid" npm name (without the ".js" suffix) was unclaimed prior to September 2025.
The attacker registered both "prebid" v10.9.1 and v10.9.2 on the same day -- a publish cluster indicating deliberate two-version strategy, possibly intended to give the impression of an active, versioned project. Both versions were removed by npm. The package had 234 total downloads across the entire "prebid" name before takedown.
Attack Analysis
Version 10.9.2 extends the v10.9.1 attack with an updated version number and a corresponding bump in the included prebid.js source content. Armando found that the "prebid" v10.9.2 package, published by bgorsline (bgorsline@gmail.com), contains a copy of the prebid.js library source matching prebid.js@10.9.2. The package.json manifest names itself "prebid" version "10.9.2" and references the legitimate prebid/Prebid.js GitHub repository.