Malicious code in chaikit (npm)
Description
The npm package 'chaikit' version 2.3.5 contains malicious code that executes an obfuscated payload immediately upon import. This payload includes a large RC4 string-array decoder and bundles the axios HTTP client, enabling network communication. The package masquerades as legitimate tooling related to the pino logger and chai testing framework, but its main functionality is a loader for a supply-chain malware payload.
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 'chaikit' npm package (version 2.3.5) includes a main entry file that unconditionally loads a heavily obfuscated ~4MB JavaScript file using an RC4 string-array decoder with approximately 23,902 entries. This obfuscated code executes immediately upon import, performing opaque operations. The package bundles axios as a runtime dependency, providing the obfuscated code with network egress capabilities. The package's metadata and README attempt to impersonate popular developer tools (pino logger and chai testing framework) to deceive users searching for those tools. The actual middleware exported is a trivial passthrough, indicating the obfuscated code is the primary behavior. This pattern is consistent with a supply-chain malware loader designed to execute harmful payloads in the consumer's environment.
Potential Impact
Any project or environment that imports 'chaikit' version 2.3.5 will execute the embedded obfuscated malicious code, potentially allowing unauthorized network communication and further compromise. The malicious payload could lead to data exfiltration, system compromise, or further malware installation. The deceptive metadata increases the risk of inadvertent installation by developers seeking legitimate packages.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately remove and avoid using 'chaikit' version 2.3.5. Verify dependencies and audit package sources carefully to avoid supply-chain malware. Monitor for updates or advisories from the package maintainers or npm registry regarding this package. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-14201
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a85b4c7acd9273b4925287c
Added to database: 08/19/2026, 13:51:03 UTC
Last enriched: 08/19/2026, 14:41:58 UTC
Last updated: 10/02/2026, 13:52:37 UTC
Views: 33
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.