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.Key capabilities
- Security analysis — Detect prompt injection, jailbreaks, and policy violations on both inputs and outputs.
- 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.
- 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.
- 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.Pick CrowdStrike AIDR from the guardrail registry

Pick CrowdStrike AIDR from the guardrail registry
Create a collector and copy its token in the Falcon console

Navigate to Collectors in the Falcon console

Add a Gateway collector and select TrueFoundry

Copy the API Token and API Base URL from your collector
Fill in the CrowdStrike AIDR form

CrowdStrike AIDR guardrail configuration form
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:Bind the guardrail to models with a rule
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.How the gateway calls AIDR
For each model request the gateway converts the chat payload into AIDR’sguard_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 aguard_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:
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
Alongsideguard_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:
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.guard_input messages and the AIDR verdict, on each entry in the Falcon Findings page:

Falcon Findings entry showing the metadata and guard input sent by the gateway
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
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.detectorshasdetected == trueandenforce_on_detectionistrue(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.
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, orenforce_on_detection = trueand at least one detector flagged the request. Open the Request Logs page in TrueFoundry and expand the guardrail span to see the full AIDRsummary,detectors, andpolicythat 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
- CrowdStrike AIDR API reference —
guard_chat_completions,unredact, request/response shapes - CrowdStrike AIDR Findings page — where AIDR logs every analysed request
- TrueFoundry guardrails overview
- Configure guardrail rules