Insider Threat Landscape in Pakistan
Insider incidents—such as a NADRA employee selling citizen‑record databases or a bank teller copying client CNICs—can be more damaging than external attacks. Detecting these requires User and Entity Behavior Analytics (UEBA) combined with Data Loss Prevention (DLP).
Building UEBA with Wazuh
- Deploy Wazuh agents on Windows and Linux endpoints (e.g., file servers holding NADRA data). Configure agents to forward PowerShell, Windows Security, and SSH logs to the Wazuh manager.
- Enable the ML module (
<policyMonitoring>) and setlog_allfor critical directories (C:/NADRA/, /mnt/nadra/). - Create custom rules in
/var/ossec/etc/rules/local_rules.xmlto flag anomalous events:- Large file transfers (> 50 MB) outside business hours.
- Repeated access to ‘customer_records’ from a single host.
- Visualize behavior baselines in the Wazuh dashboard and integrate with ELK for correlation.
Implementing Open‑Source DLP
- OpenDLP or MyDLP agents can be installed alongside Wazuh to monitor USB storage, clipboard usage, and printing of files containing CNIC patterns (Regex:
\d{5}-\d{7}-\d{1}). - Define policies such as ‘Block USB write if file matches CNIC regex’ and ‘Alert on bulk email attachments’.
Correlating UEBA and DLP Alerts in theHive
Forward both Wazuh and DLP alerts to theHive via the MISP taxonomy insider‑threat. Write a Sigma rule to raise a high‑priority case when a user simultaneously triggers a DLP ‘CNIC export’ and a UEBA ‘off‑hours bulk copy’.
Case Study: NADRA Data Exfiltration
A telecom’s HR department employee copied a CSV of 2,000 customer call records to a USB drive. The Wazuh agent logged the file creation event, the DLP agent matched the CNIC regex, and the correlated alert reached the SOC in real time. The SOC isolated the workstation and notified NCCIA 1799 while preserving the memory image for forensic analysis.
Do / Don’t
- Do monitor privileged accounts (Domain Admins, DBAs) with stricter baselines.
- Don’t ignore baseline behavior—initial alerts may be false positives but indicate policy gaps.
- Do conduct regular audits of DLP policies to align with NADRA data‑classification guidelines.
- Don’t store sensitive logs on the same server being monitored.
Takeaway
Combine Wazuh‑based UEBA with open‑source DLP to detect abnormal data handling and stop exfiltration before it leaves your network.
