Unraveling Greenbug Group's RAT: Keylogging, Powercat, and Beyond
- Actor Motivations: Espionage,Exfiltration
- Attack Vectors: RAT,Spyware
- Attack Complexity: Medium
- Threat Risk: High Impact/Low Probability
Threat Overview
NCC Group's Ahmed Zaki provides the first detailed technical analysis of ISM RAT (Ismdoor) version 5.0.0, the HTTP-based variant used by the Greenbug group before the group later switched to DNS tunneling. NCC identifies three versions of the RAT in the wild; v5.0.0 is the most capable, adding keylogging (WinIt.exe), Powercat-based shell access on port 4444, Mimikatz credential dumping, and UAC bypass via Invoke-BypassUAC and Invoke-PsUACme — the latter suspected to be from the Nishang PowerShell framework. All C2 communication uses HTTP POST requests to update.winappupdater[.]com with a WinHTTPClient user agent; key endpoints include /Home/CC (connection check), /Home/CR (command receive), /Home/AV (alive), and /Home/SCV (command result reporting). The SI command collects extensive system reconnaissance: username, IP configuration, network connections, running tasks, services, and installed AV/firewall products via WMIC — all written to a temporary .txt file and exfiltrated. NCC notes that the RAT's authors copy-pasted WinHTTP code directly from MSDN examples, left debugging messages in release builds, and used an unusual method to retrieve %TEMP% via a command prompt rather than the standard Windows API — leading the analysts to conclude the group is not technically sophisticated despite the breadth of their tooling. The RAT uses timer-queue callbacks for thread management and is assessed to be under active development given ongoing code refactoring and the introduction of versioning. Source URL is no longer accessible; this analysis is based on the archived PDF attachment.
Extracted IOCs
- 03e0260259ad931b5885fccac1dafe3b
- 0c735fe4379a676eacd1d0f580d25830
- 146a112cb01cd4b8e06d36304f6bdf7b
- 41b450a94784fa53790ebfdcacad7daf
- a96d211795852b6b14e61327bbcc3473
- b5257339812af1dbb8b6a83a93137282
- bf4b07c7b4a4504c4192bd68476d63b5
- fa3dbe37108b752c38bf5870b5862ce5
- 0e47a027651133ab980dd040d3347d2028ffd32d
- 2e106e67876b52c4545763fe6741ad8e9eeb2b09
- 4c85c5062ece9aec26b6bf6a785ec7e60c824b0b
- 62caa9cb00bf0b8e97ec6d1383368a0c8e9b42d7
- a330ca851cca775e9afb31848c8ccc67165eefe7
- d843a65ad0e3c2f2fd87c30c6cb0f6b66d6355d1
- d92b0710474ade5097f28425884ad65b6bb5939d
- f5ee16fc76a7807cd13101de8cdbce0724789b6d
- 21f5e60e9df6642dbbceca623ad59ad1778ea506b7932d75ea8db02230ce3685
- 308a646f57c8be78e6a63ffea551a84b0ae877b23f28a660920c9ba82d57748f
- 319a001d09ee9d754e8789116bbb21a3c624c999dae9cf83fde90a3fbe67ee6c
- 44bdf5266b45185b6824898664fd0c0f2039cdcb48b390f150e71345cd867c49
- 5a36bd3c7aac57a8f878cc398e49ae59403c60dc900e02e5768f1ae8a6453ec2
- 6b28a43eda5b6f828a65574e3f08a6d00e0acf84cbb94aac5cec5cd448a4649d
- 7f16824e7ad9ee1ad2debca2a22413cde08f02ee9f0d08d64eb4cb318538be9c
- 82beaef407f15f3c5b2013cb25901c9fab27b086cadd35149794a25dce8abcb9
Tip: 24 related IOCs (0 IP, 0 domain, 0 URL, 0 email, 24 file hash) to this threat have been found.
Overlaps
Source: Vin Ransomware - January 2017
Detection (three cases): 319a001d09ee9d754e8789116bbb21a3c624c999dae9cf83fde90a3fbe67ee6c, 6b28a43eda5b6f828a65574e3f08a6d00e0acf84cbb94aac5cec5cd448a4649d, 7f16824e7ad9ee1ad2debca2a22413cde08f02ee9f0d08d64eb4cb318538be9c
Hint: Overlaps are extracted automatically by examining the IOCs associated with all indexed threats and actors.
FAQs
Frequently Asked Questions: Greenbug's ISM RAT — Keylogging, Powercat, and Shamoon
NCC Group published a technical breakdown of ISM RAT (also called Ismdoor) version 5.0.0, the HTTP-based remote access trojan used by Greenbug to spy on targets before that group later switched to a DNS-based communication channel. The report reveals that v5.0.0 introduced significant new capabilities — keylogging, credential theft via Mimikatz, Powercat shell access, and UAC bypass — making it substantially more dangerous than earlier versions. Greenbug used this tool to gather user credentials and system information, which researchers suspect was a precursor step enabling the destructive Shamoon disk-wiping attacks on Saudi organizations.
The RAT is attributed to Greenbug, an Iranian-linked cyberespionage group. Symantec first identified the group and its connection to the Shamoon campaigns. NCC Group's analysis corroborates Symantec's and McAfee's prior work while going deeper into the malware's internal structure. NCC notes that despite Greenbug's broad toolset, the coding quality suggests the group is not technically elite — they copy-pasted standard code from MSDN examples and left debugging output in released samples.
ISM RAT's primary purpose is espionage and credential theft. It collects extensive system and user information — including running processes, network connections, installed security products, and user credentials via Mimikatz and keylogging. This reconnaissance and credential harvesting is believed to have enabled the Shamoon/Disttrack campaigns: once the RAT had stolen valid administrator credentials, Disttrack could spread across Saudi networks and wipe disks at a scheduled time. The RAT itself causes no direct destruction — its role is to gather access and intelligence for downstream operations.
Based on the samples analyzed and their submission origins, the campaign targeted organizations in Saudi Arabia. All known samples were submitted to VirusTotal from Saudi Arabia, and the suspected downstream Shamoon attacks hit Saudi companies. The campaign spans at least mid-2016 through early 2017, with the malware actively developed and versioned throughout that period.
The targeting aligns with the broader Shamoon campaign pattern — Saudi Arabian organizations, particularly in energy and critical infrastructure. NCC Group's report does not name specific victim sectors, but the credential theft goal and Shamoon connection point to high-value Saudi enterprises as the intended targets.
Once installed on a victim machine, ISM RAT communicates with attacker-controlled servers via HTTP POST requests, using Microsoft's standard WinHTTP library — blending in with normal web traffic. It runs a background check-in every few seconds to retrieve commands. When directed, it silently collects system information (users, network config, running services, installed security software), logs keystrokes, dumps Windows credentials using Mimikatz after bypassing UAC controls, opens a reverse shell via Powercat for interactive attacker access, and exfiltrates collected data back to the C2. Temporary files used during collection are deleted afterward to reduce forensic traces.
Saudi Arabian organizations — particularly in energy and critical infrastructure — are strategic targets for Iranian state-aligned actors. Compromising these organizations serves both intelligence collection and disruptive objectives. In this case, the stolen credentials appear to have been the key that unlocked the follow-on Shamoon attacks, which wiped thousands of machines at Saudi companies. Access gained through ISM RAT likely had outsized impact relative to the RAT's modest technical sophistication.
Block outbound HTTP to update.winappupdater[.]com and alert on WinHTTPClient or WinHTTP Example/1.0 user agents in outbound traffic — both are hardcoded in the RAT. Alert on PowerShell execution of Invoke-BypassUAC or Invoke-PsUACme scripts, and monitor for outbound connections on port 4444 which Powercat uses for its reverse shell. Hunt for WinIt.exe in non-standard locations. Deploy the YARA rule published by NCC Group (trojan_ismrat_gen) across endpoints. Monitor WMIC queries enumerating AV and firewall products from non-administrative contexts — this is a specific behavioral pattern of the RAT's SI reconnaissance command.