ShipSafe has 6 sourced items that involve Anthropic API: 0 build stories and 6 security incidents. Each links to the original post and ends with a fix prompt you can paste into your own AI tool.
Where Anthropic API builders get stuck
Dependencies, plugins & MCP servers (3): AI suggests packages, extensions and MCP servers that can be malicious or vulnerable. Check the publisher and permissions before installing.
Leaked secrets & API keys (3): Keys in front-end code or public repos get found and abused within hours. Keep secret keys server-side, set spend limits and turn on secret scanning.
How to use these Anthropic API stories
Read the summary and the original post, then copy the fix prompt into Anthropic API or whichever AI tool you build with. Each prompt asks the AI to check your own project for the same problem and explain its plan before changing anything. Most of these problems are not unique to Anthropic API, so the topic links above show the same mistake in other tools.
On 19 Oct GitHub's Advisory Database published GHSA-cj9w-7h22-q93g, flagging the npm package api-anthropic as malware for all versions. GitHub says any computer that installed or ran it should be considered fully compromised and every secret on it rotated from a different computer. The name looks like an Anthropic SDK, but the official package is @anthropic-ai/sdk; npm has since replaced api-anthropic with a security placeholder.
On 21 Oct LiteLLM's release pipeline was compromised and a malicious 1.107.0 went out on PyPI (about 11:39 to 13:23 UTC) and Docker tags including latest. Its wheels added cook.pth, cook.py and sitecustomize.py, which run a credential stealer on every Python start, even without importing litellm. It took provider keys, the proxy's stored credentials table, cloud, SSH and CI secrets, and Cursor and Claude config, then left an hourly remote-code loader. LiteLLM says 1.106.2 and the private enterprise release are safe.
Railway said on 21 Oct that an unauthorized party may have accessed encrypted customer environment variables and, for some, obtained the decrypted contents. It paused all builds and deployments, told every user to roll all environment variables, API keys and private registry credentials, and later reset bucket credentials and stored GitHub tokens. Railway believes it is part of a series of attacks on platform companies aimed at AI inference providers.
OpenCode said an intruder reached a legacy Console system on the night of 16 Oct and that OpenAI, Anthropic and Google keys saved by 1.4% of Console users may have been exposed. Users told reporters their keys were then billed, with claims from $168 to $1,700.
Socket found compromised GitHub accounts adding a fake security-audit.yml workflow to 346 repos on 8 Oct; it later counted more than 500 accounts and tens of thousands of repos. The workflow took Actions secrets and searched the code and full git history for Anthropic, OpenAI, OpenRouter, AWS and other keys.
The builder behind PurePath says someone got hold of their Anthropic API key and ran up roughly $500 of model usage. A follow-up post says support called the credits non-refundable.