Nov 18 2026

Your Agents Already Have Keys. Do You Know Which Doors They Open?

Category: AI,AI Agent,AI Risk — disc7 @ 1:34 pm

Where Organizations Should Start With Their AI Agent Security

Nov 18, 2026 · @disc

Your agents already have keys. Do you know which doors they open?

A chatbot answers. An agent acts.

It reads your inbox, queries your CRM, opens a ticket, pushes a config change, and calls another agent to finish the job. Often with a service account nobody remembers creating.

That shift changes the security question. It is no longer “what did the model say?” It is “what did the agent do, with whose authority, and could we have stopped it?”

Most organizations I talk to are not short on frameworks. They are short on a starting point. So here is the one I use with clients: five steps, in order, each one producing evidence you can show an auditor or a board.

  1. Discover where AI is being used
  2. Understand what it can access
  3. Get runtime visibility and control
  4. Test AI before you deploy it
  5. Make agents accountable

Skip step one and every step after it is guesswork. You cannot secure an agent you don’t know exists.

The five-step baseline for AI agent security

In my last post I argued that an agent is only as secure as its harness: the tools, identity, memory, and orchestration wrapped around the model. This post answers the follow-up question I got most: fine, but where do we start?

Start here. Each step below names the risk, the threats (mapped to the OWASP Top 10 for Agentic Applications), the control, and the evidence. Evidence is the part most programs skip. If the artifact doesn’t exist, the control doesn’t either.

01 — Discover where AI is being used

You can’t secure an agent you don’t know exists. And in most organizations, agents arrive sideways: a SaaS vendor flips on an “AI assistant” by default, a developer wires a coding agent to the repo, a sales rep connects a meeting recorder to the CRM.

None of them went through intake. All of them have credentials.

  • Risk: Shadow agents operating outside any risk assessment, with no owner and no review date.
  • Threats: ASI04 Agentic Supply Chain Vulnerabilities (unvetted MCP servers, plugins, skills); ASI03 Identity & Privilege Abuse (orphaned service accounts and API keys).
  • Control: A living agent inventory fed by more than a survey. Pull from SSO and OAuth grant logs, API gateway traffic, cloud billing, browser extension inventories, and vendor release notes. Make AI intake a gate in procurement and change management.
  • Evidence: An agent register with owner, business purpose, model and version, risk tier, and next review date for every entry. Plus the discovery queries you ran and when.

02 — Understand what it can access

Once you know an agent exists, the next question is blast radius. What can it read? What can it write? What can it call? Whose identity does it act under?

The most common finding in my assessments is not a clever attack. It is an agent running on a shared, long-lived API key with far more access than its job requires.

  • Risk: Excessive agency. An agent with production write access, a payments API, and an email tool is one prompt injection away from a very bad day.
  • Threats: ASI02 Tool Misuse & Exploitation; ASI03 Identity & Privilege Abuse; ASI06 Memory & Context Poisoning (what data and memory the agent can read is what an attacker can poison).
  • Control: Give every agent its own workload identity. Scope credentials to the task and make them short-lived. Map each agent’s tools, data classes, MCP connections, and memory stores. Then tier it: assistive, controlled action, privileged autonomous, or high-impact.
  • Evidence: An Agent Security Profile per agent: identities, tools, data classes, external connections, maximum action impact, and an access review signed by a named owner.

03 — Get runtime visibility and control

A policy that says “agents must not exfiltrate data” is a wish. A gateway that blocks an unapproved destination is a control.

Runtime is where the agent actually does things, so it is where security has to live. That means seeing every tool call and being able to say no to the ones that break policy, before they execute.

  • Risk: Agents acting on attacker-controlled instructions with nobody watching and nothing able to stop them.
  • Threats: ASI01 Agent Goal Hijack (indirect prompt injection through emails, documents, web pages); ASI05 Unexpected Code Execution; ASI08 Cascading Failures across chained agents.
  • Control: Route tool calls through a policy enforcement point outside the model. Allowlist tools and destinations. Validate parameters. Set rate and transaction limits. Require human approval for high-impact actions. Build a kill switch and test it.
  • Evidence: Tool-call logs tied to agent identity, policy decision logs (allowed and denied), alert history, and a dated kill-switch test record.

04 — Test AI before you deploy it

We don’t ship web apps without testing them. Agents get shipped on a demo that went well.

