Versatile AI Risk Assessment

AI threat catalogue Agentic and Autonomous AI Production

Abuse of Agent Identities and Machine Credentials

AI agents and integrations access other systems with tokens, API keys and service accounts. If these credentials are too broad, too long-lived or stolen, the agent acts with someone else's or with excessive permissions.

As of: November 2026 Catalogue version 2026.11.15.2 8 mitigations 15 verified references

Description

To read emails, open tickets or query databases, an agent receives its own credentials: OAuth tokens (access grants that let an application access a service on a person's behalf), API keys or service accounts. These are often broader than needed, never expire, get passed between agents and tools, or sit in plain text in configuration files; some platforms grant far-reaching rights by default. Whoever obtains the credentials, for example through a compromised third-party provider, gains the agent's full access. A related pattern is the confused deputy: the agent uses its own rights to carry out requests the requesting person would not be allowed to perform.

Possible impact

A single stolen key opens every connected system, with third-party providers often for many customers at once, and the access looks like normal agent traffic. The consequences include leakage of customer and business data with GDPR notification duties, manipulated records and a costly replacement of all credentials. Without an inventory, it often remains unclear which agents hold which rights.

Example

A sales team connects a third-party AI chat assistant to its CRM; the assistant receives a non-expiring token with read access to all customer records. Attackers steal the stored tokens at the provider and download contact and contract data for days. Nobody notices, because the requests look like ordinary queries from the assistant.

Main lifecycle phase
Operation and monitoring
Arises in
Operation and monitoring, Supply chain and procurement
Takes effect in
Operation and monitoring

Recommended mitigations (8)

Compare effects and implementation levels. Expand each entry for the additional classification and rationale.

  • Dedicated, verifiable identity per agent instead of shared service accounts or borrowed user credentials

    Technical
    Effect
    Preventive
    Implementation level
    Application, API & agents, Infrastructure
    Classification and rationale

    Complementary control typeOrganizational & process-based

    Primarily technical: Machine-enforced identity, permission, or scope rules constrain unauthorized access and actions; complemented by binding workflows.

    Meaning, implementation and evidence
    What it means
    Every agent and integration receives its own uniquely attributable machine identity instead of using shared service accounts or a person's credentials.
    Effect on the threat
    Rights can be limited and revoked per agent, and actions remain attributable to one agent instead of being performed unnoticed with someone else's or shared rights.
    When it helps
    Useful where AI agents or integrations use tokens, API keys or service accounts to access email, ticketing, databases or other systems.
    Suggested implementation
    1. Check existing agents for shared accounts and borrowed user credentials.
    2. Create a dedicated identity per agent with an accountable owner.
    3. Replace shared accounts and embedded user credentials.
    Useful evidence examples
    Identity inventory, agent to identity mapping, migration record or configuration excerpt.
  • Short-lived tokens scoped to purpose and target system, with automatic rotation

    Technical
    Effect
    Preventive, Impact-limiting
    Implementation level
    Application, API & agents, Infrastructure
    Classification and rationale

    Primarily technical: Machine-enforced identity, permission, or scope rules constrain unauthorized access and actions.

    Meaning, implementation and evidence
    What it means
    Agents receive short-lived tokens limited to one purpose, one target system and minimal permissions and renewed automatically, instead of long-lived API keys.
    Effect on the threat
    A stolen token is usable only briefly and for a narrow purpose, which substantially limits the damage from captured credentials.
    When it helps
    Useful where AI agents or integrations use tokens, API keys or service accounts to access email, ticketing, databases or other systems.
    Suggested implementation
    1. Identify long-lived keys and replace them with short-lived tokens.
    2. Define target system and permission scope per token.
    3. Set up automatic rotation and monitor expiry.
    Useful evidence examples
    Token policy, configuration excerpt with lifetime and scope, rotation log or list of retired keys.
  • Authorisation checked on behalf of the requesting person (on-behalf-of) rather than with the agent's own rights

    Technical
    Effect
    Preventive, Impact-limiting
    Implementation level
    Application, API & agents
    Classification and rationale

    Primarily technical: Machine-enforced identity, permission, or scope rules constrain unauthorized access and actions.

    Meaning, implementation and evidence
    What it means
    For agent requests, target systems check the permissions of the person the agent acts for, for example via delegated tokens, rather than the agent's often broader own rights.
    Effect on the threat
    The agent can only access what the person is entitled to, so it does not become a tool for privilege escalation.
    When it helps
    Useful where AI agents or integrations use tokens, API keys or service accounts to access email, ticketing, databases or other systems.
    Suggested implementation
    1. Switch agent access to delegated user permissions.
    2. Configure target systems to evaluate the user identity in the token.
    3. Verify with test cases that access without user rights is denied.
    Useful evidence examples
    Delegation flow architecture description, configuration excerpt, test report or access log with user context.
  • Review default permissions of agent platforms and switch to dedicated least-privilege service accounts

    Technical
    Effect
    Preventive, Impact-limiting
    Implementation level
    Application, API & agents, Infrastructure
    Classification and rationale

    Complementary control typeOrganizational & process-based

    Primarily technical: Machine-enforced identity, permission, or scope rules constrain unauthorized access and actions; complemented by binding workflows.

    Meaning, implementation and evidence
    What it means
    Default permissions granted when setting up agent platforms and integrations are reviewed and replaced by dedicated service accounts holding only the rights actually needed.
    Effect on the threat
    Generous defaults do not hand agents excessive rights that could be abused through misbehaviour or credential theft.
    When it helps
    Useful where AI agents or integrations use tokens, API keys or service accounts to access email, ticketing, databases or other systems.
    Suggested implementation
    1. Record the default rights of every agent platform and integration.
    2. Determine required rights per use case and create dedicated service accounts.
    3. Remove surplus default rights and document the result.
    Useful evidence examples
    Before and after permission analysis, service account configuration excerpt or review record.
  • Inventory of all agent and integration identities with owner and scope of rights, reconciled with the central agent inventory

    Organizational & process-based
    Effect
    Detective
    Implementation level
    Organization, Application, API & agents
    Classification and rationale

    Complementary control typeGovernance & compliance

    Primarily organizational and process-based: A planned, repeatable assessment with ownership and documented follow-up creates the protective effect; complemented by rules and oversight.

    Meaning, implementation and evidence
    What it means
    All identities through which agents and integrations access systems are recorded with owner and scope of rights and regularly reconciled with the central inventory of agents and MCP servers.
    Effect on the threat
    Orphaned, overly broad or unknown machine identities are uncovered and cleaned up before they are misused.
    When it helps
    Useful where AI agents or integrations use tokens, API keys or service accounts to access email, ticketing, databases or other systems.
    Suggested implementation
    1. Collect all machine identities from identity and platform systems.
    2. Record owner, purpose and scope of rights per identity.
    3. Run the six-monthly recertification and disable unconfirmed identities.
    Useful evidence examples
    Identity inventory, recertification records, list of disabled identities or review schedule.
  • Secret scanning of agent and MCP configuration files and repositories

    Technical
    Effect
    Detective, Preventive
    Implementation level
    Application, API & agents, Infrastructure
    Classification and rationale

    Complementary control typeOrganizational & process-based

    Primarily technical: Software or analytical tools systematically produce and evaluate measurements, deviations, or attack indicators; complemented by binding workflows.

    Meaning, implementation and evidence
    What it means
    Automated scanners search repositories, agent and tool configuration files and local settings for plaintext tokens, keys and passwords.
    Effect on the threat
    Exposed credentials are found and replaced before attackers harvest them from configurations and act in the agent's name.
    When it helps
    Useful where AI agents or integrations use tokens, API keys or service accounts to access email, ticketing, databases or other systems.
    Suggested implementation
    1. Enable secret scanning for repositories and agent configuration paths.
    2. Report findings automatically and block commits containing secrets.
    3. Revoke discovered credentials and move them into a secrets store.
    Useful evidence examples
    Scanner configuration, findings report, revocation records or pre-commit rule.
  • Monitoring of agent access for unusual data volumes, targets or times

    Technical
    Effect
    Detective
    Implementation level
    Use & operations, Infrastructure
    Classification and rationale

    Complementary control typeOrganizational & process-based

    Primarily technical: Software or analytical tools systematically produce and evaluate measurements, deviations, or attack indicators; complemented by binding workflows.

    Meaning, implementation and evidence
    What it means
    Access by agent identities is logged and analysed against a normal profile, for example for unusual data volumes, new target systems or activity at atypical times.
    Effect on the threat
    Abuse of stolen or over-privileged agent credentials shows up in deviating access behaviour even when the authentication itself is valid.
    When it helps
    Useful where AI agents or integrations use tokens, API keys or service accounts to access email, ticketing, databases or other systems.
    Suggested implementation
    1. Collect access logs of agent identities centrally.
    2. Define normal profiles and alert rules for volume, target and time.
    3. Handle alerts with assigned ownership and response times.
    Useful evidence examples
    Alert rules, monitoring excerpt, alert log or investigation report.
  • Playbook for immediately revoking and replacing all connected tokens after a provider incident

    Organizational & process-based
    Effect
    Impact-limiting, Corrective
    Implementation level
    Use & operations, Supply chain
    Classification and rationale

    Complementary control typeTechnical

    Primarily organizational and process-based: A defined reporting, triage, and handling workflow turns observations into traceable follow-up actions; complemented by technical implementation.

    Meaning, implementation and evidence
    What it means
    A prepared procedure describes how, after an incident at a platform or integration provider, all connected tokens and keys are immediately revoked, reissued and affected access is analysed.
    Effect on the threat
    Leaked credentials become useless before attackers can use them at scale against connected systems.
    When it helps
    Useful where AI agents or integrations use tokens, API keys or service accounts to access email, ticketing, databases or other systems.
    Suggested implementation
    1. Record which tokens and keys are linked to each provider.
    2. Automate revocation and reissue where possible and assign responsibilities.
    3. Rehearse the procedure in an exercise and measure its duration.
    Useful evidence examples
    Playbook, provider to credential mapping, exercise record or incident report.

Framework mappings

Verified locations in OWASP, NIST AI RMF, MITRE ATLAS, the EU AI Act and further frameworks. The mappings are taxonomic, not evidence of compliance.

Verified references (15)

Every reference states the framework, the exact location and the publishing organisation.

How the catalogue relates this threat to others, with the reason.

EU AI Act obligations related to this threat

The obligations from the obligations compass whose articles the catalogue maps to this threat. Each leads to its entry with core, action step and evidence; whether it applies to you depends on role and risk class.

  • Achieve accuracy, robustness and cybersecurity Art. 15, Art. 42(3), applies from Annex III: 2 December 2027; Annex I: 2 August 2028, amended by Reg. 2026/1744

    Statutory roles: Provider, Product manufacturer. Classes: High-risk under Annex III, High-risk as a product or safety component.

    New: where a high-risk system falls within the scope of Regulation (EU) 2024/2847 on horizontal cybersecurity requirements and meets its conditions, it is deemed compliant with the cybersecurity requirements of Art. 15. Duplicate evidence is therefore not required.

    This reference is a review prompt. A threat match alone does not establish applicability.

All 62 obligations by role, risk class and deadline in the obligations compass

Terms on this page

Glossary terms that occur in this entry. Every link leads to the full explanation.

Matching use cases

This list shows where to review this threat, rather than how high the risk is.

Particularly important for:

  • AI agentOne of the agent's tools runs with a broadly scoped service account and does not check who triggers the call. This lets the agent reach data and functions unrelated to its task.

Typical for:

For 7 further use cases, relevance depends on the system design, for example whether it calls other programs or interfaces or is connected through the Model Context Protocol (MCP). Show these use cases

Frequently asked questions

What is Abuse of Agent Identities and Machine Credentials?
AI agents and integrations access other systems with tokens, API keys and service accounts. If these credentials are too broad, too long-lived or stolen, the agent acts with someone else's or with excessive permissions.
Which mitigations help against Abuse of Agent Identities and Machine Credentials?
The catalogue lists 8 mitigations, each with control type, effect and implementation level. First among them are “Dedicated, verifiable identity per agent instead of shared service accounts or borrowed user credentials”; “Short-lived tokens scoped to purpose and target system, with automatic rotation”; and “Authorisation checked on behalf of the requesting person (on-behalf-of) rather than with the agent's own rights”.
Which EU AI Act obligations does Abuse of Agent Identities and Machine Credentials touch?
The catalogue maps this threat to Art. 15(5) of the EU AI Act. In the obligations compass this leads to: Achieve accuracy, robustness and cybersecurity. Whether an obligation applies depends on role, risk class and deadline.

Assess this threat in your own system

The live demo contains all 79 threats of this catalogue, including the EU AI Act and GDPR assessment. The free single modules cover AI risk, the EU AI Act and GDPR. No sign-up; the assessment runs locally in your browser.

Cite this entry

For reports, policies or internal documents; the link leads directly to this entry.

“Abuse of Agent Identities and Machine Credentials”. Versatile AI Risk Assessment, AI threat catalogue, as of November 2026.
https://www.versatile-ai-risk-assessment.com/en/wissensbasis/threats/agent-identity-abuse/

← Back to the full catalogue