For the last few years, the security question around AI coding tools was “is the code any good?” In the last week of August 2026, two separate stories made it clear the question has changed. It is now: “what is the agent allowed to do, and who is watching?”
This post walks through both incidents in plain terms, explains why they matter for any team using AI coding assistants, and lays out a practical way to keep using these tools with confidence. There is nothing here to panic about. The failures were preventable, and the controls that prevent them are well understood.
What Actually Happened
Incident 1: A ransomware crew used Cursor’s AI agent to run the attack
On August 27, 2026, security firm Gambit Security published findings — reviewed by Reuters — describing how an affiliate of a new ransomware group called “Aur0ra” used the AI agent built into Cursor, the AI code editor now owned by SpaceX, to help break into a series of companies. Reporting placed the confirmed count at seven firms, with some coverage suggesting the activity touched more than 20 organizations across nine countries, including a Belgian chemical company.
The technique is the part worth understanding. The attacker did not find a clever bug in Cursor. They talked the agent into helping by telling it the intrusion was a “simulation” or an authorized test. Believing the framing, the agent carried out hundreds of operations — reconnaissance, credential theft, account takeover steps — as if it were a junior engineer following instructions. Investigators only learned the detail they did because the group left a command-and-control server exposed to the open internet, complete with saved chat history.
In short: the agent had real capabilities and real access, and the only thing standing between “assistant” and “attacker” was a sentence of context that the attacker simply lied about.
Incident 2: A cloned repo could run commands before you trusted it
Separately, researchers disclosed a flaw in Cursor’s command-line agent where a cloned repository could execute arbitrary commands on a developer’s machine before the user was asked whether they trusted it — and outside the sandbox, even when the sandbox was explicitly turned on.
Cloning a repository to take a look is one of the most routine things a developer does. This flaw meant that the act of opening someone else’s code could be enough to run their code on your laptop, with your privileges, before you made any trust decision at all.
Why This Matters (Even If You Do Not Use Cursor)
It is tempting to read these as “a Cursor problem.” They are not. Cursor happens to be the tool in the headlines, but the same shape applies to Claude Code, GitHub Copilot, Codex, Windsurf, Kiro, and any agent that can act on your systems. Two things are now true for all of them:
1. The agent is an actor, not just a suggester. Older AI tools proposed code that a human then reviewed and ran. Modern agents run shell commands, call cloud APIs, connect to databases, and open pull requests directly — with the developer’s credentials. The blast radius moved from “review the PR” to “the action already happened.”
2. The agent’s own permissions are usually the developer’s permissions. Most teams give their AI agent whatever access the developer has: long-lived cloud keys sitting in a config file, standing database credentials, broad IAM roles. If the agent is tricked, misused, or hijacked, everything the developer can reach is now reachable through the agent.
Put those together and you get the Aur0ra story: a capable actor, running with real standing access, that will do what it is convinced to do. The in-app “approve every action” prompt does not save you here — developers reasonably switch those off within a day because they slow work to a crawl. A prompt you can wave away is a usability hint, not a security control.
The Two Problems, Named Clearly
If you strip away the specifics, there are exactly two things to defend:
| # | The problem | The question it raises |
|---|---|---|
| 1 | The agent can be manipulated into doing harmful things (prompt injection, false “this is a test” framing, malicious repo content) | Should this action be allowed to run at all, regardless of who asked? |
| 2 | The agent runs with standing, long-lived credentials | Why does the agent hold keys that work forever, when it only needs access for the next few minutes? |
Neither of these is solved by scanning the code the agent produces. Code scanning matters — but it answers “is the output safe?” These incidents are about the actor, not the output.
What You Can Do About It
Here is the reassuring part: both problems have concrete, adoptable answers. You do not need to ban AI coding agents. You need to put a boundary around what they can do and eliminate the standing keys they carry.
1. Put a control between the agent and your systems
The agent should not talk directly to your cloud, your database, or your production shell. It should talk through something that can evaluate each action and decide. In practice that control does four things:
- Block actions that should never happen — dropping a production table, deleting a database instance, pushing secrets out through a prompt — so they fail before reaching the target.
- Gate actions that might be fine — a schema migration, a write to a protected branch — by pausing for a quick human approval.
- Scope allowed actions to the narrowest access needed, for the shortest time needed.
- Audit every action — passed, gated, or blocked — with a record tied back to the human behind the agent.
This is the idea behind a coding agent firewall: authorization that lives outside the agent, where a developer cannot casually switch it off.
2. Stop giving agents standing credentials
The Aur0ra attacker benefited from access that was simply there. If the agent had needed to request access for each task — and had that access expire automatically — the same manipulation would have yielded far less. This is just-in-time (JIT) access applied to a non-human actor: the agent requests scoped permission for a specific task, a human (or policy) approves it, the credential lives for minutes, and it revokes itself. There is no forever-key to steal.
3. Keep prompts and secrets from leaving the machine
A large part of agent risk is data walking out through the prompt — a developer (or a manipulated agent) pasting a .env file, a private key, or customer PII into the model. An on-host control that inspects what the agent is about to send, and blocks secrets and sensitive files before a single token leaves the laptop, closes that path.
4. Treat “cloning a repo” as an untrusted action
The second incident is a good reminder: untrusted code should not be able to run before you decide to trust it. Prefer tools and settings that enforce the sandbox by default, keep your agent tooling patched, and clone unknown repositories in an isolated environment when you can.
5. Keep scanning the output too
None of the above replaces code scanning. Agents still produce vulnerable code — hardcoded credentials, missing input validation, over-permissive infrastructure. Governing the actor and scanning the output are two different jobs, and you want both.
How Cloudanix Approaches This
Cloudanix was built around a simple observation: cloud security is no longer just code to cloud. It is now agent to code to cloud, and the agent is the newest link in that chain. Two capabilities map directly to the incidents above.
Coding Agent Guardrail is an on-host control for AI coding agents — Claude Code, Cursor, Kiro, Copilot, Aider, and others. It sits between the agent and the systems it can touch, inspecting each action and each prompt. Secrets and sensitive files are blocked before they leave the developer’s machine, destructive actions fail closed, and risky ones pause for human approval. Every decision is recorded and tied back to the human operator, so “what did the agent do, and on whose behalf?” is a question you can actually answer.
Coding Agent JIT removes the standing credentials that make agent misuse so damaging. Instead of the agent holding long-lived keys, it requests short-lived, task-scoped access through a broker (over MCP), with human-in-the-loop approval and automatic revocation. When the task is done, the access is gone. An attacker who manipulates the agent finds far less to work with, and nothing that persists.

