Est.

Seven Security Tests Every Enterprise AI Deployment Must Pass

Seven runtime checks separate real AI governance from policy paperwork.

· 10 min read · Updated
Cover illustration for “Seven Security Tests Every Enterprise AI Deployment Must Pass”
AI Security Strategy · September 26, 2026 · 10 min read · 2,167 words

Enterprise AI deployment isn't a launch, it's an ongoing bet that whatever you shipped last quarter still behaves the way you think it does. Seven tests decide whether that bet pays off: shadow AI detection, prompt injection defense, data leak prevention, agent identity and access control, MCP server management, audit logging, and the runtime enforcement layer that ties all six together. Most enterprises can point to policy documents covering all seven. Far fewer can point to a system that actually checks them at runtime, every time an AI agent tries to do something.

Controls standard pre-launch checklists miss for AI

Gartner expects task-specific AI agents inside 40% of enterprise applications by the end of 2026, up from under 5% in 2025. That's not gradual growth, that's a phase change, and most security programs are still staffed and structured for the old phase.

The numbers on the ground make the mismatch concrete. 96% of enterprises already run AI agents in some form, and 82% have agents or workflows their own security team never signed off on or even knew about. That's not a rounding error in an otherwise sound program, that's most of the fleet operating outside the fence.

The average Fortune 500 company ran under 15 AI agents in 2025, and most governance models weren't built for the scale coming next. The average Fortune 500 company ran under 15 AI agents in 2025. Gartner puts the coming number above 150,000. A governance model built to review 15 agents by hand, in meetings, with a spreadsheet, does not bend to fit 150,000. It breaks, quietly, and nobody notices until something else breaks louder.

The root failure is almost always the same one: governance gets treated as a writing exercise. Somebody drafts a policy, circulates it, gets sign-off, and calls it done. But a policy is not a control. A control is a checkpoint that every request has to pass through, whether or not a human is watching. Without that checkpoint, the policy is just a nicely formatted description of what was supposed to happen.

Diagram: From 15 to 150,000: The Agent Governance Gap. Visualizes: Show the scale contrast between where enterprises are today and where they are heading: the average Fortune 500 company ran under 15 AI agents in 2025, while Gartner projects that…

Test 1: Shadow AI detection, finding what your security team does not know is running

Start here, because nothing downstream matters if you can't see what's running. 98% of organizations report some form of unsanctioned AI use, and 49% expect a shadow AI incident inside the next year. More strikingly, 38% of employees admit to sharing sensitive work data with AI tools without any employer approval. People aren't hiding this out of malice, they're hiding it because ChatGPT is faster than the internal tool nobody trained them on.

That gap costs money in a very specific way. Shadow AI breaches run $670,000 higher than standard breach costs on average, and take 247 days to detect versus 241 for a standard incident, which is itself already too slow. When shadow AI breaches do happen, they hit hard: customer PII shows up in 65% of incidents. This is not a compliance footnote, it's a direct hit to the two categories of data that boards actually ask about.

Passing this test means answering a short set of concrete questions. Can security enumerate every agent running right now, its deployment environment, what codebase it came from, and who owns it? Is anyone watching OAuth consent grants inside managed browsers as a signal for agents nobody registered? And does the control plane surface unsanctioned tools as they appear, rather than waiting for a quarterly scan to stumble across them?

A passing program has a live inventory covering every tool and model in use, including the ones employees adopted on their own initiative. It runs through four stages: Discovery, Scope, Runtime Monitoring, and Active Containment. And it has an interim acceptable use policy already published, paired with a risk classification scheme that automatically flags new or high-impact AI projects for review rather than waiting for someone to remember to ask.

Test 2: Prompt injection defense, verifying the agent cannot be hijacked by its inputs

Prompt injection is at the top of the OWASP Top 10 for LLM Applications, and it earned that spot. Documented attempts against enterprise AI rose roughly 340% year over year in late 2025, a growth curve that used to belong to ransomware.

