What is an AI audit? How companies audit AI models, agent actions, decisions and data sources, the audit trail behind them, and how to get audit-ready.

Your AI systems are already making decisions and your agents are already taking actions. The question an auditor will ask is simple: can you prove what they did, and prove it stayed inside the rules? An AI audit is the structured, independent examination that answers that question. A traditional IT or financial audit checks ledgers, access controls, and configurations. An AI audit goes further, into the full AI lifecycle: the data a model learned from, how the model and its outputs behave in production, the actions and decisions an autonomous agent takes, and the controls and human oversight around all of it.
This guide is written for the security, compliance, GRC, and engineering leaders who now answer for AI and autonomous agents in production, and for the auditors who examine them.
One idea runs through all of it. You cannot audit what you did not instrument. AI systems are non-deterministic and agents act on their own, so a once-a-year, point-in-time audit is structurally insufficient. A credible AI audit rests on auditability by design: building identity-bound, tamper-evident evidence into AI systems from the start, so the record exists before anyone asks for it. If you are still defining the policy and oversight layer that sits above the audit, start with our companion guide to AI governance, which covers the policy and regulatory framing in more depth than this page does.
An AI audit, or artificial intelligence audit, is a structured, independent examination of an AI system that checks whether it is trustworthy, compliant, and behaving as intended. It reviews the data, the model and its outputs, the actions autonomous agents take, and the controls and human oversight around them, then reports findings and gaps against a defined standard.
That definition covers a lot of ground on purpose. AI audits can target a single system (a chatbot, a credit risk model, a generative AI feature, or an autonomous agent) or the organizational controls around how AI is built, deployed, and operated. If you need a one-line AI auditing definition, the operative word is evidence: an AI audit produces findings, rates them against a standard, and recommends remediation. A responsible AI audit applies the same method to fairness, transparency, and the impact on the people a system affects, so it usually runs alongside a security or compliance audit rather than replacing it.
Traditional audits assume deterministic systems. The same input produces the same output, and the controls being tested are stable. AI breaks that assumption. The same prompt can produce different outputs, models drift as data changes, and agents take actions that were never explicitly programmed. An AI audit therefore has to examine probabilistic behavior, data provenance, model explainability, and emergent agent decisions, not just whether a control exists on paper.
AI governance is the policy layer. It is the principles, roles, frameworks, and enforcement that decide what AI your organization will and will not do. An AI audit is the verification layer: independent evidence that those policies are actually being followed and that the system behaves within them. Governance defines the rules; the audit checks the receipts.
The two differ on every axis an auditor cares about. Governance answers "what should our AI do?", produces policies, roles, and controls, and is owned by leadership, risk, and legal. The audit answers "is it actually doing that?", produces findings, gaps, and evidence, and is owned by internal and external auditors. A mature program runs both. For the governance, compliance, and regulatory side, see our dedicated guide to AI governance. This page focuses on the audit practice itself.
A definition explains what an AI audit is. It doesn't explain why boards now ask for one, when software audits have existed for decades. Three forces have turned AI auditing from a nice-to-have into a board-level expectation.
Those pressures land on specific parts of an AI system, so defining scope is the first job of any AI audit. Most audits cover five dimensions, weighted by the system's risk and use case: data, the model, code and integrations, agent actions, and the controls around them. Data and the model are where most audits start, and each gets its own section below. The other three are covered here.
An AI agent code audit reviews the agent's code, its tool and API integrations, and the permissions those tools hold. An agent's real-world power comes from the tools it can call. That makes the integration surface the place where the most consequential risk lives, and where an audit so often finds over-broad access.
For autonomous agents, the audit traces what the agent actually did: the actions it took, the decisions behind them, and the identity and permissions it used to act. Every action should be attributable to a specific agent identity. That attribution is what makes after-the-fact review possible.
Finally, the audit assesses the controls around the system: approval workflows, guardrails, incident response, and whether documented policy matches operational reality. For agents, the key control is the human-in-the-loop checkpoint, the point where an agent must stop and ask a person before a high-impact action proceeds.
| Scope dimension | What auditors look for | Evidence |
|---|---|---|
| Data | Provenance, quality, bias, lawful sourcing, security | Data lineage records, dataset documentation, consent records |
| Model | Performance, explainability, drift, robustness | Model cards, evaluation reports, drift monitoring |
| Code & tools | Integration permissions, secure design, over-broad access | Code review, tool/permission inventory, config |
| Agent actions | Attributable actions, decision rationale, access used | Audit trail / action logs tied to agent identity |
| Controls | Approvals, human oversight, guardrails, policy fit | Workflow logs, policy docs, incident records |
To audit an AI model, scope one named model version with an owner and a written purpose, set pass and fail thresholds before testing, then test performance, bias, explainability, robustness, and data leakage on your own representative data. Finish by documenting results in a model card and monitoring the model and outputs for drift in production.
Scope tells you what to examine, and the model is usually where the examination starts. How companies audit AI models has converged on a fairly standard sequence, borrowed partly from banking, where model risk management has been a supervised discipline for more than a decade. US banking supervisors most recently restated it in the Federal Reserve's SR 26-2 guidance on model risk management, issued in April 2026.
Most companies don't train the models they rely on. With a third-party foundation model, you audit the use rather than the weights: run evaluations on your own tasks, review the provider's model documentation, pin the version so the model can't change underneath you, and work through the generative AI risks catalogued in NIST's Generative AI Profile (NIST AI 600-1). The model and outputs are still yours to answer for, even when the training run wasn't.
To audit the data sources AI agents use, inventory every source an agent can read at runtime: retrieval indexes, vector stores, tools, MCP servers, APIs, customer records, and the web. Then verify each source's owner, classification, lawful basis, provenance, and freshness, confirm the agent's access is least-privilege, and log which source shaped each answer.
A model is only as trustworthy as what it reads. For a classic model, that meant the training set. For an agent, retrieval and tool calls pull fresh data into every answer at runtime, so data governance has to cover runtime sources as well as training data. The best practices for auditing AI agent data sources come down to seven checks.
| Check | What auditors verify | Evidence |
|---|---|---|
| Inventory | Every source each agent can reach: indexes, vector stores, tools, MCP servers, APIs, the web | Source register per agent |
| Ownership and classification | A named owner and a sensitivity label for each source | Data catalog entries |
| Lawful basis and consent | A legal basis for using the data, especially customer data | Consent records, processing agreements |
| Provenance and freshness | Where the data came from and when it was last updated | Lineage records, index build logs |
| Access scope | The agent's identity can read only what its task needs | Permission inventory per agent identity |
| Retrieval logging | Which documents or records shaped each answer | Per-answer retrieval logs |
| Integrity | No poisoned or tampered content in indexes and feeds | Ingestion controls, content scans |
Customer data deserves the strictest pass. When an agent can read customer records, the audit should confirm its scope is no broader than the task needs and that every read is logged against the agent's identity. Tools count as data sources too. An agent connected to MCP servers reads whatever those servers return, so each server belongs in the inventory with an owner. (MCP, the Model Context Protocol, is the open standard many agents use to connect to tools and data.)
Integrity is where data audits meet security. OWASP's 2025 Top 10 for LLM applications lists Data and Model Poisoning (LLM04:2025) and Vector and Embedding Weaknesses (LLM08:2025), and both target the retrieval data agents depend on. Our guide to RAG security covers how to protect retrieval pipelines end to end, and our breakdown of attacks on AI agents shows how poisoned content turns into agent actions. Training data still matters, too: for high-risk systems, Article 10 of the EU AI Act sets data governance requirements for training, validation, and testing datasets, including relevance, representativeness, and examination for possible bias.
Companies audit AI agent actions and decisions by tying every action to a distinct agent identity, capturing an immutable audit trail of inputs, tool calls, decisions, and human approvals, and testing that trail against policy. The audit reconstructs what each agent did, who it acted for, and which permission it used, and runs continuously in production.
Auditing the model and its data shows what the system can do. Auditing agent actions shows what it did. The specifics vary by industry and system, but AI agent auditing follows a repeatable methodology, and the same steps work whether you are auditing a customer chatbot's decisions or an internal automation agent's actions. Here is how to audit AI agents end to end.
Steps 3 and 4 are where agent audits differ from model audits. Among the AI agent auditing methods companies rely on, five checks do most of the work:
The same checks apply when the agent is itself a security tool. If you need to audit AI security agent decisions, such as an agent that auto-closes alerts or quarantines endpoints, the questions are identical: who acted, under what authority, and was it inside policy.
Every step in that process depends on one input. An AI agent audit trail is the chronological, attributable record of everything an AI system did and why. It is the single most important input to an AI audit. Without it, an auditor cannot reconstruct what happened, and your assurances are unverifiable. This is the literal meaning of "you cannot audit what you did not instrument."
A useful agent audit trail captures enough to reconstruct the full chain of events (the decision provenance) behind any outcome.
| Field | Why auditors need it |
|---|---|
| Input / prompt | Establishes what the agent was asked to do |
| Output / response | Records what the agent produced or returned |
| Model + version | Ties behavior to a specific model build for reproducibility |
| Timestamp | Orders events and supports retention and SLA checks |
| Agent identity | Attributes the action to a specific, non-human identity |
| Acting for (delegating user) | Shows which person or service the agent was acting on behalf of |
| Tool / API calls | Shows what real-world actions the agent took |
| Decision rationale | Explains why the agent acted as it did |
| Guardrail actions | Records blocks, filters, and policy enforcement |
| Errors | Surfaces failures and anomalies |
| Human approvals / overrides | Documents human-in-the-loop control |
Logs that can be edited are not evidence. Audit trails should be stored in append-only, tamper-evident, and ideally cryptographically verifiable form, so that non-repudiation holds and an auditor can trust the log has not been altered. Store them apart from the agents that write them: an agent with write access to its own log can erase its tracks, by accident or otherwise. ISO/IEC 42001 expects organizations to keep appropriate records of AI performance and decision-making.
Retention is set by regulation, not habit. Under Article 26(6) of the EU AI Act, deployers of high-risk AI systems must keep the logs those systems generate for at least six months, unless other EU or national law provides otherwise, and sector rules in areas such as financial services often require longer. Keep the logs in a hardened environment with restricted administrative access.
Auditing a single model is hard. Auditing a system of cooperating autonomous agents is harder, and it is where most generic AI-audit advice falls short. Two things make it harder: outcomes emerge from many agents rather than one, and every one of those agents has to be identifiable for the trail to mean anything. If you are designing these systems, our guide to AI agent architecture covers the layers and patterns they are built from, which is where that provenance gets created or lost.
In a multi-agent system, an outcome may emerge from many agents exchanging messages, calling tools, and reasoning across steps. To audit this, provenance data can be synthesized into an action provenance graph that links prompts, plans, tool invocations, intermediate reasoning, and outcomes. An auditor can then reconstruct the causal path to any result in a human-interpretable form. Continuous AI observability is what makes that provenance available in the first place.
You cannot hold an agent accountable for an action you cannot attribute to it. Every agent needs a distinct, verifiable identity, a non-human identity, so that each action in the audit trail maps to a specific actor with specific permissions. Agent identity is the foundation that makes the entire audit trail meaningful. Without it, logs are anonymous and unaccountable. When an agent acts for a person, the trail also needs the delegation: which user authorized it, and with what scope. OAuth token exchange (RFC 8693) lets a token carry both the agent and the user it acts for, which is what makes that delegation auditable.
Auditing AI agents for compliance means proving that every autonomous decision was authorized, logged, attributable to an agent and the person it acted for, and reviewable against the obligation it falls under. On employee devices, that also means discovering local agents, routing their tool calls through a governed path, and collecting their logs off the device.
Identity and provenance make autonomous agents auditable in principle. Compliance asks you to prove it, decision by decision, against a named obligation. Maintaining auditability and compliance for autonomous AI decisions starts with knowing which obligations apply: a SOC 2 control, an ISO/IEC 42001 clause, an internal security policy, or a legal duty such as the EU AI Act's requirement that high-risk systems record events automatically. Our EU AI Act compliance guide maps those legal duties obligation by obligation.
Most AI agent compliance workflows follow the same loop:
An AI compliance platform automates parts of this loop, mapping controls to frameworks and collecting evidence continuously instead of before each audit.
Employee devices are where the loop most often breaks. A growing share of agents never touch a server you manage. They run on laptops, act with the employee's own access, and keep their logs, if they keep any, on the device:
Auditing these agents takes five controls. Discover them first, through MDM and EDR inventories and the techniques in our guide to shadow AI discovery, because unsanctioned tools are the norm rather than the exception. Route their tool calls through a governed path, such as a gateway, so each action is attributed to the agent and the employee it acted for. Collect logs off the device, because a laptop log can be deleted, lost, or never written. Apply the same per-action policy you apply to server-side agents. Finally, tell people: where a high-risk AI system is used in the workplace, the EU AI Act requires employers to inform workers' representatives and the affected workers before it is put into use.
One honest caveat: the EU AI Act was not written with endpoint agents in mind, so mapping its logging and oversight duties onto a coding agent running on a laptop is an interpretation. It is a defensible one, but treat it as a judgment your legal team should confirm rather than settled law.
Every obligation in that loop is measured against a standard. Four matter most, and most programs map one set of controls across several of them.
The NIST AI RMF organizes AI risk into four functions: Govern, Map, Measure, and Manage. Its Measure function calls for test, evaluation, verification, and validation (TEVV), which is effectively the audit's testing method. It is voluntary, but it is widely treated as the baseline.
ISO/IEC 42001 is the first international AI management system (AIMS) standard, and it is certifiable: an accredited certification body audits the organization against its clauses, followed by periodic surveillance audits.
AI SOC 2 applies the SOC 2 attestation model to AI systems. SOC 2 is a CPA-firm attestation against the Trust Services Criteria, not a certification. It gives strong assurance over security and data handling but doesn't address bias, explainability, or drift on its own, which is why many organizations pair it with ISO/IEC 42001.
For high-risk systems, the EU AI Act makes record-keeping, logging, and post-market monitoring legal obligations. Obligations for Annex III high-risk systems are scheduled to apply from 2 December 2027, and for high-risk AI in regulated products (Annex I) from 2 August 2028 (implementation timeline).
| Framework | Type | What it audits | Who certifies / attests |
|---|---|---|---|
| NIST AI RMF | Voluntary framework | Risk management, TEVV, traceability | Self / third party |
| ISO/IEC 42001 | Certifiable standard | AI management system (AIMS) | Accredited CAB |
| SOC 2 | Attestation | Security & data controls (Trust Services Criteria) | CPA firm |
| EU AI Act | Regulation | High-risk system obligations | Conformity assessment / regulator |
Frameworks define what an audit measures. The next question is who does the measuring. For most organizations it is a mix of internal teams and independent outsiders, and for systems the public interacts with, regulators can join them.
An AI agent internal audit is usually where AI assurance starts. Internal audit, security, and GRC teams assess readiness, map controls, and run continuous checks before any external party is involved. They own audit-readiness day to day. The Institute of Internal Auditors' AI Auditing Framework gives them a structure built on the IIA's Three Lines Model, and it applies even when the organization only uses AI inside third-party software.
For attestation or certification, an independent third party is required: a CPA firm for SOC 2, or an accredited certification body for ISO/IEC 42001. Their independence is what gives the result external credibility. Our guide to ISO/IEC 42001 covers the standard itself and what its certification audit involves.
Auditing public-facing AI systems, such as customer chatbots, recommendation engines, and AI used by public agencies, falls to three groups: internal audit and risk teams, independent third-party auditors, and regulators. Some audits are mandatory, such as independent bias audits of automated hiring tools in New York City and independent audits of very large online platforms in the EU.
Chatbots are the most common case. To audit an AI chatbot's recommendations, sample real conversations, check answers against approved sources, test for biased or unsafe advice, and confirm the system discloses that it is AI. That last point is now law in the EU: Article 50(1) of the EU AI Act requires providers to ensure people are informed they are interacting with an AI system, unless that is obvious from the context, and the duty has applied since 2 August 2026.
The two mandatory regimes go further. New York City's Local Law 144 requires an independent bias audit before an employer uses an automated employment decision tool, with a summary of the results made public. The EU's Digital Services Act requires very large online platforms, whose recommender systems are public-facing AI at enormous scale, to undergo independent audits under a Commission delegated regulation. Auditing AI chatbots in public affairs and government follows the same pattern, with the added expectation that results can withstand public scrutiny. If you are starting an AI audit program from scratch, a low-risk, high-visibility system such as a customer chatbot is a sensible first target.
AI auditors are AI systems, often AI agents, that perform parts of an audit: testing full populations of transactions instead of samples, reviewing logs, flagging anomalies, pre-checking controls, and scanning code. An AI agent auditor scales coverage, but human auditors still own scope, judgment, and sign-off, and the auditor agent needs its own identity and audit trail.
The previous section treated AI as the thing being audited. Increasingly, it is also doing the auditing. An AI-enabled audit is one where AI is part of the audit method itself, and "AI auditor" now describes both the software and the agents doing that work. Typical uses:
One of the most common versions is AI auditing in software development. AI agents now review pull requests and repositories for vulnerabilities, hardcoded secrets, insecure dependencies, and risky permission changes. That makes the agent code audit a two-way street: AI audits code, and the agents doing the auditing need their own code and permissions audited too.
The limits are real. An AI auditor can invent a finding or miss one, so a human auditor still owns the scope, the judgment, and the sign-off; accountability for an audit opinion sits with people, not tools. Independence matters too: an auditor agent built and run by the team it audits is not independent. And the auditor agent is itself an AI agent touching sensitive data, so give it its own identity, read-only access, and an audit trail of what it examined. Credentials are catching up: ISACA's Advanced in AI Audit (AAIA) certification covers AI governance and risk, AI operations, and AI auditing tools and techniques for experienced auditors.
Whoever performs the audit, human or AI, most audit failures are not surprises. They are predictable gaps that a readiness assessment would have caught. An AI agent readiness audit is a pre-audit self-assessment that checks whether you could pass before an external auditor arrives. Becoming audit ready AI comes down to three things: instrumentation, evidence, and ownership.
A point-in-time audit certifies a snapshot. But AI systems change daily, and an agent that was compliant last quarter may not be today. Auditability by design (instrumenting for evidence from the start) is what enables continuous auditing, where conformance is verified on an ongoing basis rather than reconstructed once a year. Research into continuous AI auditing infrastructure points the same direction. Continuous monitoring is also what keeps you audit-ready between formal audits, and our guide to LLM observability covers the monitoring side for language-model systems.
The audit problem with AI agents is that they act autonomously, non-deterministically, and across many tools, often under shared or borrowed human credentials. Traditional sampling and point-in-time evidence miss what actually happened, so an auditor cannot reconstruct a decision or attribute it to anyone. Most AI audit failures trace back to that gap.
AI auditability is the ability of an independent party to reconstruct and verify what an AI system or agent did, who it acted for, and under which policy, and auditability by design is the practice of producing that evidence at action time. In practice, that means registered agent identities, per-action audit trails, tamper-evident storage, and continuous verification.
Every challenge in the previous section is a symptom of evidence that was never designed in. The practical starting point is registration. Among AI agent registration and auditability best practices, one rule matters most: register every agent before it runs, with a named human owner, a written purpose, its own identity, its permissions, and the data sources it can reach. An unregistered agent is unauditable by definition, because there is nothing to compare its behavior against.
From there, auditability matures in four stages:
Our AI governance maturity model breaks the same journey into five levels of attribution depth if you want a finer-grained self-assessment.
The organizations that pass AI audits without a fire drill are the ones at stage four. That's where an accountability layer comes in: a layer between agents and the systems they act on that ties every agent to a non-human identity and an accountable human owner, and records each action as it happens. If you want to see how this works in practice, Agen.co is built for exactly this. Its agent registry refuses anonymous agents (no owner, no run), flags ownerless agents until someone claims them, and generates a per-action audit trail anchored to identity at action time, including who each agent was acting for. That evidence maps to the SOC 2, ISO 27001, and GDPR expectations your auditors already test. See how Agen.co handles accountability and audit, or book a demo to map it to your environment.
What is an AI audit? An AI audit is an evidence-based review that tests whether an AI system does what its owners claim and stays inside its controls. Auditors look at training and runtime data, model behavior, agent actions, and human oversight, then rate the results against a standard such as the NIST AI RMF or ISO/IEC 42001.
What is the difference between an AI audit and AI governance? AI governance is the policy layer: the principles, roles, and controls that decide what your AI may do. An AI audit is the verification layer that checks, with independent evidence, whether those policies are actually followed. Governance sets the rules and the audit checks the receipts. Our AI governance guide covers the policy side.
How do you audit an AI agent? Start by scoping which agents and data flows are in play, then inventory every agent, including unsanctioned ones. Pull the evidence: audit trails, configurations, permissions, and evaluation reports. Test the agent adversarially, compare what it did against the control set you chose, fix the gaps with named owners, and keep monitoring it after the audit closes.
What is an AI audit trail and what should it log? An AI audit trail is the time-ordered, attributable record of what an AI system or agent did and why. At minimum it should capture the input, output, model version, timestamp, agent identity, tool calls, decision rationale, guardrail actions, errors, and human approvals, stored append-only so nobody can quietly edit it.
Which frameworks apply to AI audits? Four come up most often. The NIST AI RMF is a voluntary risk framework, ISO/IEC 42001 is a certifiable AI management system standard, SOC 2 is a CPA attestation over security and data controls, and the EU AI Act is binding regulation for in-scope systems. Most programs map one control set across several of them.
Is SOC 2 enough to cover AI? Usually not on its own. SOC 2 gives strong assurance over security, availability, and data handling, but its Trust Services Criteria were not written for bias, explainability, model drift, or autonomous agent actions. Many organizations keep SOC 2 for customer assurance and pair it with ISO/IEC 42001 or NIST AI RMF controls for the AI-specific risks.
Who performs an AI audit? Internal audit, security, and GRC teams run readiness checks and continuous testing day to day. Independent third parties provide the external opinion: a CPA firm for SOC 2, an accredited certification body for ISO/IEC 42001, or a mandated independent auditor under some laws. AI tools can assist either group, but humans sign off on the findings.
How often should you audit AI? Formal audits for attestation or certification still run on a fixed cycle: SOC 2 reports are typically renewed every year, and ISO/IEC 42001 certification runs three years with annual surveillance audits. Because models drift and agents change between those dates, leading teams also audit continuously, built on auditability by design, so evidence exists whenever someone asks.
How do you make an AI system audit-ready? Make every AI system and agent visible first, then give each agent its own verifiable identity and a named human owner. Capture tamper-evident audit trails, map your controls to one framework, test guardrails adversarially, retain logs for at least the period your regulators require, and run continuous monitoring so readiness never depends on a pre-audit scramble.
Why do AI agents create an audit problem? Traditional audits assume software that behaves the same way every time and users who log in as themselves. AI agents break both assumptions: they choose their own steps, call tools across many systems, and often run on shared keys or an employee's credentials. Without per-agent identity and action-level logs, nobody can prove which agent did what.
What is an AI agent readiness audit? An AI agent readiness audit is a self-assessment you run before an external auditor arrives. It checks whether every agent is inventoried and owned, has its own identity, writes a tamper-evident audit trail, operates under tested guardrails, and maps to a chosen framework. The output is a gap list with owners and deadlines, not a certificate.
Who can audit an AI chatbot's recommendations? Your own internal audit or risk team can audit a chatbot's recommendations by sampling conversations, checking answers against approved sources, and testing for bias and unsafe advice. Independent third-party auditors can provide an external opinion, and regulators can examine chatbots in regulated sectors. In the EU, users generally must also be told they are talking to AI.
Keep reading
ISO/IEC 42001 is the certifiable standard for an AI management system. What clauses 4-10 and the 38 Annex A controls require, and how certification works.
Written by
Agen.co
ISO/IEC 23894 is the international standard for AI risk management. Learn what it covers, how it maps to NIST AI RMF and ISO 42001, and how to put it to work.