A good demo tells you the agent works when everyone is friendly. Testing tells you what it does when someone isn’t.

  • Risk: Unknown failure modes discovered in production by customers or attackers.
  • Threats: All ten OWASP ASI categories, with priority on ASI01 Goal Hijack, ASI02 Tool Misuse, ASI06 Memory Poisoning, and ASI07 Insecure Inter-Agent Communication. MITRE ATLAS gives you adversary techniques to build scenarios from.
  • Control: A pre-deployment gate. Run direct and indirect prompt injection, tool parameter manipulation, privilege escalation, poisoned RAG and memory, malicious MCP server, and data exfiltration tests. Re-run them as regression tests whenever the model, prompt, tools, or permissions change.
  • Evidence: Test plans, red-team results with severity, remediation tickets, retest results, and the go/no-go decision with who signed it.

05 — Make agents accountable

When an agent does something wrong, “the AI did it” is not an answer a regulator, a customer, or a board will accept.

Every agent needs a human who owns its purpose, its permissions, and its outcomes. And every material action needs a trail that lets you reconstruct who authorized what.

  • Risk: No one owns the outcome, so no one fixes the cause.
  • Threats: ASI09 Human-Agent Trust Exploitation (rubber-stamp approvals); ASI10 Rogue Agents (behavior that drifts outside its mandate and nobody notices).
  • Control: A named business owner and technical owner per agent. Formal risk acceptance for privileged agents. Human oversight that is a real review, not a checkbox. Reassessment triggers on any model, tool, or permission change. An incident response playbook written for agents.
  • Evidence: Ownership records, risk acceptance sign-offs, oversight logs showing what the reviewer saw and decided, reassessment history, and incident drill results.

The baseline at a glance

AI agent security baseline · 5 steps, each with its evidence

Read it left to right: each step depends on the one before it, and each leaves an artifact you can show an auditor. The loop at the bottom is the part most programs forget.

How the five steps map to the frameworks you’re already using

None of this needs a new framework. It is the agent-specific way to operate the ones you already have.

StepOWASP Agentic Top 10ISO/IEC 42001NIST AI RMFEU AI Act
01 DiscoverASI03, ASI04Cl. 4.3 scope; Annex A.4 resources (AI system inventory)GOVERN 1.6 (AI inventory); MAP 1Art. 6 classification; Art. 26 deployer duties
02 AccessASI02, ASI03, ASI06Cl. 6.1.2 risk assessment; Annex A.7 data for AI systems; A.10 third-partyMAP 3–4 (capabilities, third-party risk)Art. 10 data governance; Art. 15 cybersecurity
03 RuntimeASI01, ASI05, ASI08Cl. 8.1 operational control; Annex A.6.2.6 operation and monitoring; A.6.2.8 event logsMANAGE 2–4; MEASURE 2.7 (security)Art. 12 record-keeping; Art. 14 human oversight; Art. 72 post-market monitoring
04 TestASI01–ASI10Annex A.6.2.4 verification and validation; Cl. 8.2 risk assessmentMEASURE 1–2 (TEVV)Art. 9 risk management (testing); Art. 15 robustness
05 AccountableASI09, ASI10Cl. 5.3 roles; Annex A.3.2 roles and responsibilities; Cl. 9–10 evaluation and improvementGOVERN 2 (accountability); MANAGE 4Art. 14 oversight; Art. 73 serious incident reporting

Verify clause, subcategory, and article references against the current texts before using this in an audit. EU AI Act obligations depend on your role (provider or deployer) and the system’s risk classification.

Why this is worth getting right

I don’t write about agent security because I want organizations to slow down. I write about it because the upside is real and worth protecting.

Agents that triage patient messages free clinicians for patients. Agents that comb through research literature speed up science. Agents that watch logs around the clock catch intrusions humans would miss at 3 a.m. Agents that handle routine paperwork give small teams the reach of large ones.

Every one of those benefits depends on trust. One high-profile agent incident, an exfiltrated data room, a wrong payment, a deleted production database, sets back adoption for everyone.

Security is what lets agents earn more autonomy, not what takes it away.

What I’ve seen in the field

When I led Virtual Data Room through ISO/IEC 42001 Stage 2 certification on the first audit attempt, the environment was a financial data room. Controls there get tested hard, because the data is M&A material and the auditors know it.

The MCP Governance Standard I wrote for ShareVault came from the same five questions in this post. Which agent connections exist? What can each reach? Who approved it? How do we see and stop it? Who owns it?

Three patterns show up again and again, at ShareVault-sized companies and larger ones:

  • Shadow AI that skipped intake. The riskiest agent is usually the one nobody registered, because it also never got scoped, tested, or monitored.
  • Oversight as a checkbox. “Human in the loop” means little if the record shows only an approval click. Real oversight leaves a log of what the reviewer saw, what they changed, and why.
  • No retirement plan. Agents get deployed. They rarely get decommissioned. Their credentials outlive the project, and the pilot from last spring still has a live token.

