Join our Newsletter — 33% off our NHI Course
Home› Guides› OilRig Threat Actor Profile Guide: DNS tunnelling, Exchange…
Guide Threat Intelligence & Threat Actors

OilRig Threat Actor Profile Guide: DNS tunnelling, Exchange abuse and credential theft defences

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, edited by Lalit Choda Updated 27 October 2026 11 min read
On this page

OilRig, also called APT34, is an Iranian espionage group that hides command and control in DNS and in the victim's own Exchange server, and harvests credentials so thoroughly that it captures new passwords as users change them. Active since at least 2014, it targets government, energy, financial, chemical and telecommunications organisations in the Middle East and beyond, and it often enters through a trusted partner. This profile is for SOC analysts, Exchange and Active Directory administrators and threat intelligence teams in the Gulf, Israel and organisations with Middle Eastern operations or suppliers. It covers names and attribution as each source states it, targeting, the ATT&CK techniques mapped to the group, its credential and mailbox abuse in detail, notable campaigns and a detection and hardening plan. Regional context is in the Iran State Cyber Operations Guide, and general group background in the Threat Actor Groups Guide.

Key takeaways

  • DNS and mail are its covert channels. BONDUPDATER and ISMAgent tunnel C2 through DNS, and PowerExchange and STEALHOOK use on-premises Exchange mailboxes to receive commands and send stolen data.
  • It captures passwords at the source. Trend Micro documented a malicious password filter DLL registered with the LSA, which receives every new plaintext password, plus LaZagne, Mimikatz and a Credential Manager stealer.
  • Partners are the way in. ATT&CK records supply chain attacks that abuse trust between organisations, spearphishing from compromised email accounts, LinkedIn lures and fake VPN, conference and job sites.
  • Service accounts are disguises. Microsoft found an account named to look like an Exchange Health Manager mailbox, given Organization Management and ApplicationImpersonation, during the 2022 Albania intrusion that it linked with moderate confidence to the group.
  • Patch fast and watch Tier 0. The group exploited CVE-2017-11882 within a week of its patch and CVE-2024-30088 in 2024; most of its later work needs domain controller and Exchange access.

Who they are (names and aliases)

MITRE ATT&CK tracks the group as OilRig (G0049), a suspected Iranian threat group targeting Middle Eastern and international victims since at least 2014, which works on behalf of the Iranian government based on infrastructure references to Iran, use of Iranian infrastructure and targeting aligned with nation-state interests. Mandiant made the same assessment for APT34 in December 2017 and said APT34 loosely aligns with public reporting on OilRig. Microsoft assessed with moderate confidence that the actors who gained initial access and stole data in the 2022 attack on the Albanian government are linked to EUROPIUM (now Hazel Sandstorm), which it notes has been publicly tied to Iran's Ministry of Intelligence and Security (MOIS).

NameTracked byNotes
OilRigPalo Alto Networks Unit 42 (also Evasive Serpens), ATT&CKATT&CK primary name
APT34Mandiant / Google"Loosely aligns" with OilRig per Mandiant
Hazel Sandstorm (earlier EUROPIUM)MicrosoftRenamed in April 2023
CrambusSymantec2023 Middle East government intrusion
Earth SimnavazTrend Micro2024 Gulf energy activity
Helix Kitten, COBALT GYPSY, IRN2, ITG13, TA452Other vendorsAliases listed in ATT&CK

Related but distinct Iranian groups: the APT33 Threat Actor Profile Guide, the MuddyWater Threat Actor Profile and the Charming Kitten (APT35) Threat Actor Profile.

Targeting and motivation

  • Sectors: financial, government, energy, chemical and telecommunications (ATT&CK and Mandiant). Trend Micro's 2024 reporting focuses on oil and gas and other infrastructure in the Gulf.
  • Regions: mostly the Middle East. ESET's Outer Space (2021) and Juicy Mix (2022) campaigns, recorded in ATT&CK, targeted Israeli organisations; Symantec described an eight-month intrusion into a Middle Eastern government in 2023; Microsoft's Albania case extends the reach to Europe.
  • Motivation: long-term espionage focused on reconnaissance that benefits Iranian national interests (Mandiant). In Albania the access and stolen mail preceded a destructive ransomware and wiper attack that Microsoft attributed with high confidence to Iranian government-sponsored actors, so access gained by this group can be handed on for disruption.

Tactics and techniques (MITRE ATT&CK)

All techniques below are mapped to G0049 in ATT&CK v20, which records about 76 technique uses for the group.

