“It’s 100 percent a national security threat.” That is how a source described what Wired reported this week: a contractor allegedly connected a secure US Department of Defense coding environment to a personal Claude account, so that an AI agent could write and deploy code. The agent reportedly ran on the network for two months before it was found. Accenture, the contractor’s employer, says the allegations were “thoroughly and independently investigated and found to be without merit”. In the same week, researchers disclosed flaws in five popular AI coding tools, two still unpatched, and a new benchmark found leading models pass only about half of real cloud-operations tasks. The thesis is that the biggest AI risk inside most organisations is not a rogue frontier model. It is the shadow agent: a well-meaning employee’s personal AI, given real credentials, running in places nobody approved and nobody is watching.
Go deeper: why “human in the loop” is weaker than it looks, in The Human in the Loop Is Being Steered, and how banks are blocking password-sharing agents, in Banks Are Locking Out AI Agents.
The alleged Pentagon case
According to Wired’s sources, an Accenture employee connected a secure production environment on NIPRNet, the Defense Department’s network for unclassified but sensitive information, to their personal Claude account to let an agent automate writing code and spinning up cloud servers. To do so, the contractor allegedly gave the agent their login credentials. That gave it administrative access and let it bypass security controls enforced at the normal login. The system held controlled unclassified information (CUI), which can include details about critical infrastructure and other sensitive topics. Claude is barred for DOD staff. The agent reportedly connected through a third-party service that NIST had previously flagged as high-risk because of a flaw that could let attackers inject instructions to steal credentials.
“There is no insight about what happened to the information, including the login credentials, after it was sent to [that service],” the source said. Wired’s sources also say staff did not treat the incident as urgent. “We take all concerns seriously,” Accenture said, adding that it “fully complied with our legal and contractual obligations”. The DOD declined to comment. IT consultant Matt Triner identified the structural problem: contractors face pressure to deliver faster and cheaper, and “organizations are often punished for reporting incidents like this, even though it’s the right and legal thing to do.”
The tools themselves have holes
Even approved coding agents carry risk. Forever Security found a class of flaws it calls “Embrace”, short for embedded browser, in five tools: Cursor, GitHub Copilot, Claude Desktop, VS Code and OpenAI’s Codex, The Register reports. In Cursor, a web page in the built-in browser could send instructions to the agent that users couldn’t see, enabling command execution. Cursor patched it without an advisory. Copilot’s preview could show a fake address such as github.com/login over a phishing page. GitHub fixed that independently. In Claude Desktop, VS Code and Codex, local pages could escape their sandbox and read files across the machine. The researchers say the flaws in Codex and VS Code remain unpatched. Anthropic initially rejected the Claude Desktop report, then accepted the same issue from another researcher a day later.
Agents aren’t ready to run production on their own
Capability is the other gap. Vera Platforms, founded by University of Michigan researchers, says leading models pass only about 50% of its CloudOpsBench tasks, such as deleting decommissioned storage buckets, repairing a compliance pipeline or restoring database autoscaling, The Register reports. In one example, Claude and Codex decommissioned AWS resources only in the default region, missing the rest. “Live infrastructure is unforgiving,” said CEO Ang Chen. “Mistakes are often irreversible.”
Why shadow agents happen
The case fits a familiar pattern from shadow IT, now with far more power. Employees under deadline pressure find that a personal AI agent makes them dramatically faster. Corporate tools are slower to approve, or the approved agent is restricted. So they connect their own, often by handing it their own credentials, which gives it all of their access with none of the logging an approved integration would have. Nobody intends harm. But the result is an unmonitored actor with administrative rights, sending data to an external service the organisation has never assessed.
How to bring shadow agents into the light
- Offer a sanctioned path that is fast enough to use. If the approved agent is unusable, people will bring their own. Provide vetted tools with clear rules on where they may connect.
- Never let agents use human credentials. Give agents their own scoped, revocable identities, and detect logins where a person’s credentials are used by automation.
- Detect agent traffic. Microsoft’s Defender now identifies about 60 types of agents brought into the workplace. Monitor egress to AI services from sensitive networks.
- Make reporting safe. If disclosing a mistake gets a team punished, incidents will be hidden. Reward early reporting.
- Treat coding agents’ embedded browsers and local files as attack surface. Patch promptly, restrict what agents can open, and keep secrets out of their workspaces.
- Keep production changes behind review. At a roughly 50% pass rate on real ops tasks, agents should propose infrastructure changes and humans should approve them.
The read
Whatever the outcome of the Accenture dispute, the scenario it describes is happening in many organisations right now, mostly with less sensitive data and no reporter asking questions. AI agents have become personal productivity tools faster than security teams can govern them. The organisations that respond with fast, sanctioned alternatives, separate agent identities and a culture that rewards disclosure will keep the productivity. Those that rely on bans alone will just push the agents further into the shadows.
Written for Red Robot with AI assistance and human editing. Based on reporting by Wired, The Register and The Register.
2 thoughts on “Shadow Agents: A Contractor’s Personal AI Reportedly Ran Inside a Pentagon System for Two Months”