{"schema_version":"1.9.2","id":"MAL-2026-3641","published":"2026-05-07T00:00:00Z","modified":"2026-10-29T14:30:39.583276076Z","aliases":["GHSA-pf82-f9wr-54vx"],"summary":"Malicious code in camelotlabs-core (npm)","details":"Five packages (`camelotlabs-sdk`, `camelotlabs-core`, `camelotlabs-config`, `camelotlabs-worker`, and `camelotlabs-utils`) were published to the public npm registry at version 99.0.0 by the actor `madman0619` as a dependency confusion attack targeting the internal npm packages of Camelot Labs. The inflated version number causes npm to prefer the public malicious package over any internally-hosted version of the same name. All five packages carry an identical payload designed to exfiltrate credentials from Cloudflare Workers projects using Upstash Redis and HMAC signing keys.\n\nOn installation the `preinstall` script executes `index.js`, which collects hostname, platform, working directory, and environment variables whose names match patterns for API keys, tokens, secrets, HMAC signing keys, Upstash/Redis credentials, Vercel and Cloudflare environment bindings, and database connection strings. It also reads and exfiltrates `.env`, `.env.production`, `.env.local`, `wrangler.toml`, `wrangler.json`, and `wrangler.jsonc` files from the working directory and its parents. All collected data is sent via HTTP POST to the C2 server at `http://82.221.101.203:9999/exfil`.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (c64aa85407d08ae0bbcb5e0eafe067a5fb4786574152dfc062bc5b20fae6efe6)\ncamelotlabs-core@0.0.0-stage is a two-file npm package with a pre-release stage version identifier. No install lifecycle scripts, no network activity, no filesystem access to installer-owned secret paths, no credential handling, and no code-fetch-and-execute patterns were observed in the shipped contents. The package appears to be a placeholder or staging release with no functional payload.\n\n## Source: ghsa-malware (45021d5e899cb34bf505ef106af0e8987f330b03333b65784415a4f3243baee5)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n","affected":[{"package":{"name":"camelotlabs-core","ecosystem":"npm","purl":"pkg:npm/camelotlabs-core"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["0.0.0-stage"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"package_integrity":[{"filename":"camelotlabs-core-0.0.0-stage.tgz","hashes":{"sha1":"3382a2e4877ce2a81ba79c3c799fe17e596d632d","sha512_sri":"sha512-zDoiZMQM/amCmmng9pQy/UolISMbWfbT+Jn+ceJoJ2x0MpWVONXq3FQXOy4cLyxxhLL4wFgCYjM7Fmu6hPZyXA=="}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/camelotlabs-core/MAL-2026-3641.json"}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-pf82-f9wr-54vx"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/camelotlabs-core/v/0.0.0-stage"}],"database_specific":{"malicious-packages-origins":[{"id":"GHSA-pf82-f9wr-54vx","import_time":"2026-10-28T15:20:43.004089286Z","modified_time":"2026-10-28T14:33:27Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"45021d5e899cb34bf505ef106af0e8987f330b03333b65784415a4f3243baee5","source":"ghsa-malware"},{"id":"IN-MAL-2026-022192","import_time":"2026-10-29T14:14:33.25350215Z","modified_time":"2026-10-29T14:00:57Z","sha256":"c64aa85407d08ae0bbcb5e0eafe067a5fb4786574152dfc062bc5b20fae6efe6","source":"amazon-inspector","versions":["0.0.0-stage"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"SafeDep","contact":["https://safedep.io"],"type":"FINDER"}]}