None of these are exotic. All of them are fixable with the five steps above.

My perspective: where agent security stands today

Here is my honest read, as of late 2026.

Adoption is running well ahead of control. Agents are being deployed at the speed of a SaaS toggle. Security is moving at the speed of a policy review cycle. That gap is where incidents come from.

We are still securing the model instead of the agent. Too much effort goes into system prompts that say “never do X.” A prompt is an instruction, not a control. The model can be talked out of it. A policy engine sitting outside the model cannot.

Identity is the weakest link. Most agents I review don’t have their own identity. They borrow a human’s OAuth token or share a service account. When something goes wrong, the logs can’t tell you whether a person or an agent did it. Non-human identity is now the front line.

MCP and agent-to-agent connections are the new supply chain. Teams install MCP servers the way they once installed browser extensions: quickly and without review. Every connection is a trust decision, and most are being made by default.

Testing is still demo-driven. Very few organizations run adversarial tests before go-live, and fewer re-run them when the model or tools change. An agent that passed last quarter’s review may be a different agent today.

The good news: the frameworks have caught up. The OWASP Top 10 for Agentic Applications, ISO/IEC 42001, and the NIST AI RMF give us a shared language. What’s missing is execution, not guidance.

How to improve it, starting this quarter

  1. Give every agent its own identity. Short-lived, scoped credentials. No shared keys. No borrowed human tokens. This one change makes steps 02, 03, and 05 possible.
  2. Move authorization out of the prompt. High-impact actions get approved by a policy engine or a human, never by the model’s own judgment. Practice least agency, not just least privilege.
  3. Treat MCP servers, plugins, and skills like third-party software. Approved registry, version pinning, vendor review, and the ability to revoke fast.
  4. Make testing continuous. Every change to the model, prompt, tools, or permissions triggers the regression suite. Red-team at least before launch and after major changes.
  5. Log for reconstruction, not just debugging. Can you replay what the agent saw, decided, called, and changed? If not, you can’t investigate an incident or defend one to an auditor.
  6. Define the off switch before the on switch. Kill switch, credential revocation, and rollback, tested and dated, before any privileged agent goes live.
  7. Govern it as a management system. Agents change weekly. A one-time assessment ages fast. ISO/IEC 42001 gives you the loop: assess, treat, monitor, improve, repeat.

The organizations that get this right won’t be the ones with the fewest agents. They’ll be the ones that can say, for every agent, what it is, what it can touch, what it did, and who answers for it.

Free tool: find out where your agents are exposed

If you read the five steps and weren’t sure how you’d score, start with the DISC InfoSec AI Vulnerability Scorecard. It’s free and gives you a quick, honest view of where your AI systems are exposed.

What you get:

  • A score across the AI security areas that matter for agents
  • A view of your weakest areas, so you know which step to start with
  • A report delivered to your inbox that you can share with your team

How to read your results through this post: if your lowest scores sit around inventory and ownership, start at step 01. You’re securing agents you can’t see. If they sit around access and logging, jump to steps 02 and 03. That’s where your blast radius lives.

Take the free AI Vulnerability Scorecard → AI Vulnerability Scorecard: Discover Your AI Attack Surface Before Attackers Do

How DISC InfoSec can help

ServiceSteps coveredBest for
AI Governance Gap Assessment01, 02, 05Teams that need a fast baseline of where they stand against ISO/IEC 42001 and the NIST AI RMF
AI Agent and Application Security Assessment02, 03, 04Teams putting agents, MCP servers, or AI features into production
AI Governance Quick-Start (7–10 days)01, 02, 05Organizations that need an agent inventory, risk tiers, and ownership in place quickly
ISO/IEC 42001 AIMS Implementation01–05B2B SaaS and financial services firms facing customer or regulatory AI governance deadlines
vCAIO / vCISO Retainer01–05, ongoingLeadership teams that want an experienced practitioner running the program continuously

See all services and free tools on the AI Governance page, or book a free call.

DISC InfoSec (Deura Information Security Consulting LLC) is a boutique AI governance and cybersecurity consultancy in Petaluma, California, serving B2B SaaS and financial services firms. We are a PECB Authorized Training Partner. Hugh “Disc” Deura, Principal Consultant, holds the CISSP, CISM, ISO/IEC 42001 Lead Implementer, and ISO/IEC 27001 Lead Implementer credentials, and led ShareVault through ISO/IEC 42001 Stage 2 certification on the first audit attempt. Contact: info@deurainfosec.com · (707) 998-5164 · calendly.com/hd-deurainfosec

