AI Agent Security Posture Assessment Framework
Why AI Agent Security Posture Assessment Needs Its Own Framework
When your CI pipeline runs a script, you know exactly what it can touch. When an AI agent runs, that boundary is far less clear. The agent might call a web search API, pull B2B contact data, send an email, execute a financial query, and write to a database — all inside a single task loop. Traditional security posture assessments weren't designed for that threat surface, and bolting on existing human-identity frameworks doesn't close the gap.
An AI agent security posture assessment framework gives engineering and security teams a structured way to audit what their agents can do, what they actually do, and what guardrails exist if something goes wrong. This article lays out a practical, opinionated framework you can run today — whether you have two agents in production or two hundred. According to Gartner, by 2028 at least 15% of day-to-day business decisions will be made autonomously by AI agents (Gartner, Top Strategic Technology Trends 2025). That trajectory makes posture assessment urgent, not optional.
The Five Domains of an AI Agent Security Posture Assessment Framework
A rigorous assessment covers five distinct domains. Each maps to a concrete set of questions you can answer with evidence — log lines, policy files, runtime traces — not just documentation claims.
Domain 1: Agent Identity and Non-Human Identity (NHI) Management
Every agent that acts on external systems needs a verifiable identity. This is the foundation of your posture. Without it, you can't enforce policy, attribute actions, or rotate credentials safely.
Key questions to answer in this domain:
- Does every agent have a unique, non-shared identity (API key, service account, OAuth client)?
- Are agent credentials stored in a secrets manager or hardcoded/env vars checked into repositories?
- What is the credential rotation policy, and is it automated or manual?
- Can you enumerate every external service an agent has authenticated to in the last 30 days?
- Are agent identities isolated from human user accounts?
For a deeper treatment of NHI hygiene, the non-human identity management for AI agents guide covers common misconfigurations and remediation patterns. The short answer: if you can't list every credential your agents hold and when each was last rotated, your NHI posture has gaps.
Domain 2: Permission Scope and Least Privilege
Overpermissioned agents are the most common finding in AI agent security reviews. An agent that needs read access to a CRM to generate a report should not also have write access to that CRM — but because API credentials are often created with broad scopes for convenience, they frequently do.
Assessment checklist for this domain:
- Map every tool or API each agent can call. Compare granted permissions to permissions actually used in the last 90 days.
- Identify agents operating with admin or owner-level OAuth scopes where narrower scopes would suffice.
- Check whether permissions are per-agent or shared across an agent fleet.
- Verify that permission grants are reviewed when agent capabilities change.
- Confirm that agents cannot self-escalate privileges (e.g., by calling an IAM API to grant themselves broader access).
The principle of least privilege is well-understood in human IAM; it's routinely skipped in agent deployments because tooling hasn't caught up. The AI agent least privilege access implementation guide walks through practical enforcement patterns for common frameworks including LangChain, OpenAI Agents SDK, and Claude Code.
Domain 3: Runtime Action Governance
This is the domain most security tools miss entirely. Identity and permissions tell you what an agent could do. Runtime governance tells you what it actually does, and whether each action was authorized before it executed.
Runtime governance assessment questions:
- Are high-impact actions (sending email, writing to databases, making financial transactions) gated behind explicit approval workflows?
- Can an agent's action stream be paused or terminated mid-task without data loss?
- Are there rate limits or cost caps that prevent runaway tool calls?
- Is there a policy layer that evaluates each action against owner-defined rules before execution?
- What happens when an agent encounters a tool call the policy doesn't explicitly allow — fail open or fail closed?
Most agent frameworks don't have native answers to these questions. They're designed to maximize agent capability, not to constrain it at the operation level. This is where a dedicated governance layer is necessary, separate from the agent framework itself.
Domain 4: Audit Trail and Observability
A security posture is only as good as your ability to reconstruct what happened. For AI agents, this means logging at the action level — not just "agent ran" but "agent called send_email to address X with subject Y at timestamp Z, authorized by policy rule P."
Audit trail assessment criteria:
- Are agent action logs immutable and tamper-evident?
- Do logs capture input parameters, not just function names?
- Is there a correlation ID that links a chain of agent actions back to the originating task?
- How long are logs retained, and does that satisfy your compliance requirements (SOC 2, EU AI Act, ISO 42001)?
- Are logs queryable in a way that supports incident response (e.g., "show me all actions by agent X between 14:00 and 14:30 UTC on date Y")?
The AI agent audit trail guide has a detailed breakdown of what log fields matter for compliance vs. what matters for operational debugging — they're not the same list.
Domain 5: Multi-Agent and Cross-System Trust Boundaries
Single-agent deployments are becoming the minority. Orchestrator agents spawn sub-agents; sub-agents call tool servers; tool servers call external APIs. Each hop is a potential trust boundary violation.
Trust boundary assessment questions:
- When an orchestrator delegates a task to a sub-agent, does the sub-agent inherit the orchestrator's permissions or operate under its own, narrower scope?
- Can a sub-agent be prompted by a malicious tool response to take actions outside its assigned scope (prompt injection)?
- Are MCP servers authenticated and governed, or are they open to any agent that can reach the endpoint?
- Is there a policy that governs which agents can call which other agents?
For multi-agent architectures specifically, the multi-agent system governance architecture article covers how trust propagation works and where it breaks down in practice.
Scoring Your AI Agent Security Posture Assessment: A Maturity Model
Raw checklists are useful, but a maturity model gives you a way to track progress and communicate status to stakeholders. The table below maps each domain to four maturity levels.
| Domain | Level 1 — Ad Hoc | Level 2 — Defined | Level 3 — Managed | Level 4 — Optimized |
|---|---|---|---|---|
| Agent Identity (NHI) | Shared credentials, no rotation policy | Unique credentials per agent, manual rotation | Secrets manager, automated rotation schedule | Short-lived tokens, zero standing credentials |
| Permission Scope | Admin scopes granted by default | Permissions documented but not enforced | Scopes reviewed at deployment; unused permissions removed quarterly | Just-in-time permissions; continuous access review automated |
| Runtime Governance | No action-level controls; agents run freely | Some actions flagged post-execution | High-impact actions require pre-execution approval | Policy engine evaluates every action; fail-closed default |
| Audit Trail | No structured logging | Basic logs with timestamps and function names | Full parameter logging with correlation IDs | Immutable, compliance-ready logs with real-time alerting |
| Multi-Agent Trust | No agent-to-agent policy; full permission inheritance | Sub-agents manually scoped at deployment | Policy rules govern delegation; MCP servers authenticated | Cryptographic attestation of agent identity per hop |
Most teams deploying agents for the first time land at Level 1-2 across all domains. The goal of an initial assessment isn't to reach Level 4 everywhere — it's to identify which Level 1 findings carry the highest blast radius and remediate those first.
How Existing Tools Map to This AI Agent Security Posture Assessment Framework
A common question after running this assessment is: which tools actually cover which domains? The honest answer is that the market is fragmented, and most tools cover only a slice of the framework.
Okta AI Agent Identity handles Domain 1 well — agent identity management within an enterprise IAM infrastructure. It doesn't address runtime action governance or audit trail at the agent action level. If your team doesn't already run Okta enterprise-wide, it's a heavyweight dependency for agent-specific needs. (See the Okta AI agent governance alternative comparison for specifics.)
Astrix Security focuses on non-human identity and OAuth connection security — Domains 1 and 2. It's built for security teams auditing existing integrations, not for developers building new agent capabilities alongside governance controls.
Oasis Security addresses NHI lifecycle management and is designed for CISO-level reporting. Strong on Domains 1 and 4 (identity and audit), lighter on runtime action governance (Domain 3).
Difinity AI intercepts LLM requests and applies policy at the prompt level. This covers a threat vector — prompt injection and data exfiltration through model outputs — but it's not the same as governing agent tool calls. An agent can take harmful actions through perfectly benign-looking prompts.
Handler is designed to cover all five domains in a single managed platform. It gives agents superpowers (web search, B2B data, email, financial market data, and 200+ connectable services) while governing every action through owner-defined policy rules. The identity layer, permission controls, approval workflows, audit logs, and MCP server governance are all included — accessible via API key, MCP server, or CLI without an enterprise sales process. The Try Handler free plan starts at $30/month with a $30 allowance included, which is enough to run a real assessment against production agents.
Running the Assessment: A Practical Six-Step Process
The framework above is useful as a reference architecture. Here's how to actually execute an assessment in a working engineering environment.
Step 1: Enumerate Your Agent Inventory
You can't assess what you can't see. Start by listing every agent or agent-like process in production: scheduled scripts that call LLM APIs, copilot integrations in development tools, autonomous workflows in your product. A surprising number of teams discover shadow agents — AI-powered automations created by individual engineers without security review. According to IBM's 2024 Cost of a Data Breach Report, compromised credentials remain the most common initial attack vector at 16% of incidents; agents expand the credential attack surface significantly.
Step 2: Map Credentials and External Connections
For each agent, enumerate every external API key, OAuth token, and service account it uses. Check where those credentials are stored (environment variables, secrets manager, hardcoded). This is often the most uncomfortable part of the assessment because it surfaces technical debt quickly.
Step 3: Audit Permission Scope Against Actual Usage
Pull access logs from each connected service for the past 90 days. Compare the operations actually called against the permissions granted. Any permission not used in 90 days is a candidate for removal. This step alone typically reduces the permission surface area by 40-60% in teams that haven't previously audited agent scopes.
Step 4: Test Runtime Governance Controls
This is an active test, not a documentation review. Attempt to trigger a high-impact action (send an email to an external address, write a record to a production database) through an agent. Does an approval workflow fire? Does a policy rule block it? Does anyone get notified? If the action completes without any governance touchpoint, you have a Level 1 finding in Domain 3.
Step 5: Validate Audit Trail Completeness
Run a known sequence of agent actions. Then attempt to reconstruct that sequence entirely from logs. Can you identify the exact parameters passed to each tool call? Can you correlate actions across a multi-step task? If you'd struggle to answer "what did agent X do between 2pm and 3pm last Tuesday," your audit trail has gaps that will cause problems during incident response.
Step 6: Score, Prioritize, Remediate
Score each domain using the maturity model table. Prioritize remediations by blast radius: a Level 1 finding in Runtime Governance (agents acting without approval) is higher priority than a Level 2 finding in Audit Trail (logs exist but lack correlation IDs). Create a roadmap with specific owners and timelines, not just a list of findings.
Frequently Asked Questions
How often should we run an AI agent security posture assessment?
At minimum, run a full assessment annually and a targeted review whenever you deploy a new agent capability or connect a new external service. Agents that touch financial systems, customer data, or external communications should be assessed before each significant change in scope. Many teams integrate a lightweight version of Domain 2 (permission scope review) into their quarterly access reviews.
Does this framework apply to agents built with any framework?
Yes. The five domains are framework-agnostic. Whether your agents run on LangChain, OpenAI Agents SDK, Claude Code, Cursor, or a custom implementation, the identity, permission, runtime governance, audit, and trust boundary questions apply identically. What differs is how you instrument each domain — the mechanics of pulling access logs from an OpenAI Assistants deployment look different from a LangChain deployment, but the assessment criteria are the same.
What's the difference between this assessment and a standard SOC 2 or ISO 27001 audit?
Standard compliance frameworks weren't written with AI agents in mind. SOC 2 Trust Services Criteria address logical access, change management, and availability — all relevant, but at a granularity that misses agent-specific risks like runtime action governance and multi-agent trust boundaries. This framework is complementary: passing it puts you in a strong position for compliance audits, but it covers agent-specific controls that compliance auditors won't ask about today (though the EU AI Act is beginning to change that — see the EU AI Act compliance guide for details).
How do we handle agents we don't control directly, like third-party AI features in SaaS tools?
Third-party agents — AI copilots in your CRM, inbox assistants, code review bots — are still part of your attack surface. For these, your assessment focuses on Domains 1 and 2: what credentials do they hold, and what scopes did you grant? Treat them like any other third-party OAuth application. Revoke connections for tools you no longer actively use, and prefer integrations that support granular permission scopes over those that require admin access.
Is there a shortcut for teams that don't have dedicated security engineers?
Focus on Domains 3 and 1 first. Runtime governance — ensuring agents can't take irreversible actions without approval — and credential uniqueness give you the highest risk reduction per hour of effort. You don't need a dedicated security team to implement approval workflows for email-sending or database-writing agents; you need a governance layer that sits between your agent framework and the external services it calls. That's exactly the problem Handler was built to solve, and it's accessible to engineering teams without a security specialist on staff.
Ready to govern your AI agents?
Handler gives your agents superpowers with built-in governance. Start in minutes.
Get Started Free