Malicious code in streak-cal-core (npm)
The npm package streak-cal-core contains a ~500 KB base64-encoded x86-64 ELF binary embedded in its main entry point that executes automatically on import, dropping and running arbitrary native code. The package is a typosquat variant with mismatched internal naming (streak-larq-hydration, svelte-insight-hydration) inconsistent with its published identity.
- Disclosed
- Last updated
- Blast radius
- Any npm consumer of streak-cal-core; execution occurs on import/require as a top-level side effect.
- Ecosystems
- Attack vectors
- Affected entities
- streak-cal-corenpm package containing malicious native binary payload
The npm package streak-cal-core was published with malicious code in its main entry point (index.mjs). The module contains a ~500 KB base64-encoded x86-64 ELF binary stored in a _store array, disguised with a // --- Calibration Data --- comment.\n\nOn import, the module automatically decodes the base64 payload, writes the binary to disk with executable permissions (mode 0o755), dynamically imports node:child_process, and executes the dropped binary. This behavior triggers as a top-level import side effect, meaning any consumer that requires or imports the package will execute the embedded native code without additional user action.\n\nThe package exhibits characteristics of a typosquat attack: the file header labels the module streak-larq-hydration and references svelte-insight-hydration, while the published package name is streak-cal-core with a README pointing to svelte-streak-cal. This naming mismatch is consistent with a family of sibling typosquat variants. The advertised purpose (a dependency-free calendar/streak math helper) is inconsistent with shipping and executing an opaque native binary.\n\nThe incident was identified and reported by the OpenSSF malicious-packages project.
Indicators of compromise
- Packages
- streak-cal-core
Remediation
- Immediately remove streak-cal-core from all dependencies and lock files
- Audit all systems that imported or required streak-cal-core for signs of compromise or unauthorized binary execution
- Review npm audit logs and package.json history to identify when streak-cal-core was added
- Replace with a legitimate, verified calendar/streak utility package if needed
- Monitor for related typosquat variants with similar naming patterns (streak-larq-hydration, svelte-insight-hydration, svelte-streak-cal)
Sources
- GitHub Advisory GHSA-8rg4-mc43-9c6p · GitHub Advisory Database
Cite this entry
"Malicious code in streak-cal-core (npm)." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed August 19, 2026; last updated August 19, 2026. https://supplychainattack.org/incident/malicious-code-in-streak-cal-core-npm-1teeao
Suggest a correction
Found an error or have a newer source? Corrections to factual errors take priority over new entries.
Related incidents
- 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 - 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 - 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 - 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