MAL-2026-10219: Malicious code in chai-as-precision (npm)
The npm package 'chai-as-precision' version 7.0.6 contains malicious code that masquerades as a different package, 'pino'. When used, it spawns a detached child process that fetches and executes attacker-controlled JavaScript code from an external URL, allowing arbitrary code execution with full require access on the host. This behavior is hidden by suppressing output and using base64-encoded strings to obscure the malicious payload's origin and execution. There is no known patch or fix available at this time.
AI Analysis
Technical Summary
The 'chai-as-precision' npm package version 7.0.6 is a malicious package that mimics the 'pino' logging library, likely as a typosquatting attempt. Its main module spawns a detached child Node.js process that fetches a JSON payload from an attacker-controlled URL (hosted on tiiny.site). The payload contains a 'cookie' field with JavaScript code that is executed dynamically via the Function constructor, granting the attacker arbitrary code execution capabilities with full access to Node.js require functionality on the host system. The malicious code uses obfuscation techniques such as base64 encoding and environment variable wrappers to evade detection. No official patch or remediation guidance is provided in the available data.
Potential Impact
This malicious package enables arbitrary remote code execution on any system that installs and runs it, potentially allowing attackers to execute any code with the privileges of the Node.js process. This can lead to full system compromise, data theft, or further malware deployment. The attacker controls the external payload, which can be changed at any time, making the threat persistent and dynamic.
Mitigation Recommendations
No official patch or remediation is currently available. Users should immediately remove the 'chai-as-precision' package version 7.0.6 from their projects and dependency trees. Avoid installing or using this package. Verify your dependency manifests and lockfiles for the presence of this package and replace it with trusted alternatives. Monitor for any unexpected child processes or network connections originating from Node.js applications. Check vendor advisories or trusted security sources for updates on remediation.
MAL-2026-10219: Malicious code in chai-as-precision (npm)
Description
The npm package 'chai-as-precision' version 7.0.6 contains malicious code that masquerades as a different package, 'pino'. When used, it spawns a detached child process that fetches and executes attacker-controlled JavaScript code from an external URL, allowing arbitrary code execution with full require access on the host. This behavior is hidden by suppressing output and using base64-encoded strings to obscure the malicious payload's origin and execution. There is no known patch or fix available at this time.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The 'chai-as-precision' npm package version 7.0.6 is a malicious package that mimics the 'pino' logging library, likely as a typosquatting attempt. Its main module spawns a detached child Node.js process that fetches a JSON payload from an attacker-controlled URL (hosted on tiiny.site). The payload contains a 'cookie' field with JavaScript code that is executed dynamically via the Function constructor, granting the attacker arbitrary code execution capabilities with full access to Node.js require functionality on the host system. The malicious code uses obfuscation techniques such as base64 encoding and environment variable wrappers to evade detection. No official patch or remediation guidance is provided in the available data.
Potential Impact
This malicious package enables arbitrary remote code execution on any system that installs and runs it, potentially allowing attackers to execute any code with the privileges of the Node.js process. This can lead to full system compromise, data theft, or further malware deployment. The attacker controls the external payload, which can be changed at any time, making the threat persistent and dynamic.
Mitigation Recommendations
No official patch or remediation is currently available. Users should immediately remove the 'chai-as-precision' package version 7.0.6 from their projects and dependency trees. Avoid installing or using this package. Verify your dependency manifests and lockfiles for the presence of this package and replace it with trusted alternatives. Monitor for any unexpected child processes or network connections originating from Node.js applications. Check vendor advisories or trusted security sources for updates on remediation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10219
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a54adf768715ace438f74a2
Added to database: 07/13/2026, 09:20:55 UTC
Last enriched: 07/13/2026, 09:53:00 UTC
Last updated: 07/13/2026, 09:53:00 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.