PISA Pakistan — Community CERT

← ⚙️ GRC & PECA — Governance, Risk, Compliance

38. Proactive Threat Hunting in Pakistani Networks: Leveraging Zeek, MITRE ATT&CK, and ELK

⏱ 10 min

The Case for Threat Hunting in Pakistani Financial Networks

Signature‑based detection frequently misses novel attack patterns that circulate in OLX, Daraz, and WhatsApp‑forwarded scams. Pakistani financial institutions must move beyond reactive alerting to proactive threat hunting—searching for adversary behaviors before they generate alarms. The NCCIA’s 1799 portal can receive IOCs discovered during hunts, feeding national situational awareness and satisfying PTA breach‑notification expectations.

Mapping Tactics with MITRE ATT&CK

Select tactics relevant to local threats:

  • T1566 – Phishing (used in easypaisa‑impersonation campaigns)
  • T1070 – Data Destruction (potential sabotage of payment gateways)
  • T1048 – Exfiltration Over Alternative Protocol (DNS tunneling)

Use the ATT&CK Navigator to visualize coverage gaps and prioritize hunts based on risk to JazzCash and SBP‑regulated services.

Building a Hunt Using Zeek and ELK

Zeek captures rich connection metadata:

  • conn.log – session details, duration, bytes
  • http.log – URI, user‑agent, request headers
  • dns.log – query names, response codes
  • ssl.log – certificate subjects, JA3 fingerprints

Ingest Zeek logs into ELK via Filebeat and create a Kibana dashboard to spot anomalies such as excessive DNS queries to external resolvers. Write a Sigma rule that alerts on dns.query_length > 100.

Hypothesis‑driven steps:

  1. Choose a tactic (e.g., DNS exfiltration).
  2. Form hypothesis: “An internal host may be tunneling transaction data over DNS.”
  3. Query Zeek DNS logs for high‑entropy subdomains, large answer sizes, or unusual query rates.
  4. Validate with the Sigma rule.
  5. Document findings in TheHive, tag with ATT&CK IDs, and share with the SOC.

Operationalizing Findings

When a hypothesis confirms an active threat:

  • Push IOCs to your MISP instance for automatic alert enrichment.
  • Update SIEM correlation rules to catch future occurrences.
  • Report critical IOCs to NCCIA 1799 and consider a PTA breach notification if customer data is involved.

Do / Don't

  • Do maintain a hunting journal (date, hypothesis, data sources, results, lessons learned).
  • Don't hunt without a clear, testable hypothesis—random fishing expeditions waste resources.
  • Do involve legal counsel before any active response that could alter traffic.
  • Don't ignore baseline behavior; first understand normal before detecting abnormal.

Takeaway: Run a Zeek‑based DNS‑exfiltration hunt in a test environment, translate results into MITRE ATT&CK tactics, and闭环 the detection loop using ELK and MISP.

← PrevNext →