Don’t Hand Your AI Agent the SSH Keys

There’s a version of AI automation that companies roll out and immediately regret. The fallout is predictable. The agent runs with a developer’s full credentials, can reach every server it doesn’t need, and leaves no trail anyone can follow.

Teleport’s field CTO Boris Kurktchiev published a piece this week in The New Stack that every engineering team building AI automation should read. The core argument is straightforward. When you give an AI agent broad access credentials, you are not just automating a task. You are creating an identity with unchecked reach, and that identity can do damage in ways your developer never would.

The problem compounds quickly. As AI agents get better at doing real work inside infrastructure, more teams are tempted to give them standing credentials because it’s the fastest path to getting the agent functional. The blast radius grows with the access level. A confused tool call, a bad prompt, or a compromised session can touch everything the credentials allow, and that might be a lot more than the task required.

The solution has a name: delegated identity. Instead of giving the agent a copy of your keys, it starts with zero access. When a task requires specific permissions, the agent requests a narrowly scoped, short-lived credential for exactly that task. That credential expires automatically when the work is done. The whole session is logged, and the audit trail links what the agent did directly to the human who authorized it. There are no standing permissions, no broad service accounts, and no shared secrets sitting in environment variables waiting to be stolen.

Short-lived credentials are not a new idea. Teleport has been issuing temporary SSH certificates instead of long-lived keys for years, and the 2026 version of this thinking extends the same model to AI agents, covering SSH, Kubernetes, databases, and CI/CD pipelines. The pattern is well-understood, the tooling exists, and the alternative is genuinely risky.

For businesses running AI automation workflows, whether that’s deployment agents, code review bots, or infrastructure management tools, the security gap here is real. An agent with more access than it needs is a liability. Not because AI is philosophically untrustworthy, but because any system with broad, standing credentials is a bigger target. That’s true for humans too.

The practical test is simple. If you have AI agents interacting with your infrastructure, ask yourself whether you know exactly what credentials they hold right now, and whether you could answer in five minutes what an agent could access if its session were compromised. If not, that’s the first gap to close.

Good AI automation and good security are not in conflict. They just require the same intentional access design you’d apply to any privileged system in your stack.

Want to explore how to build AI automation that’s both effective and secure? Let’s talk.

Don’t Hand Your AI Agent the SSH Keys

Leave a Reply

Your email address will not be published. Required fields are marked *