---
id: "GHSA-4mgg-vrvh-32xg"
kind: "package"
aliases: ["GHSA-4mgg-vrvh-32xg", "MAL-2026-3644"]
title: "Malicious code in camelotlabs-worker (npm)"
severity: "critical"
cvss: null
epss: null
exploited: false
status: "open"
category: "package"
products: [{"name": "camelotlabs-worker", "fixed": [], "affected": "all versions", "ecosystem": "npm"}]
ecosystems: ["npm"]
tags: ["malicious", "package"]
not_affected_if: []
published_at: "2026-05-07T00:00:00+00:00"
first_seen_at: "2026-10-28T17:03:33+00:00"
updated_at: "2026-10-28T17:05:02+00:00"
sources: [{"source": "osv-malicious", "url": "https://osv.dev/vulnerability/MAL-2026-3644", "first_seen_at": "2026-10-28T17:03:33+00:00"}]
---

# Malicious code in camelotlabs-worker (npm)

## Affected

- npm:camelotlabs-worker affected all versions fixed ?

## Timeline

- 2026-10-28T17:03:33+00:00 osv-malicious https://osv.dev/vulnerability/MAL-2026-3644

## From the sources

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.

On 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`.

---
_-= Per source details. Do not edit below this line.=-_

## Source: ghsa-malware (3abf4b8acb69887cbb8f7cd9c78406dfc0f1211946e5b9db34aae46840b9e087)
Any 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.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
