TrustGuard is one of four NeuralTrust products. It pairs naturally with TrustGate (the AI gateway, the most common collector), TrustLens (AI security posture), and TrustTest (red teaming).
What it does
Prompt & content security
Jailbreak and prompt-injection detection, topic moderation, toxicity scoring,
and document/URL analysis on both input and output.
Data loss prevention
Detect and mask 43 PII entities and secrets (API keys, tokens, JWTs) in flight,
returning a transformed payload.
Agent & MCP security
Scan an agent’s own system prompt and tool/function definitions for jailbreaks
and prompt injections planted there.
Behavioral security
Detect abusive actors — bot-like cadence, repeated payloads, and escalation —
across requests and collectors.
The model in one minute
TrustGuard has four building blocks. You compose them once, then send traffic.| Concept | What it is |
|---|---|
| Detector | A reusable, named detection you create from the catalog — a catalog detector (e.g. prompt_guard, data_loss_prevention) plus its settings (thresholds, entity lists, …). Detection‑only — it decides what it finds, not what to do. |
| Policy | Where enforcement lives: gates (match request attributes before detection) + detector rules (run detectors with a Monitor / Block / Transform action), plus a Report / Enforce switch. |
| Collector | A traffic tap (gateway, SDK, browser, WAF) authenticated by an API key. It routes each request to a policy. |
| Finding | What a gate or detector reported — its source, signal, outcome, and evidence. |
What makes it safe to run inline
- Never drops traffic. A detection is always
HTTP 200with the finding in the response body. Non-2xx is reserved for auth (401), bad requests (400), and system failures (500). - Fail-open or fail-closed — your choice. If a detector errors (e.g. an upstream
model API is down), TrustGuard either drops that detector’s result and continues
(fail-open) or returns
500so you can hold traffic (fail-closed), per your deployment’s setting. A structured block decision always applies. - Enforcement is the caller’s choice. The response
status(allow/report/transform/block) is advisory. Your collector decides what to do with it.
Where to go next
How it works
The guard pipeline, gates, and the findings model.
Core concepts
Detectors, policies, and collectors.
Policies
Gates, detector rules, and the Report / Enforce switch.
Detector catalog
Every built-in detection and its settings.
Guard API
The
/v1/guard request and response contract.Telemetry Alerts
Turn guard findings into prioritized alerts — prompt-injection spikes, leaked PII/secrets, toxicity bursts.