Smart DFIR Platform
Endpoint forensics, log correlation and an LLM assistant that held up against every prompt injection we tested. Built during my internship at Air Algérie.
- Kind
- Security
- Year
- 2025–26
- Status
- Engineering thesis · Air Algérie internship
- Links
- —
- Views
- Velociraptor
- Elastic Stack
- qwen25-dfir (fine-tuned)
- RAG
- Caldera
- Docker Compose

Context
This was my engineering thesis at ESTIN, built with Salim Abdoune during a six-month internship (February–July 2026) at Air Algérie, Algeria's national airline, mentored by one of their cybersecurity engineers. The internship gave us real infrastructure constraints to design against; the platform itself was deployed on our own cloud VPS and test endpoints.
The problem
During an incident, evidence is scattered across endpoints, log sources and tools, and commercial SIEMs are expensive. Adding an LLM to the investigation helps with the reading, but it also adds an attack surface: anyone who can put text in front of the model can try to steer it.
What I did
- Velociraptor collects forensic artefacts from the endpoints; the Elastic Stack ingests and correlates the logs.
- A fine-tuned model,
qwen25-dfir, answers the analyst's questions and is grounded in the evidence through a RAG pipeline. - Every prompt goes through a four-stage injection classifier before it reaches the model.
- The whole thing ships as Docker Compose on a cloud VPS, so it can be torn down and rebuilt from scratch.
- Evaluation: Caldera emulated 8 MITRE ATT&CK techniques, and we compared detection against Wazuh and Splunk.
Architecture
Collection & detection
- Caldera8 ATT&CK techniques
- EndpointsVelociraptor agents
- Velociraptorforensic collection
- Elastic Stackingest + correlate
Analyst assistant
- Analystquestion
- Injection filter4 stages
- RAGevidence from Elastic
- qwen25-dfirfine-tuned LLM
The platform




Testing it
We ran the attacks with MITRE Caldera, one operation per technique, and timed how long each took to surface as an alert.

The injection filter was tested against a corpus of 25 adversarial prompts, first with the classifier switched off, then on. Here is the same XML system-tag injection both ways:


Results
- detection across 8 emulated ATT&CK techniques
- 100%
- mean time to detect
- 23.5 s
- of tested adversarial prompts blocked
- 100%
- regressions across 8 DFIR task categories after fine-tuning
- 0
Next case
"Free Claude Code" to malware