TacticTechniqueHow it shows up
Resource developmentT1583.001 Domains; T1586.002 Email AccountsFake VPN portals, conference sign-ups and job sites; phishing from compromised mailboxes
Initial accessT1566.001, T1566.002, T1566.003 Spearphishing via Service; T1195 Supply Chain CompromiseMacro documents, links, LinkedIn messages; attacks through compromised partner organisations
Initial access, persistenceT1133 External Remote Services; T1505.003 Web ShellVPN, Citrix and OWA with stolen credentials; web shells on vulnerable web servers
Execution, privilege escalationT1203 Exploitation for Client Execution; T1068 Exploitation for Privilege EscalationCVE-2017-11882 in Office; Windows kernel CVE-2024-30088 for SYSTEM
PersistenceT1137.004 Outlook Home Page; T1053.005 Scheduled TaskOutlook Home Page abuse, including rollback of the CVE-2017-11774 fix; VBScript tasks
Credential access, persistenceT1556.002 Password Filter DLLMalicious filter registered with the LSA captures plaintext passwords on change
Credential accessT1003.001 LSASS Memory; T1003.004 LSA Secrets; T1003.005 Cached Domain CredentialsMimikatz, LaZagne
Credential accessT1555.003 Credentials from Web Browsers; T1555.004 Windows Credential Manager; T1056.001 KeyloggingLaZagne, VALUEVAULT, KEYPUNCH and LONGWATCH keyloggers
DiscoveryT1069.002 Domain Groups; T1201 Password Policy Discoverynet group "domain admins" and "Exchange Trusted Subsystem"; net accounts /domain
Command and controlT1071.004 DNS; T1008 Fallback ChannelsDNS tunnelling, including through requestbin.net; ISMAgent falls back to DNS when HTTP fails
Command and controlT1572 Protocol Tunneling; T1219 Remote Access ToolsPlink renamed \ProgramData\Adobe.exe forwarding RDP; ngrok
ExfiltrationT1048.003 Exfiltration Over Unencrypted Non-C2 ProtocolData sent through Microsoft Exchange and FTP
Lateral movementT1021.001 RDP; T1543.003 Windows ServiceRDP enabled and tunnelled; services created from a compromised domain controller
Defence impairment, stealthT1686.003 Windows Host Firewall; T1553.002 Code SigningFirewall rules opened for remote access; malware signed with stolen certificates

How they abuse identities and credentials

OilRig treats Active Directory and Exchange as its operating platform. The table follows the path from one user to persistent, mailbox-level control.

StageWhat the sources describeControl that breaks it
Borrow a trusted senderPhishing from compromised partner and supplier mailboxesDMARC enforcement, supplier compromise playbooks, banner and sandbox for external partner mail
Harvest stored secretsLaZagne for browser, LSA and cached credentials; VALUEVAULT for Credential ManagerBlock browser password saving on managed devices; Credential Guard; use an enterprise password manager
Capture new passwordsPassword filter DLL in LSA Notification Packages, needs local admin (Trend Micro)Allowlist approved filters; alert on changes to HKLM\SYSTEM\CurrentControlSet\Control\Lsa\Notification Packages; LSA protection
Own the domainMimikatz on a domain controller; services created from the DCTier 0 admin model, privileged access workstations, no interactive admin logons to member servers with DA rights
Live in ExchangePowerExchange logs into mailboxes with hardcoded credentials, takes commands from mail with "@@" in the subject and hides them with an inbox rule named defaultexchangerules; STEALHOOK sends data out through Exchange with the subject "Update Service"Audit inbox rule creation; alert on rules that move mail to Deleted Items; restrict EWS and remote PowerShell to named admin accounts
Disguise an account"HealthMailbox55x2yq" added to Organization Management and granted ApplicationImpersonation (Microsoft, Albania)Inventory Exchange system mailboxes; alert on any role group change and on ApplicationImpersonation assignments
  • Rotate after a password filter finding: if a malicious filter ran on a domain controller, assume every password changed since then is known, and force a domain-wide reset, including service accounts and the krbtgt account (twice).
  • Exchange service identities: Exchange Trusted Subsystem and health mailboxes are high-value non-human identities. See the Microsoft Exchange Server Security Guide and the Service Account Security Guide.

Notable incidents

DateActivitySource
November 2017CVE-2017-11882 exploited less than a week after the patch; POWRUNER and BONDUPDATER with DNS C2 against Middle East targetsMandiant, 7 December 2017
2021Outer Space campaign against Israeli organisations with SampleCheck5000 and SolarATT&CK C0042 (citing ESET)
May 2021 to July 2022Access to the Albanian government through SharePoint CVE-2019-0604, mail theft, then a destructive attack on 15 July 2022; Microsoft links the access and exfiltration actors to EUROPIUM with moderate confidenceMicrosoft, 8 September 2022
2022Juicy Mix campaign against Israeli organisations with the Mango backdoorATT&CK C0044 (citing ESET)
February to September 2023Eight-month intrusion into a Middle Eastern government; PowerExchange mail-based C2Symantec, 19 October 2023
2024Gulf energy and infrastructure targets; CVE-2024-30088, password filter DLL, STEALHOOKTrend Micro, 11 October 2024

