Security Model
Authenticated workflows, byzantine fault tolerance, and why it works
14 questions
Detection-based security tries to identify bad behavior after it happens (or as it happens). MACAW prevents unauthorized behavior from happening in the first place.
Approach How It Works Limitation Detection Pattern matching, anomaly detection, ML classifiers Attackers evolve, false positives/negatives, cat-and-mouse game Prevention (MACAW) Policy enforcement, cryptographic verification If it's not allowed, it doesn't execute. Period. Detection tells you "that looked suspicious." Prevention tells you "that wasn't allowed, so it didn't happen."
MACAW's position: Prevent, don't detect.
Guardrails are framework-specific behavioral constraints. Access control is infrastructure-level policy enforcement.
Guardrails:
- Built into a single framework (LangChain, OpenAI, etc.)
- Apply to that framework's operations only
- What happens when frameworks compose in a workflow?
Access control (MACAW):
- Works across all frameworks in your stack
- Enforces at every boundary, regardless of framework
- Policies follow the user, not the tool
The composition problem: Your agent uses LangChain → calls MCP tool → hits OpenAI API. Each has its own guardrails. Who enforces the overall policy? Who ensures Alice's permissions are respected across all three?
MACAW provides unified enforcement across the entire workflow.
Deterministic security means:
Same request + Same policy + Same context = Same decision (every time)This matters because:
Predictable: You know what will happen before it happens. Testable: You can write tests that always pass or fail consistently. Auditable: You can explain exactly why something was allowed or denied. Compliant: You can prove to auditors that controls work.
MACAW's policy engine is deterministic. Given the same inputs, you get the same output. No AI-in-the-loop for security decisions.
AI behavior is inherently non-deterministic. The same prompt can produce different outputs.
Security requires guarantees:
- "User X cannot access resource Y" must be true 100% of the time
- Not "probably true" or "usually true"
- One failure = one breach
If your security decisions depend on AI judgment:
- Different runs → different decisions
- Prompt injection → manipulated decisions
- Model updates → changed behavior
- No audit trail that reproduces
MACAW keeps AI out of the security decision path. Policies are code, not prompts. Enforcement is cryptographic, not probabilistic.
Many AI security tools promise safety through behavioral patterns:
- "Our classifier detects 95% of prompt injections"
- "Our guardrails usually prevent harmful outputs"
- "Our filters catch most sensitive data"
MACAW proves security through cryptographic verification:
- Every operation is signed by an authenticated identity
- Every decision is traceable to a specific policy rule
- Every workflow has a hash-chained audit trail
You can show an auditor the exact chain: User X → authenticated with JWT → matched policy Y → operation allowed → result signed and logged.
That's proof, not a promise.
An authenticated workflow is a sequence of AI agent operations where every boundary crossing is protected by intent (policy) and integrity (cryptography).
- Every step is verified - Each operation carries cryptographic proof of authenticity
- Identity is maintained - User identity flows through all steps (delegation, not impersonation)
- Integrity is preserved - No tampering between steps (signed requests and responses)
- Permissions narrow - Each delegation can only restrict, never expand (monotonic)
- Audit trail exists - Complete, hash-chained record of all operations
Example:
User (authenticated) → LLM Call (signed) → Tool Invocation (signed) → Result (verified)Why this matters: Without authenticated workflows, an attacker who compromises one step can manipulate all downstream operations. With authenticated workflows, breaking the system requires breaking cryptography - not crafting clever prompts or exploiting semantic ambiguity. Each step independently verifies the previous, creating byzantine fault tolerance for agentic systems.
An authenticated prompt is an LLM input that:
- Has verified origin - Traced to legitimate source (your application)
- Is integrity-protected - Content unchanged since creation
- Carries identity - Associated with authenticated user
- Is signed - Cryptographic proof of authenticity
- Tracks lineage - Full derivation history as prompts evolve
Lineage tracking: As prompts are modified, augmented, or derived (e.g., RAG adds context, tools inject results), MACAW tracks the entire chain. This enables monotonic permission narrowing - permissions can only decrease as prompts evolve, never increase. Since we can see the original prompt context and policy, we ensure derived prompts can't escalate beyond their parent's scope.
Why this matters: Prompt injection attacks try to sneak instructions into data. With authenticated prompts, MACAW distinguishes:
- Signed prompts from your app → treated as instructions
- Unsigned content from users/data → treated as data only
Injected text can't become instructions because it lacks the cryptographic signature.
Authenticated context is like a user-level app vault - verified, tamper-evident state for each user's AI operations.
What it provides:
- User isolation - Alice can't corrupt Bob's memory. Each user's context is cryptographically bound to their identity.
- Authorized updates only - Memory modifications must pass policy checks, just like any other operation.
- Tamper-evident state - Context is hash-chained, so any unauthorized modification is detectable.
- Multi-step workflow state - Store and verify state across workflow steps without risk of injection or corruption.
Example:
{ "user_id": "alice@corp.com", "session_memory": { ... }, "workflow_state": { ... }, "verified": true, "hash_chain": "abc123..." }This prevents context poisoning attacks where adversaries try to manipulate agent memory or inject false state into workflows.
MACAW implements a distributed zero trust mesh - a network of cryptographically-enabled enforcement points where every participant can verify every other participant.
Key property: Each participating element has its own signing keypair:
- Every agent gets a keypair
- Every prompt gets signed
- Every tool in the workflow gets a keypair
When Agent A invokes Tool B, the request is signed by A, verified by B, and logged with both identities. Identity and intent are preserved, authentic, and attestable at every hop.
┌─────────────┐ │ Control │ (policy distribution) │ Plane │ └──────┬──────┘ │ ┌──────────────────┼──────────────────┐ ▼ ▼ ▼ ┌───────┐ ┌───────┐ ┌───────┐ │ Agent │ ←→ │ Tool │ ←→ │ LLM │ │ (key) │ signed │ (key) │ signed │ (key) │ └───────┘ └───────┘ └───────┘Benefits:
- No single point of failure - Any node down, others continue
- Mutual authentication - Every party verifies every other party
- Attestable - Can prove exactly who did what, when, and why
- Edge enforcement - Low latency, enforcement where the action is
Zero Trust means "never trust, always verify" - even for internal requests.
Applied to AI agents:
- Agents are not trusted by default - Must prove identity and authorization
- Every operation is verified - No implicit trust from previous operations
- Least privilege - Agents get minimum permissions for the task
- Assume breach - Design as if attackers are already inside
Traditional security: "Inside the network = trusted" Zero Trust: "Every request must prove it's authorized, regardless of source"
MACAW implements Zero Trust by verifying identity, authorization, and integrity on every operation - not just at session start.
Multi-agent workflows create unique risk: any agent could be compromised, manipulated, or produce malicious outputs. MACAW provides four guarantees:
Guarantee What It Means Blast radius containment Compromised Agent B can't affect Agents A or C. Each agent's identity is cryptographically independent. Privilege cannot escalate Permissions only narrow through delegation. A delegates [read, write] to B → B gets at most [read, write], never more. Non-repudiation Both caller and callee sign each interaction. Cryptographic proof of who did what. No implicit trust Agents verify each other's signatures. "Internal" doesn't mean trusted. Zero Trust for agent-to-agent. The result: Compromising one agent doesn't compromise the workflow. Each agent independently verifies, and any tampering is cryptographically detectable.
Attestations are cryptographically signed approvals that allow specific operations to proceed. They can come from humans OR programmatic sources.
How attestations work:
- Policy requires an attestation for certain operations
- Operation is blocked until attestation is provided
- Approver (human or system) provides signed approval
- Operation proceeds with cryptographic proof of approval
Use cases:
- Human approval: Manager sign-off on high-value actions
- Programmatic approval: Automated system validates conditions and approves
- Conditional gates: Require external verification before proceeding
Attestations create an auditable record of who (or what) approved an action and when.
Require attestations when you need explicit approval before an operation:
Scenario Attestation type High-value transactions Human (manager approval) Compliance-sensitive access Human (privacy officer) Automated validation checks Programmatic (system verifies conditions) Cross-system operations Programmatic (external system confirms readiness) Policy exceptions Human (explicit sign-off) Balance friction vs. control: Attestations add a gate. Use them where the approval adds real value, not for routine operations.
Yes. MACAW is infrastructure, not a replacement for your security stack.
Integration How IdP (Okta, Auth0, Azure AD) Identity Bridge - MACAW uses your existing identity SIEM (Splunk, Datadog) OTEL export - the full event stream flows to Splunk, Elastic, Datadog or any OTLP endpoint API Gateway MACAW works behind your gateway, adds AI-specific controls Network Security MACAW operates at application layer, complements network controls MACAW adds the AI-specific controls that existing tools weren't designed for: policy-based LLM access, per-user constraints, workflow governance, cryptographic signing.