Time-Zone Specific OopsIE Variant Reinforces OilRig’s Targeted Approach
- Actor Motivations: Espionage,Exfiltration
- Attack Vectors: Backdoor,Spear Phishing
- Attack Complexity: High
- Threat Risk: High Impact/Low Probability
Threat Overview
Palo Alto Unit42 documents an evolved OopsIE variant deployed by OilRig against a Middle Eastern government agency in mid-2018, adding nine anti-analysis and anti-VM checks to an otherwise functionally similar trojan. The spearphishing email used an Arabic subject line ("Business continuity management training") sent to a group email address whose members had publicly published documents on that topic — indicating deliberate target research. The nine evasion checks (executed before any functional code runs) query for: CPU fan presence (Win32_Fan WMI — novel at time of publication), CPU temperature (MSAcpi_ThermalZoneTemperature — also seen in GravityRAT), mouse pointer manufacturer strings (Win32_PointingDevice — checks for VMware/VBox/Oracle), hard disk model strings (Win32_DiskDrive), motherboard manufacturer strings (Win32_BaseBoard), Sandboxie DLL (SbieDll.dll), VBox DLL (vboxmrxnp.dll), VMware DLLs (vmGuestLib.dll / vmbusres.dll), and a time zone check (DaylightName compared against Iran, Arab, Arabia, Middle East — covering UTC+2/+3/+3.5/+4 across 10 countries). A tenth check requires the user to click OK on a fake user32.dll error dialog, ensuring human interaction. Strings are obfuscated using a hyphen-delimited integer encoding (each value minus 1, converted to character). The GUID written to GDI.bin is used as the scheduled task name (replacing the hardcoded name in earlier variants), and the Trojan copies itself to %APPDATA%\Windows\WindowsImplantment.exe with hidden and system flags. C2 communication uses Internet Explorer application object HTTP requests; URL parameter strings are reversed from the previous variant (chk→khc, what→tahw, resp→pser, oops→spoo). A 2-second delay using cmd.exe choice is inserted post-dialog. Four commands are supported: run command (1), download file (2), read/upload file (3), and boom! (uninstall). C2 domain: windowspatch[.]com.
Detected Targets
| Type | Description | Confidence |
|---|---|---|
| Sector | Government Agencies and Services | Verified |
| Region | Bahrain | Medium |
| Region | Iran | Verified |
| Region | Iraq | Medium |
| Region | Kuwait | Medium |
| Region | Lebanon | Medium |
| Region | Oman | Medium |
| Region | Qatar | Medium |
| Region | Saudi Arabia | Medium |
| Region | United Arab Emirates | Medium |
| Region | Yemen | Medium |
| Region | Middle East Countries | Verified |
Extracted IOCs
- defender-update[.]com
- windowspatch[.]com
- 055b7607848777634b2b17a5c51da7949829ff88084c3cb30bcb3e58aae5d8e9
- 36e66597a3ff808acf9b3ed9bc93a33a027678b1e262707682a2fd1de7731e23
- 6b240178eedba4ebc9f1c8b56bac02676ce896e609577f4fb64fa977d67c0761
- 9e8ec04e534db1e714159cc68891be454c2459f179ab1df27d7f89d2b6793b17
Tip: 6 related IOCs (0 IP, 2 domain, 0 URL, 0 email, 4 file hash) to this threat have been found.
FAQs
Frequently Asked Questions: OilRig's OopsIE Variant with Anti-VM Time-Zone Guardrail
OilRig targeted a Middle Eastern government agency with an evolved version of their OopsIE backdoor, delivered via a spearphishing email in Arabic about "Business continuity management training" — a topic the targeted group had publicly written about, suggesting the attackers researched their target before crafting the lure. The new OopsIE variant added nine anti-VM and anti-sandbox checks to detect and avoid automated security analysis environments, the most notable being a time-zone check that prevents the malware from running on systems outside of the Middle East and Iran region.
The attack is attributed to OilRig, also known as APT34 or Helix Kitten — an Iranian state-linked cyberespionage group active since at least 2014. The OopsIE Trojan is one of OilRig's signature tools, and this evolved variant was deployed as part of their ongoing campaign of persistent attacks against Middle Eastern government entities. Unit42 notes that while OilRig's tactics remain generally unsophisticated, the group continuously layers new defensive countermeasures onto each successive tool iteration.
The goal is espionage. OopsIE gives OilRig persistent remote access to compromised government systems — operators can run arbitrary commands, upload and download files, and collect system information. The time-zone execution guardrail confirms this is not a broad campaign but a targeted operation focused specifically on government entities in the Middle East and Iran, with no interest in infecting systems outside that region.
The campaign targeted a government agency in a Middle Eastern country — the same nation state targeted by OilRig's concurrent QUADAGENT campaign, though a different organization. The time-zone guardrail narrows the potential victim pool to 10 countries across UTC+2 to UTC+4: those covered by Arabic, Arab, Arabian, Middle East, and Iran Daylight Time zones. The spearphishing email was sent to a group inbox rather than a specific individual, suggesting the attacker targeted a team or department rather than a named person.
The confirmed target was a government agency in the Middle East — consistent with OilRig's sustained focus on government institutions across the region. The same July 2018 OilRig wave simultaneously targeted another government organization in the same country using QUADAGENT, suggesting broad government sector operations across multiple ministries or agencies within a single nation.
Opening the malicious attachment triggered OopsIE, which immediately ran nine anti-VM checks — including querying the CPU fan, temperature sensor, hard disk model, and motherboard manufacturer via WMI, checking for sandbox and VM DLLs, verifying the system time zone, and presenting a fake error dialog requiring the user to click OK. Only after passing all these checks did the Trojan proceed: it copied itself to a hidden location, wrote a GUID to disk, created a scheduled task under that GUID name to run every three minutes, and began communicating with windowspatch[.]com over HTTP using the Internet Explorer application object. Commands were retrieved and results exfiltrated through reversed URL strings and BBZ/BBY-split hex-encoded data chunks.
Middle Eastern government entities are persistent intelligence targets for Iranian state-aligned actors. OilRig has systematically targeted government ministries across the Gulf and Levant for years, gathering intelligence on political decisions, bilateral relationships, and government operations that serve Iranian foreign policy interests. The time-zone guardrail's specific selection of Middle Eastern and Iranian time zones confirms this campaign was never intended to spread beyond a defined geographic target set.
Monitor for rapid sequential WMI queries for Win32_Fan, MSAcpi_ThermalZoneTemperature, Win32_PointingDevice, Win32_DiskDrive, and Win32_BaseBoard from non-administrative processes — OopsIE fires all five in sequence as part of its anti-VM battery, which is a distinctive behavioral signature. Alert on scheduled tasks with GUID-format names running VBScript from %APPDATA%\Windows\ every 3 minutes. Hunt for WindowsImplantment.exe and associated files (GDI.bin, ShwDoc.VBS, SchWin.vbs) in %APPDATA%\Windows\. Block defender-update[.]com and windowspatch[.]com and monitor HTTP traffic for URLs containing BBZ or BBY token splits — the exfiltration signature. Use the four published SHA256 hashes to scan endpoints for known OopsIE samples.