Vaikora › Blog › Product Updates
How Vaikora enforces policy on AI agent actions before they execute: architecture, decisions, and audit
An AI agent that can read a database, call an API, and write a file will do all three in sequence if nothing stops it. The question is not whether the agent will act. The question is what checks that action against policy before it lands.
Vaikora sits inline between the agent and whatever it calls: an LLM, a tool, an external API. Every action passes through the enforcement layer first. The agent does not get a result until Vaikora has made a policy decision.
What "inline enforcement" actually means
Most security controls for AI agents work after the fact. They log what happened, alert on patterns, or flag outputs for review. That is detection. It is useful, but it cannot stop an action that has already executed.
Vaikora works differently. The gateway intercepts the action before it reaches the target. It evaluates the action against deterministic policy, then returns one of four decisions: allow, block, modify, or require approval. The action does not execute until one of those decisions is returned.
Deterministic means what it sounds like. Identical input always produces an identical decision. There is no probabilistic scoring that shifts based on context, model confidence, or sampling temperature. Policy is policy, applied consistently.
Enforcement latency at P50 is 8ms, and at P99 it is 45ms. The gateway handles 10,000-plus actions per second. For most production agents, enforcement is invisible to the end user.
The six content inspection modules
When an action arrives at the gateway, six inspection modules run against it in sequence:
- PII and sensitive data detection: checks the payload for personal identifiers, financial data, health information, and other regulated content
- Prompt injection detection: identifies attempts to override system instructions embedded in user input or tool responses
- Tool call authorization: validates whether the calling agent or user has permission to invoke this specific tool with these specific arguments
- Data classification matching: applies policy rules based on the classification of the data being accessed or generated
- Compliance preset evaluation: checks the action against active compliance presets (HIPAA, PCI-DSS, GDPR, SOC 2, ISO 27001)
- Custom policy rules: evaluates any organization-defined conditions the other modules do not cover
If any module returns a block condition, the action stops. If a module flags a condition that requires human review, the action waits. The agent gets a structured response explaining what happened.
A concrete example: a finance agent hitting a PII guardrail
An AI agent is processing insurance claims. It calls a tool to retrieve a customer record. The payload it receives back contains a Social Security number, a date of birth, and a claims history.
Vaikora's PII detection module flags the SSN. The active HIPAA preset identifies the claims history as protected health information. The agent's current session does not have an authorization token scoped to PHI access.
The gateway returns a block decision. The agent does not receive the record. The workflow logs a policy violation with the specific rule that triggered it. No data left the authorized perimeter.
The same decision would be returned every time that agent, with that session scope, calls that tool with that response payload. That consistency is what makes enforcement auditable.
What the audit chain records
Every decision, allow or block, writes to a SHA-256 hash-chained, tamper-evident audit log. Each entry is signed and chained to the previous one. Any modification to a prior entry breaks the chain, which is detectable on inspection.
The log records the input payload, the policy rules evaluated, the decision returned, the timestamp, and the agent identity. This is the record a compliance auditor or incident investigator would need to reconstruct exactly what happened and when.
That auditability is not a reporting feature added on top of enforcement. It is part of the enforcement architecture. Every decision produces a signed record as a side effect of execution.
How it integrates with existing security operations
Vaikora pushes AI agent threats into the security tools your SOC already works in. High-severity risk promotes to Azure Security Center and Microsoft Defender for Cloud as native incidents. Threat Intelligence indicators flow into SentinelOne with severity values mapped to 100 (Critical), 75 (High), 50 (Medium), and 25 (Low). CrowdStrike Falcon and AWS Security Hub are also supported.
This means an AI agent action that triggers a policy block does not stay isolated in a separate tool. It surfaces in the same queue as other security events, with the same severity mapping and triage workflow.
For teams already running Microsoft Sentinel, Vaikora ships as a Sentinel content hub solution, including the AzureSecurityCenter integration, with no custom engineering required.
What to check next
If you are running agents in production, start by auditing what tools they can call and under what conditions. Check whether any of those tools can read or write regulated data. If the answer is yes and there is no inline policy gate between the agent and that tool, that is the gap to close first.
The open-source gateway, vaikora-guard-mcp, is available on PyPI under the MIT license. It enforces policy locally, produces the same audit chain, and can be evaluated against your own agent workflows before any enterprise deployment decision.
See Vaikora enforce policy on your AI
Open-core AI runtime control. Self-host the MIT gateway free, or run the hosted Control Plane.
Get a demo Self-host the gateway
Vaikora