Skip to content
supplychainattack.orgSupply chain attack incident catalog
resolvedcritical

Malicious code in github-policy-bot (npm)

The npm package github-policy-bot contained malicious code that exfiltrated host identifiers and environment metadata during installation via a postinstall script. The package name shadowed a legitimate Google-owned repository and was authored under a placeholder account claiming security research purposes.

ShareXLinkedInHacker News
Disclosed
Last updated
Blast radius
Any developer or system that installed the malicious github-policy-bot package from npm
Ecosystems
Attack vectors
Affected entities
  • github-policy-botMalicious npm package shadowing Google-owned js-github-policy-bot

The npm package github-policy-bot was found to contain malicious code in its postinstall script. Upon installation, the script collected sensitive host information including hostname, platform, architecture, Node.js version, package name, and npm lifecycle event details.

This collected metadata was transmitted via HTTP POST as JSON to a hardcoded third-party endpoint at vlfl47tl.instances.poc.jchunt.top/github-policy-bot. The request was designed to fail silently with a short timeout, consistent with a reconnaissance beacon pattern.

The package name was a typosquat of the legitimate js-github-policy-bot repository owned by Google. The malicious package's author was listed as r00tdaddy with a self-declared 'security research canary' label in the package metadata—a placeholder designation that did not affect the malicious behavior.

The incident was identified and credited to the OpenSSF's malicious-packages repository (MAL-2026-14245).

Indicators of compromise

Packages
  • github-policy-bot
Domains
  • vlfl47tl.instances.poc.jchunt.top

Remediation

  • Immediately uninstall the github-policy-bot package from all systems
  • Audit npm install logs to identify all systems that installed this package
  • Assume hostname and environment metadata from affected systems may have been disclosed to the attacker
  • Use the legitimate js-github-policy-bot package from Google if the functionality is needed
  • Review npm package dependencies for similar typosquatting or shadowing attacks
  • Enable npm audit and consider using npm provenance verification for supply chain security

Sources

  1. GitHub Advisory GHSA-6rrf-hp88-jgvw · GitHub Advisory Database

Cite this entry

"Malicious code in github-policy-bot (npm)." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed August 19, 2026; last updated August 19, 2026. https://supplychainattack.org/incident/malicious-code-in-github-policy-bot-npm-1lbk1a

Suggest a correction

Found an error or have a newer source? Corrections to factual errors take priority over new entries.

  1. resolvedcritical

    Malicious code in create-coin (npm)

    create-coin@20.1.1 on npm contained malicious postinstall code that collected sensitive environment variables, credentials, and host reconnaissance data. The package impersonated an esbuild platform build and exfiltrated data to a hardcoded endpoint.

    npmCompromised packageTyposquatting
  2. containedcritical

    Malicious code in chai-as-testkit (npm)

    The npm package chai-as-testkit is a typosquat/impersonation attack delivering obfuscated malicious code that executes on import. The package falsely claims to be a vulnerability management tool but ships pino library files under a different author, with a synthetic stub that loads a 4MB+ obfuscated bundle containing attacker-controlled code.

    npmTyposquattingCompromised package
  3. resolvedcritical

    Malicious code in @next-fonts/font (npm)

    @next-fonts/font is a typosquat package on npm that executes arbitrary attacker-controlled code via a blockchain-mediated C2 channel when its Inter() function is called. The malicious payload is base64-encoded and executed through Node.js spawn or eval, with no legitimate font functionality.

    npmTyposquattingCompromised package
  4. resolvedcritical

    Malicious code in chai-as-soul (npm)

    chai-as-soul@2.3.5 is a typosquat of the pino logging library containing malicious code that exfiltrates environment variables (including AWS/GCP/CI tokens) and executes arbitrary remote code on installation.

    npmTyposquattingCompromised package