Emerging Tech7 min read

AI Agent Privilege Escalation: From Chat to Root in Three Steps

ER

Elena Rodriguez

VP of Engineering · June 21, 2026

Illustration of an AI agent bypassing access control gates through privilege escalation

At this month's AI Security Summit, researchers from Trail of Bits published a three-step privilege escalation chain that starts with a single injected prompt in a mobile AI assistant and ends with arbitrary code execution on the host device. The chain works by exploiting the combination of over-scoped tool permissions, missing confirmation gates, and the agent's willingness to follow instructions embedded in retrieved content. It is not theoretical: the demo ran live on two shipping consumer apps.

How the three-step chain works

Step one is injection: the attacker embeds a malicious instruction in any content the agent retrieves, such as a webpage, a document, or a calendar event. Step two is tool abuse: the injected instruction directs the agent to call a tool with permissions broader than the task requires, such as a file-write tool invoked during a read-only summary task.

Step three is escalation: the over-scoped tool call plants a malicious payload, modifies a configuration, or invokes a system capability the user never intended to grant. On mobile, the gap between an AI feature and device-level access is often just one mis-scoped API permission.

The permission gaps that enable escalation

The research identified a consistent set of misconfigurations that make escalation chains viable.

  • Agents granted persistent broad permissions rather than task-scoped, time-limited grants
  • No human-in-the-loop confirmation before irreversible or high-impact tool calls
  • Tool descriptions that do not restrict the contexts in which a tool may be invoked
  • Retrieved content passed directly to the agent without stripping embedded instructions
  • Missing sandboxing between agent tool execution and OS-level capabilities

How RASMISER audits agentic permission models

RASMISER inspects how your app scopes agent permissions, where confirmation gates are absent before sensitive tool calls, and which tool invocation paths can be triggered by untrusted retrieved content, with every finding mapped to OWASP MASVS.

With runtime protection active, agent tool calls to sensitive APIs are instrumented and tamper-resistant, so an injected instruction attempting to escalate hits a hard boundary rather than executing silently.

The takeaway

Agentic features that work with broad permissions are an escalation chain waiting to happen. Scope every tool grant to the minimum needed for the specific task, require confirmation before irreversible actions, and scan the full injection-to-execution path before you ship.

Scan your app free