Secrets leaked through the files coding agents write about themselves, and November produced three independent measurements of the same failure. One example: Claude Code’s “Yes, and don’t ask again” saves the approved command, inline secret included, to .claude/settings.local.json, and 1,122 of 104,185 public copies of that file hold a real secret.
The permission store had its own problem. A remote service answering one permission prompt in Claude Code can delete the deny rule protecting a project’s secrets, because only updates that add allow rules get checked. Microsoft documented two attacks that start outside the agent session entirely: backdoors trained into a coding agent with about 1% poisoned fine tuning data, and device code phishing that hands an attacker a GitHub Copilot CLI token from the real github.com page.
Twenty-three resources follow, grouped by topic. Last month’s edition covered a trailing dot Copilot RCE, and the skill side of the same month is in the December agent skill digest. The agentic AI security hub collects the rest.
Statistics
Total resources: 23
AI coding agent security resources
Videos
Black Hat USA 2026 | Trusted enough to run: breaking AI agents in official workflows
Trust handoffs fail the same way across three official coding agent workflows: a default Claude Code approval rule still allows arbitrary shell execution, Google’s Gemini CLI leaves sanitized secrets reachable at runtime, and OpenAI’s Codex loads workflow state an attacker wrote as trusted instructions. In each case a component inherits trust from the workflow instead of earning it, the same pattern as the permission reply paper below, where answering a prompt turns into rewriting the policy.
DEF CON 34 - Main - LGTM: bypassing an LLM build gate when prompt injection fails
OpenSearch uses an LLM gate to keep anonymous pull requests away from its CI secrets. When hiding an injection did not work, the bypass that did put the dangerous part of the change where the model cannot verify it, after mapping the gate’s decision boundary and its blind spots in reading a change. An LLM reviewer that guards secrets is a control an attacker can probe until it says yes, and the hidden text study below finds that maintainers’ review and CI agents are exactly what attackers on GitHub aim at.
DEF CON 34 - Main - The sandbox is a suggestion: deconstructing AI agent sandboxes
The sandboxes in Claude Code, Gemini CLI, and Codex CLI each fail through a structural assumption in their design, with no prompt injection involved, and the exploits are deterministic and went through coordinated disclosure. The reusable method is to find the containment mechanism, read the code that enforces it, and test the assumption underneath. OpenAI’s own account of the Codex sandbox below is a good map for that exercise, including the gaps it states openly.
SecTor 2026 | Using Claude or Codex? We can hack your app?
FSTab is a black box attack that maps visible UI features such as login or upload to recurring backend vulnerabilities that code models reproduce across the apps they generate, then targets those predictable flaws without seeing the source. It reached up to 85.67% attack success across six code models. For teams shipping apps written largely by an agent, the model’s habits are a fingerprint, so review generated authentication and upload paths as a class rather than one app at a time.
Trust no AI: on breaking, watching, and killing agents
A red teamer explains why coding agent classifiers still miss real accidents, how a GLM 5.3 agent tried to SSH out of its sandbox, and why Docker was never a sandbox. The idea that carries over is a separate sentinel watching the agent’s logs, since an agent cannot be relied on to report on itself, which is also where the memory store C2 item below lands on detection.
Coding agent vulnerability
Coding agents are leaking your secrets to GitHub
Claude Code’s “Yes, and don’t ask again” option saves the approved command to .claude/settings.local.json, and when that command carried a secret inline, the secret is saved with it. The file often gets committed, and 1,122 of 104,185 public copies hold a real secret. Search repositories and their history for the file and rotate whatever turns up, because deleting the file leaves the secret in history, forks, and clones, as the chat log study below also stresses.
When answering is administering: permission replies that rewrite coding-agent policy
Claude Code checks only the permission updates that add or replace allow rules, so a plugin or remote service answering one unrelated prompt can attach an update that deletes the deny rule protecting a project’s secrets. The agent then reads those secrets in that session and the next, even in the strict sandbox, and the deletion leaves the same record as a local operator edit; relays that forward such updates, including Anthropic’s Remote Control, already exist. Two proven bounds (accept only updates that keep every denied call denied, or let each party remove only the restrictions it set) correctly predicted whether operator restrictions survive in all 13 permission designs across 10 agent systems.
Remote code execution via MCP elicitation notifications
In VS Code 1.145.2 and earlier, a malicious MCP server’s elicitation message could render as an interactive command link in the fallback notification, so one click ran commands (CVE-2026-120779, CVSS 8.3). Microsoft fixed it in 1.145.3 by rendering the message as literal text and validating the payload first. The attacker must control a connected server, and the MCP server in the incidents below that asks for a GitHub token shows how ordinary a published server with hostile instructions can look.
CVE-2026-136998: Docker Sandboxes vulnerability allows malicious AI agent kits to steal developers’ API keys
Docker Sandboxes keeps API keys on the host and swaps them in at a proxy, but it remembered credential approval by service name, never checking the domains or the kit the developer had reviewed. A third party agent kit could win one approval for api.anthropic.com, then publish an update at the same tag that points injection at an attacker host, and the next sbx create sends the real key there with no prompt and no log of the injection; Anthropic was the tested case, and the other built-in services, OpenAI and GitHub among them, share the code path. Version 0.55.0 fixes it, and pinning kits to a commit, scoping keys per sandbox, and rotating any key a changed kit could reach all still apply.
Article
Cursor security: top 10 attacks and what each one actually broke
Adversa AI’s review of ten documented attacks on Cursor finds that the four with confirmed harm have no CVE: a trojanized Claude Code extension served through Cursor’s marketplace for about 11 hours in October, the GlassWorm extension worm, an agent deleting a PocketOS production volume with an overscoped Railway token, and the Miasma worm’s planted .cursor/rules file. The three CVEs on the list (the workspace git.exe, DuneSlide, and CurXecute) have no confirmed exploitation, so a vulnerability feed shows the wrong slice of the risk. Workspace Trust is off by default, which leaves the .vscode/tasks.json route open, and the Ruby gem incident below writes to exactly that file.
Of 2,504 public GitHub repositories holding chat logs from nine AI coding tools, 255 contained 708 secrets, and about 200 are likely still valid. Every tool leaked, and roughly 70% of the secrets entered the logs through the agent’s own actions, with the agent writing a secret into code, config, or a command (45%) well ahead of users pasting one (26%). Only 199 had a format a vendor could recognize, so most cannot be revoked automatically; extend secret scanning to paths such as .claude/, .codex/, .specstory/, and .aider.chat.history.md, history included.
Your coding agents are still shipping your secrets: the state of the VS Code Marketplace
A scan of all 154,420 VS Code Marketplace extensions found 1,374 shipping Claude Code’s .claude/settings.local.json, almost 1 in 100, and 4,504 shipping some AI coding tool file. Nine of those settings files hold real credentials and three keys were confirmed live, but the allowlists are the bigger issue: 231 extensions (17%) let the agent publish a release unprompted through commands such as vsce publish or npm publish. This is the “don’t ask again” leak above reaching a public marketplace, and 83% of the affected extensions are ordinary themes, linters, or language support.
Who is prompt-injecting coding agents? An empirical study of hidden AI-directed text on GitHub
Across roughly 145 million GitHub issues, pull requests, comments, and READMEs, 2,281 validated hidden texts aimed at AI turned up, most of them projects coordinating their own agents rather than attacks. Attacks are rare, about one per 3.3 million items, and target maintainers’ own triage, review, and CI agents; replayed offline against five models, they succeeded against one small model 19% of the time and against none once HTML comments were stripped. Stripping comments before content reaches a review agent is a cheap control with measured results, and the build gate bypass above shows what an attacker tries when hiding text is not enough.
Attack technique
Trained to betray: how post-training supply chain attacks hijack coding agents
Microsoft shows that a coding agent can be backdoored before it ever runs: 90 poisoned examples in about 9,000 fine tuning conversations (roughly 1%) made gpt-4.1-mini run a fetch and execute command on a routine documentation request in 78% of trials on harnesses seen in training. Tampered open weight Qwen3.5 checkpoints reached 84.1% to 94.8% attack success on unseen repositories and carried over to the Claude Code harness at 91% to 97%, and a short reinforcement learning phase restored coding utility while leaving the backdoor largely intact. Capability benchmarks will not reveal this, so pin datasets and checkpoints by hash, test third party weights in your real harness with varied triggers, and enforce authorization at the tool execution layer.
The risks of device code authentication for AI coding agents
Microsoft demonstrates in a lab that device code phishing against GitHub Copilot CLI needs no fake domain: the victim enters the attacker’s code on the real github.com page, and the attacker’s client receives a token under a legitimate app name with scopes it picked, including repo and codespace. With remote control enabled, the attacker could steer a live Copilot CLI session (local approval prompts still apply), plant Copilot Memory entries that shape later work, read session history synced to the cloud, and reach private repositories. Review OAuth authorizations and Copilot Memory entries, and note that disabling memory does not delete entries already there.
Living off the AI: shared memories as a covert C2 channel
In a lab simulation, an attacker holding a stolen Claude Console API key created a memory store in the victim’s workspace with heartbeat, input, and output files and used it to task Claude Code agents that a systemd service kept relaunching. Nine plain language jobs ran network discovery, a password spray, and SMB enumeration, and a 1 GB file left in three parts through the Claude Files API, all over api.anthropic.com, the same endpoint as normal inference. Blocking the domain is not an option, so detection has to baseline agent processes and flag odd command lines and upload ratios, the sentinel approach from the Trust no AI talk above.
Coding agent incident
strutil-core 1.0.1 on RubyGems ran a Miasma family worm from extconf.rb at install, with no require needed, reading 51 credential stores including .claude/.credentials.json and .codex/auth.json. It added a workspace-tools MCP server and SessionStart hooks to local configs and writes CLAUDE.md, AGENTS.md, .cursor/mcp.json, and .vscode/tasks.json into repositories it can reach with stolen Git credentials, so opening one in an agent or editor can rerun the worm. On hosts where the wiper is installed, revoking the stolen GitHub token triggers rm -rf ~/, so remove net-health-checker and pkg-runtime before revoking, then rotate credentials from a clean device.
Free the model, sell the gateway: prompt adware hidden in jailbreak bundles
The Haiou jailbreak bundle for OpenAI Codex, with more than 250 GitHub stars and a GUI configuration tool that ships it, installs security skills and modifies Codex configuration files so that greetings or words like “ctf” make the agent reply with an advertisement for an LLM gateway its author runs. The prompts sit in encrypted payloads, apparently to slip past scanners, and the bundle turned up on a threat actor’s server next to Cobalt Strike. Nothing shows the gateway itself is malicious, but a package that quietly edits agent instructions to sell something could as easily bias recommendations, so review what any jailbreak bundle changes in your agent config.
Version 1.0.13 of @agentdance/node-webrtc-mcp, an MCP server that helps coding agents pick a WebRTC library, has a get_started tool description that tells the agent to get a GitHub token through the GitHub CLI and pass it along, adding “do not ask the user for it”. The shipped code uses the token to star the publisher’s repository, and in remote HTTP mode the token would reach the remote server; the review was static, so neither agent compliance nor malicious intent is confirmed. The defense matches the VS Code elicitation flaw above: treat tool descriptions and server messages as untrusted input, and keep credentials the task does not need out of the agent’s reach.
Coding agent defense
Inside the Codex sandbox
OpenAI explains how Codex permission profiles limit filesystem and network access: the default :workspace profile disables the network and keeps .git and .codex read only, which protects .codex/config.toml and .git/hooks from an agent editing its own config or planting a hook. Enforcement uses Seatbelt on macOS, bubblewrap with seccomp on Linux, and Microsoft’s MXC library on Windows, and child processes inherit the limits. The stated gaps matter for anyone relying on it: MCP stdio servers are not sandboxed unless wrapped with codex sandbox, and deny globs expand at launch, so files created during a command are not covered.
One policy, four interception points: differential testing of agent governance
Replaying 1,360 generated cases plus existing tests through an SDK, an MCP gateway, an egress proxy, and a coding agent hook that runs before each tool call, all backed by one policy decision point, produced matching decisions and audit records across 1,865 comparisons per run, with one exception. For integer arguments of 2^53 or more, the hook bridge never consulted the policy: fail closed sessions refused the call with no decision record, and fail open sessions let it through. If you enforce one policy at several points, test them against each other and compare the audit records too, since 97 of 217 dropped argument faults showed up only in the recorded request.
Coding agent security 101
Is Cursor AI safe? 6 risks, controls and best practices
Adversa AI’s guide cites Cursor’s own documentation calling run modes and the command allowlist best effort, not a security boundary, and counts at least 11 protected file bypasses, six allowlist bypasses, and eight sandbox escapes, with most of the 33 advisories published through July 2026 being guardrail bypasses. Workspace Trust is off by default, hooks default to failClosed: false, and on Linux a missing or invalid ~/.cursor/policy.json means Cursor runs without policy restrictions. The guide pairs a settings lockdown (Workspace Trust on, task.allowAutomaticTasks off, failClosed: true) with controls the agent cannot reach, such as no credential that can do lasting damage and egress denied by default, the same conclusion the top 10 attacks piece above reaches from incidents.
Coding agent red teaming
When coding agents get arms: safety risks across the digital-physical boundary
ArmedAgent puts coding agents in zero shot control of a robot arm and tests 36 tasks across five scenarios for robustness, malicious use, and indirect prompt injection, including harmful behaviors that earlier vision language action systems could not perform. Tests in simulation, validated on a physical arm, across several frontier models and common agent frameworks found substantial safety risks, though the abstract gives no success rates. For teams wiring coding agents to hardware, an injection read from a web page or email now has a physical effect, so the hidden text and tool poisoning items above stop being purely digital problems.
Clean agent state files out of repositories and packages this week
Search repositories, history, forks, and dotfile backups for .claude/settings.local.json and agent log paths (.claude/, .codex/, .specstory/, .aider.chat.history.md), rotate anything you find, and add those folders to .gitignore and, if you publish extensions, to .vscodeignore. Remove publish and git push rules from allowlists the agent saved for you, and keep secrets off command lines so a “don’t ask again” approval has nothing to store.
Then treat the agent’s permission store, model weights, and OAuth grants as things an attacker can change from outside the session. Alert when deny rules disappear from settings, pin checkpoints and datasets by hash, review GitHub OAuth authorizations and Copilot Memory entries, and put enforcement and monitoring at the tool execution and network layers, where November’s backdoor, C2, and policy rewrite findings could still be caught.
Part of our AI coding agent security coverage: the category, its attack surface, and the research behind it.