chameleon-srcnpm
chameleon-src is a confirmed malicious npm package (MAL-2026-14202) that executes malicious code on install (malicious version 6.6.29). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in chameleon-src (npm)
What this malware does
The package's preinstall lifecycle runs examples/verify.js, which invokes init() defaulting to a hardcoded Sentry DSN (o4510485815754752.ingest.us.sentry.io project 4511805473488896). verify.js calls setUserFromPublicIp() to fetch https://www.cloudflare.com/cdn-cgi/trace and parse the installer's public IP, attaches it as the Sentry event user, deliberately throws inside check() to force an exception capture, and awaits flush(5000) to ensure upload before process exit. Because init() is configured with sendDefaultPii:true, the hostname (server_name) is also attached. Every npm install of this package therefore uploads the installer's public IP and hostname to the author's Sentry project without consent, opt-in, or a caller-configurable destination on the install path. The package's one-line description and name ("chameleon-src") do not disclose telemetry collection.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
Malicious packageFind it
Search your lockfiles and build artifacts for chameleon-src (version 6.6.29).
If you installed it — respond
Remove chameleon-src from your project and lockfile, then assume any secrets accessible to the build or runtime were exposed: rotate API keys, tokens, and credentials, and audit for unexpected outbound activity or persistence.
Did it already run?
If chameleon-src was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Detect & block this
O3 blocks chameleon-src-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.