VDB
Sign up

MAL-2026-16350

Malicious code in bnppf-flag-icons (npm)

Details

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

## Source: amazon-inspector (689227d0fdfe4abc108c7dfc5b5b97e752182a410265c141ca33161247619e78) The package ships poc.js and wires it to both preinstall and postinstall lifecycle hooks in package.json, so it runs automatically on `npm install`. poc.js requires `os` and `https`, reads `os.hostname()` and `os.userInfo().username`, and sends them via HTTPS GET to a hardcoded webhook.site collector at https://webhook.site/f3d7a882-435a-4959-a4e9-18a3886f3447. The package name suggests a flag-icons library but the shipped code performs only host identifier exfiltration to an anonymous third-party collector; the version 99.99.99 is consistent with a dependency-confusion attempt. Installing the package causes the installer's hostname and OS username to be transmitted to an attacker-controlled endpoint.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/bnppf-flag-icons

No fixed version published yet for bnppf-flag-icons (npm). Pin to a known-safe version or switch to an alternative.

References