Verifying evidence of actions performed by external AI agents
Verifying evidence of actions performed by external AI agents connects a security requirement to the behaviour of a real feature. The relevant controls need to remain effective across custom code, integrations and the production configuration. Understanding evidence of actions performed by external AI agents helps establish which security property the feature needs and where that property is actually enforced.
What does this involve?
An agent combines a model with tools, identity and the ability to progress through a task. Permissions and approvals need to constrain the actual operations performed, regardless of how convincingly the agent explains its plan.
A signature may establish who made an assertion without establishing that the assertion is true. Do not use supplier assertions alone to resolve an incident attribution or dispute involving that supplier.
List the component, host, recorder, operator, and signing-key holder. Count independent parties, not processes: several services under one supplier's control remain one party. A recorder fed only by the component preserves that component's account of events. A signing service that accepts arbitrary content from the component does not independently confirm the content.
Why it matters
Consider a realistic failure: a third-party agent reports success, but its evidence does not establish which action it actually completed.
A broad tool credential can turn an instruction-following failure into access to files, records or business actions. Persistent memory and delegated work can extend the effect beyond the original request or conversation.
Implementation guidance should be applied to a real feature and its deployment. Framework defaults, custom handlers and integrated services all influence whether the intended protection remains effective.
How penetration testers check for it
Trace the relevant feature from its entry point to the data or operation it protects, including custom code and alternate paths.
- Map tools, identities and delegated capabilities.
- Compare proposed actions with submitted parameters and effects.
- Test untrusted inputs and changes to persistent state.
- Review cancellation, revocation and containment.
How to fix it
Use the appropriate maintained mechanisms and verify the result in the actual production configuration.
- Identify an observer that obtains event data independently of the component's own reports.
- Keep its records where the component and supplier cannot rewrite them.
- Corroborate the supplier's record against calls recorded at a gateway or other boundary you control.
- Recompute a collision-resistant digest of the expected artifact and compare it with the signed subject. Obtain the expected artifact or digest independently of the report being assessed.
- Separate users and trust levels in memory and messaging.
- Provide independent limits and shutdown mechanisms.
Human approval is useful only when the person can see and verify the consequential operation. A generic confirmation prompt is not a substitute for precise authority and trustworthy action binding.
Recheck the changed behaviour against the original failure conditions and the legitimate user journey. Keep enough evidence to show which release and configuration were verified, and include related entry points that depend on the same security decision.
Related issues
- Disabling unsafe XML external entity processing
- Securing Next.js rendering, server actions and data boundaries
- Hardening GitHub Actions workflows and runner permissions
Read about our methodology or contact pentested.com to discuss secure development and code review.