How CrowdStrike SafeMind Decision Models Catch Malicious Prompts at Scale

CrowdStrike SafeMind Decision Models, a fine-tuned LLM that reads a prompt once and returns a score without generating text, detects attacks faster and at lower cost than generative LLMs.

December 02, 2026

• • Securing AI

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:

  1. Let the LLM decide, not generate. Compared with generating its answer, it’s faster and cheaper, and it detects more.
  2. 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.
  3. 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.

Figure 1. The same LLM and prompt: read out in one pass, or generating its answer. Scores are illustrative. Figure 1. The same LLM and prompt: read out in one pass, or generating its answer. Scores are illustrative.

Decision models have recently gained attention: In a benchmark on 37 classification datasets, a commercial decision model outperformed a 27B-parameter LLM, scored by its option probabilities, on most of them.² Open-source decision models that followed use one of two designs. A trained head adds a dedicated scoring layer on top of the LLM. A letter readout writes the question into an ordinary prompt, labels each option with a letter, and derives the score from the probabilities the model assigns to those letters as its next token, with the existing output layer acting as the classifier. Reading answers from letter probabilities is established for multiple-choice evaluation,³ and LLM-based safety classifiers derive their score from the probability of the verdict token.⁴

We build on the letter readout for two reasons:

  • No training needed to start: It works on off-the-shelf LLMs, giving us a baseline and a starting point for fine-tuning.
  • Standard serving: The model runs unchanged in established inference servers such as vLLM, with no custom head to support. It inherits batching, caching, and quantization.

SafeMind Decision Models: Fine-tuned for Malicious Prompts

SDM is a letter-readout decision model fine-tuned for malicious prompt detection. Our proprietary training data combines malicious prompts from a broad range of attack categories with everyday benign ones, including synthetic examples and anonymized real-world traffic. 

An off-the-shelf LLM needs a written definition of "malicious" in every prompt. SDM learns that definition during fine-tuning, so a brief classification prompt is enough and request length is shortened.

Results

Detection Quality

We compared models by how many attacks they catch while false alarms stay below 2%, measured as normalized partial area under the curve (AUC) and averaged over evaluation sets that include public benchmarks, multilingual and obfuscated attacks, and anonymized real-world traffic. This is the range that matters in production, where models operate at low false-positive rates.

Figure 2. Partial AUC over false-positive rates 0 to 2%, mean over the evaluation sets Figure 2. Partial AUC over false-positive rates 0 to 2%, mean over the evaluation sets

An off-the-shelf LLM with the policy in its prompt already outperforms a small fine-tuned encoder at separating malicious from benign prompts when it generates its answer. With about two orders of magnitude more parameters, that is expected. Read out as a decision model, the same LLM with the same prompt scores even higher than when it generates its reasoning, a verdict, and a confidence. Answering in a single pass does not cost detection quality; it improves it. A generative judge tuned on its written confidence has only a few round values to choose from, and these rank prompts worse than the probability of the verdict letter. 

Without fine-tuning or any added component, the letter readout performed on par with an open-source trained-head decision model of comparable size. SDM, its fine-tuned version, scores highest of all. In partial AUC, the encoder reaches 0.45, the generating LLM 0.64, its letter readout 0.70, the trained-head model 0.69, and SDM 0.76.

Speed and Cost

In our measurements, SDM answers in about 150 ms at the median, which allows it to screen live traffic in real time. A generative judge needs another pass through the model for every token it writes and takes about 2 seconds for its full response. Fewer passes also mean less GPU time per prompt: On the same GPUs, the cost per prompt falls by 93%.

Figure 3. Median latency per prompt of a small encoder classifier, a decision model, and a generative LLM judge (log scale) Figure 3. Median latency per prompt of a small encoder classifier, a decision model, and a generative LLM judge (log scale)

Choosing the Threshold on Production Traffic

A decision model returns a continuous score rather than a verdict, so its threshold can be set at any operating point. This is a big advantage for security teams, who can decide how many false alarms they can afford and tune to it. But it raises a question: Where to set it?

Benchmarks consist mostly of malicious prompts, while production traffic is overwhelmingly benign, so a threshold chosen on a benchmark says little about the false alarms it will raise in production. We chose each model's threshold on real-world traffic, at one false alarm per 10,000 prompts (0.01%). All evaluation traffic is deduplicated and separated from training by time.

At that rate, a flagged prompt is about 2.5 times as likely to be malicious for SDM as for the encoder. This was measured on production traffic, with every prompt flagged by any of the models labeled by two LLM annotators and disagreements resolved by human review. The same threshold, applied unchanged to the labeled evaluation sets, more than doubles the encoder's detection rate.

The gap between the off-the-shelf and the fine-tuned model is widest here. At its own threshold, the off-the-shelf letter readout also keeps false alarms low, but it catches about a third fewer malicious prompts on the evaluation sets than SDM. To keep false alarms rare on real traffic, the off-the-shelf model needs a very strict threshold. SDM, which has seen real traffic during training, serves both with one threshold: few false alarms on traffic and a high detection rate on attack-heavy sets.

Where Decision Models Fit: Standalone or Layered

A decision model is fast enough to screen all prompts on its own, replacing the small encoder. However, it can also be used in a layered setup, which is more economical at high volume: The encoder handles the bulk of traffic, and the decision model takes the difficult cases, where its understanding of intent makes the difference.

What a decision model gives up is the explanation, which matters when an analyst triages an alert or a block must be justified to a user. Explanations can be generated on demand, for every flagged prompt or only for close calls near the threshold. For that small share of traffic, a generative model can write a rationale for the decision model's verdict, or review the case with its own reasoning and make the final call. You pay for generation only where it adds value. Like any detector, a decision model can be targeted by attackers who adapt their prompts to it, which is why we keep retraining it on new attacks.

What This Means for AI Security

For teams deploying AI applications, a decision model means higher detection rates without the latency penalty of generative detectors or the alert fatigue of smaller ones. For practitioners building detectors, the lessons are portable: Decide in one pass, fine-tune the readout, set the threshold on production traffic.

The conditions behind these results are common across cybersecurity: Positives are rare, volumes are high, and the false-alarm rate has to be set deliberately. We expect the same approach to carry over to other detection tasks of this kind, and we are applying it across our AI security work.

SDM is now available in early access in CrowdStrike® Falcon Guardian™.

Additional Resources

References

¹ Xiong et al. (2024). Can LLMs Express Their Uncertainty? An Empirical Evaluation of Confidence Elicitation in LLMs. ICLR 2024. https://arxiv.org/abs/2306.13063

² Deußer et al. (2026). Evaluating and Benchmarking the System One Model Jev. https://arxiv.org/abs/2609.37647

³ Robinson et al. (2023). Leveraging Large Language Models for Multiple Choice Question Answering. ICLR 2023. https://arxiv.org/abs/2210.12353

⁴ Inan et al. (2023). Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversations. https://arxiv.org/abs/2312.06674


CrowdStrike Falcon Platform
Ready to protect your business?

Try CrowdStrike free today

Subscribe

Sign up now to receive the latest notifications and updates from CrowdStrike

See CrowdStrike Falcon in action