Denegra · Article · 6 December 2026
The third era of security:
AI agents act on their own
Security first argued about where to put the firewall. Cloud made identity the perimeter. Now the software itself decides: an AI agent reads your files, queries your databases, calls your APIs and chooses its own next step. That changes what you protect. Here is what to do first, with the sources behind each step.
What is an AI agent, and why is it a new security problem?
An AI agent is a language model that can use tools: it reads data, calls systems and takes actions to reach a goal, choosing the steps itself.
An assistant answers. An agent acts. That means a sentence hidden in an e-mail or a web page can steer what it does. OWASP calls this prompt injection and ranks it the top risk for language model applications, noting that it is unclear whether fool-proof prevention exists (OWASP LLM01:2025). In December 2025 OWASP published a separate top ten for agents; first on the list is agent goal hijack (OWASP Top 10 for Agentic Applications).
Which AI tools and agents are already running in my company?
More than you think. Start with an inventory before you write a policy.
78% of people who use AI at work bring their own tools (Microsoft Work Trend Index, May 2024). In IBM’s 2025 breach study, 20% of organisations had a breach involving shadow AI, it added an average of $670,000 to the cost, and 63% had no AI governance policy (IBM, July 2025). KVKK makes the same point for Turkey: employees often use generative AI tools by personal choice, outside any company policy, which makes them hard to monitor (KVKK, 5 March 2026).
Ask engineering three questions: which agents run and on whose behalf, which keys they hold and what they can reach, and whether their actions are recorded. Coding agents, SaaS features with agent modes and automations on long-lived keys are the usual answers.
How do I tell quickly whether an agent is dangerous?
Use the lethal trifecta: private data, untrusted content and a way to send data out. All three together is the danger zone.
Simon Willison named the pattern in June 2025 (The lethal trifecta). The incidents follow it closely. Slack AI could be made to leak data from private channels (August 2024, PromptArmor). A malicious GitHub issue made an agent with the GitHub MCP server copy private repository data into a public pull request (May 2025, Invariant Labs). EchoLeak let a single e-mail pull data out of Microsoft 365 Copilot with no click, rated CVSS 9.3 (CVE-2025-32711).
Most of these were found by researchers and fixed. The lesson stands: when all three are present, remove one of them from the design. A stricter system prompt does not close the gap.
Should an agent use my credentials?
No. Every agent gets its own identity, the narrowest permissions and short-lived access.
The UK NCSC says it directly: give each agent an identity separate from human users, keep credentials as short-lived as practical and grant only the permissions the task needs (NCSC, August 2026). The Five Eyes agencies add: limit autonomy and use strong identity management (CISA and partners, May 2026). The MCP specification forbids servers from passing a client’s token on to other services (MCP authorization, 2025-11-25). The admin key handed over to get a pilot running is the gap attackers look for.
Is an allowlist of approved commands enough?
No. An allowlist reduces risk; it does not prove safety. Govern capabilities, not individual tools.
Claude Code shipped an overly broad allowlist of safe commands that let a prompt injection read a file and send it out without asking (CVE-2025-55284). Cursor’s auto-run allowlist was bypassed with backticks and $(cmd) (CVE-2025-54131). Microsoft’s AI Red Team found bypassing the human approval step to be the most consistently exploited failure in agentic systems (Microsoft, June 2026).
OWASP names three roots of excessive agency: too much functionality, too many permissions, too much autonomy (LLM06:2025). Decide once, in one place, what an agent may do: change code, send external e-mail, deploy to production. The dangerous thing is the combination.
How do I test an agent?
Test the path, not only the result.
A hijacked agent can finish its task perfectly and do something else on the way. Red-team the whole workflow (OWASP GenAI Red Teaming Guide), build approval prompts from the actual tool call rather than the agent’s description of it (Microsoft), and record what the agent did independently of what it reports. Look for tools it did not need, data it should not have touched and unusual sequences of steps.
What do KVKK, GDPR and the EU AI Act expect?
Proof of human oversight and control over where personal data goes.
KVKK has published guidance on generative AI (November 2025), on generative AI tools at work (March 2026) and on agentic AI (March 2026). Sending a prompt with personal data to a provider abroad is a cross-border transfer under KVKK article 9. GDPR article 22 gives people the right not to be subject to decisions based solely on automated processing (GDPR). The EU AI Act article 14 requires that people can oversee, override and stop high-risk systems (AI Act).
Spreadsheets filled in by hand will not keep up. Collect the evidence while the work happens: which data went to which model, who approved it, what the agent did.
Key terms
Agentic AI: AI systems that plan and take actions with tools, not only generate text.
Prompt injection: input that changes a model’s behaviour against its instructions. Indirect prompt injection hides it in content the agent reads, such as an e-mail, a document or a web page.
Excessive agency: an agent with more functions, permissions or autonomy than its task needs (OWASP).
Shadow AI: AI tools used at work without the organisation’s approval or oversight.
Lethal trifecta: private data, untrusted content and external communication in the same agent.
Frequently asked questions
Are AI agents safe for business use?
They are as safe as their permissions and oversight. Give each agent its own identity, the narrowest permissions and a human approval step for destructive actions, and record what it does.
Can prompt injection be prevented completely?
No one has shown a fool-proof method, OWASP says. Detect it, limit what a hijacked agent can reach and remove one leg of the lethal trifecta.
Is using ChatGPT at work compliant with KVKK?
It depends on what is sent. Personal data sent to a provider abroad is a cross-border transfer under KVKK article 9 and needs a legal basis. Masking personal data before it leaves the company removes most of the problem.
What is the first step in AI agent security?
An inventory: which agents and AI tools run, on whose behalf, with which keys, reaching which systems.
Sources are linked in the text. Incidents are listed with their dates; most were found by researchers and fixed by the vendor.