ShipSafe has 33 sourced items that involve Claude Code: 11 build stories and 22 security incidents. Each links to the original post and ends with a fix prompt you can paste into your own AI tool.
Where Claude Code builders get stuck
Dependencies, plugins & MCP servers (9): AI suggests packages, extensions and MCP servers that can be malicious or vulnerable. Check the publisher and permissions before installing.
Trusting agents & AI input (7): Agents read web pages, files, emails and tool output that can hide instructions. Give agents the fewest permissions possible and approve anything that runs commands, sends data, deletes or pays.
Leaked secrets & API keys (5): 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.
Usage limits, credits & costs (4): Plans and credits run out faster than people expect. Check usage daily, use cheaper models or plan mode for small edits, and commit progress so a limit pauses you instead of stranding work.
Auth, sessions & access (2): AI writes login quickly but often misses expiry, logout and who-can-see-what. Test logging out, expired sessions and another user's data before launch.
Outgrowing the builder (2): Many builders hit a ceiling and rebuild. Put code in your own Git repo early and know where your database lives.
The learning curve (1): Expect weeks to learn prompting, git and debugging. Start with something small that you care about.
Reviewing & testing AI output (1): Review and testing time sits on top of agent time. Keep tasks small and test the real user flows yourself.
Losing project context (1): Keep one short project brief in the repo that every AI tool reads, enforce rules with tools, and commit working steps.
Agents deleting data (1): Agents with production credentials have wiped databases. Keep production keys out of dev, turn off auto-run for commands, and test restoring a backup.
How to use these Claude Code stories
Read the summary and the original post, then copy the fix prompt into Claude Code 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 Claude Code, so the topic links above show the same mistake in other tools.
Anthropic's advisory says Claude Code checked where an Edit was going at one moment but wrote later, so on macOS code running in its Bash sandbox (for example from a malicious repo or dependency script) could swap a folder for a symlink in between and make the unsandboxed Edit tool overwrite a file outside the workspace. Auto-update users already have the fix.
Claude CodeNewSecurity incident · GitHub Advisory Database · Nov 9, 2026Source ↗
Redproof read the code of 1,029 public apps built with Lovable, Bolt, v0, Cursor, Claude Code and other tools. 40% had at least one high or critical problem: 62% of 201 Lovable, Bolt and v0 apps and 20% of 152 full-stack Cursor and Claude Code projects. 15% had a .env secrets file committed, and among 174 n8n, Make, Zapier and bot projects, 9% leaked a secret.
Backslash Security published research on 25 Nov 2026: it scanned 2,504 public GitHub repositories holding chat logs and other agent files from nine AI coding tools and found 708 exposed secrets in 255 of them (about 10%), and it assesses about 200 are likely still valid. Backslash says 7 in 10 of the secrets got into the logs through the agent's own actions, such as reading a .env file, writing a key into a config file or running a command that printed it, not because a user pasted them. It says every one of the nine tools it examined leaked secrets this way, and that deleting the log does not help because it stays in git history, forks and clones.
On 17 Nov 2026 Lumia Security Labs published research showing that the auto-update flows of Cursor, Antigravity, VS Code, Claude Desktop and Claude Code can be hijacked by an attacker who can intercept TLS traffic. Lumia says Cursor's and Claude's executables are signed but the signature isn't checked, VS Code relies on a checksum that comes in the same metadata, and Claude Code's newer signed update metadata check is gated by an unsigned feature flag. Codex and ChatGPT, updated through the Microsoft Store, were not interceptable this way. Lumia shows how corporate DLP/SASE inspection or a loose AD CS certificate template can provide the trust needed. Vendors don't treat it as a vulnerability because it needs a TLS man-in-the-middle first.
On 18 Nov 2026 the Model Context Protocol servers project shipped v2.5.0, fixing eight vulnerabilities in three reference servers. Most are in mcp-server-git, a week after the core.fsmonitor fix in 2026.11.11: a git_merge could start Git's automatic maintenance and run a command named in the repository's gc.recentObjectsHook; a promisor-remote setting could make a read-only tool launch a program during a lazy fetch; a config include created by a merged branch, or a filter driver with an empty name, could still run a command; a submodule's own configuration could run programs on git_diff, git_checkout and git_add; and a crafted .git/index could make read-only tools return files outside the --repository boundary. The release also fixes @modelcontextprotocol/server-filesystem (2.4.0) and server-everything (2.3.1). Commands run with the MCP server's privileges, including credentials passed in the client's env block.
Bitdefender Labs said on 17 Nov 2026 it had found 22 malicious GitHub links built to target developers using AI coding assistants. Files such as AGENTS.md and CLAUDE.md tell the assistant that scripts/setup.js is a 'sealed' signed artifact it must not read, and to run it automatically at session start without asking. A second route uses a session-start hook in .claude/settings.json, so the script runs once the repo is trusted with no prompt at all. The heavily obfuscated payload steals CI/CD tokens, cloud secrets, package-registry credentials, SSH keys, .env files, API keys, browser and password-manager data, then searches the machine for config files of 14 agents (Claude, Codex, Gemini, Copilot, Cursor, Bolt, Cline, Aider and others) to plant malicious instructions, hooks or MCP servers. With stolen GitHub or GitLab tokens it can commit the same files into up to 25 other repos by default and try to republish infected packages to npm, PyPI, RubyGems and JFrog.
Cursor's 13 Nov 2026 update on its October incident says an attacker obtained an access key Cursor had issued to Fireworks, which Fireworks exposed, and used it to copy a read-only bucket of coding-agent traces, mostly from 2025 and only from sessions not in Privacy Mode. A small number of traces held credentials that had not been redacted (under 0.01% of customers). With those, the attacker reached SaaS tools Cursor uses and took archived non-production source repos, some support emails, usage metrics and contacts, summaries of some agent conversations, and credentials users had sent to Cursor support. A stolen credential then let them place tampered Claude Code extension builds 2.1.312 and 2.1.313 in Cursor's marketplace cache on 29 Oct, which up to 5,000 users may have received over about 11 hours. Cursor says Privacy Mode code and prompts were not affected and the last attacker activity was on 1 Nov.
CVE-2026-123498, published 8 Nov 2026, covers veans, the coding agent integration for the Vikunja task manager, before 2.7.1. Project titles and task content were rendered word for word inside the agent's authoritative instruction block, which its prime hook loads on SessionStart and PreCompact. A project member with write access could write a title or task description that made the agent change the developer's checkout or run commands, with no paste or prompt from the developer.
Socket's Threat Research Team analysed strutil-core 1.0.1, a RubyGems package published on 1 November 2026 less than two hours after a clean 1.0.0. During gem install, a native extension script downloads the Bun runtime and runs a 5.48 MB worm from the Shai-Hulud-derived Miasma family. It collects cloud, CI, registry, SSH, wallet and AI coding tool credentials, adds an MCP server named workspace-tools and SessionStart hooks to local agent configs, and with stolen Git credentials commits .claude/settings.json, .cursor/mcp.json, CLAUDE.md, AGENTS.md and a VS Code folder-open task into repositories, so opening the repo in an AI coding tool can run it again. A monitor deletes the home directory if a stolen GitHub token stops working. RubyGems removed both versions about five hours after release; Socket found no public dependents and no confirmed victims.
Apiiro found that when a Claude Code user picks 'Yes, and don't ask again', the exact approved command can be saved word for word in .claude/settings.local.json, including any password or token typed into it. Searching public GitHub (1 to 3 Nov), it found 104,185 copies of the file, 1,122 of them holding at least one secret (1,379 distinct secrets), more than a third of them database access, including 379 database passwords. Claude Code adds the file to the user's global git excludes, but not to the project's own .gitignore, so the protection doesn't travel with the repo. Apiiro did not test the secrets; one notified company confirmed its key had been live. The Hacker News reported the research on 7 Nov.
Glow Labs published research on 2 November documenting a pattern it calls MCPhantom: AI coding agents (Claude Code, Cursor, Codex CLI, Claude Cowork and Claude chat, across Anthropic, OpenAI and xAI models) install deprecated Anthropic Model Context Protocol reference servers from training data when a developer asks for a capability such as a GitHub MCP. In 98% of the reviewed sessions the agent filled in the old package name itself. Those archived servers carry four high-severity flaws, including a prompt-injection remote code execution bug in the Puppeteer server that turns an approved browse into arbitrary local commands. Maintainers confirmed the Puppeteer server is unmaintained and will not be patched; npx still installs the packages. Glow reports about 17 million npm downloads of the deprecated reference servers since July 2025 and no in-the-wild exploitation yet.
Endor Labs researcher Peyton Kennedy disclosed on 3 Nov that the sbx cp command in Docker Sandboxes, used to copy files between an agent's sandbox and the developer's computer, did not enforce the sandbox's file allowlist. An agent could plant a symlink in an approved workspace so a later copy read or overwrote files elsewhere on the host, such as cloud credentials and SSH keys, and a prompt injection could trigger it. Rated High (CVSS 3.1 8.2). A first fix planned for 0.48.0 proved incomplete; the full fix shipped in 0.51.0 on 3 Nov.
Cursor says a tampered copy of the Anthropic.claude-code extension, versions 2.1.312 and 2.1.313 for Windows and macOS, was served in its extension marketplace from about 2:27am to 1:35pm PT on 29 Oct. It was not built by Anthropic. The code reported host details, added an attacker SSH key to authorized_keys, tried to enable SSH and open a reverse tunnel, and installed persistence through a LaunchAgent or scheduled task. Cursor says enabling SSH usually failed without admin rights, but the key and persistence were still written, and uninstalling the extension may not remove them. Microsoft confirmed the Visual Studio Marketplace and npm releases were not affected.
UpGuard checked about 300,000 sites that use Supabase and found 16,326 databases with publicly readable tables, over half with signs of personal data. Tables created through the API, the route AI coding agents use, do not get RLS switched on by default.
Security firm Forever Security says it caught an AGENTS.md file in a customer's Downloads folder telling an AI coding agent to install a malicious npm package, function-color. In its own tests, Codex ran the malware in more than 90% of attempts, and a planted CLAUDE.md got Claude Code to redirect its API traffic, leaking the login token, about half the time, The Hacker News reports.
A GitGuardian post dated 19 Oct describes research in which people recovered real DeepSeek and Google API keys from Qwen3-27B, GPT-Codex 5.3 and Claude Haiku 4.5 using only API output; each key also appeared in public GitHub code. GitGuardian also says Claude Code-assisted public commits leaked secrets at 3.2% versus a 1.5% baseline, and that public MCP config files held 24,008 unique secrets, 2,117 of them valid. These figures are GitGuardian's, from a company that sells secret-protection tools.
Infosecurity Magazine reports that Symantec's Threat Hunter Team found new versions of the Aoki infostealer, first seen earlier in 2026, targeting AI coding assistants (report dated 15 Oct). The newest version took .claude.json, Claude desktop and ChatGPT cookies, and the Codex config.toml and .env files, plus tokens for GitHub Copilot, Cursor, Gemini, JetBrains AI Assistant and Kiro, and AWS credentials. Symantec says stolen keys can be resold or used to run up usage, and may expose connected repositories and cloud accounts. It does not know who is behind it.
BleepingComputer reported on 9 Oct that attackers were abusing legitimate Bing click-tracking redirects inside Google search ads to send people searching for 'claude mac' to a fake Claude download page, a technique Push Security calls Adception. The page shows Anthropic's real install command, but the copy button puts a different command on the clipboard that downloads and runs a script from an attacker server in the macOS shell. Push Security says the final payload was not known.
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.
Noma Labs found SneakPeek, a high-severity flaw (CVSS 8.7) in Claude Code Desktop's preview pane. Malicious JavaScript hidden in an HTML file, such as a fake coverage report in a cloned repo, could run when Claude previewed it, without a new permission prompt, and send files like SSH keys, AWS secrets and npm and GitHub tokens to an attacker. Anthropic fixed it in Claude Code Desktop 1.30096.1.
A beginner had auth, a Postgres schema and deployment running in a weekend, then realised they couldn't tell whether the server-side permission checks were secure.
Over about three weeks a PM shipped an education platform, started in Lovable, hit its limits, moved to their own repo with Claude Code, and then rebuilt on Next.js for SEO.
A non-technical builder lists beginner mistakes: fixes that broke other things, burned credits, and finding that the Lovable Cloud backend couldn't simply be moved off-platform.
Check Point disclosed two CVEs where malicious Claude Code project settings (hooks, MCP config, base URL) could run commands or send the API key elsewhere. Anthropic patched both before disclosure.
Malicious versions of the Nx build tool were published to npm; the install script used locally installed AI coding CLIs to search the machine for secrets and wallets and uploaded them to GitHub.