Sources

  • “Where organizations should start” five-step graphic (supplied image)
  • OWASP Top 10 for Agentic Applications (OWASP Agentic Security Initiative)
  • ISO/IEC 42001:2023, Artificial Intelligence Management System
  • NIST AI Risk Management Framework 1.0 and NIST AI 600-1 Generative AI Profile
  • EU AI Act, Regulation (EU) 2024/1689
  • MITRE ATLAS
  • Previous DISC InfoSec post: “Your AI Agent Is Only as Secure as Its Harness“

DISC Infosec AI Services and additional free tools: https://www.deurainfosec.com/disc-infosec-home/aims-iso42001-ai-governance/

Tags: AI Agent Security, AI Agent Testing, AI Runtime visibility, Make Agent Accountable


Aug 28 2026

Agents don’t produce wrong answers anymore They take wrong actions – A practitioner’s guide to agent security

AI Agent Security: Nobody Authorized That Action, and That’s the Problem


The last two posts in this series ended in the same place from different directions. The one on AI-executable workflows argued that when the convertible tasks leave, what remains valuable is specification, oversight, evidence, boundary judgment, and the signature. The one on Bay Area startups argued that enterprise buyers now ask for those things before they sign.

Agents are where both arguments stop being abstract. A chatbot that gives a bad answer produces a bad answer. An agent that gets manipulated moves money, deletes records, emails your customer list, or opens a pull request. The failure mode changes from wrong output to unauthorized action — and unauthorized action is a category that security, compliance, and legal all have opinions about.

So the organizing question for this post is not “how do I make my agent safe.” It’s the one I keep landing on: when this agent takes an action, can you say who authorized it, what it was allowed to do, and prove it? Everything below is in service of being able to answer that.

Two sources worth reading in full alongside this: the OWASP AI Agent Security Cheat Sheet (CC BY-SA 4.0), which is the best free control catalogue for this problem, and Tigera’s AI Agent Security guide, which is stronger on the infrastructure and identity side. I’m synthesising both here with the governance layer they mostly leave implicit.


Why agents break the model you already have

Three structural shifts, and each one invalidates a control you probably rely on.

Data became instructions. Your input validation assumes data is inert (harmless). For an LLM it isn’t — a retrieved document, an email body, a webpage, a tool response, a Jira comment can all carry instructions the agent will follow. This is indirect prompt injection, and it means every data source your agent touches is now part of its instruction surface. Traditional sanitisation doesn’t help because there’s no syntax to strip; the payload is just words.

The actor is nondeterministic. Access control assumes a caller who does the same thing given the same permissions. An agent’s next action is a probabilistic function of its context, and its context is partly attacker-controllable. You cannot reason about what it will do; you can only bound what it can do.

Identity got separated from a human. Agents authenticate as service accounts, often with credentials broader than any human user, and frequently act on behalf of a user without carrying that user’s authorisation scope. That gap is the confused deputy problem: the agent has authority the requester doesn’t, and the requester can steer the agent. Tigera’s framing is the right one — treat each agent as a first-class managed identity with its own credentials, lifecycle, and decommissioning, rather than a process borrowing someone else’s.


A threat model you can hold in your head

OWASP enumerates thirteen risks and Tigera seven. Overlapping them, I find five clusters more useful for actually designing controls, plus one meta-risk:

ClusterWhat it coversThe control that matters most
Instruction integrityDirect and indirect prompt injection, goal hijacking, malicious configuration fed through developer consolesTrust boundaries between instructions and data; never let retrieved content carry authority (untrusted data)
Privilege and identityOver-permissioning, tool abuse, privilege escalation through agent chains, credential theft, confused deputyDefault-deny tool scoping; per-agent cryptographic identity; short-lived scoped tokens
Memory and contextMemory poisoning that persists across sessions or users, sensitive data accumulating in contextPer-user memory isolation, TTL and size limits, integrity checks, redaction before persistence
Egress and exfiltrationData leaked through tool calls and API requests, denial of wallet from unbounded loopsEgress allowlists, payload inspection, hard limits on tokens, cost, retries, and chain depth
Multi-agent propagationOne compromised agent escalating through others, cascading failureSigned inter-agent messages with replay protection, trust levels, circuit breakers
Shadow agents (meta)Agents nobody registered, running with unknown permissionsDiscovery and a registry — you cannot control what isn’t inventoried

