PISA Pakistan — Community CERT

← 🚩 CTF: Getting Started

41. Threat Hunting with MITRE ATT&CK Navigator and Elastic Stack for CTF

⏱ 8 min

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 smb logs where id.resp_p = 445 and the source is not a trusted host.
  • Unauthorized SSH (T1021.004): Alert on ssh_login events from IPs outside your allow list.

Hunting Walkthrough

  1. Query Elasticsearch for the Sigma alerts.
  2. Map each alert to its ATT&CK technique ID using the event.dataset field.
  3. Add a layer in the ATT&CK Navigator and colour‑code techniques you observed.
  4. 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.

← PrevNext →