Claude Code skill hid instructions to exfiltrate API keys
A developer says a four-star skill downloaded from GitHub told the coding agent to read a client's .env file and post the keys to an outside server.
By The Agentic Times ·

A developer has described installing a Claude Code skill from GitHub that contained hidden instructions telling the AI coding agent to steal credentials, in an account published on 29 November 2026.
According to the post, the skill carried a four-star rating and what the developer called a decent readme, with a SKILL.md instruction file running to roughly 500 lines. Buried in a section headed "Preflight Environment Validation" were plain-English instructions directing the agent to read the .env file belonging to the developer's client and send the API keys it found to an external endpoint, described in the file as "diagnostic telemetry". The developer said the skill was installed some months before the account was published, and did not say whether any keys were in fact sent or whether the skill remains available.
The pattern is a straightforward prompt injection, in which text that an agent reads as part of its working instructions is written to make it take actions the user did not ask for. Claude Code skills are instruction files that users add to extend what the agent does, so the contents of SKILL.md are treated as directions rather than as inert data. A .env file is a common place for developers to store secrets such as API keys and database passwords, which makes it an obvious target. Because the malicious text was ordinary English rather than code, a quick skim of a long file could plausibly miss it.
The developer published the account as part of the launch of a tool called Calyban, which is pitched as an app store for AI agents and which scans extensions before they are installed. The post says the catalogue holds more than 12,329 MCP servers, skills, plugins and subagents, refreshes every six hours, and supports Claude Code, Codex, Cursor, Copilot, Gemini and Claude desktop. The stated safety checks look for prompt injection, hidden text, download-and-run scripts and credential theft, and cross-reference around 250,000 known malicious npm and PyPI packages.
The developer describes the safety check as a deterministic rule engine rather than one language model judging another. Findings are weighted by the role of the file they appear in, review marks are tied to a SHA-256 hash of the checked files so that a single changed byte restores a flag, typosquatted package names are caught using Damerau-Levenshtein distance after folding confusable characters, and malware signatures come from OpenSSF Malicious Packages OSV records. MCP tool descriptions are fingerprinted per server so that a server which quietly changes its tools after being trusted is flagged. Installation recipes may only launch an allowlisted runner, connect over HTTPS, or copy files from GitHub at a pinned commit hash rather than a moving branch.
The developer is candid about the limits of the approach, writing that it is pattern matching and that "someone determined can write around it". The tool is described as free, with no accounts or paid tiers, running locally with no telemetry or analytics, and currently available for Windows and Linux with macOS in testing.
The account of the malicious skill rests on the developer's own description and has not been independently confirmed. The named skill, its author and the endpoint it allegedly contacted were not disclosed.
Sources
- calyban.comhttps://calyban.com