Detection and defence

Detection signals

SignalWhere to lookNotes
Long, high-entropy subdomains or many unique subdomains under one domainDNS resolver logs, protective DNSBONDUPDATER-style DGA names; see the DNS Security Guide
New DLL listed in LSA Notification Packages; Event ID 4614 on domain controllersRegistry auditing, Security logPassword filter abuse
Inbox rules moving messages to Deleted Items; messages with "@@" in subjectExchange admin audit log, message tracePowerExchange behaviour
Mail with subject "Update Service" sent from servers or service accounts to external addressesMessage trace, DLPSTEALHOOK exfiltration
Role group changes, ApplicationImpersonation assignments, new HealthMailbox-style accountsExchange admin audit log, AD Event ID 4728 and 4732Disguised service account
fDenyTSConnections set to 0, firewall rules opened for RDP, RDP on ports such as 999, 12345 or 4455Sysmon 13, Windows Firewall logs, NetFlowPlink tunnelling of RDP
plink.exe or putty binaries renamed and run from ProgramData; ngrok processesEDR process telemetryATT&CK notes \ProgramData\Adobe.exe
Web server processes spawning PowerShellEDRWeb shell activity

Hardening plan

  1. Week 1: patch Office, Exchange, SharePoint and Windows kernel flaws listed above; confirm MFA on VPN, Citrix and OWA; block DNS from endpoints except to internal resolvers.
  2. Weeks 2 to 4: enable Exchange admin and mailbox audit logging, and alert on inbox rules, role group changes and ApplicationImpersonation; review all existing inbox rules that delete or move mail.
  3. Weeks 4 to 8: enable LSA protection and Credential Guard in audit mode, then enforce; baseline LSA Notification Packages on every DC and alert on change; disable browser password saving through policy.
  4. Quarter 1: implement a tiered admin model with privileged access workstations; restrict EWS and Exchange remote PowerShell to named admin accounts; apply protective DNS with DNS tunnelling detection.
  5. Response: if a password filter or DC compromise is found, plan a full credential reset with krbtgt rotated twice, remove rogue inbox rules and role assignments, and rebuild affected Exchange servers. Test the reset plan in a lab first, because resetting service accounts without a dependency map can cause outages.

Metrics

  • Domain controllers with a baselined, alerting LSA Notification Packages value: 100%.
  • Inbox rules that forward or delete mail reviewed: 100% each quarter.
  • Endpoints able to send DNS directly to the internet: zero.
  • Accounts holding Exchange Organization Management or ApplicationImpersonation: documented and reviewed monthly.
  • Remote access services without MFA: zero.

Framework mapping

FrameworkReferenceRelevance
NIST SP 800-53 Rev. 5AC-2 Account Management, AC-6 Least PrivilegeDisguised service accounts and Exchange role groups
NIST SP 800-53 Rev. 5IA-2 Identification and Authentication, CM-11 User-installed SoftwareMFA for remote access; controlling DLLs and tools
NIST SP 800-53 Rev. 5SC-20 Secure Name/Address Resolution Service, SI-4 System Monitoring, AU-12 Audit Record GenerationDNS tunnelling and Exchange auditing
NIST CSF 2.0PR.AA-01, DE.CM-03Identity and credential management, monitoring of personnel activity and technology use
MITRE D3FENDD3-DNSTA DNS Traffic AnalysisDetecting DNS C2

Practitioner checklist

  • Baseline LSA Notification Packages on all domain controllers and alert on change.
  • Alert on inbox rules that move or delete mail and on Exchange role group or impersonation changes.
  • Force endpoint DNS through internal resolvers with tunnelling detection.
  • Require MFA on VPN, Citrix and OWA and review accounts that bypass it.
  • Hunt for renamed Plink, ngrok and RDP on unusual ports.
  • Disable browser password storage on managed devices and enable Credential Guard.
  • Treat partner mailboxes as a threat path: verify unexpected attachments from suppliers.
  • Keep a tested domain-wide credential reset plan, including krbtgt and service accounts.

Standards and references

Related NHI Mgmt Group resources: Iran State Cyber Operations Guide · Threat Actor Groups Guide · Microsoft Exchange Server Security Guide · DNS Security Guide · APT33 Threat Actor Profile Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Researched and written by the NHI Mgmt Group editorial team using AI tools, under the editorial direction of Lalit Choda. Facts are drawn from the sources listed on this page and checked by our automated quality process. Last updated 27 October 2026. Spotted an error? Use our contact page.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM and Agentic AI security. nhimg.org

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick the PDF box to continue.