title: Cross-Agent Privilege Escalation
id: ATR-2026-00074
rule_version: 1
status: experimental
description: |
  Detects agents using inter-agent communication channels to escalate privileges beyond their authorized scope. Attackers exploit multi-agent architectures by having a compromised or lower-privilege agent forward credentials, assume roles of higher-privilege agents, or bypass orchestrator controls through direct agent-to-agent messaging. This enables lateral movement across agent boundaries and unauthorized access to restricted tools or data.
author: ATR Community
date: 2026/03/08
schema_version: '0.1'
detection_tier: pattern
maturity: test
severity: critical
references:
  owasp_llm:
    - LLM06:2025
  owasp_agentic:
    - ASI03:2026
    - ASI10:2026
  mitre_atlas:
    - AML.T0051.001 - Indirect
  mitre_attack:
    - T1078 - Valid Accounts
    - T1550 - Use Alternate Authentication Material
compliance:
  eu_ai_act:
    - article: '14'
      context: Cross-agent privilege escalation allows one agent to acquire capabilities from another agent's authorization scope without human approval, directly bypassing the role-based access controls that Article 14 human oversight requires.
      strength: primary
    - article: '9'
      context: Multi-agent privilege escalation via trust relationships is a documented attack pattern in the AI system risk register; Article 9 requires monitoring controls for this lateral movement risk.
      strength: secondary
    - article: '15'
      context: Article 15 (accuracy, robustness and cybersecurity) requires high-risk AI systems to resist unauthorised attempts to alter their use, outputs or performance; this rule provides runtime detection evidence by flagging the agent-manipulation technique (Cross-Agent Privilege Escalation).
      strength: primary
  nist_ai_rmf:
    - subcategory: GV.1.2
      context: Cross-agent privilege escalation exploits gaps in the accountability roles defined for each agent in a multi-agent system; GV.1.2 requires that agent role boundaries are defined and that lateral movement across those boundaries is detected.
      strength: primary
    - subcategory: MG.2.3
      context: Credential forwarding and orchestrator bypass between agents require immediate risk treatment to prevent lateral movement from escalating to full system compromise; MG.2.3 mandates that these response plans are pre-defined and activated on detection.
      strength: secondary
    - subcategory: MS.2.7
      context: NIST AI RMF MEASURE 2.7 (security and resilience evaluated and documented) is supported by this rule's runtime detection of the agent-manipulation technique (Cross-Agent Privilege Escalation).
      strength: primary
  iso_42001:
    - clause: '6.2'
      context: ISO 42001 clause 6.2 risk treatment activities must cover inter-agent privilege escalation as a multi-agent architecture risk; this rule implements the detection control for credential forwarding and unauthorized role assumption between agents.
      strength: primary
    - clause: '8.1'
      context: Clause 8.1 operational controls ensure each agent executes within its authorized capability set; cross-agent privilege escalation detection enforces that no agent can assume the permissions of a higher-privilege agent without explicit authorization.
      strength: secondary
tags:
  category: agent-manipulation
  subcategory: cross-agent-privilege-escalation
  scan_target: mcp
  confidence: medium
agent_source:
  type: multi_agent_comm
  framework:
    - crewai
    - autogen
    - langchain
    - any
  provider:
    - any
detection:
  conditions:
    - field: content
      operator: regex
      value: (?i)(forward|pass|share|send|relay|transmit)\s+(my|the|these|your|this)\s+(credentials?|tokens?|api[_\s]?keys?|auth(entication|orization)?\s+(headers?|tokens?)|session\s+(id|token)|secrets?)(\s+and\s+\w+(?:\s+\w+){0,2})?\s+(to|with|for)
      description: Credential forwarding between agents
    - field: content
      operator: regex
      value: (?i)(I\s+am|acting\s+as|speaking\s+as|on\s+behalf\s+of|representing)\s+(the\s+)?(admin|supervisor|orchestrat(or|ing)|master|root|privileged|authorized)\s+(agent|system|process|service)
      description: Role assumption or impersonation of higher-privilege agents
    - field: content
      operator: regex
      value: (?i)(bypass|skip|circumvent|ignore|override)\s+(the\s+)?(orchestrat(or|ion)|coordinator|supervisor|permission|authorization|access\s+control|gatekeeper)
      description: Orchestrator or access control bypass attempts
    - field: content
      operator: regex
      value: (?i)(use\s+my\s+(elevated|admin|root|system)\s+(access|privileges?|permissions?|role)|escalate\s+(to|my|your)\s+(admin|root|system|elevated))
      description: Explicit privilege escalation requests between agents
    - field: content
      operator: regex
      value: (?i)(grant|give|assign|delegate)\s+(me|this\s+agent|the\s+agent)\s+(additional|extra|elevated|higher|admin|full)\s+(access|permissions?|privileges?|capabilities|tools?)
      description: Permission escalation requests in agent-to-agent communication
    - field: content
      operator: regex
      value: (?i)(execute|run|invoke|call)\s+(this|the\s+following).{0,20}(with|using)\s+(your|admin|elevated|system|root)(?:\s+\w+){0,2}\s+(permissions?|privileges?|access|credentials?|authority)
      description: Requesting execution with another agent's elevated permissions
  condition: any
  false_positives:
    - Legitimate orchestration patterns where a supervisor agent delegates tasks
    - Multi-agent systems with designed credential sharing mechanisms
    - Agents discussing access control as a topic rather than attempting escalation
    - A security training document that instructs agents on how to detect when another agent attempts to share credentials, using exact phrases like 'forward my credentials to' as example attack patterns
    - An automated orchestration system where a supervisor agent legitimately delegates elevated tool access to a worker agent as part of a designed workflow
response:
  actions:
    - block_input
    - alert
    - snapshot
    - escalate
  actions_rationale: 'response-action eligibility (docs/RESPONSE-ACTION-ELIGIBILITY.md): benign FP 6/5352 = 0.11% meets the 0.5% ceiling but is not zero; ceiling = degrade. Removed kill_agent(terminate). Detection unchanged — recall cost is zero.'
  auto_response_threshold: critical
  message_template: |
    [ATR-2026-074] CRITICAL: Cross-agent privilege escalation detected. An agent is attempting to escalate privileges through inter-agent communication by forwarding credentials, assuming higher-privilege roles, or bypassing orchestrator controls. The message was blocked and the session escalated for review.
confidence: 69
wild_validated: 2026/04/08
wild_samples: 53577
