LLM triage in ES|QL cuts curl/wget false positives to zero alerts
Using ES|QL COMPLETION to triage curl and wget events eliminates analyst alerts from noisy detections in their cloud fleet.
Security & privacy Elastic Security Labs 23 Jul 2026 Tooling Real-world evidence
Published as “How Elasticsearch ES|QL COMPLETION turns noisy curl and wget rules into high-fidelity cloud security alerts”
Why it matters
Applying LLM triage after deterministic filtering can keep noisy but valuable detection rules enabled without overwhelming analysts.
Summary
Elastic tested a noisy wget detection rule on its own cloud fleet for seven days. Deterministic filters reduced matches to three destinations, which were then sent to an LLM via ES|QL COMPLETION. The LLM classified all three as false positive or low-confidence suspicious, so no alerts required analyst review. The evidence comes from a seven-day internal QA run on thousands of hosts.
What they found 2
- Only three destinations survived deterministic filters in a seven-day window and none generated analyst alerts.
“Only three destinations survived the deterministic filters in that window, and all three came from the QA environment:”
- All three surviving destinations were classified as false positive or low-severity, resulting in zero alerts.
“none of them created an alert that an analyst had to open.”
Caveats 6
- The writeup notes risks such as cost, latency, prompt injection, and inconsistent model output.
- LLM triage does not replace allow-lists and still requires analyst verification.
- The LLM can produce inconsistent output and may be vulnerable to prompt injection.
- Cost scales with the number of rows sent to COMPLETION; rows must be capped.
- The approach only works when enough context (destination, parent process, etc.) is available.
- Analysts must still verify the model's verdict before taking action.
What’s new here 4
- Combines deterministic allow-lists with LLM triage inside ES|QL rules.
- Parses destination host from curl/wget arguments to anchor allow-lists.
- Redacts credentials and secrets before sending data to the LLM.
- Applies a confidence threshold (>0.7) to only alert on high-certainty verdicts.