Overview
In CTF forensics challenges you receive a flood of logs and must spot the attacker’s tactics, techniques, and procedures (TTPs). By visualising those TTPs on the MITRE ATT&CK Navigator and correlating events with Elastic Stack, you can turn raw data into actionable threat intelligence. This lesson walks you through a practical hunting pipeline that works for both practice labs and live competitions.
Preparing Your Elastic Lab
- Install Elasticsearch & Kibana on a Debian/Ubuntu VM (8 GB RAM, 4 vCPUs).
- Ingest Zeek logs with Filebeat or Logstash; create an index pattern
zeek-*. - Enable the Elastic SIEM app to auto‑map network events to the ATT&CK framework.
Writing Sigma Rules for Common TTPs
- Suspicious PowerShell: Look for command lines containing
-enc. - SMB Lateral Movement (T1021.002): Detect Zeek
smblogs whereid.resp_p = 445and the source is not a trusted host. - Unauthorized SSH (T1021.004): Alert on
ssh_loginevents from IPs outside your allow list.
Hunting Walkthrough
- Query Elasticsearch for the Sigma alerts.
- Map each alert to its ATT&CK technique ID using the
event.datasetfield. - Add a layer in the ATT&CK Navigator and colour‑code techniques you observed.
- Export the JSON for sharing on your team’s MISP instance or the pisa.maahir.io portal.
Pakistan‑Specific Context
During the 2025 OLX‑Daraz scam wave, phishing domains were logged as HTTP requests to olx‑pakistan.fake[.]com. A simple KQL query (host:*fake*) surfaces these IOCs instantly. If you discover criminal activity, report it to the NCCIA cybercrime helpline 1799.
Takeaway
Spin up Elastic, ingest Zeek logs, and start mapping your first events to ATT&CK today. This workflow gives you a repeatable, shareable intelligence layer for any CTF forensics challenge.
