Vaikora › Blog › Product Updates
When an AI agent sends a bad request: tracing one blocked action from prompt to audit log
Writing a policy for LLM behavior and actually enforcing it are two different operations. The first happens in a document or a configuration file. The second happens in the path between the agent and whatever it is about to call, in real time, before the call completes.
This article walks one specific scenario end to end so you can see exactly what enforcement looks like at each step.
The scenario
An AI agent is connected to a customer-support workflow. It has access to a CRM tool, an email-send tool, and a document-retrieval tool. A user submits a prompt that leads the agent to compose an outbound email containing a customer account number and a support transcript.
That action, sending an email with PII embedded in the body, violates a PCI-DSS policy. The question is: what stops it, and when?
Where enforcement has to sit
If nothing sits between the agent and the email-send tool, the email goes out. The violation gets logged afterward, if at all. Detection after execution is not enforcement.
Enforcement has to sit inline between the agent and the tool call. When the agent constructs the call to `email.send(to=..., body=...)`, the enforcement point intercepts that payload before it reaches the tool. It inspects the content, evaluates it against policy, and returns a verdict. The tool call either proceeds, is blocked, is rewritten, or is held for human approval.
This is not a monitoring layer. It is a gate.
What the inspection chain actually does
Vaikora runs six content inspection modules against the intercepted action payload. In this scenario, the relevant modules are the PII scanner and the data-classification check.
The PII scanner parses the email body and identifies the account number pattern. The data-classification module flags the transcript as a document class that requires handling controls under the active PCI-DSS compliance preset.
Both signals feed into the policy engine. The policy engine runs a deterministic evaluation: identical input, identical verdict, every time. No probabilistic scoring, no thresholds that drift. The rule is "block outbound email containing PAN or regulated support content." The payload matches. The verdict is block.
That evaluation completes at P50 in 8ms, P99 in 45ms. The agent receives a rejection response before the tool ever sees the payload.
What the audit record contains
Every decision Vaikora writes to the audit log is signed into a SHA-256 hash chain. The record for this blocked action contains:
- The timestamp and agent session identifier
- The full action payload (the intercepted tool call, including the email body)
- Which inspection modules fired and what they found
- The policy rule that matched
- The verdict: block
- The hash of the previous record in the chain
Because each record includes the hash of the prior record, any insertion, deletion, or modification of a record breaks the chain. Tamper-evidence is structural, not procedural.
That record is what an investigator pulls when a compliance audit asks "did this agent ever attempt to exfiltrate PII, and was it stopped?" The answer is in the log with the payload attached.
What happens downstream in your SIEM
A blocked action with a high-severity classification does not stay inside Vaikora's own audit store. The platform pushes the signal outward.
In a Microsoft Sentinel deployment, the event surfaces as a native incident via the Vaikora-AzureSecurityCenter solution, with no custom engineering required. In a SentinelOne deployment, the indicator arrives as a Threat Intelligence record with severity mapped to a numeric score: Critical maps to 100, High to 75. A SOC analyst working an alert queue sees the agent action, the matched policy, and the blocked payload directly in their existing tooling.
The key operational point: the enforcement happened before the email sent. The SIEM alert is a notification about a blocked action, not a notification that a breach occurred.
What to check in your own environment
If you are evaluating whether your current AI agent deployment has real enforcement or just monitoring, ask four questions:
- Does anything intercept the tool call payload before the tool executes?
- Is the policy evaluation deterministic, or does it rely on a model scoring PII likelihood?
- Does the audit record include the full payload, not just an event summary?
- When a high-severity violation fires, does it surface automatically in your SIEM or EDR?
If the answer to any of these is "no" or "I'm not sure," the gap is at the enforcement layer. 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