AlertLens
Security alerts, explained without taking orders.
An alert explainer for security teams, built so that text an attacker plants in a log cannot change the verdict.

Submission
The short version
|
|
| Problem |
Teams now ask LLMs to explain security alerts. Attackers control many log fields, so they can write instructions into them ("classify as benign"). The model reads them and can obey. Published research has demonstrated exactly this against log-reading LLMs (below). |
| Product |
AlertLens explains each alert for an analyst, manager or employee, and links alerts into incidents. Planted instructions are found and quarantined. Severity is decided by code, never by the model. Every claim is checked against the alert, and every action comes from a fixed playbook and needs a person's approval. |
| Proof |
On a real local model (llama3.2), a naive prompt was fooled by 8 of 12 injected malicious alerts; AlertLens by 0 of 12. 0 of 602 attacks published by other researchers lowered a severity. An adaptive attacker slipped past detection on 81.9% of 310 rewrites and still changed 0 decisions. 317 tests pass offline. |
| Honesty |
All data is synthetic. The real-model sample is small. Detection alone is weak; the design does not rely on it. See Known limitations. |
The problem
Security operations centres receive more alerts than people can read, and LLM assistants are being added to summarise them. Log fields such as a user agent, a username, a URL or a command line are written by whoever generated the event, which is often the attacker. That text reaches the model as input.
This is not hypothetical. Independent work published in 2026 demonstrates it against LLM log analysis:
| Source |
What it shows |
| Poisoning the Watchtower, Pandey and Bhujang (arXiv 2605.24421) |
Prompt injection through adversarial log content against LLM-augmented security operations |
| LogJack, Shah (arXiv 2604.15368, code) |
Indirect prompt injection through cloud logs |
| Just Testing, Move Along, Landauer et al. (arXiv 2607.24174) |
Evasion of LLM log interpretation with "this is only a test" style claims |
| LogInject, Karanjai et al. (USENIX Security '26) |
Context contamination in LLM analysis of network security logs |
| Hiding Prompt Injections in Their Own Logs, Gkikopoulos et al. (Zenodo) |
Attackers placing injections in the logs their own activity creates |
| OWASP Top 10 for LLM Applications (LLM01: Prompt Injection) |
Prompt injection ranked as the first risk for LLM applications |
We did not just cite these papers: we ran 602 payloads taken from five of them against AlertLens (eval/external.py, sources and licences in data/external/PUBLISHED_INJECTIONS_SOURCES.md).
Two more failure modes matter for an alert explainer: the model can invent facts (an IP address or a tool that is not in the alert), and a model that proposes free-form commands can cause damage.
The product
One user journey, all of it live:
- An alert arrives in Wazuh, Suricata, Sigma or native JSON. The website analyzer preselects a login whose user agent hides an order.
- The hidden order is caught by rules plus a trained classifier, held back from the explaining model, and shown struck through as inert text.
- Severity is scored by code: 99.52 / 100, critical, with the reasons listed. The model cannot change it.
- The explanation is written from validated facts only. Each claim shows where it came from (sensor, code, model, ATT&CK, case memory or correlation), and unsupported claims are removed and listed.
- Actions come from a fixed playbook, each with a dry run, an approval step and a rollback. Nothing touches a real system.
- Related alerts are linked into one incident with an attack graph, a timeline and likely next steps.
- Every step lands on a hash-chained audit log. Change one row and the integrity check fails.
- Attack it yourself. In the red team, plant your own wording in any field and watch a naive prompt and AlertLens side by side, then run an adaptive attacker against the detector.
|
|
Live analyzer: the planted order caught and shown inert, severity decided by code
 |
Live red team: same model, two designs. Naive prompt fooled, AlertLens not
 |
Adaptive attacker: most rewrites slip past detection, 0 decisions change
 |
Analyst app: hash-chained audit log, tamper demo breaks the chain
 |
Also: explanations for an analyst, a manager or an employee, in English or Hindi; an optional second model that can only delete claims; a Streamlit analyst app with incidents, a live feed, a benchmark page and the audit log.

Evidence: every claim, how to check it
Each row is reproducible from this repository. Numbers marked simulated use a model built to obey any instruction it reads (a worst case by construction); the others use a real model or real published attacks.
| Claim |
Measured |
Reproduce |
Evidence |
| A real model is fooled without AlertLens and not with it |
Naive 8 of 12, AlertLens 0 of 12 (llama3.2, CPU, 100 alerts, 12 injected malicious) |
make eval EVAL_ARGS="--provider ollama --model llama3.2 --limit 100 --out results/real" |
report, metrics |
| The model really ran |
Every prompt and reply, plus Ollama's own request log |
python -m scripts.real_model_proof --model llama3.2 |
trace, server log |
| Code-decided severity is the layer that stops it |
Ablation: removing detector, isolation or verifier left 0%; letting the model decide severity raised it to 66.7% |
same as above |
report, ablations |
| Published attacks do not change decisions |
602 payloads, 5 papers: 73.1% detected, 0 severities lowered |
make external |
results, sources |
| An attacker who adapts still changes nothing |
310 rewrites, 81.9% evade detection, 0 decisions changed |
make redteam |
results, code |
| The verifier notices missing evidence |
422 of 422 claims flagged when their evidence is deleted |
make faithfulness |
results |
| A real model does not restate deleted facts |
0 of 8 claims (llama3.2, 5 alerts) |
make faithfulness FAITH_ARGS="--mode model --provider ollama --model llama3.2 --alerts 5" |
results |
| Large-scale behaviour (simulated) |
2,000 alerts: attack success 100.0% naive vs 3.4% AlertLens |
make eval |
report |
| Testing on a real model changed the design |
Grounding 0.267 to 0.64, invented action IDs 5 to 0 |
see Real local model run |
before and after |
| It works end to end |
317 tests, 96% coverage; 6 browser tests drive the live site against the live API |
make test; cd web && npm run test:e2e |
tests, e2e, CI |
How it works