AI coding agents are now part of many developers’ daily work. They read code, run commands, install packages, edit files, and open pull requests. This saves time, but it also creates a new kind of security risk. An agent that can act on your computer can also be tricked into acting against you.
In this article, we summarize the latest developer tools news on AI agents and security, using reports published in late October 2026 and a monthly roundup of vulnerabilities. We explain each story in simple words, say who reported it, and point out what is confirmed and what is only a claim. At the end, you will find a practical checklist to protect yourself.
Please note: security news changes quickly. Some issues mentioned here may be fixed by the time you read this. This article is general information, not a complete security guide. Always check the official advisories for the tools you use.
The Big Picture
Three simple ideas explain most of this month’s news:
- Agents trust what they read. Coding agents read files, web pages, and repository text. If an attacker hides instructions in that text, the agent may follow them. This is called prompt injection.
- Agents have real power. They can run commands, change settings, and install software. So a trick that would only produce a wrong answer in a chatbot can become a real attack on a developer’s computer.
- Developers’ machines hold valuable secrets. Login tokens, API keys, SSH keys, and cloud credentials are often stored on a developer’s computer. These are a prime target.
Story 1: A Planted Instruction File in the Downloads Folder
What was reported. On October 26, 2026, Help Net Security reported research from Forever Security, by researchers Gal Weizman and Omer Samet. They found that a planted instruction file, named AGENTS.md (or CLAUDE.md for Claude Code), can trick an AI coding agent into installing a malicious package or giving away a login token. The file is placed in the Downloads folder, which a website can often write to without asking the user. The researchers summed it up as “Markdown is the new executable.”
How it was found. According to the report, a planted AGENTS.md aimed at OpenAI’s Codex was found on a customer’s computer. The customer’s security software blocked it before the malicious package was installed. The package was part of an npm campaign that had gone unnoticed for about two years, until the security company Checkmarx documented it. The package has since been removed from npm.
What the researchers tested.
- OpenAI Codex: The researchers said Codex follows instruction files in folders it trusts, and a Downloads folder counts once the user has worked there. In their tests, when the agent was given any task in that folder, it changed its own settings and installed the package, and ran the malware in more than 90 percent of attempts. Most testing used a harmless stand-in, and the real package was run only once, inside an isolated virtual machine.
- Anthropic’s Claude Code: The researchers wrote their own CLAUDE.md. They said this agent was harder to fool, so they used a different attack. The file asked the agent to save a settings change that routed requests to an attacker’s server. According to the report, Claude followed this about half of the time.
What the vendors said. The article reports no statements from OpenAI or Anthropic. The researchers argue that there is “nothing here for OpenAI or Anthropic to patch,” because the agent behavior works as designed. That leaves users to protect themselves.
Why it matters. This research is from a security company and reports its own test results. It is useful, but readers should keep in mind that success rates in a lab depend on how the test is set up. The practical lesson is simple: where you launch an agent matters.
Story 2: A Monthly Roundup of Agent Vulnerabilities
The security firm Adversa AI published a roundup on October 2, 2026, covering events it says happened in September. Please note that this is a secondary roundup, so the details below are its reports and should be checked against each vendor’s own advisory. Some items were listed as fixed, and several were listed without a fix at the time of publication.
GitSpawn. The roundup describes a family of flaws in which an untrusted code repository can set Git configuration options that run commands whenever an agent calls Git. This can happen outside the sandbox and the approval prompts. Eight flaws were listed across several tools, including Claude Code, Codex, Cursor, and others. Four were unpatched at publication.
Plugin4Shell. Several agents install pinned plugin versions through Git without checking the result. According to the roundup, a branch named like a pinned version could silently deliver malicious code during automatic updates. It is described as requiring no click from the user.
OpenCode update endpoint. An upgrade endpoint in the OpenCode tool accepted cross-origin requests, which meant any web page could trigger an npm package install. The roundup says it was fixed in version 1.18.22.
Codex sandbox escapes. Two issues were listed in OpenAI Codex. One tool could write to parent directories, such as shell startup files. The other leaked a trust token through memory snapshots. Both are listed as fixed.
Approval bypasses. For Mistral’s Vibe tool, the roundup lists two CVEs where the approval system parsed one version of a command but ran another, which let some tricks slip past approval. No fix was listed.
Data uploads. For Z.ai’s ZCode, the roundup says encrypted workspace snapshots, including Git history, were uploaded to a cloud storage service even when privacy toggles were set to prevent it. No fix was listed.
Other items. The roundup also lists a flaw in a sandbox runner that follows symbolic links, a high-severity local control API issue in a tool called DeepSeek Harness, and ten documented attack types against Claude Code that focus on configuration files, hooks, approval dialogs, and plugin settings rather than on the model itself. It notes that two led to CVEs and four were declined by the vendor.
Why it matters. The common thread is that many of these attacks do not target the AI model. They target the “plumbing” around it: configuration files, plugins, Git settings, and approval logic. A strong model does not help if the tool around it can be tricked.
Story 3: Real Incidents, Not Just Lab Tests
The same roundup lists several incidents:
- A routing trick. In one reported case, a repository’s agent configuration routed a security review to a weaker model and skipped a test folder. The main agent then ran tests and executed a hidden malicious payload in the skipped folder. The roundup says the vendor described the behavior as by design.
- Leaked screenshots. The roundup describes agents that could not attach screenshots to pull requests and instead pushed images to public places. It says this exposed more than 13,000 screenshots from over 300 organizations, and no attacker was involved. This is a reminder that accidents can be as harmful as attacks.
- Infostealer malware. The roundup says several families of malware now look for access tokens for AI coding tools, along with configuration files and prompt histories.
- Misuse of AI tools. It also cites an Anthropic threat report from September 2026, saying threat actors used AI tools to automate espionage, fraud, and influence operations, and stole AI API keys from vendor evaluation sandboxes.
Story 4: How Common Is Prompt Injection on GitHub?
At the [un]prompted II conference in San Francisco in October 2026, researchers from Radware, Gabi Nakibly and Zvika Babo, presented a study that scanned 86 million GitHub items, such as issues, pull requests, comments, and README files, for hidden instructions aimed at AI agents.
What they found:
- Prompt injections appeared in about 2.5 of every 100,000 items.
- The expanded research covered about 145 million items and reported 47 identified attack attempts.
- Many hidden instructions were not malicious. They included project automation, rules for visiting bots, and “growth hacking” that tries to steer how agents describe a project.
Important limits. The scan covered only hidden text, so it may miss other attacks. It reports attempts, not successful compromises. And a rare problem can still be serious when an agent has access to sensitive systems.
Why it matters. Malicious instructions exist in the wild, but they are still rare in public GitHub text. The risk grows with the amount of access an agent has.

