Skip to main content

Malicious code in bnppf-flag-icons (npm)

0
Critical
Published: 09/21/2026 (09/21/2026, 16:41:57 UTC)
Source: GCVE Database
Product: bnppf-flag-icons

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

npmghsa
bnppf-flag-icons
Affected versions
=99.99.99

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

AILast updated: 10/03/2026, 17:37:56 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses