AI Coding Agents Keep Getting Hacked for Credentials, Not Models

Six research teams disclosed exploits against Claude Code, Copilot, Codex, and Vertex AI over nine months, with every attack targeting the same vulnerability: unprotected credentials that let AI coding agents authenticate to production systems without human oversight. Attackers exploited branch name injection, permission bypass, command chaining, and hidden instructions in pull requests and GitHub issues to steal OAuth tokens and gain repository access. The core failure was not in the models themselves but in how enterprises approved AI vendor interfaces while leaving underlying credentials exposed and unanchored to user sessions.
TL;DR
- →BeyondTrust disclosed a Critical P1 vulnerability in Codex where a crafted GitHub branch name with Unicode characters could steal OAuth tokens in cleartext during repository cloning
- →Claude Code had three separate vulnerabilities: file-write sandbox escape via command chaining, permission bypass via malicious settings files, and a 50-subcommand threshold where deny rules were silently dropped
- →GitHub Copilot was compromised through hidden instructions in pull request descriptions and GitHub issues that triggered auto-approve mode and exfiltrated privileged tokens via symbolic links
- →All six exploits followed the same pattern: AI agents held credentials, executed unsanitized commands, and authenticated to production systems without a human session anchoring the request
Why it matters
These exploits expose a fundamental architectural flaw in how AI coding agents are deployed: they operate with production credentials but lack the access control and session anchoring that protect human-driven workflows. The attacks were not novel AI jailbreaks but rather standard privilege escalation and injection techniques applied to agents that have no human in the loop to catch malicious inputs. This pattern suggests that the security model for AI agents in development environments is fundamentally broken and requires rethinking how credentials are managed and validated.
Business relevance
Enterprises deploying AI coding agents are unknowingly granting them unvetted access to production systems, repositories, and secrets. A compromised agent can exfiltrate credentials, modify code, or grant attackers repository access without triggering any human approval workflow. For teams using Claude Code, Copilot, or similar tools in CI/CD pipelines or development environments, these vulnerabilities mean that approving an AI vendor interface does not mean approving the underlying system's security posture.
Key implications
- →Credentials embedded in AI agent workflows must be treated as high-risk attack surface and require explicit session anchoring to human users or hardened service accounts with minimal scope
- →Input validation in AI agents cannot rely on token limits or subcommand thresholds as security boundaries, since attackers can craft inputs that exceed or circumvent these checks
- →Enterprises need to audit how AI coding agents are authenticated to production systems and implement deny-by-default access control rather than relying on vendor-level permission models
What to watch
Monitor how vendors implement credential isolation and session anchoring in the next generation of AI coding agents. Watch for industry movement toward ephemeral tokens, per-action approval workflows, and explicit deny rules that cannot be bypassed by input length or complexity. Also track whether enterprises begin requiring AI agents to operate under service accounts with minimal permissions rather than user-level credentials.
vff Briefing
Weekly signal. No noise. Built for founders, operators, and AI-curious professionals.
No spam. Unsubscribe any time.



