Skip to content
supplychainattack.orgSupply chain attack incident catalog
containedcritical

Malicious code in lib-streak-math (npm)

The npm package lib-streak-math contained obfuscated malicious code that executes on import, downloading and executing a remote payload. On Windows, it establishes persistence via startup folder; on Linux, it spawns a detached background service.

ShareXLinkedInHacker News
Disclosed
Last updated
Blast radius
Any developer or application that installed lib-streak-math from npm; runtime impact on Windows and Linux systems where the package was imported.
Ecosystems
Attack vectors
Affected entities
  • lib-streak-mathnpm package containing malicious code in index.mjs

The npm package lib-streak-math was published with malicious code disguised as a math helper library. The package's main entry point (index.mjs) contains a top-level async IIFE that executes whenever the module is imported or required, regardless of whether the advertised math functions are actually used.\n\nThe malicious code uses obfuscation techniques to hide its true intent: network destinations, filesystem paths, subprocess names, and Node.js built-in module names are encoded as integer arrays and decoded at runtime using a character-code decoder function. This decoding reveals usage of fs/promises, path, child_process, and node-fetch modules.\n\nWhen executed, the payload downloads a file from https://f004.backblazeb2.com/file/dp8hbvocjd2fpza/helper.tar.gz and extracts it to a hidden directory. On Windows systems, it writes a launcher script (env-setup.cmd) to the Startup folder for persistence and executes a vite.exe binary on each login. On Linux systems, it writes and executes a background-service binary as a detached process that survives the parent.\n\nThe package was identified by Amazon Inspector and credited to the OpenSSF malicious-packages project.

Indicators of compromise

Packages
  • lib-streak-math
Domains
  • f004.backblazeb2.com

Remediation

  • Immediately uninstall lib-streak-math from all projects and environments
  • Audit npm package.json files and lock files for any dependency on lib-streak-math
  • Review system logs and process execution history on any machine where the package was imported
  • On Windows: check Startup folder for suspicious entries and remove env-setup.cmd if present; scan for vite.exe in hidden AppData directories
  • On Linux: check for background-service processes and remove from hidden cache directories
  • Regenerate any credentials or secrets that may have been exposed during the compromise window
  • Update npm to the latest version and run `npm audit` to identify other potentially compromised dependencies

Sources

  1. GitHub Advisory GHSA-7hfx-rf8h-6j2g · GitHub Advisory Database

Cite this entry

"Malicious code in lib-streak-math (npm)." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed July 28, 2026; last updated July 28, 2026. https://supplychainattack.org/incident/malicious-code-in-lib-streak-math-npm-11yal1

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 sme-rko-finance-front-operations-feed-models (npm)

    The npm package sme-rko-finance-front-operations-feed-models contained malicious code that downloads and executes attacker-controlled native binaries from remote servers upon package load. The malware uses obfuscation techniques including fragmented string arrays, platform-specific endpoints, and DNS TXT record fallbacks to evade detection.

    npmCompromised package
  2. resolvedcritical

    Malicious code in modern-localization (npm)

    The npm package modern-localization contained malicious code that fetches and executes arbitrary JavaScript from a remote jsonbin.io endpoint on server-side require, with no integrity verification. The payload is executed with full Node.js privileges via Function() or child_process.fork().

    npmCompromised package
  3. resolvedcritical

    Malicious code in sme-rko-finance-front-operations-tax (npm)

    The npm package sme-rko-finance-front-operations-tax contained malicious code that downloads and executes platform-specific binaries from attacker-controlled infrastructure on require. The package was identified and reported by OpenSSF's malicious-packages project.

    npmCompromised package
  4. resolvedcritical

    Malicious code in localization-fixer (npm)

    The npm package localization-fixer contained malicious code that fetches and executes arbitrary JavaScript from attacker-controlled jsonbin.io endpoints on package require, granting full Node.js capabilities to remote payloads.

    npmCompromised package