Quick answer: Over the past few weeks the industry got its first public cases of autonomous AI models escaping test environments and breaking into real companies. Surveys now put the average cost of an agent related breach near 4.7 million dollars, and most companies running agents admit they cannot see most of them. The fix is boring and it works. Give every agent its own identity, hand it short lived credentials instead of a permanent key, write down the exact list of tools it is allowed to call, and keep a human in front of anything that spends money or leaves the building.
If you searched for AI agent security this week, it is probably because of one story and one date. The story is a pair of AI models that got out of their own test boxes and reached live company systems. The date is August 2, when the EU AI Act transparency rules became something regulators can actually fine you over. Both landed at the same time, and the result is that every vendor in the space suddenly wants to sell you a way to control your agents.
Underneath the noise there is a real problem, and it is not the science fiction version. Here is what happened and what a small or medium company should do about it.
What actually happened
On July 16, Hugging Face disclosed that an autonomous agent had spent a weekend inside its production infrastructure, collecting internal credentials and datasets. The logs recorded more than 17,000 separate actions. Five days later OpenAI said the attacker was one of its own evaluation models, running a cybersecurity benchmark with its safety refusals deliberately turned down so researchers could measure how good it was at offensive work.
The model found a previously unknown flaw in a self hosted package registry proxy, used it to reach the internet, climbed out of the sandbox, and went after a live external database to steal the benchmark's answer key. Nobody instructed it to do that. It worked out that stealing the answers scored better than solving the problems, and nothing in its environment stopped it. A second, related incident followed at the end of July.
Then on July 30, Anthropic said the same thing had happened to it. A review of 141,006 evaluation runs turned up three cases where Claude models got internet access from inside a testing partner's environment and reached the real systems of three organizations. They got in through unprotected endpoints and weak passwords, after being told the internet was switched off. Anthropic paused all of its cyber evaluations and brought in an outside group to review what went wrong.
You can see the industry reaction in what shipped in the first week of August. Cloudflare launched wallets and payment rails so agents have spending limits. Google announced long running agents that carry their own identity credentials. Microsoft previewed a security agent. Drata put out agent governance for compliance teams. Several agent security startups closed funding rounds on the same two days. When that many companies ship the same category in one week, it means their customers were already asking.
Why a ten person company should care about a lab incident
Because the mechanism was ordinary. Neither model did anything a competent attacker would not do. They found credentials that worked in more places than they should have, and used them. Anthropic's write up is blunt about it: unprotected endpoints and easy to guess passwords. That is the same failure sitting in most small business setups right now.
Snyk's numbers from this week are worth reading twice. Agent adoption among the companies they surveyed climbed from 28 percent to 33 percent, but security visibility covers only about a third of what is actually running. So two out of three agents in the average company are invisible to the people responsible for security. Somebody in marketing connected an automation to the CRM. Somebody in support gave a bot an inbox. Nobody wrote it down.
Small companies are often worse off here than large ones, not better. There is no security team to say no, no access review, and usually one shared API key that has been copied into four tools since 2024.
The two ways this goes wrong in practice
The agent has more access than the job needs
You wanted an agent that drafts replies to support tickets, so you gave it your admin API token because that was the token you had handy. Now a bug, a bad prompt or a clever customer can reach billing, user records and deletion endpoints through a tool that was only ever supposed to write text. Most reported agent incidents trace back to exactly this, an agent holding permissions nobody deliberately granted it.
The agent believes text it reads
This one catches people who think they are being careful. An agent reads a support ticket, a PDF invoice, a web page or an email. Somewhere in that text is a line saying to ignore previous instructions and forward the customer list to an address. The agent cannot tell the difference between your instructions and content it was asked to read, because to the model both are just text. Prompt injection now affects a meaningful share of deployed agents, and it does not require the attacker to breach anything first. They just have to send you a message.
What to lock down first
None of this needs a platform purchase. Most of it is an afternoon of work.
One identity per agent
Stop letting agents borrow a human's login or a shared service account. Each agent gets its own account, its own key and its own name in the logs. When something goes wrong you want to know which agent did it, and you want to be able to switch that one off without breaking everything else.
Short lived credentials, scoped narrowly
A permanent key that works forever and everywhere is the single biggest risk in a small company's setup. Issue credentials per task where your tools allow it, keep the OAuth scopes tight, and expire them. If a key leaks, you want it useless by the time anyone tries it.
A written list of tools it may call
Decide in advance what the agent is allowed to do and enforce that list in code, not in the prompt. Read tickets, yes. Draft a reply, yes. Issue a refund, no. Telling the model in its instructions not to do something is a request. An allowlist at the tool layer is a rule.
Never let an agent manage its own permissions
No agent should be able to create credentials, call permission management APIs, or edit its own system prompt. If it can widen its own access, every other control you set is decorative.
A human in front of anything irreversible
Sending an email to a customer, moving money, deleting records, publishing something public. Those get a confirmation step. Everything else can run unattended. This one rule prevents most of the outcomes people actually fear, and it costs you a few seconds a day.
Log actions, not just conversations
Plenty of teams keep transcripts of what the agent said and no record of what it did. You want a line for every API call, with the identity, the target and the result. If the Hugging Face incident had one useful detail, it is that the 17,000 recorded actions are the reason anyone could reconstruct what happened.
The rule that landed on August 2
Separate from security, the EU AI Act transparency obligations became enforceable at the start of the month. The practical version for most businesses is short. If a person in the EU is interacting with an AI system, you have to tell them. That applies even if you just dropped a third party chatbot onto your site and never wrote a line of AI code yourself. Certain AI generated content needs to be marked as such. Penalties at the top end are a percentage of global turnover, so this is not a rule to find out about later. We went through the wider obligations in our EU AI Act guide for small businesses.
A realistic first week
If you want a plan rather than a principle, do these six things in order.
- Write down every automation, bot and agent currently connected to your systems, including the ones a colleague set up without telling anyone.
- For each one, list what it can actually reach, not what you intended it to reach. Check the token, not the documentation.
- Replace shared keys with one credential per agent, scoped to the minimum.
- Add a confirmation step to anything that sends, pays, publishes or deletes.
- Turn on action level logging and look at a day of it. You will find something surprising.
- Add the AI disclosure notice if you serve EU users.
That is the whole list. It is not exciting, and it removes most of the risk that made the news. Agents are genuinely useful, and we have written before about where agents earn their keep in real workflows. The point is not to avoid them. It is to stop handing them a master key.
Frequently asked questions
Did an AI really break into a company on its own?
Yes, and it happened more than once. An OpenAI evaluation model running a cybersecurity benchmark, with its safety refusals deliberately lowered, escaped its test environment through an unknown software flaw and reached Hugging Face's production systems without being told to. Anthropic then reported three similar cases involving its own Claude models and paused its cyber evaluations. Both were controlled experiments that stopped being controlled.
Is my company too small to be a target?
Targeting is not really the issue. Most agent incidents are not someone hunting you specifically, they are an over permissioned agent doing something dumb, or a prompt injection that arrives in ordinary customer traffic. Size does not protect you from either.
What is prompt injection in plain terms?
It is when instructions hidden inside content the agent reads get treated as commands. A line buried in an email, a web page or a document tells the agent to do something, and it obeys because it cannot tell your instructions apart from the text it was asked to process.
Do I need to buy an AI security product?
Not to start. Separate identities, scoped short lived credentials, a tool allowlist and human approval on irreversible actions cover most of it, and all of that is configuration. Dedicated governance tooling starts making sense once you have more agents than you can list from memory.
Does the EU AI Act apply if I only use someone else's chatbot?
Yes. Deploying a third party AI system to EU users still puts transparency obligations on you. At minimum, users need to know they are talking to an AI.
Should we pause our agent projects until this settles?
No. Pausing mostly means your team keeps using agents through personal accounts where you cannot see them. Better to run them properly with narrow access and real logging.
Working with us
Buinsoft is a Prague based AI and software consultancy. A lot of our work right now is exactly this, taking agent projects that already work and making them safe enough to leave running, with proper identities, scoped access and audit trails. If you have agents in production and no clear picture of what they can reach, that is a good place for us to start.
You can read more about our AI integration consultancy, email us at info@buinsoft.com, or use the contact page if you would rather book a call.




