Skip to main content
Oathera logo Oathera
Use casesFive stories: no identity, a new identity, impersonation, cloning, and a call outside the boundary. PlatformOathera Agent Enrollment, the Oathera Identity Service and Oathera Agent Enforcement. FeaturesWhat Oathera does for you, grouped by purpose. IntegrationsYour identity provider, your MCP servers, your cloud. SecurityHow Oathera fails closed, and what it doesn't do.
Developer sectionComponents, the identity token, standards and settings. Data sheetsThe buyer and developer data sheets, as PDFs. LearnGuides on giving AI agents an identity of their own. GlossaryPrincipal, sponsor, anchor key, key digest, identity token. SimulatorWatch a stolen token, a replayed proof and a tampered call get refused.
About usThe team and the mission behind Oathera. BlogPosts from the Oathera team. CareersOpen roles at Oathera. ContactTalk to the founders, or become a design partner. LinkedIn ↗Oathera on LinkedIn.
Privacy PolicyHow we handle data. Terms of ServiceTerms for using Oathera. Data Processing AgreementOur DPA for customers. Sub-processorsThird parties we rely on.
Become a design partner

Learn · Threats

Stop token theft and replay attacks on AI agents, and retire shared API keys

A token that works for whoever holds it is a liability: it leaks through logs, prompts, config files and chat. A shared API key is worse, because many agents use it and one leak exposes all of them. The fix is to make each agent prove it holds a key, on every call, with a proof that works once.

On this page

  1. The problem with shared keys and bearer tokens
  2. What stops theft and replay
  3. Replacing a static secret
  4. How Oathera helps
  5. FAQ

The problem with shared keys and bearer tokens

With a shared key you cannot tell which agent did what, you cannot stop one agent without breaking the rest, and rotating the key means touching everything that uses it. A copied bearer token behaves the same from any machine.

What stops theft and replay

  • One identity per agent, from its own key created on its own host.
  • Tokens that last minutes (at most five) and name a session key held only in memory.
  • A single-use proof on every call with a nonce used once. A replayed proof is refused, and so is a token without its session key.
  • Host binding: a copy on another machine does not match the recorded host and gets no token.

Replacing a static secret

  1. Enroll the agent and have a principal approve it.
  2. Put Oathera Agent Enforcement in front of the tool in watch mode, so it logs what it would refuse.
  3. Move the tool off the shared key.
  4. Switch the rule to enforce.

How Oathera helps

Oathera removes the standing secret an agent can leak. What the agent holds, an identity token, is useless without the session key it names, and each call needs a fresh proof. Revoking an agent refuses its next token request and next decision, and tokens already issued expire within five minutes.

Oathera does not verify people, judge model output, inspect or rewrite prompts, or replace your identity provider. Your identity provider and proofing sources do the first; Oathera is the layer under them for agents.

FAQ

How do you prevent token theft for AI agents?

Bind the token to a key the agent holds, rotate that key often and require a single-use proof on every call, so a stolen token cannot be used.

How do you stop replay attacks?

Each operation proof carries a nonce used once and is signed over the exact operation and arguments. A replay or an altered argument is refused.

Why remove shared API keys?

They hide which agent acted, cannot be revoked per agent and spread one leak across every user of the key.

How quickly does revocation work?

The revoked agent's next token request and next decision are refused. Tokens already issued stay valid until they expire, five minutes at most.

Related: Per-agent identity vs shared API keys · Credential lifetimes for AI agents · Proof of possession for AI agents

Become a design partner Watch the simulator More guides

← Back to Learn
Oathera logo Oathera

Every AI agent, sworn in. Oathera gives every AI agent an identity bound to the machine it runs on, with a named person who answers for it, and checked every time it acts.

Product

  • Use cases
  • Platform
  • Features
  • Integrations
  • Security

Developers

  • Developer section
  • Data sheets
  • Learn
  • Glossary
  • Simulator

Company

  • About us
  • Blog
  • Careers
  • Contact
  • GitHub

Legal

  • Privacy Policy
  • Terms of Service
  • Data Processing Agreement
  • Sub-processors
© 2026 Oathera Inc. · All rights reserved
Know Your Agent (KYA)

Cookie preferences

We use cookies to run this site and, with your consent, to understand usage and improve Oathera. Strictly necessary cookies are always on; you can choose whether to allow analytics and marketing cookies below.

Read the privacy policy

  • Strictly necessaryAlways on

    Required for the site to work, security, load balancing, and remembering your cookie choices. These cannot be switched off.

  • Help us measure traffic and see how the site is used, so we can improve it. No personal profiles are built.

  • Used to make messages about Oathera more relevant across other sites. Off unless you turn it on.