Malicious code in bnppf-flag-icons (npm)
The npm package bnppf-flag-icons version 99.99.99 contains malicious code that executes automatically during installation. It collects the host's hostname and OS username and sends this information to an attacker-controlled endpoint. This behavior indicates a dependency confusion attack, as the version number is unusually high and the package name suggests a benign flag-icons library. Installing this package compromises the host, potentially exposing all stored secrets and keys.
AI Analysis
Technical Summary
The bnppf-flag-icons npm package version 99.99.99 includes a malicious script (poc.js) wired to both preinstall and postinstall lifecycle hooks, causing it to run automatically on npm install. The script uses Node.js modules 'os' and 'https' to gather the hostname and OS username of the installing machine and exfiltrates this data via HTTPS GET to a hardcoded webhook.site URL controlled by an attacker. The package name and version suggest a dependency confusion attempt, where a malicious package masquerades as a legitimate one to trick users into installing it. The presence of this package indicates a full compromise of the affected system.
Potential Impact
Installation of this package results in exfiltration of sensitive host identification data to an attacker-controlled server. According to the source, any system with this package installed should be considered fully compromised, with potential unauthorized access to secrets and keys stored on the machine. Removal of the package alone does not guarantee elimination of all malicious artifacts or backdoors.
Mitigation Recommendations
No official patch or fix is available. Immediate removal of the bnppf-flag-icons package version 99.99.99 is recommended. All secrets, credentials, and keys stored on the affected system should be rotated from a separate, trusted machine. Treat the affected system as fully compromised and consider rebuilding or restoring from a known good backup. Monitor for any signs of persistent malicious activity.
Malicious code in bnppf-flag-icons (npm)
Description
The npm package bnppf-flag-icons version 99.99.99 contains malicious code that executes automatically during installation. It collects the host's hostname and OS username and sends this information to an attacker-controlled endpoint. This behavior indicates a dependency confusion attack, as the version number is unusually high and the package name suggests a benign flag-icons library. Installing this package compromises the host, potentially exposing all stored secrets and keys.
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 bnppf-flag-icons npm package version 99.99.99 includes a malicious script (poc.js) wired to both preinstall and postinstall lifecycle hooks, causing it to run automatically on npm install. The script uses Node.js modules 'os' and 'https' to gather the hostname and OS username of the installing machine and exfiltrates this data via HTTPS GET to a hardcoded webhook.site URL controlled by an attacker. The package name and version suggest a dependency confusion attempt, where a malicious package masquerades as a legitimate one to trick users into installing it. The presence of this package indicates a full compromise of the affected system.
Potential Impact
Installation of this package results in exfiltration of sensitive host identification data to an attacker-controlled server. According to the source, any system with this package installed should be considered fully compromised, with potential unauthorized access to secrets and keys stored on the machine. Removal of the package alone does not guarantee elimination of all malicious artifacts or backdoors.
Mitigation Recommendations
No official patch or fix is available. Immediate removal of the bnppf-flag-icons package version 99.99.99 is recommended. All secrets, credentials, and keys stored on the affected system should be rotated from a separate, trusted machine. Treat the affected system as fully compromised and consider rebuilding or restoring from a known good backup. Monitor for any signs of persistent malicious activity.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-16350
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-34p9-xxp2-hv3g"]
- Ecosystems
- ["npm"]
Threat ID: 6ac139a8a43b0b3b89d69abc
Added to database: 10/03/2026, 17:21:44 UTC
Last enriched: 10/03/2026, 17:37:56 UTC
Last updated: 10/03/2026, 22:37:34 UTC
Views: 3
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.
External Links
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.