Skip to main content
CrowdStrike AIDR is the evolution of the Pangea AI Guard product (acquired by CrowdStrike in 2025). Existing Pangea users are requested to migrate to this.

What is CrowdStrike AIDR?

CrowdStrike Falcon AI Detection & Response (AIDR) delivers comprehensive protection for employee adoption of GenAI tools and runtime security for AI development. Built on the Falcon platform, AIDR unifies prompt-layer visibility, threat detection, data protection, and automated response across endpoints, applications, AI agents, MCP servers, AI/API gateways, and cloud environments — all managed through a single sensor and console. With AIDR, organizations can accelerate AI adoption and innovation without compromising security. In the gateway integration, AIDR analyses prompts and completions in the OpenAI Chat Completions format and applies the policies you configure in the Falcon console — including malicious prompt detection, PII / secrets redaction, language and topic policies, and access rules.
Guardrails on MCP tool calls and tool outputs (tool description validation, conflicting MCP tool name detection, and MCP tool context) are being worked on and will be released soon. Today the gateway integration evaluates prompts and completions only.

Key capabilities

  1. Security analysis — Detect prompt injection, jailbreaks, and policy violations on both inputs and outputs.
  2. Content transformation — Mutate flagged content in place (redact PII, encrypt secrets with format-preserving encryption) instead of blocking the whole request, so legitimate traffic keeps flowing.
  3. Policy-driven enforcement — Each AIDR collector can run a different Input Policy and Output Policy, so you can express “audit only” on inputs but “hard block” on outputs (or any combination) per environment.
  4. Findings & audit — Every analysed request is logged in the AIDR Findings page with the original input, processed output, detector verdicts, and TrueFoundry routing metadata (user, provider, model, tenant, and span_id) so each Finding is attributed to the request that produced it.

Adding CrowdStrike AIDR to TrueFoundry

CrowdStrike AIDR is a first-class guardrail in the gateway — you configure it through the same form as any other built-in guardrail, no adapter service required.
1

Pick CrowdStrike AIDR from the guardrail registry

From AI Gateway → Guardrails → Registry, select CrowdStrike AIDR under External Providers. See Get started with guardrails for the end-to-end flow of adding any guardrail.
TrueFoundry guardrail registry highlighting the CrowdStrike AIDR card under External Providers

Pick CrowdStrike AIDR from the guardrail registry

2

Create a collector and copy its token in the Falcon console

The gateway authenticates to AIDR with a collector token generated in the Falcon console. In Falcon, open AI detection and response → Collectors from the left-hand navigation.
Falcon console left-hand navigation with AI detection and response expanded and Collectors highlighted

Navigate to Collectors in the Falcon console

Choose Add a Collector, select the Gateway type, and pick the TrueFoundry card.
Falcon Add a Collector dialog on the Gateway tab with the TrueFoundry card selected

Add a Gateway collector and select TrueFoundry

Once the collector is created, open it to view its API Token and API Base URL. Copy both — you’ll paste the token into the guardrail’s API Key field and the base URL into the Base URL field. To view the token later, navigate to Collectors and select your collector from the list.
Falcon collector configuration showing API Token Details with API Token, API Base URL, and token expiration dates

Copy the API Token and API Base URL from your collector

The token has a short grace period after rotation before the old value is deleted. Rotate it in Falcon and update the guardrail’s API Key before the old token expires to avoid an outage.
3

Fill in the CrowdStrike AIDR form

Provide the following fields:
TrueFoundry interface for configuring CrowdStrike AIDR with fields for name, description, API key, operation, enforcing strategy and base URL

CrowdStrike AIDR guardrail configuration form

Keep the AIDR API key in TrueFoundry only — it should never appear in client code or model request bodies. The gateway attaches it as Authorization: Bearer <token> on every call to AIDR.

Advanced parameters

These are TrueFoundry platform-level guardrail parameters and apply to AIDR the same way they apply to any other guardrail integration:
enforce_on_detection is the most impactful knob in this list. With AIDR collectors deliberately set to monitor (no block action) so you can iterate on policy without breaking traffic, leaving enforce_on_detection = true lets you still block at the gateway based on the detector signal. Flip it to false once you trust AIDR’s own policy verdict end-to-end.
4

Bind the guardrail to models with a rule

