Your AI Coding Tools Are the Attack Surface — Credential-Dense, Unaudited, Under Active Targeting
The Threat Model Changed This Week
Multiple independent security research teams converged on the same conclusion: the AI development toolchain — MCP servers, Cursor, Claude Code, LangChain — is now the most credential-dense and least-audited layer in your infrastructure, and organized threat actors know it. This isn't supply chain risk in the abstract. It's targeted campaigns enumerating AI tools by name in their payloads.
An MCP server is a process the agent talks to over a local transport, and it runs with whatever the agent has: shell, filesystem, cloud credentials, the active kube context. The protocol does not sandbox tools. It describes them.
The Specific Vulnerabilities
MCP's architecture is broken by design. OX Security demonstrated that 9 of 11 MCP registries can be poisoned. The protocol aggregates credentials for multiple backends — database tokens, cloud provider keys, model API secrets — in a single server process. Compromising one server gives access to everything it connects to. Anthropic has explicitly declined to fix this, calling it expected behavior. With 150M+ downloads and ~200K deployments, this is the biggest architectural risk in the AI stack.
Cursor stores API keys and session tokens in plaintext SQLite, readable by any installed extension. Known since February 2026, unpatched as of late April. Cursor has tens of thousands of DAUs, many running unvetted marketplace extensions. This is the browser-extension attack model except the credential store contains cloud API keys, model provider tokens, and CI/CD access.
Claude Code's source was accidentally leaked via unredacted npm source maps — 512K+ lines of TypeScript. Threat actors weaponized it into trojanized installers dropping Vidar and GhostSocks malware within days. TeamPCP and the Shai-Hulud cluster have been running sustained campaigns against AI-specific packages since September 2025, and their payloads enumerate AI coding tools by name and check whether those tools are authenticated.
LangChain CVE-2025-68664 (CVSS 9.3) enables serialization injection via dumps()/dumpd(), allowing attackers to extract environment secrets or achieve RCE through Jinja2 templates.
The Vercel Breach: Your Case Study
One Vercel employee connected their enterprise Google Workspace to Context.ai's AI Office Suite with broad OAuth permissions. Separately, a Context.ai employee was infected with Lumma Stealer. The attacker used the stolen OAuth token to pivot through the OAuth grant into Vercel's Workspace, reaching internal environment variables and customer credentials. Shadow IT in 2026 isn't unauthorized software installs — it's OAuth grants to AI productivity tools that security has never assessed.
LLM-Generated Passwords: A New Attack Vector
GitGuardian analyzed 8,000 passwords from 40 models and found LLM output is fingerprint-able: Llama-3.3-70b produces Gx#8dL in 96% of its passwords; Claude Opus 4.6 generates only 35% unique passwords. They found 28,000 LLM-generated passwords hardcoded in 1,800 .env files on GitHub — real database credentials and API keys. AI agents are autonomously generating and hardcoding these into Terraform and config files.
The Minimum Response
- Inventory every AI tool with credential access: MCP servers, Cursor extensions, OAuth grants, CLI tools
- Isolate MCP servers to single-purpose credential scopes
- Treat any credential that has touched Cursor as compromised — rotate it
- Add LLM-generated password detection to your secrets scanning pipeline
- Add AI dev environments to your pen test scope
What to do
Enumerate every MCP server, its credential scope, its registry source, and network egress. Isolate each to single-purpose credentials by end of this sprint.
Conduct a full OAuth grant audit: list every third-party AI tool granted access to GitHub, Google Workspace, or any identity provider. Revoke grants with overly broad scopes.
If your team uses Cursor, restrict it to environments without production credentials until the plaintext SQLite vulnerability is patched. Rotate all secrets that touched Cursor.
Add LLM-generated password pattern detection and npm lifecycle script auditing (prepare, postinstall) to CI pipeline by end of sprint.