Note how many of these are authorisation problems wearing AI clothing. That’s deliberate. The genuinely novel risks are instruction integrity and memory poisoning; the rest are old problems whose blast radius grew because the caller is now unpredictable and fast.


The control set, in priority order

1. Default-deny tool scoping

The single highest-leverage control. An agent with a general execute_command tool and wildcard permissions has, in effect, your entire environment as its attack surface. The alternative is narrow, purpose-built tools: read-only where possible, scoped to specific paths or resources, with explicit deny patterns for credential-shaped things (.env, .pem, anything matching secret patterns) and separate tool sets per trust level so a user-facing agent and an internal one never share a registry.

Practical test: for every tool your agent can call, can you state the worst thing that tool can do if the agent is fully adversarial? If the answer requires thinking, the tool is too broad.

2. Separate the decision from the execution

This is the best idea in the OWASP sheet and the one most implementations skip. An approval prompt in the agent’s own loop is not a control — the loop is the thing under attack.

The pattern: the agent proposes an action; an independent policy service validates scope, privilege, and approval state before anything executes. And critically, the approval is bound to the exact action — actor, tool name, target resource, normalised parameters, timestamp, expiry. An approval that says “yes, send the email” and not “yes, send this email to this recipient with this body” can be redirected between approval and execution.

Four details that make the difference between a real gate and a decorative one:

  • Short-lived authorisation artifacts with replay protection for anything irreversible.
  • Step-up authentication for critical actions — payment initiation, privilege changes, bulk deletion, production deployment, account recovery.
  • Idempotency where possible; explicit duplicate confirmation where it isn’t.
  • Fail closed. If risk classification, policy lookup, approval validation, or audit logging fails, the action does not proceed. A system that executes when logging is down produces exactly the actions you can’t account for.

Risk-tier your actions explicitly — reads and safe queries at the bottom, writes and API calls in the middle, external communication and code execution above that, irreversible and financial operations at the top — and set the auto-approval ceiling per tier rather than per agent. Anything not in the mapping should default to the highest tier, not the lowest.

3. Agents as first-class identities

Unique credentials per agent, issued through your existing IdP or SPIFFE/SPIRE rather than shared secrets. Long-lived API keys replaced by short-lived, tightly scoped, auto-rotated tokens — and in multi-agent flows, a fresh token minted per hop so authority doesn’t accumulate down the chain. Real lifecycle management: created, updated, and decommissioned deliberately, with dormant identities disabled automatically.

The governance payoff is attribution. When actions carry a verifiable agent identity, “who did this” has an answer, and that answer survives an auditor asking it six months later.

4. Memory and context hygiene

Validate before you persist, not after. Scope memory per user and per session so one tenant’s poisoned entry can’t surface in another’s context. Set TTLs and size caps. Redact credential and PII patterns before writing to memory rather than filtering on read. Add integrity checks so tampered entries fail verification instead of quietly steering a future session.

Memory poisoning is the risk most teams haven’t modelled, because it’s the only one where the attack lands in one session and detonates in another. That delay also makes it the hardest to attribute after the fact.

5. Egress control and cost bounds

Agents talk to external services, and that channel is the exfiltration path. Allowlist outbound endpoints, broker calls through a gateway you control so policy is enforced before the request leaves, inspect payloads for sensitive data, and rate-limit. Watch for the exfiltration signatures: unusual encoding in URLs, oversized payloads to webhook or HTTP tools, repeated calls to unfamiliar endpoints.

And set hard ceilings on tokens, cost, retries, and tool-chain depth. Denial of wallet is a real availability-and-budget risk, and unbounded recursion is how a bug becomes an incident with an invoice attached.

6. Adversarial testing as a release gate

Agents should be tested before production and re-tested after any material change — prompts, tools, memory, retrieval, policies, or model provider. Keep a repeatable abuse-case matrix: prompt override, tool misuse, privilege escalation, memory poisoning, data exfiltration, recursive tool abuse, approval bypass, multi-agent chaining. Each with a specific expected denial, version-controlled, running in CI.

One warning from the OWASP sheet deserves repeating verbatim in your review process, because it’s the kind of thing that only occurs to someone who has seen it: review test changes carefully, because an attacker may try to weaken or remove security tests in the same pull request that changes agent behaviour.


The part that turns controls into evidence

Everything above is security engineering. Here’s where it becomes governance — and where, in my experience, the gap between “we have controls” and “we can demonstrate control” gets exposed.

For every high-risk agent action, log structured decision metadata: action classification, risk score where applicable, authorisation outcome, approval identifier, execution result, and policy version. That last field is the one people forget, and it’s the one that lets you answer “what rules were inforce when this happened?” — which is the question that actually gets asked during an incident review.

