ENTERPRISE AI · MODULE 06 ZERO-TRUST AGENT SECURITY CAPABILITY ≠ AUTHORITY 3 ARCHITECTURAL PLATES
CANONICAL DOSSIER · /enterprise-ai/control-plane-and-security/
Enterprise AI · Module 06 · Confused-Deputy Defense · Least-Privilege Identities · Circuit Breakers

Zero-Trust Agent Security, Confused-Deputy Defense & Governance.

Defending multi-agent systems against indirect prompt injection, authority escalation, and runaway execution loops by binding actor identity at Layer 1 and enforcing policy at Layer 3.

Executive Architectural Synthesis · Enterprise AI · Module 06

An agent with tool access is a privileged execution deputy. If untrusted external data (emails, web pages, documents, RAG chunks) enters the model context alongside ambient tool credentials, an attacker can hijack the agent. Zero-Trust Agent Security enforces least privilege outside the model.

Architectural Specification Plates (5)

Zero-Trust Agent Threat Model & Deterministic Control Countermeasures

Threat VectorAttack MechanismWhy Prompt Guardrails FailDeterministic Layer 3 Countermeasure
Indirect Prompt InjectionMalicious instructions hidden in retrieved PDFs, emails, or web pagesLLMs cannot reliably separate instructions from data in the same token streamTaint-track untrusted context; block high-consequence write tools when tainted data is present without human cosign
Confused-Deputy EscalationModel is tricked into passing another tenant_id or admin role into a tool callModel has visibility into parameter schema and guesses/copies privileged IDsStrip security parameters from tool schema; bind tenant_id and principal scopes cryptographically from Layer 1 session
Cross-Agent Privilege LaunderingLow-trust agent delegates task to high-privilege specialist agentSpecialist executes using its own ambient service accountEnforce authority intersection: EffectiveScope = CallerScope ∩ SpecialistScope
Tool Parameter Data ExfiltrationInjected prompt tells agent to encode secrets into external URL/webhook toolOutbound call looks syntactically valid to the LLMStrict egress domain allowlists + DLP payload inspection at Layer 3 proxy
Runaway Recursive Loop / Denial of WalletCyclic subagent handoffs or repeated tool retry stormsModel attempts to self-correct indefinitelyHard per-trace iteration counter, token budget ceiling, and velocity circuit breaker

Executable Architecture & Verification Specification

# Cedar Policy-as-Code: Confused-Deputy & Authority Intersection Gate
permit (
  principal,
  action == AgentAction::"ExecuteCustomerRefund",
  resource
)
when { · 1. Tenant isolation: principal and resource must belong to the exact same tenant
  principal.tenant_id == resource.tenant_id && · 2. Taint defense: block autonomous execution if context contains untrusted external ingestion
  context.context_taint_level == "VERIFIED_INTERNAL_ONLY" && · 3. Monetary bound: autonomous refund ceiling for this role
  context.proposed_amount_cents <= principal.max_autonomous_refund_cents && · 4. Canonical SHACL conformance attestation must be present
  context.shacl_conformance_verified == true
};

Core Architectural Specifications & Treatises (4 Sections)

01Capability Is Not Authority: Preventing the Confused-Deputy Failure Mode

Just because a foundation model can infer how to call a refund, wire-transfer, or database-mutation API does not mean it possesses institutional authority to execute it. In enterprise agent engineering, blurring linguistic capability with operational permission produces the confused-deputy vulnerability: an attacker or malformed document persuades a privileged agent runtime to execute actions on behalf of an unauthorized caller. To eliminate this failure mode structurally, our architecture binds cryptographic actor identity and tenant scope at Layer 1 and enforces a strict Authority Intersection Rule at Layer 3: EffectiveAuthority = ActorPermission ∩ AgentRoleScope ∩ WorkflowStepEnvelope ∩ EnvironmentPolicy. The probabilistic model can only emit an untrusted ActionProposal; it can never self-authorize or forge an ApprovalRecord.

02Taint Tracking & Defending Against the Lethal Trifecta

Indirect prompt injection transitions from a nuisance to a catastrophic security breach whenever an agent simultaneously possesses the "Lethal Trifecta":

  1. A access to private enterprise or customer data
  2. B exposure to untrusted external content (such as web pages, inbound emails, vendor PDFs, or third-party MCP tool outputs)
  3. C the ability to communicate externally or mutate persistent state. Our Layer 3 Control Shell attaches cryptographic taint labels (VERIFIED_INTERNAL_ONLY vs. UNTRUSTED_EXTERNAL_INGEST) to every context segment during Layer 2 compilation. Whenever untrusted tokens enter the reasoning window, the Cedar/OPA policy gate automatically disables unapproved external egress and high-blast-radius write tools unless an explicit human-in-the-loop verification checkpoint intervenes.

03Durable Checkpoints, Pause/Resume & Exactly-Once Side Effects

When a proposed action exceeds the autonomous monetary or risk ceiling (for example, a commercial credit adjustment above principal.max_autonomous_refund_cents), the workflow does not fail—it transitions cleanly into an asynchronous APPROVAL_REQUIRED state. The Layer 3 control shell serializes the exact workflow state, compiled context hash, and proposed tool payload into a version-pinned durable checkpoint. When an authorized human supervisor signs the cryptographic approval receipt hours or days later, the runtime resumes from the exact checkpoint without re-running upstream side effects, using deterministic write-boundary idempotency keys to guarantee at-most-once kinetic execution.

04Adversarial Red-Teaming, Circuit Breakers & Runtime Kill Switches

No production agent is promoted without passing an automated pre-release adversarial red-team suite covering indirect prompt injection, cross-tenant entity probing, tool-argument exfiltration, and multi-agent collusion loops. In production, the Control Shell enforces deterministic token-velocity circuit breakers, maximum step-count ceilings, and sub-second per-tenant, per-agent, and per-tool kill switches that allow SRE and security teams to downgrade any workflow from bounded autonomy to read-only shadow mode instantly.

Probabilistic vs. Deterministic Execution Boundary & Verified Benchmark Ledger

Probabilistic Model & Agent Role

Untrusted reasoning over mixed-provenance inputs to emit candidate ActionProposals without ambient credentials.

Enforced Deterministic Control Gate

Cedar/OPA Authority Intersection Rule, context taint tracking (VERIFIED_INTERNAL_ONLY), durable pause/resume checkpoints, and kill switches.

Verified Reference Benchmarks & Structural Guarantees
Confused-Deputy DefenseAuthority IntersectionLethal Trifecta Taint GateDurable Checkpoints
Join the Research Community · Semantic Machinery

Subscribe on Substack & Watch on YouTube

Subscribe to the Semantic Machinery Substack and YouTube channel for practitioner dispatches and visual walkthroughs on enterprise ontologies (L1–L7), SHACL action gates, and production agent control planes.