Skip to main content
ZNYX AI

AI Runtime Security

AI runtime security that enforces guardrails on every live request.

ZNYX inspects prompts, model responses, streams, retrieved context, and tool calls as they happen, escalating deterministic to ML to LLM-judge and failing closed on a scorecard gate. The runtime is open-source and self-hosted, so enforcement runs in your own boundary.

escalation layers
3
detectors
40
remediations
6

Definition

What is AI runtime security?

AI runtime security enforces LLM guardrails in real time on live traffic: every prompt, response, stream, and tool call is evaluated against policy at request time and blocked or transformed before it can do harm. ZNYX runs this enforcement in a self-hosted runtime through a deterministic to ML to LLM-judge ladder with a fail-closed gate, so the safety decision is made in your boundary, not after the fact.

Defense in depth

A deterministic to ML to LLM-judge ladder

Each detector declares its own strategy on the ladder. Cheap exact checks run first, fuzzy signals escalate to ML, and the hardest calls reach an audited judge. The combined result must clear a fail-closed scorecard gate before the request proceeds.

Layer 1 · Deterministic

Fast, exact rules first

Pattern, regex, checksum, allowlist, and schema checks run on every request with negligible cost. They catch known-bad signals - leaked secrets, malformed structured output, blocked topics - and resolve most traffic before any model is touched.

Layer 2 · ML

Classifiers for fuzzy signals

When deterministic rules are not enough, per-detector ML models score nuanced risks - prompt injection, jailbreak, toxicity, sentiment, PII entities - running in your in-boundary inference sidecar so payloads never leave your environment.

Layer 3 · LLM judge

Reasoned verdicts on hard cases

The hardest calls escalate to an audited LLM-judge layer with K-member consensus and denial-of-wallet budgets. Judges adjudicate ambiguous intent and groundedness, and every judgment is recorded as an audit event.

The fail-closed scorecard gate

Detector results across the ladder roll up into a scorecard, and the gate denies the request unless it meets policy thresholds. If a required detector errors or a model is unavailable, the default is to deny: uncertainty becomes a block, not a silent pass. Per policy, you can choose fail-open on non-critical paths.

The hot path

Stateless enforcement, low overhead

The runtime is built so the security decision is fast in the common case and the system scales by adding replicas. Enforcement does not become the bottleneck.

Cheapest checks first

The escalation ladder runs deterministic rules before ML before judges, so the common case resolves on the cheap path and heavy models only run when a request is genuinely ambiguous.

Stateless instances

Each runtime instance holds no per-request state. Verdicts are computed from the request plus bundle-delivered policy, so any replica can serve any request.

Scales horizontally

Because the hot path is stateless, you add capacity by adding runtime replicas behind your load balancer - no shared session store on the enforcement path.

Reliability and graceful degradation

Runtime security has to behave predictably even when something breaks. ZNYX makes the failure mode an explicit, per-policy choice rather than an accident.

  • Fail closed by default: a required detector that errors becomes a deny, not a pass.
  • Fail open opt-in: non-critical paths can be configured to allow on uncertainty.
  • Model unavailable: the deterministic layer keeps enforcing while heavier stages fall back per policy.
  • Judge budgets: denial-of-wallet caps stop a runaway escalation from exhausting spend.

Real-time streaming enforcement

Many LLM apps stream responses token by token. ZNYX evaluates Server-Sent Events (SSE) streams as they flow, so policy applies to streamed output, not only to a final buffered response.

  • Detectors run against streamed tokens, not just the completed answer.
  • Remediation can fire mid-stream: block, redact, mask, re-ask, refrain, or ask a human.
  • Unsafe content is caught before it lands with the user, preserving the streaming UX.

Go deeper

How runtime security fits the platform

The runtime is the enforcement seam. See where it sits relative to the control plane, and how the same engine powers the AI firewall on the request path.

Architecture

How the self-hosted runtime, the in-boundary inference sidecar, and the control plane split enforcement from operations.

Explore the architecture

AI Firewall

The same engine on the request path: input and output filtering, an egress and DLP gate, and structured-output enforcement.

See the AI firewall

FAQ

AI runtime security questions

How real-time enforcement, the fail-closed gate, latency, streaming, and graceful degradation work in the ZNYX runtime.

AI runtime security is the practice of enforcing guardrails on live LLM and agent traffic - inspecting every prompt, model response, retrieved context, and tool call as it happens, and blocking or transforming anything that violates policy before it reaches a user or a downstream system. ZNYX runs this enforcement in a self-hosted runtime, so the decision is made in your own boundary at request time, not after the fact.

Secure every prompt, agent, and tool call, in your boundary.

Pull the open-source runtime, drop it into your stack, and start enforcing policy in minutes, free, forever. Add the hosted control plane when you want centralized policies, evidence, traces, and team workflows.