LiteLLM guardrails

Screening prompts, responses and tool calls at the LiteLLM gateway with built-in checks and external guardrail services, and applying them per team, key or model.

LiteLLM built-in content filter for sensitive data

Masking or blocking card numbers, identifiers and banned keywords with LiteLLM's local regex and keyword guardrail, with no external service: prebuilt patterns, custom regex, streaming support and where an ML-based detector is still needed.

Detecting prompt injection with LiteLLM

Using LiteLLM's prompt injection checks, similarity matching against known attacks and an LLM call check, across chat, messages, responses and embeddings endpoints, including tool outputs and text attachments, and handling files it cannot scan.

Lakera Guard with LiteLLM

Running Lakera Guard as a LiteLLM guardrail for prompt attacks and content risks: the lakera_v2 integration, pre_call, during_call and monitor modes, and its limit to the chat completions endpoint.

Amazon Bedrock Guardrails with LiteLLM

Applying a Bedrock guardrail to any model behind LiteLLM, not only Bedrock models, through the ApplyGuardrail API: guardrail identifier and version, IAM role assumption and region settings.

Google Model Armor with LiteLLM

Sanitizing prompts and responses with Google Cloud Model Armor templates at the LiteLLM gateway: template and project settings, masking versus blocking, and running on input, in parallel and on output.

Microsoft Purview DLP policies with LiteLLM

Enforcing Microsoft Purview data loss prevention on AI traffic through LiteLLM: Graph processContent, the Entra app permissions, binding keys to Entra user object IDs, and blocking versus audit-only modes.

Palo Alto Networks Prisma AIRS with LiteLLM

Scanning prompts, responses and MCP tool calls with Prisma AIRS at the LiteLLM gateway: prompt injection and malicious URL detection, DLP and masking, and choosing fail-open or fail-closed behaviour.

LiteLLM guardrail policies per team, key and model

Grouping guardrails into policies and attaching them to all traffic or to specific teams, keys and models, inheriting and overriding policies, and letting teams register their own guardrails for admin approval.

Guardrails AI validators with LiteLLM

Calling a self-hosted Guardrails AI server from LiteLLM to run its validators on prompts and responses, and the input format limits of the integration.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.