IAM in the SOC Context
Identity and Access Management (IAM) logs are a goldmine for detecting credential misuse, privilege escalation, and insider threats. For Pakistani SOCs protecting e‑government portals, banking apps (easypaisa, JazzCash), and NADRA databases, IAM monitoring is mandatory under PTA data‑security directives.
Key Log Sources
- Active Directory (AD) security events (Event ID 4624, 4625, 4672).
- LDAP authentication logs from directory servers.
- NADRA e‑ID verification API logs (timestamps, IP addresses, verification status).
- SSO and MFA logs from Azure AD or on‑prem IdM.
Detecting Privilege Escalation and Anomalous Logins
- Enable “Audit Credential Validation” in Windows Group Policy to capture failed logins.
- Forward AD logs to your SIEM (ELK or Splunk) using Winlogbeat.
- Create a baseline of normal login hours and locations per user role.
- Alert on:
- Logins from a foreign IP within minutes of a successful NADRA verification.
- Account lockouts that occur after 5 failed attempts.
- Use of service accounts outside maintenance windows.
Sigma Rules for IAM & Pakistan‑Specific Use Cases
- detections:
logsource: windowsandeventid: 4672anduser: *\administratorandnot user: DOMAIN\Admin.logsource: linuxandprogram: sudoandfailure > 3.
- Save rules in
/etc/sigma/rules/iam/and sync to your SIEM. - Scenario: An e‑Portal impersonation uses a NADRA‑verified account that logs in from an overseas IP, prompting a Tier‑2 review. A JazzCash token reuse from an unrecognized device flags a mobile‑money abuse case.
Takeaway
Do: Correlate AD logon events with NADRA verification timestamps when investigating suspicious access. Don't: Dismiss “account lockout” alerts as mere user error without checking for brute‑force patterns.
Apply today: Write a Sigma rule that alerts when an AD account logs in from a country not listed in the user’s “approved locations” attribute.
