Manoj Perla.ENGINEERING NOTES & OPEN SOURCE
← All exploration notes

What an agent security audit should prove

A practical way to examine the gap between an agent’s intended task and its effective authority.

Build a capability inventory

Start with a small example: an agent investigating a failed deployment. It needs to read build logs and deployment history. It may not need to modify the repository, rotate credentials, or restart production. Record each tool, the identity it uses, its target resources, and whether it reads or changes state. Review combinations too: repository write access plus pipeline execution can permit a deployment even without a deploy tool.

Turn boundaries into test cases

Define three categories: allowed actions, actions requiring approval, and forbidden actions. An investigation should succeed with read-only access. A production restart should require approval tied to the exact service and operation. An instruction embedded in a retrieved log should not expand that authority. Test approval rejection, expired approval, a changed target, and repeated attempts through another tool.

Inspect the execution, not just the answer

Collect a trace connecting the user’s request, selected tool, resource, authorization decision, approval state, and result. A convincing diagnosis is insufficient if the agent changed production while investigating. Conversely, a safe stop with a clear explanation may be the correct outcome when evidence or authority is missing. Keep secrets and unnecessary personal data out of the trace.

A bounded first experiment

Use a sandbox with a mock deployment service and synthetic logs. Compare a read-only agent with one whose write tools require explicit approval. Measure task completion, unauthorized attempts, correct denials, and the quality of the evidence cited. This is an exploration blueprint, not a claim that an auditing product is already available.

The Emerging Role of the AI Agent Security Auditor

As organizations deploy more AI agents, they will need automated methods to discover agents, map capabilities, assess permissions and evaluate runtime protections.

Read essay →