A malicious-prompt detector protects a company's use of AI by inspecting every prompt for jailbreaks, prompt injections, and requests for harmful content. At scale, such a detector sees tens of millions of prompts a day. In CrowdStrike's production traffic, roughly one in 10,000 of those is malicious. If the detector wrongly flags just 1% of the harmless prompts, it raises a hundred false alarms for every real attack. Reviewing such a volume of alerts is impractical for most security teams, and a detector with a high false-alarm rate risks being ignored.
The CrowdStrike Superintelligence Lab set out to solve this challenge. We presented our solution at Fal.Con EU 2026: CrowdStrike SafeMind Decision Models (SDM). SDM is a fine-tuned large language model that reads a prompt once and returns a score without generating any text. In our evaluation, described below, SDM detects attacks more reliably than generative LLM judges at low false-alarm rates, responds faster, and costs less.
This post explains how SDM works and what we learned building it. We expect these lessons to apply beyond prompt security, to detection tasks where threats are rare and volumes are high:
- Let the LLM decide, not generate. Compared with generating its answer, it’s faster and cheaper, and it detects more.
- Read the answer from the model's own token probabilities. This matched a trained-head model of comparable size, and with fine-tuning, it outperformed every model we evaluated.
- Choose the threshold on production traffic, not on benchmarks.
The Challenge: Rare Attacks Amid Millions of Prompts
Securing AI applications means judging the intent of every prompt that reaches them. Attackers phrase things in endless ways, and much of what makes a prompt malicious lies in subtle nuances of intent, not in keywords. Detection must be cost-effective and fast enough to sit in the request path of every call.
Two properties of the traffic make this difficult.
- The overwhelming majority of prompts are benign : At tens of millions of prompts a day, small per-prompt costs in latency and compute add up, and even a low false-positive rate produces more false alarms than analysts can review. The useful operating range is orders of magnitude below 1%.
- One threshold must serve two very different situations : In addition to everyday traffic, the detector also sees red-team exercises, benchmarks, and active probing, where most prompts are malicious and must be detected.
Efficacy, cost, and latency rarely move together, which is why detection has historically required a trade-off between two classes of models.
- Small encoder classifiers are fast and cost-effective, but miss the subtle intent that often decides whether a prompt is malicious. At acceptable false-positive rates, they miss many attacks.
- Generative LLM judges understand intent and catch more attacks, but they answer token by token: reasoning, a verdict, and a confidence, often as JSON. A full response takes seconds per prompt, which is slow and costly at this volume. The verdict is also hard to tune. The "confidence: 95" is generated text, and it often deviates from the probability the model assigns to its answer, typically as overconfidence.¹ Self-reported confidences also cluster on a few round values, which leaves few thresholds to choose from when tuning to a target false-positive rate.
What we needed was the intent understanding of a large model with the speed and tunability of a classifier.
Decision Models: A Large Model that Answers in One Pass
A decision model is an LLM used as a classifier rather than a writer. Given a text, a question, and a list of answer options, it reads the input once and returns a score for each option, with no reasoning, explanation, or free-text verdict.
原文来源:crowdstrike.com