Then monitor for drift in the oversight layer itself: repeated approval bypass attempts, elevated privilege usage, abnormal tool invocation frequency, sudden increases in high-risk actions, and changes in approval behaviour over time. An oversight mechanism degrades quietly — approvers start rubber-stamping, thresholds get relaxed for a deadline — and nothing alerts you unless you instrument for it.

For production agents, retain validation evidence: the tested agent version, model provider, tool policy and retrieval configuration; the abuse cases executed and their expected results; the approval, denial, timeout, and circuit-breaker behaviour observed; and any accepted residual risk with its compensating control. That last item is what separates a mature program from a hopeful one — mature programs have documented accepted risks, not zero risks.

Where this maps:

FrameworkAnchor
ISO/IEC 42001A.6 (AI system lifecycle), A.9.2 (responsible use), A.10.3 (supplier and value-chain responsibilities), Clause 9.2 (internal audit evidence)
NIST AI RMF 1.0MAP for context and tool inventory; MEASURE for adversarial testing; MANAGE for monitoring, response, and residual risk
EU AI ActArt. 14 human oversight as demonstrated capability to intervene, interrupt, and disregard; Art. 26 deployer duties including staff competence, monitoring, incident notification, and log retention of at least six months
ISO/IEC 27001A.5.15 / A.8.2 for agent authorisation; A.8.16 monitoring; A.5.7 threat intelligence feeding the abuse-case matrix

The overlap is the point. An agent action log built to answer who authorised this, what context did the system have, what did it decide, was that consistent with policy simultaneously serves your incident response, your ISO 42001 internal audit, and an Article 26 request. Build it once.


From the practitioner’s chair

DISC InfoSec audited a client’s MCP Governance Standard and produced a v1.1 redline with 27 changes. Worth being specific about what those changes were, because the distribution is instructive.

They covered OAuth 2.1 with PKCE, token audience validation, SSRF and egress controls, tool manifest integrity, and confused-deputy protections. But the pattern across most of them was the same single idea: authority must be bound to a specific action, not held ambiently by a component. A token that isn’t audience-validated is authority without a destination. A tool manifest without integrity checking is authority without a definition. A confused-deputy gap is authority without a requester. Almost every finding was a variation on authority floating free of the thing it was supposed to authorise.

If you take one design principle from this post, take that one. It generalises further than any specific control in the list above.

The other thing I’d say from the audit chair: the controls are rarely the hard part. When we led VDR through ISO 42001 Stage 2 certification, the difference between passing and a nonconformity was almost never whether a control existed — it was whether we could produce the artifact proving it operated. Agents make that harder, because the volume of actions is high and the actions are taken by something that can’t be interviewed. Design the evidence trail at the same time as the control, or you’ll be reconstructing it under deadline.

Worth a sober note on where the industry actually is: across recent 2026 surveys, roughly a fifth of organisations can automatically terminate a misbehaving agent’s access, and a substantial share of deployed agents run with no security oversight or logging at all. If your kill switch has never been tested end to end, you don’t have one — you have a plan to find out during an incident.

#AIagentsecurity #MCPsecurity #promptinjection #agentleastprivilege #ISO42001agents #EUAIActArticle14 #humanintheloop

Why AI Agents Need Persistent Browser Identities


Five sentences worth putting in a policy

  1. No agent gets a tool whose worst-case use we haven’t written down.
  2. Irreversible actions are validated and authorised by a service the agent does not control, against an approval bound to the exact action.
  3. Every agent has its own identity, its own short-lived credentials, and a decommissioning date.
  4. If classification, policy lookup, approval validation, or audit logging fails, the action does not execute.
  5. Any change to prompts, tools, memory, retrieval, policy, or model provider re-runs the adversarial test suite before release.

Work with DISC InfoSec

DISC InfoSec helps B2B SaaS and financial services organisations deploy AI agents that survive both an attacker and an auditor: agent and tool inventories, MCP and tool-permission review, prompt injection and agent security assessment, human oversight design, and the evidence architecture that maps to ISO/IEC 42001, NIST AI RMF, and EU AI Act Articles 14 and 26.

I led VDR through ISO 42001 Stage 2 certification on the first attempt as the internal practitioner, served as internal auditor, and authored their MCP Governance Standard. If you have agents in production and no clear answer to who authorised that action, that’s the assessment to run now.

DISC InfoSec — | ISO/IEC 42001 & ISO/IEC 27001 Lead Implementer | PECB Authorized Training Partner

📅 calendly.com/hd-deurainfosec 📧 info@deurainfosec.com 📞 (707) 998-5164 🌐 deurainfosec.com


