Skip to content
supplychainattack.orgSupply chain attack incident catalog
resolvedcritical

Malicious code in @secauditb20y/sec-test-r3b (npm)

The npm package @secauditb20y/sec-test-r3b contained malicious code in a postinstall script that executed arbitrary code on the installer's machine. The script created a proof-of-execution beacon file at /tmp/PWN_R3REAL/FIRED during installation.

ShareXLinkedInHacker News
Disclosed
Last updated
Blast radius
Any developer or system that installed @secauditb20y/sec-test-r3b via npm
Ecosystems
Attack vectors
Affected entities
  • @secauditb20y/sec-test-r3b

The npm package @secauditb20y/sec-test-r3b was published with malicious code embedded in a postinstall script. When installed via npm install, the script automatically executed node -e to invoke fs.writeFileSync, creating a file at /tmp/PWN_R3REAL/FIRED on the installer's machine.\n\nThe package's main module exports only the literal value 42 and contains no legitimate reason for install-time code execution. The postinstall script was designed solely to demonstrate arbitrary code execution on the host system at installation time, functioning as a proof-of-execution beacon.\n\nWhile the package name and description self-identify as an authorized security test, this self-labeling does not mitigate the malicious behavior. The code path is functionally identical to a dropper marker and executes automatically on default installation, writing to a path outside the package directory.\n\nThe incident was identified and credited to the OpenSSF's malicious-packages repository (MAL-2026-13989).

Indicators of compromise

Packages
  • @secauditb20y/sec-test-r3b

Remediation

  • Immediately uninstall @secauditb20y/sec-test-r3b from all systems
  • Audit npm install logs and package-lock.json files to identify if this package was installed
  • Review system logs and file system for evidence of the /tmp/PWN_R3REAL/FIRED beacon file or other suspicious activity
  • Regenerate any credentials or secrets that may have been exposed on affected systems
  • Update npm to the latest version and run `npm audit` to identify other potentially malicious packages
  • Consider using npm package integrity verification tools and private package registries to prevent installation of untrusted packages

Sources

  1. GitHub Advisory GHSA-whmg-4w65-37cm · GitHub Advisory Database

Cite this entry

"Malicious code in @secauditb20y/sec-test-r3b (npm)." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed August 14, 2026; last updated August 14, 2026. https://supplychainattack.org/incident/malicious-code-in-secauditb20y-sec-test-r3b-npm-13su5w

Suggest a correction

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

  1. activecritical

    Malware in sui-move-graphql

    Malware was discovered in the npm package sui-move-graphql. Systems with this package installed or running should be considered fully compromised, requiring immediate rotation of all secrets and keys from a different computer.

    npmCompromised package
  2. resolvedcritical

    Malicious code in bcc-design (npm)

    bcc-design@9999.0.0 on npm is a dependency-confusion beacon package with no legitimate functionality. Its postinstall script exfiltrates the installer's hostname and system metadata to an attacker-controlled IP endpoint.

    npmDependency confusionCompromised package
  3. resolvedcritical

    Malicious code in core-tailwindcss-utility (npm)

    core-tailwindcss-utility, an npm package falsely advertised as a Tailwind CSS utility, contains malicious code that fetches and executes arbitrary Node.js code from a remote C2 server. The package includes suspicious dependencies for credential theft and remote communication.

    npmCompromised package
  4. containedcritical

    Malware in blastradar

    Malware was discovered in the npm package blastradar, resulting in full system compromise for any computer with the package installed or running. All secrets and keys on affected systems should be rotated immediately from a different computer.

    npmCompromised package