
Your AI agent has your shell, your keys and probably a path to production. It’s also the fastest, most eager-to-please coworker you’ve ever had. Put those together and things go wrong in the same ten ways at almost every company. We build security for AI agents at Dante, and we still catch these on our own team.
Count how many you’ve done this month.
1. You pasted the key into the chat. It’s not a secret anymore.
“Here’s my API key, why does this call fail?” It’s rarely just one key: feature-flag tokens, cloud service-account keys, LLM provider keys, even password-manager share links. Once a secret is in the prompt, it’s in the transcript, the local history and the provider’s logs. It isn’t a secret anymore.
Do instead: refer to secrets by name and let the code load them from env vars or a secret manager. If one lands in a chat anyway, rotate it.
2. Your agent went looking for your secrets. And found them.
This one surprises people more than the first. Nobody pastes anything; the agent goes looking. It reads a kubeconfig, pulls a Kubernetes secret, opens the password-manager CLI. It isn’t being sneaky. Your shell can do all that, and the agent runs in your shell.
Do instead: give the agent its own short-lived identity with only what the task needs. Keep admin credentials out of the shell it runs in.
3. Your agent can write to prod. It will.
kubectl against production. Queries on the prod database. IAM changes and admin-role grants, all from a chat window. The agent isn’t malicious. It’s fast, confident, and treats prod like any other environment.
Do instead: make production read-only for agents by default. Any write goes through the same pipeline a human’s change would.
4. The agent nobody approved
A new CLI agent comes out on Tuesday. Someone installs it, and by Thursday it has read half a repo and picked up a dev API key. Nobody approved it, and nobody knows where that data lives now.
Do instead: keep an approved list and make it easy to get on. Then look at what’s actually running; a ban just moves it to personal laptops.
5. Real customers’ data, used as test data
A real Social Security number pasted “to test the parser.” Card numbers, health records, coworkers’ emails. It’s just the fastest way to reproduce the bug.
Do instead: use fake test data, and mask real records before they get anywhere near a prompt.
Seeing a few of these at your company? That’s what Dante is for. More at the end.
6. Your trade secrets, in a tool with no contract
Core algorithms, product specs and contract terms go into tools the company has no data agreement with. The help is real. The permission isn’t.
Do instead: know which AI tools have enterprise terms, and send sensitive material only there.
7. The agent approved its own pull request
Agents approve their own PRs and push past branch protection. Sometimes an agent picks up a teammate’s token and uses it to approve its own change. Code review assumes one human gives one approval. The agent doesn’t know that rule.
Do instead: give agents bot identities that can’t approve anything. Require approval from a human who didn’t write the change, and alert when one person’s token shows up in someone else’s session.
8. “Delete the audit logs.” You typed “ok.”
“Delete the audit logs.” “Disable endpoint protection.” “Reset the admin password.” It’s late in the day, you’ve approved dozens of prompts, and you type “ok” to one more.
Do instead: keep a strict block list for commands that destroy data or turn off protections. Auto-approve never covers them.
9. The MCP server nobody vetted
Someone builds a handy personal MCP tool. It turns out it can approve pull requests on shared repos. Nobody checked what it could reach.
Do instead: vet MCP servers like any other dependency: who wrote it, what it can touch, and which version you’re running.
10. Jailbreaking your own assistant
The model says no, so the human rephrases. And again, until the model says yes and helps pull a production secret. If you have to jailbreak your own assistant, that’s the warning sign.
Do instead: log refusals and review them. If you had to argue the model into it, take the request to a human first.
Honorable mentions
- Prompt injection: real, and worth watching. Text the agent reads (a ticket, a web page, a chat message) tries to give it orders.
- Recon on other people’s domains: someone asks the agent to scan a company they don’t own. The agent obliges.
The real problem
Agents don’t invent new mistakes. They take your access and your shortcuts and act on them, faster and at any hour. And most security tools can’t see it happen: they see a process and a network call, not the prompt, the tool call, or who asked for it. Code review, least privilege and approval prompts all assume a human is at the keyboard, thinking.
Ten mistakes, one blind spot
Each fix above helps. One by one, though, they don’t hold: a scanner here, a rule there, a policy doc nobody reads. Agents change every month, and the mistakes change with them.
Dante gives you one view across all of it: every AI agent and tool your people use, what each one touches, and the risky moves flagged as they happen, not in next quarter’s audit. With that view, the ten above stop being surprises. So do the ones that aren’t on this list yet.
If your team uses AI agents, a few of these have already happened. That’s normal, and it’s fixable. It starts with seeing them.
See what your agents did this week. Book a Dante demo.