Sources and further reading

  • OWASP AI Agent Security Cheat Sheet — licensed CC BY-SA 4.0; also the MCP Security, RAG Security, and LLM Prompt Injection Prevention cheat sheets
  • OWASP Top 10 for Large Language Model Applications
  • Tigera, AI Agent Security: Top 7 Risks and 4 Types of Security Solutions
  • NIST AI Risk Management Framework 1.0 (NIST AI 100-1)
  • ISO/IEC 42001:2023; ISO/IEC 27001:2022 Annex A
  • Regulation (EU) 2024/1689 (EU AI Act), Arts. 14, 26
  • Google Secure AI Framework (SAIF)

Tags: agent least privilege, AI Agent Security, AIMS, EU AI Act Article 14, human-in-the-loop, ISO 42001, ISO 42001 agents, prompt Injection


May 22 2026

Microsoft Just Made AI Agent Security a CI/CD Problem — Here’s Why That Matters

Category: AI,AI Governance Tools — disc7 @ 8:16 am

Microsoft Just Open-Sourced the Missing Piece of AI Agent Security: A Practitioner’s Take on RAMPART and Clarity

On May 20, Microsoft’s AI Red Team released two open-source tools that should be on every CISO’s and AI program owner’s reading list this week: RAMPART, a continuous testing framework for AI agents, and Clarity, a structured design-review tool. Both have been battle-tested inside Microsoft before being handed to the community, and together they begin to close one of the most uncomfortable gaps in enterprise AI today — the gap between “we shipped an agent” and “we shipped an agent that holds up under adversarial pressure and audit scrutiny.”

Coming from a practitioner who has spent the last two years implementing ISO 42001 in production environments, my honest reaction: finally. Let me explain why these tools matter, where they fit in a governance program, and where I think organizations will still get this wrong.

What Microsoft Actually Released

RAMPART is a test harness built on top of Microsoft’s existing PyRIT red-teaming library, designed to slot directly into a CI/CD pipeline. Developers write pytest-style tests describing adversarial scenarios — prompt injection, data exfiltration via tool calls, jailbreak attempts — and the framework runs them on every code change. Each test connects through a thin adapter, orchestrates an interaction with the agent, evaluates the outcome, and returns a clear pass/fail signal that can be gated in CI like any other integration test. Because AI systems are probabilistic, RAMPART supports running the same test multiple times and setting a pass threshold rather than demanding deterministic outcomes.

The real-world proof point Microsoft shared is telling: their incident response team took a reported vulnerability, used RAMPART to generate 100 variants of that vulnerability, applied mitigations, and validated each one — collapsing weeks of expert work into hours.

Clarity addresses a different and arguably more expensive failure mode: bad design decisions that become baked into the agent’s architecture. It guides engineers through structured conversations covering problem clarification, solution exploration, failure analysis, and decision tracking. Multiple AI “thinkers” independently examine the proposed system from different angles — security, human factors, adversarial scenarios, operational concerns — and surface the kinds of questions an experienced architect or safety engineer would ask. The output is committed to the repo as human-readable markdown in a .clarity-protocol/ directory, which means design decisions become reviewable artifacts rather than tribal knowledge.

Both tools are available on GitHub now.

Why This Matters for Security Discipline in Agent Development

Most AI agent failures I’ve seen in client environments don’t trace back to model behavior. They trace back to two earlier failures: nobody wrote down the threat model before the agent was built, and nobody set up continuous adversarial testing after it shipped. RAMPART and Clarity address exactly these two gaps — and they do it in a way that maps cleanly onto how engineering teams already work.

Shifting Agent Safety Left — Without Slowing Anyone Down

The defining problem with AI agent security today is that the testing usually happens in the wrong place at the wrong time. Pre-launch red team engagements are expensive, sporadic, and stale within a sprint. Post-incident reviews are valuable but, by definition, too late. RAMPART changes the economics by making adversarial tests behave like unit tests: cheap to run, repeatable, and enforceable through pull request gating. When a developer adds a new tool to the agent — say, the ability to query a customer database — the safety test for that new capability gets added in the same PR. This is what “secure SDLC” actually looks like for AI agents, and it’s something most internal AI programs have been describing in slide decks but failing to implement in code.

Making Design Decisions Auditable

