Active Directory Hardening After Near‑Miss, Saudi Arabia
A ransomware near‑miss exposed the firm’s privileged accounts and triggered a board‑level directive to secure the identity infrastructure. The existing Active Directory (AD) configuration allowed domain admin rights to be delegated across more than 30 service accounts, many of which lacked MFA. An upcoming regulatory audit required proof of hardened directory controls within 90 days. Failure to act risked operational downtime, loss of client trust, and potential fines.
The Challenge
The client is a Saudi financial services firm with 150 employees across three branches in Riyadh, Jeddah, and Dammam. Their operations run on a legacy Windows Server 2012 Active Directory forest that hosts core banking applications, internal messaging, and a VPN gateway for remote traders. A targeted phishing campaign delivered a credential‑stealing payload to a junior analyst. The malware harvested cached domain credentials, which the attackers later used to try moving laterally toward the domain controllers. An endpoint antivirus alert stopped the intrusion, but the event exposed serious gaps in privilege management.
Threats facing Saudi and broader GCC banks include credential‑dumping malware such as TrickBot, pass‑the‑hash attacks, and golden‑ticket techniques that exploit weak AD configurations. The firm’s controls, basic group‑policy restrictions and single‑factor authentication for privileged accounts, failed to detect or block these tactics. Compliance requirements from SAMA and ISO 27001 call for documented evidence of privileged‑access hardening, which the client could not provide.
Controls broke down for three main reasons. First, service accounts were granted domain‑admin rights for convenience, creating a “kitchen‑sink” permission model. Second, password policies allowed 90‑day rotation without complexity rules, encouraging credential reuse. Third, there was no centralized privileged‑session monitoring, so anomalous activity blended into normal admin traffic and went unnoticed. After the near‑miss, the board ordered an AD‑hardening project to be completed within 90 days, linking the effort to the upcoming SAMA audit and the renewal of a major corporate‑banking partnership.
The impact goes beyond compliance risk. Senior management worries that another breach could halt transaction processing, cause direct financial loss, and damage the firm’s reputation. The IT team is already stretched thin handling daily tickets and legacy‑system maintenance, leaving little capacity for a large‑scale security overhaul. The project therefore needs a clear roadmap that delivers speed, minimal disruption to banking services, and alignment with regional regulatory expectations.
The Approach
Discovery and Assessment
We launched a rapid discovery phase using BloodHound to visualize privilege relationships and PingCastle to generate an AD health score. The scans uncovered 42 privileged groups, 27 of which contained service accounts with unnecessary admin rights. We also mapped authentication flows for the core banking application, identifying three legacy service accounts that used stored plaintext passwords. Findings were compiled into a risk register that prioritized remediation based on impact and exploitability.Stakeholder Alignment
A governance board was formed with representatives from IT operations, information security, compliance, and the finance department. Weekly workshops clarified the “zero‑trust for privileged access” principle and secured executive sponsorship for budget allocation. We documented service level expectations, ensuring that any AD change would not interrupt banking transaction windows, which are limited to 02:00‑04:00 AM local time.Architecture Design
The design introduced a tiered admin model: Tier 0 for forest‑wide administrators, Tier 1 for domain admins, and Tier 2 for workstation admins. Each tier was isolated using Protected Users and Authentication Policies in Azure AD Connect. We defined Privileged Access Workstations (PAWs) for Tier 0 operators, hardened with Microsoft Defender for Endpoint and locked down to only run approved admin tools. Group Policy Objects (GPOs) were refactored to enforce Kerberos AES encryption and to disable LM/NTLM fallback.Tool Selection
We selected CyberArk Privileged Access Security to vault and rotate service account passwords, integrating it with Microsoft Defender for Identity for real‑time detection of abnormal credential use. Splunk Enterprise Security was deployed to ingest AD logs, Defender alerts, and CyberArk audit trails, providing a unified dashboard for security operations. For MFA, we leveraged Azure AD Multi‑Factor Authentication with push notifications, covering all privileged accounts without requiring hardware tokens.The Solution
Phase 1 - Foundation
The first 3 weeks focused on establishing a secure baseline. Legacy domain controllers were patched to the latest cumulative updates and configured with Secure Boot and Device Guard. We implemented Read‑Only Domain Controllers (RODCs) in the Jeddah branch to reduce attack surface. A baseline GPO hardening checklist was applied, disabling SMBv1, enforcing Windows Defender Credential Guard, and setting Account Lockout Threshold to five attempts. All privileged accounts were migrated into CyberArk vaults, with passwords set to rotate automatically every 30 days.Phase 2 - Core Implementation
During weeks 4‑8, we rolled out the tiered admin model. Tier 0 accounts were moved to a dedicated PAW farm, and MFA was enforced using Azure AD MFA. Service accounts were re‑created with Managed Service Identities where possible, eliminating stored credentials. Microsoft Defender for Identity sensors were installed on every domain controller, feeding lateral movement alerts into Splunk. We built custom detection rules in Splunk to flag unusual Kerberos ticket requests and abnormal admin logon times.Phase 3 - Hardening and Optimisation
The final 4 weeks concentrated on fine‑tuning. We deployed Group Managed Service Accounts (gMSA) for the core banking application, removing the need for static passwords. CyberArk privileged session recording was enabled for all Tier 1 and Tier 2 activities, storing video logs for audit purposes. Incident response playbooks were updated to incorporate Defender alerts, and a weekly review cycle was instituted to prune dormant accounts. The solution was validated against the SAMA audit checklist, achieving full compliance for AD security controls.Key Results
The hardening project delivered measurable risk reduction and operational efficiency. Privileged account count fell from 62 to 13, representing a 79 % decrease. MFA adoption across admin tiers reached 96 %, and credential‑theft detection time dropped from an average of 48 hours to under 3 hours. Alert volume in Splunk decreased from 45 per week to 7, allowing the security team to focus on genuine threats. Mean time to remediate a privileged misuse incident fell to 4 hours, a 92 % improvement. The client passed the SAMA audit with no findings related to AD security, unlocking the renewal of a $15 million corporate banking contract. The automation of password rotation and session recording saved an estimated 120 hours of manual audit preparation per quarter, freeing staff to work on core business initiatives.
Lessons Learned
Lesson 1: Prioritise Privilege Reduction
Removing unnecessary admin rights early created a smaller attack surface and simplified later policy enforcement.Lesson 2: Integrate Detection with Governance
Linking Microsoft Defender for Identity alerts to Splunk dashboards ensured that suspicious behavior was visible to both security analysts and compliance officers, streamlining response.Lesson 3: Align Change Windows with Business Criticality
Scheduling AD modifications during the low‑traffic 02:00‑04:00 AM window prevented service interruptions, preserving client trust and meeting banking transaction SLAs.Related Background
Always happy to talk through how these approaches apply to a similar set of challenges.
Get in Touch