Elastic classifiers detect prompt injection, payloads, obfuscation and refusals at ingest
Four lightweight classifiers can reliably detect prompt injection, encoded payloads, obfuscated words, and model refusals in GenAI traffic at ingest time without requiring GPU resources.
Security & privacy Elastic Security Labs 23 Nov 2026 Defense Prototype evidence
Published as “Thinking fast about prompt injection: New System 1 models in Elastic”
Why it matters
Enables organizations to detect GenAI prompt attacks locally without sending data to external services.
Summary
Elastic’s Security for AI package ships four small System 1 classifiers that score every GenAI prompt and response as it is indexed, adding scores and excerpts to security_ai fields. The models run inside the Elasticsearch cluster in milliseconds, need no GPU, and flag instruction overrides, Base64/hash strings, word obfuscation, and assistant refusals. High-scoring events can be sent to a larger LLM for verification, and three anomaly-detection jobs monitor unusual tool usage for AWS Bedrock. The evidence is limited to a technical preview with example outputs, without large-scale real-world evaluation.
What they found 1
- Four small classifiers can detect prompt injection, encoded payloads, obfuscation, and refusals at ingest without an LLM reading every event.
“Four small classifiers score every GenAI prompt and response at ingest, inside your own cluster, catching prompt injection, encoded payloads, obfuscated words and refusals without an LLM reading every event.”
Caveats 5
- The model released in the technical preview supports English only, with multilingual support planned.
- An anomaly alert is a statistical signal about the tool requests that the model generated. It doesn’t confirm that a tool was executed or that the activity was malicious.
- The current architecture uses 1-3-gram word features but may change after the technical preview.
- Support is limited to English language inputs and outputs.
- Anomaly detection jobs are only available for the AWS Bedrock integration.
What’s new here 4
- Four System 1 classifiers for instruction override, encoding/hash, word obfuscation, and refusal detection.
- Models run at ingest in milliseconds inside the cluster, requiring no GPU.
- Security_ai fields store scores, decoded content, and top snippets for analyst review.
- Three anomaly-detection jobs and eight prebuilt detection rules map to MITRE ATLAS and OWASP Agentic Application controls.