Clarity is the more underrated of the two tools. ISO 42001, the NIST AI RMF, and the EU AI Act all require organizations to demonstrate that they considered foreseeable risks during system design — not just that they ran some tests at the end. Auditors increasingly ask: “Show me the design review record. Show me the failure modes you considered and the decisions you made.” In most organizations, that record doesn’t exist. It lives in someone’s head, a Slack thread, or a Jira ticket that got closed eight sprints ago. Clarity’s commitment to writing design decisions as markdown artifacts inside the code repo is genuinely useful for compliance evidence — it turns ephemeral architectural conversations into the kind of durable, reviewable record that an ISO 42001 internal auditor or an EU AI Act conformity assessment will ask for.

Closing the “Variant Problem” in AI Incident Response

The detail from Microsoft’s writeup that should grab every incident responder is the 100-variant test. When a real vulnerability is reported in a traditional system, you patch the specific exploit and move on. AI agents don’t work that way. The same underlying weakness can be triggered by hundreds of semantically equivalent prompts, and patching one doesn’t patch the others. RAMPART’s ability to generate variants of a reported vulnerability, test mitigations against all of them, and validate the fix is the kind of capability most enterprise security teams have been trying to build in-house with mixed results. Having Microsoft hand this over as open source — battle-tested against real incidents — meaningfully lowers the cost of doing AI incident response properly.

Where Organizations Will Still Get This Wrong

Tools don’t fix governance gaps. Tools amplify whatever discipline already exists. Three predictions about how RAMPART and Clarity get deployed:

1. Teams will adopt RAMPART without adopting a threat model. RAMPART runs the tests you write. If you only write tests for the prompt injection scenarios you happen to think of, you get a false sense of coverage. Organizations that haven’t done the upstream work of mapping their agent’s attack surface — tool calls, retrieval sources, prompt-completion logging, orchestration handoffs — will end up with a green CI pipeline and the same underlying risk.

2. Clarity will be treated as documentation, not governance. The whole point of structured design reviews is that decisions get challenged before they become technical debt. If Clarity outputs become files that nobody reads in code review, the tool fails. The discipline isn’t in running Clarity. It’s in treating its output as a gate.

3. Both tools will live inside the AI team, not the security organization. This is the failure mode I’ve written about repeatedly. AI agents touch sensitive data, call APIs, and make decisions on behalf of users — they are production systems with security blast radius. If RAMPART and Clarity sit only with the ML engineers and never get visibility from the security team, the org has automated the wrong half of the problem. ISO 42001 explicitly requires defined ownership of AI system risk; this is exactly the kind of shared responsibility these tools enable, if the org bothers to set it up.

My Perspective: This Is the Beginning, Not the End

Microsoft’s release is a meaningful contribution to the AI security commons, but it’s important to be clear-eyed about what it does and doesn’t solve. RAMPART and Clarity are excellent at what they do — adversarial testing in CI and structured design review with artifact output — and they bring genuine engineering rigor to two phases of the AI development lifecycle that have been governed mostly by good intentions.

What they don’t do is replace the broader governance program. An organization that runs RAMPART tests on every PR but has no data classification, no model change management policy, no inventory of which agents are touching which data sources, and no defined accountability for AI risk has automated the testing without building the governance underneath it. These tools are most valuable when they slot into an existing AI management system — ISO 42001 or equivalent — that already defines who is accountable, what risks the organization has accepted, and how evidence gets collected for audit. Without that scaffolding, they become another set of green checkmarks in a dashboard nobody trusts.

The trajectory here is also worth watching. We are moving, fast, toward a world where enterprise procurement asks vendors for evidence of AI agent testing the same way it asks for SOC 2 reports today. The organizations that adopt RAMPART and Clarity now — and, more importantly, build the governance program around them — will be the ones that can answer those procurement questions with confidence in 12 months. Everyone else will be scrambling to retrofit security discipline into agents that are already in production, talking to customers, and quietly accumulating risk.

Microsoft just gave the community two of the right tools. The harder question is whether your organization has the governance discipline to use them well. That part doesn’t come from GitHub.


At DISC InfoSec, we help B2B SaaS and financial services organizations build the AI governance scaffolding — ISO 42001, NIST AI RMF, EU AI Act — that makes tools like RAMPART and Clarity actually deliver value. If you’re standing up an AI agent program and want a practitioner’s view of what holds up under audit, let’s talk.

📩 info@deurainfosec.com | 🌐 www.deurainfosec.com | 📝 blog.deurainfosec.com

#AIGovernance #AIAgents #ISO42001 #AIRedTeam #AISecurity #RAMPART #Clarity #Microsoft #SecureSDLC #CISO #vCAIO #NISTAIRMF #EUAIAct #ResponsibleAI #DISCInfoSec

Tags: AI Agent, AI Agent Security, Clarity, RAMPART