The scarier trend is what kind of injection is winning. Indirect attacks, meaning instructions buried inside an email, a document, or a web page rather than typed straight into a chat box, now make up more than 55% of incidents, and they succeed at rates 20 to 30% higher than direct attempts. The agent is being tricked by the document the user asked it to summarize, not by the user. It's being tricked by the document the user asked it to summarize.

Two CVEs from the current cycle make the stakes plain. CVE-2025-53773, CVSS 7.8, hid a prompt injection inside source code, README files, or documentation and used it to achieve remote code execution through GitHub Copilot. CVE-2025-32711, CVSS 9.3, nicknamed EchoLeak and found by Aim Security, needed zero clicks: a crafted email carried hidden instructions into Microsoft 365 Copilot and quietly pulled sensitive corporate data out to a server the attacker controlled.

OpenAI's own response is instructive precisely because it doesn't promise a fix. Lockdown Mode for ChatGPT rolled out to enterprise plans in February 2026, with a broader release following in June 2026, and the company said that prompt injection in AI browsers "is unlikely to ever be fully 'solved.'" No single filter, model update, or sandbox closes this gap. Passing this test isn't about eliminating the risk, it's about proving there's a layered defense in place and a plan for the attacks that get through anyway.

Test 3: PII and secrets leakage prevention, confirming sensitive data cannot escape through the AI layer

Cisco's 2025 AI security research found that 46% of organizations have already had an internal data leak through a GenAI tool. The heavier number is the 83% who lack even basic controls around GenAI data handling.

Coding agents make this worse in a specific, mechanical way: they commit code with embedded credentials more often than human developers do, not occasionally, but as a pattern. That's not a hypothetical risk to plan around someday, it's a reason every pull request an agent opens needs secret scanning before merge, full stop, no exceptions for "it's just a small change."

The test probes a handful of concrete checkpoints. Are pre-receive hooks or required status checks actually configured in GitHub, GitLab, or Bitbucket to block a merge the moment a secret appears? Is every tool call logged with full input and output at the infrastructure layer, not the application layer, since a compromised agent can rewrite its own application logs but can't touch what infrastructure captured underneath it? Are sensitive fields masked before they ever land in an observability trace? And are traces generated in regulated jurisdictions actually stored where that jurisdiction's regulator allows?

Passing looks like PII detection running in real time on every agent output. Every guardrail decision, and every override of a guardrail decision, lands in the audit trail. Secret scanning sits as a hard merge gate that no one can skip when they're in a hurry.

Test 4: AI agent identity and RBAC, ensuring each agent is who it claims to be and can only do what it is allowed to do

Only 34% of organizations apply the same security controls to AI agents that they apply to human employees. 91% have agents in production. Just 10% have a formal strategy for managing non-human identities. Nine out of ten companies deployed the thing before they built the fence around it.

The reason legacy identity tools fail here isn't complicated. Traditional IAM, IGA, and PAM systems were built around how humans log in: slowly, a handful of times a day, from recognizable locations. Agents don't behave that way. They fire off high-frequency, autonomous actions at machine speed, and a system tuned for human login patterns simply wasn't built to notice when that speed and volume turns hostile.

The JADEPUFFER agentic ransomware attack, covered by Sysdig, shows what happens when nobody closes that gap. An AI agent used a vulnerable Langflow instance as its entry point, then used over-privileged credentials it should never have had to run a complete ransomware chain start to finish. The model wasn't the vulnerability. The absence of a governed identity layer was.

The infrastructure to fix this is arriving in real time. Microsoft's Entra Agent ID hit general availability in May 2026, extending Conditional Access, Identity Protection, and Privileged Identity Management to cover non-human identities the same way they cover employees. Okta for AI Agents and Auth0 for AI Agents now let enterprise-owned agents get registered, governed, and managed through a full lifecycle rather than spun up ad hoc. Okta's Agent Gateway sits between an agent and the tools it wants to touch, checks both the agent's identity and the human context behind it, and hands out short-lived credentials instead of standing access: the Gateway acts as the enforcement point while the identity platform makes the actual policy decisions upstream.

