Sekoia Analyzes Gamaredon’s GammaSteel Stealer and DPAPI-Based Staging

· Original article ↗

Summary

Sekoia researchers analyze Gamaredon’s GammaSteel stealer, describing DPAPI-encrypted PowerShell functions stored in the Windows registry, document collection from drives and USB devices, and exfiltration through cloud storage with C2 and Dead Drop Resolver fallbacks.

Key points

  • Researchers report that GammaSteel stages 71 encrypted PowerShell functions in the HKCU\Printers registry key, using Windows DPAPI to bind decryption to the current user’s session.
  • The stealer searches user profiles, local and network drives, newly connected USB devices, and files as they are saved or modified.
  • It tracks previously exfiltrated files by MD5 hash and uploads selected documents to S3-compatible storage; the analyzed configuration used Tebi[.]io.
  • If primary uploads fail, fallback C2 servers can receive stolen files and return VBScript for execution on the compromised host.
  • When infrastructure is unavailable, the malware retrieves updated configuration and credentials from Dead Drop Resolvers hosted on public platforms.
  • During a month of monitoring, Sekoia says it identified 115 unique IP addresses, four domains, and five sets of S3 credentials linked to the campaign.
  • The researchers describe DPAPI-based registry staging as a technique not previously observed in Gamaredon activity; they note similarities to historical InvisiMole behavior but say tool or method sharing is only a possibility.

Article Details

Attack Vectors
  • GammaSteel is delivered as an obfuscated PowerShell script that decodes payloads with Base64 and XOR operations, then stages 71 DPAPI-encrypted functions in the HKCU\Printers registry key.
  • The orchestrator runs in hidden PowerShell processes and persists through a command written to the HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run key.
  • The stealer scans local drives and network shares hourly, monitors inserted USB drives, and watches non-USB drives for changes to targeted file types.
  • Documents copied from USB drives are placed in a hidden staging directory on the host before exfiltration; MD5 hashes are used to avoid re-uploading previously collected files.
  • GammaSteel uploads documents to S3-compatible storage and falls back to HTTP C2 endpoints. It can retrieve updated configuration from Dead Drop Resolvers and execute VBScript found in fallback C2 responses.
  • The broader infection chain uses VBScript payloads in NTFS Alternate Data Streams and obfuscates scripts with junk code and changing variables.
Defensive Notes
  • Inspect HKCU\Printers for staged PowerShell functions and investigate the reported Run-key value that launches hidden PowerShell to retrieve and execute the orchestrator.
  • Monitor hidden PowerShell and wscript.exe activity, including execution of VBScript recovered from HTTP response bodies.
  • Review recurring access to local drives, network shares, USB mass-storage devices, and document files, along with creation of hidden staging directories and local MD5 tracking files.
  • Investigate outbound HTTP PUT or POST activity associated with document uploads and requests to the reported fallback C2 and Dead Drop Resolver resources.

Indicators of compromise

TypeIndicatorContext
DOMAINjustsstop[.]ruOperator-controlled fallback C2 domain used to receive exfiltrated documents and return VBScript for execution.
DOMAINmyvnc[.]comDomain observed in the campaign’s initial-access infrastructure using No-IP DDNS.
DOMAINnorosta[.]ruActor-controlled domain identified as resolving C2 or staging infrastructure.
DOMAINselltosell[.]ruActor-controlled domain with randomized subdomains used to resolve C2 or staging infrastructure.
DOMAINserveftp[.]comDomain observed in the campaign’s initial-access infrastructure using No-IP DDNS.
DOMAINserveirc[.]comDomain observed in the campaign’s initial-access infrastructure using No-IP DDNS.
DOMAINwebhop[.]meDomain observed in the campaign’s initial-access infrastructure using No-IP DDNS.
IPV4165[.]22[.]170[.]129Hardcoded fallback C2 IP used to receive exfiltrated documents and return VBScript for execution.
URLhxxps[:]//api[.]telegra[.]ph/getPage/Hello-01-23-161Dead Drop Resolver API resource used by the stealer to retrieve configuration data.
URLhxxps[:]//mastodon[.]social/api/v1/statuses/115942411657067215Dead Drop Resolver API resource used to retrieve updated C2 and S3 configuration.
URLhxxps[:]//rentry[.]co/hwzrmfkxDead Drop Resolver page hosting network indicators and S3 credentials.
URLhxxps[:]//write[.]as/api/posts/1nei1af6dnw8qDead Drop Resolver API resource used by the stealer to retrieve configuration data.

MITRE ATT&CK

T1005 · Data from Local SystemThe stealer searches local drives and collects targeted user documents for exfiltration.T1025 · Data from Removable MediaA USB event listener locates targeted files on inserted removable drives and copies them for exfiltration.T1027 · Obfuscated Files or InformationThe article describes Base64 and XOR obfuscation, randomized variables, and junk code in the campaign's scripts.T1039 · Data from Network Shared DriveThe stealer enumerates network drives and shares and collects targeted files from them.T1041 · Exfiltration Over C2 ChannelWhen cloud-storage uploads fail, GammaSteel sends stolen documents to fallback C2 servers over HTTP.T1059.001 · PowerShellGammaSteel uses PowerShell to stage and execute its functions, including in hidden child processes.T1059.005 · Visual BasicThe fallback C2 response can deliver VBScript that the malware writes to a temporary file and executes with wscript.exe.T1071.001 · Web ProtocolsThe malware uses HTTP GET, PUT, and POST requests to retrieve configuration, upload documents, and communicate with fallback C2.T1083 · File and Directory DiscoveryThe malware enumerates profiles, drives, and files, and recursively watches drives for changes to targeted documents.T1102.001 · Dead Drop ResolverThe stealer queries public Dead Drop Resolver resources to recover C2 and S3 configuration.T1112 · Modify RegistryThe malware stages encrypted functions and updates configuration in the Windows registry, including HKCU\Printers.T1140 · Deobfuscate/Decode Files or InformationThe script decodes Base64 strings and applies XOR operations to unpack embedded code into memory.T1547.001 · Registry Run Keys / Startup FolderThe malware writes a command to the current user's Run registry key to relaunch the orchestrator at startup.T1564.004 · NTFS File AttributesThe article reports that the broader infection chain stores VBScript functions in NTFS Alternate Data Streams attached to user profiles or temporary directories.T1567.002 · Exfiltration to Cloud StorageGammaSteel uploads stolen documents to S3-compatible cloud storage, including the analyzed configuration pointing to Tebi.io.

Threat Actors

Malware

Vendors

Products

Countries

Industries

Related Articles