Once the guardrail is saved, attach it to one or more models through a Guardrail Rule. Use llm_input_guardrails to scan prompts before they reach the model and llm_output_guardrails to scan completions before they’re returned to the caller.
See Configure Guardrail Rules for the full rule schema (model selectors, user filters, fallback policies).

How the gateway calls AIDR

For each model request the gateway converts the chat payload into AIDR’s guard_input shape and calls the configured base URL. You don’t need to write or host any code for this — the section below documents the wire format only as a reference for debugging request logs.

Endpoints used

Request shape

The gateway sends a guard_chat_completions payload containing the conversation plus the routing metadata AIDR uses to attribute each Finding. The prompt leg (event_type: "input") and completion leg (event_type: "output") share the same shape:
The conversation is forwarded turn-by-turn — the original system / user / assistant / tool messages are preserved with their roles rather than collapsed into a single string, so AIDR evaluates the structured conversation exactly as the model sees it.

Metadata sent to AIDR

Alongside guard_input, the gateway populates the following routing metadata so each request is attributed to the right user, model, and tenant in the AIDR Findings page:
A few AIDR fields are not yet sent by the gateway: source_ip, model_version, app_id, and the MCP tool context (extra_info.mcp_tools). These will be populated in future releases; until then, correlate on span_id for the missing attributes.
The system prompt is included in the messages sent to the guardrail. Because AIDR evaluates the entire conversation — including the system prompt and any assistant / tool turns — a policy can fire on content in the system prompt even when the end user’s message is perfectly benign. Keep this in mind when tuning policies: if you see unexpected violations, check whether the trigger is in the system prompt rather than the user’s input.
You can see all of this metadata, along with the guard_input messages and the AIDR verdict, on each entry in the Falcon Findings page:
Falcon AIDR Findings detail view showing Trace ID, Span ID, Tenant ID, User, Collector, Provider, Model Name, Event Type, and the multi-turn Guard Input messages

Falcon Findings entry showing the metadata and guard input sent by the gateway

FPE round-trip on output. When Operation = Mutate is enabled and the input leg redacted values with format-preserving encryption, the gateway passes the resulting fpe_context back to AIDR on the output leg as input_fpe_context so the same encryption keys are used end-to-end.

Response shape and how the gateway interprets it

The gateway maps the response into one of three outcomes based on your Operation, the Enforcing Strategy, and the platform-level enforce_on_detection flag.

When the gateway considers the call a “violation”

A violation is raised when either of these is true:
  • result.blocked == true (AIDR’s own policy decided to block), or
  • any detector under result.detectors has detected == true and enforce_on_detection is true (the default). This catches cases where AIDR is intentionally running in monitor mode (blocked = false) but you still want the gateway to enforce.

Outcome matrix

How Enforcing Strategy layers on top

The matrix above describes “what counts as a violation”. Enforcing Strategy then decides what the gateway does about violations and about its own errors talking to AIDR:
  • Enforce — violations block, AIDR errors block. Fail closed.
  • Enforce But Ignore On Error — violations block, AIDR errors (timeouts, 5xx, parsing failures) are logged but the request is forwarded. Fail open on infra issues, fail closed on policy.
  • Audit — nothing blocks. Every violation is logged for review only. Use this while tuning AIDR policies.
AIDR can return an HTTP 202 with a result.location polling URL on very large payloads. The TrueFoundry gateway currently issues a single synchronous call and treats a non-Success status as a failure — so 202s will be handled by the Enforcing Strategy error path rather than polled. If you regularly process 1 MiB+ payloads, increase the guardrail timeout and consider running with Enforce But Ignore On Error so the occasional async response doesn’t block traffic.

Validation logic at a glance

  • HTTP 400 from the gateway → either AIDR returned result.blocked = true, or enforce_on_detection = true and at least one detector flagged the request. Open the Request Logs page in TrueFoundry and expand the guardrail span to see the full AIDR summary, detectors, and policy that triggered the block.
  • HTTP 401 / 403 from AIDR → API key is invalid or doesn’t have permission for the configured collector. Re-check the Auth Data field on the guardrail.
  • HTTP 5xx or timeout from AIDR → with Enforce the request fails closed (HTTP 400). With Enforce But Ignore On Error the request is allowed through and the failure is logged.

Reference