At Oktane 2026, Okta pulled these pieces into a formal agent identity stack: the XAA protocol integrated into MCP, Agent Gateway serving as the runtime enforcement point, and Agent SSO folded into the core platform rather than sold as an add-on. XAA now has native integrations across more than 25 major cloud, developer, and enterprise SaaS platforms. On the standards side, a token exchange model (Identity Assertion JWT Authorization Grant, chained through RFC 8693 token exchange into a short-lived scoped assertion, redeemed via RFC 7523) reached revision 04 in the IETF process on May 21, 2026. It's an active Internet-Draft on the OAuth working group's standards track, not a ratified RFC yet.

Test 5: MCP server management, auditing the tool layer that agents use to reach enterprise systems

MCP is the plumbing agents actually use to reach into enterprise systems, and the protocol's own 2026 roadmap admits it doesn't handle governance on its own. Audit trails, enterprise-managed auth, and gateway or proxy patterns are all listed as open gaps, not solved problems. The protocol moves tool calls around. It doesn't watch them.

Running a fleet of MCP servers without a gateway in front of them causes a predictable failure mode: security policy fragments server by server, permissions drift out of sync, visibility into what agents are actually doing collapses, and operational overhead climbs with every server added. Each unmanaged MCP server is its own quiet access point, with its own rules or lack of them.

A proper MCP gateway centralizes what would otherwise scatter. Authentication and authorization are centralized, with per-user identity carried through to every downstream call. Tool-level controls, allow-lists, deny-lists, role-based filtering, decide what an agent can even attempt. Every tool suggestion, approval, and execution gets logged. Traffic across multiple downstream MCP servers gets routed and aggregated in one place instead of ten. Metrics, logs, and distributed traces give observability that a single ungoverned server never could. And the gateway watches for tool poisoning, rug-pull attacks, and shadow MCP usage the same way a network firewall watches for scanning traffic.

Several named products already work this layer. TrueFoundry's MCP Gateway focuses on raw throughput and low-latency routing for enterprise agent traffic. Several other vendors offer their own take on the enterprise MCP gateway pattern. Lasso Security takes a security-first angle specifically, with PII leakage prevention built through a Presidio integration and security-focused controls over agent-tool interactions, making it one of the more direct answers to prompt injection and sensitive data exposure inside agent-tool interactions. The Unified Context Layer and Workato round out the field, each solving some slice of the same underlying problem: the protocol gives agents a door, someone still has to decide who gets a key.

Test 6: Audit log coverage and integrity, confirming every AI action leaves a tamper-evident record

Log every tool call with full input and output at the infrastructure layer, never only at the application layer. An agent that's been compromised can edit its own application logs to cover its tracks. It can't touch what infrastructure captured beneath it. That layer is where the record has to live if it's going to mean anything under scrutiny.

Regulation has caught up to this point. The EU AI Act's Article 50 transparency obligations took effect August 2, 2026, and audit-ready logs are now a compliance artifact regulators can ask for directly. A tamper-evident log is now a compliance artifact that regulators can ask for directly.

Put the six tests together and none of them work in isolation. Shadow AI detection tells you what's out there. Identity and RBAC decide what each thing is allowed to touch. MCP governance controls how it reaches enterprise systems. Prompt injection defense and leak prevention keep its inputs and outputs honest. Audit logging is the record that proves all five of the others actually held. Skipping one means the other five are describing a system that no longer matches the one actually running in production.

Sources

  1. speakeasy.com
  2. iansresearch.com
  3. learn.microsoft.com
  4. netwrix.com
  5. unseensecurity.ai
  6. sysdig.com
  7. securance.com
  8. appscale.blog

More in AI Security Strategy