Approvals happen where the team already works, so governing the agent does not mean adding a slow gate to the developer’s day:

Both run on the same platform as Cloudanix’s code scanning and cloud posture, so the vulnerability in a file, the identity that could exploit it, and the agent action that touched it are part of one picture rather than three disconnected tools. This is a gap-filler, not a rip-and-replace: if you already run a CNAPP or SAST tool, these controls cover the agent surface those tools were never designed to see.
Key Takeaways
- The security question changed. With agents that act, “is the code good?” is no longer enough. You also have to ask “should this action run at all?”
- Manipulation is the new exploit. The Aur0ra attacker did not hack Cursor — they convinced its agent to help. Authorization has to sit outside the agent, where it cannot be talked (or toggled) away.
- Standing credentials are the amplifier. An agent with forever-keys turns one manipulated session into broad access. Just-in-time, self-expiring access shrinks the blast radius to almost nothing.
- Untrusted code should not run before you trust it. Keep agent tooling patched, enforce sandboxes, and isolate unknown repositories.
- You do not have to slow down. Governing the agent and scanning its output let your team keep the productivity of AI coding tools while removing the failure modes that made this week’s headlines.
Curious what your AI coding agents can currently reach in your environment? Book a demo to see how Cloudanix governs coding agents with a firewall and just-in-time access — without getting in your developers’ way.
People Also Read
- What Is a Coding Agent Firewall?
- Copilot, Cursor & Claude Code Security Risks: What Teams Miss
- AI-Generated Code Security: Why 60% of AI Code Has Vulnerabilities
- AI Code Security: The Real Problem No One Is Solving
- Cloudanix: Coding Agent Guardrail
- Cloudanix: Coding Agent JIT
- Cloudanix: Code Security