Madusanka Premaratne
Agentic AI Architect · Agent Security & Governance · Approval Gates & Containment

Agentic AI Security and Governance Architecture

Autonomous agents that call tools, browse the web, and act across systems carry a different risk profile than a single model call. I design the scoped permissions, approval gates, and containment that keep agentic systems safe to run in production, informed by the security incidents and platform changes shaping this space through 2026, not generic checklists.

Why This Matters Now

September 2026

Researchers disclosed "Plugin4Shell," a zero-click vulnerability that defeated the SHA-pinning protection meant to lock coding-agent plugins to a reviewed commit. It affected four major coding agents; patches landed unevenly across vendors.

September 2026

Spain's data protection authority (AEPD) is widely reported to have logged the first formal GDPR breach notification attributed to an autonomous AI agent, after an agent reportedly gained unauthorized access, modified personal data, and accessed invoices.

September 2026

Security researchers reportedly used an AI coding assistant to autonomously chain a web application bug with an SSO flaw and reach internal access at a major AI lab in under 72 hours, as authorized bug-bounty research.

September–October 2026

Anthropic's Managed Agents added an "auto" permission mode that evaluates each individual tool call against session history and can pause for human approval, and OpenAI's Agents API moved to public beta with session orchestration and context compaction handled server-side.

October 2026

The Wikimedia Foundation said agents it believes were operated by a major AI lab sent millions of automated requests to its public APIs and made unauthorized edits in sandbox areas — traffic it said may have contributed to an earlier service outage.

October 2026

The European Commission requested safety and compliance information from more than 30 AI companies.

Several of the items above rest on vendor statements or secondary reporting rather than independent forensic findings — the pattern across them, not any single incident, is the point: agent tool and session permission scoping has become a first-class design concern.

What I Design

  • Scoped tool permissions — least-privilege access per agent, per tool, not a blanket API key
  • Approval gates before irreversible actions — sends, deletes, financial transactions, production deploys
  • Egress and destination allowlists constraining what hosts an agent's browsing or fetch tools can reach
  • Session scoping — binding each MCP session to its invocation identity so it can't be reused across contexts
  • Audit logging — a durable record of every tool call and decision, not just the final output
  • Plugin and skill vetting before a third-party tool is allowed to load

Where This Applies

High priority

Any agent with write access to production data, financial systems, or anything irreversible — and any agent that browses the web or calls third-party APIs, even ones that look read-only.

Lower priority

A single-shot, stateless model call with no tool access and no memory between requests — the risk surface this architecture addresses mostly doesn't exist yet.

How I Evaluate an Agent's Risk Surface

  • What tools and data can this agent reach, and does it actually need all of it
  • What happens if a tool call succeeds but the agent's reasoning behind it was wrong
  • Can the session be replayed or reused outside its original context
  • Is there a human checkpoint before the one action that can't be undone
  • What gets logged, and would it be enough to reconstruct what happened after an incident

Related Work

EdgeTal reduces one category of agent risk by design — zero candidate data leaves the device, so there is nothing to exfiltrate in transit. The reference architecture, reliability, and safety practices here extend into the broader Agentic AI Architect work, and into client engagements through AI Privacy & Compliance Consulting and Enterprise AI Integration & Multi-Agent Systems.

Frequently Asked Questions

What does "agentic AI security" mean, beyond standard application security?

Standard application security assumes a human or a fixed program is making each request. Agentic AI security has to account for a system that plans its own multi-step actions and decides, at runtime, which tools to call — so the controls shift toward scoping what an agent can touch, approving what it's about to do, and logging what it actually did, rather than just validating a fixed set of inputs.

Why did agent security become urgent in 2026 specifically?

A cross-vendor vulnerability class, what's reported as the first GDPR breach notification attributed to an autonomous agent, and an incident where a major platform's agents affected a third-party service they didn't own all surfaced within weeks of each other, moving scoped permissions and approval gates from best-practice advice to baseline expectation.

What's an approval gate, and when do I need one?

An approval gate pauses an agent before it takes an action that's expensive, irreversible, or sensitive, and requires a human — or a stricter automated check — to confirm it before it proceeds. You need one anywhere an agent can send money, delete data, publish something publicly, or touch a system it doesn't own.

Does on-device or local-only AI avoid these risks?

It removes one category of risk — data leaving your infrastructure — which is the problem EdgeTal was built to solve. It doesn't remove the risk that an agent still misuses the tools and data it has local access to, so scoped permissions and approval gates still apply even to on-device systems.

How do you audit an existing agent deployment for these risks?

Enumerate every tool and MCP call the agent can make, check whether each one is scoped to least privilege, confirm there's an approval gate before any irreversible action, and verify what's actually being logged. That's the same audit I run as a practice exercise before recommending changes to a client's deployment.

Engagement Types

  • Agent permission and risk-surface audit
  • Approval-gate and containment design
  • MCP session security review
  • Incident readiness and audit logging setup