Skip to main content

Malicious code in chaikit (npm)

0
Critical
Published: 08/19/2026 (08/19/2026, 01:59:26 UTC)
Source: GCVE Database
Product: chaikit

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

npmghsa
chaikit
Affected versions
=2.3.5

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

AILast updated: 08/19/2026, 14:41:58 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses