The Base64 Disguise: How GreenBug's Trojan ISMAgent Evades Detection
- Actor Motivations: Espionage,Exfiltration
- Attack Vectors: Vulnerability Exploitation,RAT,Spear Phishing
- Attack Complexity: Medium
- Threat Risk: High Impact/Low Probability
Threat Overview
ClearSky Research Team documents new ISMAgent samples and infrastructure used by the Iranian threat group Greenbug in August 2017. The delivery chain begins with a malicious Word template file named "change managment.dot" that exploits CVE-2017-0199, a remote code execution vulnerability in Microsoft Office. Exploiting this vulnerability causes the document to reach out to msoffice-cdn[.]com and retrieve a remote template (template.rtf), which in turn executes a hidden PowerShell command. The PowerShell command downloads a file called ntluca.txt from a.pomf[.]cat — a file that appears to be a base64-encoded digital certificate but is actually an ISMAgent payload. The file is decoded on disk using the legitimate Windows utility certutil.exe, producing the ISMAgent executable (srvConhost.exe) which is then run silently. ClearSky provides a Maltego-based infrastructure graph mapping the relationships between the IOCs, including C2 IPs (74.91.19[.]122, 82.102.14[.]246, 185.162.235[.]121), domains (cdnmsnupdate[.]com, msoffice-cdn[.]com), and WHOIS registrant data (neslihan.ovcivit@mail.ru). Several of these IOCs overlap with OilRig infrastructure documented in a concurrent Palo Alto Networks report, suggesting shared or coordinated infrastructure between the two Iranian-linked groups. Source URL is no longer directly accessible; this analysis is based on the archived PDF attachment.
Detected Targets
| Type | Description | Confidence |
|---|---|---|
| Sector | Information Technology | Medium |
| Region | Middle East Countries | High |
Exploited Vulnerabilities
Extracted IOCs
- cdnmsnupdate[.]com
- msoffice-cdn[.]com
- a.pomf[.]cat
- www.msoffice-cdn[.]com
- neslihan.ozcivit@mail[.]ru
- 15d9d184b71d243ae5c005c68a045889
- 3d497c4711c0226d86a693a40891f9a1
- 66eaef10226fb279dba64bb5948bc85b
- 6d2f8a06534e2ebebc43295fb266a8ca
- 7d83715a9a6aabcbc621cc786de0c9ea
- 812d3c4fddf9bb81d507397345a29bb0
- 96b47c5af8652ac99150bf602a88498b
- 63b14feac7d28ed054aff2d26f05239c7012274d
- 6524f8a29c7fd0190f53d1e61d2bb00bd7cc9aa8
- 33c187cfd9e3b68c3089c27ac64a519ccc951ccb3c74d75179c520f54f11f647
- 66358a295b8b551819e053f2ee072678605a5f2419c1c486e454ab476c40ed6a
- 185[.]162.235.121
- 74[.]91.19.122
- 82[.]102.14.246
- hxxp://74[.]91.19.122/action2/
- hxxp://82[.]102.14.246/webdav/aws[.]exe
- hxxp://a.pomf[.]cat/ntluca.txt
- hxxp://www.msoffice-cdn[.]com/updatecdnsrv/prelocated/owa/auth/template.rtf
Tip: 23 related IOCs (3 IP, 4 domain, 4 URL, 1 email, 11 file hash) to this threat have been found.
Overlaps
Source: Palo Alto Network - April 2019
Detection (two cases): 185[.]162.235.121, msoffice-cdn[.]com
Source: Palo Alto Networks - February 2018
Detection (one case): msoffice-cdn[.]com
Source: Palo Alto Networks - October 2017
Detection (seven cases): 74[.]91.19.122, 82[.]102.14.246, hxxp://82[.]102.14.246/webdav/aws[.]exe, 33c187cfd9e3b68c3089c27ac64a519ccc951ccb3c74d75179c520f54f11f647, 66358a295b8b551819e053f2ee072678605a5f2419c1c486e454ab476c40ed6a, cdnmsnupdate[.]com, msoffice-cdn[.]com
Hint: Overlaps are extracted automatically by examining the IOCs associated with all indexed threats and actors.
FAQs
Frequently Asked Questions: Greenbug's ISMAgent Campaign Exploiting CVE-2017-0199
ClearSky discovered new samples of ISMAgent — Greenbug's custom espionage trojan — being delivered through a deceptive multi-stage chain. The attack started with a malicious Word document that exploited a known Microsoft Office vulnerability (CVE-2017-0199) to silently download and run a hidden PowerShell command, which then fetched what appeared to be a digital certificate file. That file was actually the ISMAgent malware encoded in base64, decoded on the victim's machine using a built-in Windows tool called certutil.exe. The decoded malware then ran silently under a filename designed to look like a legitimate Windows system process.
The campaign is attributed to Greenbug, an Iranian-linked cyberespionage group. ClearSky's analysis also identified that several infrastructure indicators from this campaign overlap with OilRig — another Iranian-linked threat group — suggesting possible shared infrastructure or coordinated operations between the two groups. Both are assessed to be aligned with Iranian state interests and have historically targeted organizations across the Middle East.
The goal was espionage. ISMAgent is a remote access trojan that gives attackers persistent, covert access to compromised systems — allowing them to collect credentials, capture system information, exfiltrate files, and maintain long-term footholds in targeted networks. This campaign represents Greenbug's continued effort to gain access to Middle Eastern technology organizations, consistent with prior campaigns linked to Iranian intelligence-gathering objectives.
ClearSky's report focuses on the technical delivery chain and new infrastructure samples rather than victim breadth. The targeting is assessed as Middle East-focused based on the group's known operational history and corroborating Palo Alto Networks reporting. The campaign activity window identified by ClearSky spans mid to late August 2017, with the infrastructure and samples likely used in targeted spearphishing operations against specific organizations rather than broad opportunistic attacks.
Based on Greenbug's known targeting pattern and concurrent Palo Alto Networks reporting, the campaign focused on technology organizations in the Middle East. ClearSky's report does not name specific victim organizations. The IT sector targeting is consistent with Greenbug's established interest in organizations that hold sensitive network access credentials or serve as entry points into broader enterprise infrastructure.
The attack used a malicious Word template (.dot file) that exploited CVE-2017-0199 when opened. This triggered a silent HTTP request to fetch a remote file from msoffice-cdn[.]com. That file executed a PowerShell command hidden from the user's view, which downloaded what appeared to be a text file from an anonymous file hosting service. The file was actually ISMAgent encoded in base64. A built-in Windows command-line tool (certutil.exe) was then used to decode it into an executable, which was saved with a name resembling a legitimate Windows process (srvConhost.exe) and run automatically. From that point, ISMAgent connected to attacker-controlled C2 servers over HTTP.
Middle Eastern technology organizations are attractive to Iranian-linked actors for several reasons: they often hold network credentials and access that can be leveraged to reach higher-value targets, they process sensitive data relevant to regional business and government operations, and compromising IT infrastructure can enable persistence across multiple downstream organizations. Greenbug's known connection to the Shamoon credential-theft-to-destruction pipeline makes IT sector access particularly valuable as a stepping stone to more damaging follow-on operations.
Ensure Microsoft Office is fully patched — CVE-2017-0199 should have been addressed years ago, but legacy environments may still be vulnerable. Alert on certutil.exe being used for base64 decoding in user contexts, which is abnormal and a direct behavioral indicator of this delivery chain. Block PowerShell processes spawned with -WindowStyle Hidden from Office application parent processes. Monitor outbound connections to anonymous file-hosting platforms. Block the known C2 domains and IPs in the IOC bundle, and flag any DNS or HTTP activity to msoffice-cdn[.]com, cdnmsnupdate[.]com, or the three C2 IP addresses listed in this report.