Malicious code in big-tss (npm)
big-tss@5.0.5 is a malicious npm package that impersonates the legitimate big.js library and injects code to load and execute npm-doc-dev, a third-party package, on every require. The package uses typosquatting and dependency confusion tactics to execute arbitrary code silently.
- Disclosed
- Last updated
- Blast radius
- Any npm consumer installing big-tss@5.0.5
- Ecosystems
- Attack vectors
- Affected entities
- big-tss · 5.0.5
big-tss@5.0.5 is a trojan-dropper package published to npm that impersonates the popular big.js arbitrary-precision math library. The malicious package ships upstream big.js source code with an injected code block at the top of the main module that attempts to load and execute npm-doc-dev, a package outside the big.js publisher's control.
When any code requires 'big-tss', the injected code synchronously loads and executes the top-level code of npm-doc-dev and calls a method on it. A bare try/catch block swallows any failures, ensuring the malicious load occurs silently without raising errors.
The package.json declares a different dependency name, npm-dc-dev, than the code actually requires (npm-doc-dev), creating a divergence between the declared dependency tree and the modules actually loaded at import time. This combination of name resemblance to big.js, dependency confusion, and silent error handling forms a classic trojan-dropper pattern enabling arbitrary code execution on the installer's machine.
The incident was identified by the OpenSSF malicious-packages project and reported via GitHub Security Advisory GHSA-hhrc-7829-98qq.
Indicators of compromise
- Packages
- big-tss@5.0.5
- npm-doc-dev
Remediation
- Remove big-tss from all projects immediately
- Audit package.json and lock files for any presence of big-tss or npm-doc-dev
- If big-tss@5.0.5 was installed, assume the machine may be compromised and conduct security review
- Use the legitimate big.js package instead of big-tss
- Review npm audit and security scanning tools to detect similar typosquatting or dependency confusion attacks
Sources
- GitHub Advisory GHSA-hhrc-7829-98qq · GitHub Advisory Database
Cite this entry
"Malicious code in big-tss (npm)." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed August 7, 2026; last updated August 7, 2026. https://supplychainattack.org/incident/malicious-code-in-big-tss-npm-1167z8
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 akamai-sensor (npm)
A malicious npm package named akamai-sensor impersonated Akamai's legitimate sensor_data anti-bot SDK. The package contained hidden JavaScript code concealed using invisible Unicode characters and implemented a dynamic command-and-control channel via a Google Calendar dead-drop, enabling arbitrary code execution on installation.
npmCompromised packageTyposquatting - resolvedcritical
Malicious code in depcruise-wrap-stream-in-html (npm)
depcruise-wrap-stream-in-html@99.9.1 is a malicious npm package that mimics an internal helper of dependency-cruiser. It is a hollow package that downloads and executes arbitrary code from a Google Cloud Storage bucket during installation.
npmCompromised packageDependency confusionTyposquatting - resolvedcritical
Malicious code in @finaxis/common-js (npm)
The npm package @finaxis/common-js was published with a README and keywords copied from lodash v4.18.1, but contained a heavily obfuscated Xelis (XEL) proof-of-work cryptominer instead of lodash functionality. Consumers installing this package would unknowingly run a covert CPU/GPU miner on their systems.
npmCompromised packageTyposquatting - containedcritical
Malicious code in axios-fast (npm)
axios-fast@1.0.1 on npm contains malicious code that exfiltrates environment variables (including AWS credentials, NPM tokens, and GitHub tokens) to an attacker-controlled webhook during package installation. The package typosquats the legitimate axios HTTP client library.
npmCompromised packageTyposquatting