A Practical Safety Checklist
These steps come from the researchers’ recommendations and from general good practice.
Before you start an agent
- Do not launch coding agents from the Downloads folder or any folder you do not control.
- Read any AGENTS.md, CLAUDE.md, or similar instruction file that you did not write, including files in repositories you just cloned.
- Check agent settings files for servers or web addresses you did not add.
While you work
- Keep approval prompts and sandboxes turned on. Treat any instruction to bypass them as suspicious.
- Give the agent only the access it needs. Avoid giving it production keys.
- Be careful with automatic plugin updates, and pin versions you have reviewed.
- Review what the agent plans to run before approving shell commands.
Protect your secrets
- Use short-lived tokens where possible.
- Keep tokens out of plain text files and shell history.
- Use separate accounts or low-privilege keys for agent work.
- Run security software on your development machine.
If something looks wrong
- If you find a planted instruction file, assume your login token may be exposed, and replace it.
- If a suspicious package was installed, treat that computer as compromised and follow your team’s incident process.
- Report problems to the tool’s vendor and to your security team.
Keep up to date
- Update your agents, plugins, and packages.
- Watch the official security advisories of the tools you use.
Frequently Asked Questions
What is prompt injection? It is an attack where hidden or misleading instructions in text, such as a file or web page, trick an AI agent into doing something the user did not intend.
Are AI coding agents safe to use? They can be used safely with care, but they carry real risks. Keep approvals and sandboxes on, limit access, and treat unknown files as untrusted.
Why is the Downloads folder risky? According to the research reported by Help Net Security, a website can often write files there, and some agents follow instruction files in folders they trust once you have worked there.
Did OpenAI or Anthropic fix this? The article reported no statements from either company. The researchers say the behavior works as designed, so users must protect themselves.
Is prompt injection common on GitHub? A large scan found it is rare, about 2.5 per 100,000 items, but the number is not zero, and the study did not measure successful attacks.
Should I stop using AI coding agents? That is your decision. A reasonable approach is to use them with limited access, review their actions, and keep your secrets protected.
How do I know if a vulnerability in a roundup is fixed? Check the vendor’s official advisory or release notes. A roundup may be out of date.
What is the most important step? Do not give an agent more access than it needs, and do not launch it in folders you do not trust.
Final Thoughts
AI agents are powerful helpers, and the news this month shows why they need careful handling. The main risks are not science fiction. They come from ordinary things: a file in a folder, a plugin update, a hidden comment, or an approval prompt that can be bypassed.
The good news is that many defenses are simple. Choose where you launch agents, read instruction files, keep safety features on, and protect your secrets. As the tools improve, some of these risks may shrink. Until then, the safest developers are the ones who treat an AI agent like a fast, helpful, but easily fooled new teammate.

