Skip to content
Heist/ feed
Unrated

Malicious code in bnppf-flag-icons (npm)

Type: advisorySource: OSV1 source record

--- _-= 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. ## Source: ghsa-malware (e0671ec4edd4de7b54d08681640fe67e830c3599cc0a0c6765f3139f9fb7e653) 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.

Announced Source revision 1
Original source ↗

MAL-2026-16350

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:MAL-2026-16350

bnppf-flag-icons

Source reference: /affected/0/package/name

Affected versions
99.99.99

Source reference: /affected/0/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "0"
          }
        ]
      }
    ],
    "package": {
      "name": "bnppf-flag-icons",
      "purl": "pkg:npm/bnppf-flag-icons",
      "ecosystem": "npm"
    },
    "versions": [
      "99.99.99"
    ],
    "database_specific": {
      "cwes": [
        {
          "name": "Embedded Malicious Code",
          "cweId": "CWE-506",
          "description": "The product contains code that appears to be malicious in nature."
        },
        {
          "name": "Embedded Malicious Code",
          "cweId": "CWE-506",
          "description": "The product contains code that appears to be malicious in nature."
        }
      ],
      "source": "https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/bnppf-flag-icons/MAL-2026-16350.json",
      "indicators": {
        "evidence_files": [
          {
            "path": "poc.js",
            "tlsh": "92f0a3f077b09f301d2cc4d053c6648ae263f21238677bd2595d62950f555b02de76b9",
            "sha256": "570b63608fcd4534d17f7df694418c1ec7acca0bd67337ce2bbc64152d7f2703"
          }
        ],
        "package_integrity": [
          {
            "hashes": {
              "sha1": "2314dd80f36fc561f504b05b491e367f7a927555",
              "sha512_sri": "sha512-PIzrIEVkxK16NC7bC/kNsxjVSEeXfIWMcc0Dmp73cNe2bGKz3sMaLkvsNGPNvCzK8MxKdWDxLeWlMBz5klXzgg=="
            },
            "filename": "bnppf-flag-icons-99.99.99.tgz"
          }
        ]
      }
    }
  }
]

Publisher severity

No explicit severity was provided.

Event
#72774 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement