Deckard, Scan for Rogue AI Agents
Arthur

How to Run an Internal Audit of Your AI Agents

November 10, 20266 min read

Internal audit cannot give assurance over something it cannot sample. An AI agent audit tests four things: whether the agent inventory is complete, whether each agent has a named owner and a documented approval, whether its access is scoped to least privilege, and whether someone is monitoring its behavior and keeping evidence. Start with completeness. Every other test samples from a population, and if management cannot produce a complete population, the sample is already broken.

That makes the first audit step unusual. Before you test any control, you test whether the list of agents you were handed is the real list. Most of the time, it isn't.

Why agents break the usual audit approach

The standard assurance method is to pull a change record and trace it: who requested the system, who approved it, who deployed it, what controls apply. That works when every system enters production through a gate you can audit.

Agents don't. A developer installs an agentic coding tool on a laptop and gives it shell and filesystem access by lunchtime. A product team stands up an agent on Vertex AI Agent Engine or AWS Bedrock without filing a ticket. A business user wires a vendor's agent into a workflow through a SaaS integration nobody reviewed. None of these generate a change record, so there is nothing to pull and nothing to trace.

The scale makes it worse. Gartner reported in April 2026 that only 13% of organizations believe they have the right governance for AI agents, and listed "build a centralized agent inventory" as a core step in managing agent sprawl. IBM's 2025 Cost of a Data Breach found 63% of organizations had no AI governance policies at all, and that 97% of organizations with an AI-related incident lacked proper AI access controls. When the governed population is unknown, "we reviewed the agents on the list" is not assurance. It is a description of the list.

Scoping the audit

Define the agent classes in scope before you test anything. Three cover most environments:

  • Endpoint agents. Agentic coding tools, autonomous local agents, and AI browser extensions running on laptops, VMs, and dev boxes. These carry real access to source code and local systems and almost never pass through a review gate.
  • Cloud agent platforms. Agents deployed on managed services such as Vertex AI Agent Engine, AWS Bedrock agents, and Bedrock AgentCore runtimes. Each cloud console sees only what runs inside it.
  • Workloads calling model APIs. Services and jobs that call an LLM provider or an internal gateway, whether or not anyone registered them as an "agent."

Anchor the scope to a recognized framework so the work program survives review. The IIA's Artificial Intelligence Auditing Framework, updated in 2024, is built on the Three Lines Model and gives internal audit a practitioner checklist for assessing AI governance maturity, identifying AI risks, evaluating controls over data and cybersecurity, and providing assurance over AI-enabled processes. Practitioner guidance on applying it (Weaver) starts in the same place this audit does: identify where AI is already in use. The NIST AI RMF MAP function, the EU AI Act, and ISACA guidance all treat a maintained AI inventory as foundational, a point the Cloud Security Alliance reiterated in its May 2026 research note on shadow AI.

Test 1: completeness

Ask management for its agent inventory. Then produce an independent one and compare.

The independent inventory is the part auditors usually lack the tooling for. You need a view that reads across endpoints, cloud platforms, and network logs rather than trusting a spreadsheet someone maintains by hand. Any agent that appears in your independent scan but not in management's inventory is a finding. So is any agent in management's inventory that no scan can confirm is still running, because stale inventories fail the same completeness test from the other direction.

Record the comparison as evidence: the two populations, the delta, and the method you used to generate the independent one. That delta is the single most useful number the audit will produce. It tells management, in one figure, how far their governed population is from their real one.

Test 2: coverage

A scan that returns zero unknown agents can still fail. The question is whether the scan could see everything it was supposed to see.

Coverage gaps are findings in their own right. A device that never reported to your discovery tooling is a machine where unmanaged agents could run invisibly. A cloud account the scan was refused is a region of the estate you have no assurance over. If your independent inventory covers 70% of endpoints and three of eight cloud accounts, your completeness test only ever spoke to that 70% and those three accounts. The rest is unexamined, and the working papers should say so plainly.

Treat blind spots as evidence, not as noise to clean up. "We could not read these 40 machines and were denied access to these two accounts" is a precise, defensible finding. It points management at exactly what to fix before the next re-test.

Tests 3 and 4: ownership, approval, and access

Once you have a confirmed population, sample from it and test the controls that matter.

Ownership and approval. For each sampled agent, is there a named human accountable for it, and is there a documented approval that predates its deployment? An agent without an owner is an agent nobody is answerable for, which is the condition most likely to turn a minor incident into an unmanaged one.

Access and permissions. For each sampled agent, what can it read, what can it write, and what tools can it call? Test against least privilege. An agent with broad standing access to customer data or the ability to update production systems it never needs is a finding regardless of how well it behaves today. IBM's finding that 97% of organizations with an AI incident lacked proper AI access controls is the risk this test exists to catch.

Both tests depend entirely on Test 1. A clean access review over an incomplete population is a false comfort, which is why completeness comes first and the sample is drawn only after coverage is understood.

Writing the finding

Write agent findings the way you write any finding: condition, criteria, cause, effect, recommendation. A worked example from the completeness test:

  • Condition. An independent scan identified 214 AI agents across cloud platforms and endpoints. Management's inventory listed 148. Of the 66 not on the inventory, 9 had write access to production data stores.
  • Criteria. The IIA AI Auditing Framework and internal policy require a complete, maintained inventory of AI systems with an accountable owner for each.
  • Cause. Agents enter the environment through laptops, cloud consoles, and business-user integrations that bypass the change-management process. No automated discovery runs between the quarterly manual inventory updates.
  • Effect. 66 agents, including 9 with write access, operate without an owner, documented approval, or access review. Unknown agents cannot be monitored, and incidents involving them cannot be attributed.
  • Recommendation. Implement continuous, automated agent discovery across all endpoint and cloud environments. Reconcile discovered agents against the inventory on a defined cadence. Assign an accountable owner to every confirmed agent and bring unowned agents under governance.

Keep the effect concrete and quantified. "66 agents, 9 with write access" moves a remediation conversation that "gaps in inventory coverage" never will.

Making it repeatable

A point-in-time spreadsheet is stale the day after you file. New agents appear daily, so the population you audited in Q1 does not describe Q2.

The durable version of this control is continuous discovery feeding the system your security team already works in. Scans run on a schedule, every discovered agent lands in the SIEM as an event, and new or unowned agents raise alerts the same way any other security signal does. Re-test on a cadence rather than once a year, and treat the health of the discovery sensors as a control itself. A scanner that silently stops reporting produces the same blind spot as a machine that was never covered, so sensor health belongs in the audit scope alongside the agents.

Where Deckard fits

An independent population check is the one capability most audit teams don't have on hand. Arthur Deckard is built for exactly that step. It is free and open source, read-only, and runs entirely inside your environment, so it fits the independence and least-disturbance constraints an auditor works under.

Deckard scans across the classes this audit cares about. It reads cloud AI platforms (Vertex AI Agent Engine, AWS Bedrock agents and AgentCore), endpoints (through Jamf Pro, AWS EC2, Google Compute Engine, or a local scan), and network and gateway logs, then sends every agent it finds to Elasticsearch, Splunk, or any webhook as a discrete event. It reports its own blind spots the same way: failed sources, denied cloud scopes, and unreadable devices each arrive as events, which is what makes the Test 2 coverage finding possible instead of assumed.

State the limits plainly, because an audit tool misrepresented is worse than none. Deckard's endpoint discovery covers macOS and Linux today, not Windows, so a Windows-heavy estate needs a complementary method for that class. And Deckard inventories agents; it does not test whether an agent has an owner, an approval, or least-privilege access. It produces the population. The auditor still runs Tests 3 and 4 against it. Ownership workflow, policy enforcement, and evidence retained over time are the Arthur Platform, not the open-source scanner. Deckard helps you find agents. It does not make anyone compliant.

FAQ

Who owns the agent inventory, first or second line? Management owns it. The first line builds and runs agents and should maintain the inventory as an operational record; the second line sets the policy the inventory has to meet. Internal audit, the third line, owns neither. Its job is to independently test whether the inventory management maintains is actually complete. Keeping that separation intact is what lets audit give assurance rather than co-sign a list it helped build.

How often should we re-test? More often than annually. Agent populations change weekly, so a yearly point-in-time test describes a world that no longer exists by the time the report circulates. Continuous discovery with a scheduled reconciliation, quarterly at a minimum for higher-risk environments, keeps the population current and turns the audit into a monitored control instead of a once-a-year photograph.

Does this replace an ISO 42001 or SOC 2 audit? No. This is internal audit's own work program for giving assurance over AI agents. ISO 42001 certification and SOC 2 are separate external exercises with their own scope and auditors. A complete, tested inventory is foundational evidence for both, which is why doing this work first makes those engagements easier, but it does not substitute for either.

Internal audit's first job with AI agents is to find out whether anyone can produce the population at all. Run the completeness test, report the coverage gaps, and only then sample for ownership and access.

Book a demo to see how Arthur governs agents after you find them, or start with the open-source scanner at github.com/arthur-ai/deckard.

Related reading on the Arthur blog

‍

SHARE