Vaikora › Blog › Product Updates
Agent runtime security: what gets enforced, what gets logged, and what happens when neither is true
An AI agent that can call tools, write to databases, and invoke external APIs is not a reporting problem. It is an enforcement problem. The question is not whether you can see what the agent did after the fact. The question is whether anything stopped a bad action before it executed.
What runtime security means for an agent, specifically
For a process or container, runtime security means monitoring syscalls and flagging anomalies. That model works because the blast radius of a bad process is bounded by OS-level controls. An AI agent operates differently. It makes decisions in natural language, selects tools dynamically, and can chain dozens of actions in a single session. By the time an anomaly detector fires, the action has already completed.
Runtime security for an AI agent means putting a decision point between the agent and the action, not between the action and your SIEM. The enforcement point receives the action request, evaluates it against policy, and either allows, blocks, modifies, or routes it for approval. That decision happens before execution, not after.
This is the structural difference that matters: detection tells you what happened; enforcement changes what happens.
Where the enforcement gap opens
The common architecture is: agent calls an LLM, LLM returns a tool call, the agent SDK executes it. There is no policy check in that chain unless you insert one. MCP-based agents have the same gap. The agent requests a tool, the MCP server executes it.
A worked example: an agent running in a customer support context is prompted, through an injected instruction in a retrieved document, to call a CRM write endpoint and update account status for a batch of records. Nothing in the standard agent SDK or MCP server checks whether that action is in scope. If the prompt injection succeeds, the write executes.
An inline enforcement point intercepts the tool call before the MCP server receives it, evaluates the action against policy (which tool, which data scope, which caller identity, which session context), and blocks the write if it falls outside the allowed envelope. The agent gets a denial response. The write never reaches the CRM.
Vaikora sits inline at exactly this point. It enforces an allow, block, modify, or require-approval decision before each action executes, at P50 8ms and P99 45ms, across 10,000+ actions per second.
What the policy engine actually checks
A deterministic policy engine is not a classifier guessing whether something looks malicious. It checks specific, defined conditions and produces a consistent result for identical input. Vaikora's approach is strictly deterministic: the same input always produces the same decision. That matters for auditability and for debugging policy gaps.
The engine checks conditions such as:
- Tool identity and whether it is on the allow list for this agent role
- Data classification of the input (PII, secrets, financial records)
- Action scope (read vs. write vs. delete, which resource identifiers)
- Session context and caller identity
- Content inspection for injected instructions or policy-violating outputs
Modifying an action is a third option that is often underused. If an agent response contains a credential that should not appear in a tool call parameter, the enforcement point can redact it before the call goes out, rather than blocking the whole action and failing the task.
What the log record needs to prove
Enforcement without an auditable record creates a different problem. If a block decision is later disputed, or a regulator asks why an action was denied, you need a record that cannot be altered after the fact.
Vaikora writes every decision into a SHA-256 hash-chained audit log. Each record is linked to the previous one by hash, so any insertion, deletion, or modification of a record breaks the chain. The record contains the full action request, the policy decision, the matched policy rule, and the timestamp. That is what you need to reconstruct a session, answer an investigation question, or satisfy a compliance review.
A log that shows the agent was running is not the same as a log that shows what decision was made on each action and why.
What to check in your current setup
If you have AI agents in production today, four specific questions are worth answering:
- Is there any policy check between the agent and tool execution, or does the agent SDK call the tool directly?
- If an injected instruction reached your agent right now and requested a write to a privileged resource, what would stop it?
- Do your current logs contain the action request, the decision, and the matched rule, or only the final output?
- Are those logs tamper-evident, or could a record be modified without detection?
If any of these has no clear answer, the gap is in enforcement, not in visibility. Start there.
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