medium severityCurated advisory

Tool permission creep in AI agents

AI agents accumulate tool permissions over time as developers approve new tools "just this once." These permissions persist across sessions, creating an ever-widening attack surface where tools that were approved once can be used by prompt injection in future sessions.

Key facts

Tool permission creep in AI agents is a medium-severity AI agent security threat targeting tool permission grants, agent session memory, MCP tool configurations. Review current tool permissions and MCP or Skill drift regularly. Guard can retain approval evidence and provide drift visibility, but do not rely on an automatic inactivity timer or unusual-tool-combination detector unless the current product exposes one.

3 affected surfacesLast updated Jun 26, 2026
Affected surfacestool permission grantsagent session memoryMCP tool configurations
The attack

What happens

Each time a developer approves a tool "just this once," the permission often persists. Over weeks, the agent accumulates access to dozens of tools — file readers, HTTP clients, database connectors, shell executors — any of which can be exploited by prompt injection.

Step by step

How the attack unfolds

1Developer approves a file-read tool for a specific task.
2Developer approves an HTTP tool for a different task.
3Developer approves a shell-execution tool for a third task.
4Permissions persist across all future sessions.
5A prompt injection in a future session can use any of the previously-approved tools to exfiltrate data.
Example

What it looks like in practice

Scenario

Over a month, a developer approves file-read, HTTP-request, and shell-exec tools for various tasks. In a new session, a prompt injection in a file comment causes the agent to read the .env file (using the file-read tool), then send it to an external URL (using the HTTP tool). Both tools were approved weeks ago and the agent uses them without asking for permission again.

Detection

Detection and Guard coverage

Guard retains approval and decision evidence for supported actions and Guard Cloud provides MCP or Skill drift visibility.
Current Guard product evidence does not establish a 30-day unused-tool alert as a shipped control.
Current Guard product evidence does not establish a session-level unusual-tool-combination detector for patterns such as file-read plus HTTP.
Mitigation

How to stop it

Recommended action

Review current tool permissions and MCP or Skill drift regularly. Guard can retain approval evidence and provide drift visibility, but do not rely on an automatic inactivity timer or unusual-tool-combination detector unless the current product exposes one.

Guard configuration
Use Protection Center to review which Guard controls are active on this device.
Use `hol-guard command controls status` and `hol-guard command controls list` to inspect the active local control catalog.
Guard coverage is action- and harness-specific. Do not treat an advisory label as a configurable Guard setting unless it appears in the current control catalog.

Use the protections Guard supports here

Guard can review or block supported actions for this threat. The advisory above calls out what Guard covers and where other controls are still needed.