Threat reportMalwareTL-2026-3532
LegionRelay: Russia-aligned UAC-0247 / GREYVIBE PowerShell RAT C2 Servers Targeting Ukraine
Team Cymru identified twelve LegionRelay C2 servers (five previously unidentified) fingerprinted by AS26383, port 8000, Uvicorn ASGI and the banner 'France Education'. LegionRelay is a lightweight PowerShell RAT using REST API methods for C2, likely developed with LLM assistance, used by a Russia-aligned cluster (tracked as UAC-0247 by CERT-UA and GREYVIBE by WithSecure) against Ukrainian government, municipal healthcare and Defense Forces targets. First disclosed .
Key facts
| Identifiers | TL-2026-3532 |
|---|---|
| Also known as | LegionRelay, GREYVIBE, UAC-0247 |
| Severity | HIGH |
| First disclosed | |
| Affected products | Microsoft Windows (PowerShell-based implant) |
| Attribution | UAC-0247, GreyVibe (medium confidence) |
| Nation-state nexus | Russia |
| Malware | AGINGFLY, CHROMELEVATOR, DAYLIGHT, FallSpy, LegionRelay, PhantomRelay, RAVENSHELL, SILENTLOOP, TEASOUP, ZAPIXDESK |
| Tools | Chisel, LIGOLO-NG |
| MITRE ATT&CK techniques | T1021.001 Remote Desktop Protocol, T1027 Obfuscated Files or Information, T1059.001 PowerShell, T1059.007 JavaScript, T1071.001 Web Protocols, T1113 Screen Capture, T1204.002 Malicious File, T1218.005 Mshta, T1555.003 Credentials from Web Browsers, T1566.002 Spearphishing Link |
| Motivation | ESPIONAGE |
| Target sectors | government administration, health, defense, military |
| Target regions | ukraine |
| Detection rules | 9 (1 shown free) |
| Sources | 8 cited sources |
Detection coverage
As of 2026-10-14, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-3532 across Splunk SPL, Microsoft KQL and Sigma, covering 28 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.
Free detection: UAC-0247 / LegionRelay Delivery — mshta.exe Executing Remote HTA (Exploitation)
Detects mshta.exe launched with a remote http(s) URL or .hta argument from a user-facing parent (Explorer, cmd, PowerShell, Office, browsers, archivers). CERT-UA documents UAC-0247 delivery of LegionRelay/GREYVIBE tooling via humanitarian-aid phishing links leading to LNK -> remote HTA -> scheduled-task EXE with shellcode injection into RuntimeBroker.exe. Behaviour-first: fires without any IOC dependency. Threat TL-2026-3532.
- Languages: Splunk SPL, Microsoft KQL, Sigma
- ATT&CK: T1566.002, T1204.002, T1218.005
- Data sources: sysmon, windows_process_creation, splunk_index_sysmon
- Severity: high
- Confidence: high
Splunk SPL
index=sysmon sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=1 earliest=-24h
(Image="*\\mshta.exe" OR OriginalFileName="MSHTA.EXE")
(CommandLine="*http://*" OR CommandLine="*https://*" OR CommandLine="*.hta*")
(ParentImage="*\\explorer.exe" OR ParentImage="*\\cmd.exe" OR ParentImage="*\\powershell.exe" OR ParentImage="*\\winword.exe" OR ParentImage="*\\outlook.exe" OR ParentImage="*\\chrome.exe" OR ParentImage="*\\msedge.exe" OR ParentImage="*\\firefox.exe" OR ParentImage="*\\winrar.exe" OR ParentImage="*\\7zFM.exe")
```UAC-0247 LNK to remote HTA chain (T1218.005). Remote URL or .hta argument on mshta.exe from a user-facing parent```
| eval remote_url=if(match(CommandLine,"(?i)https?://"),1,0)
| stats count min(_time) as first_seen max(_time) as last_seen values(ParentImage) as parents values(CommandLine) as command_lines max(remote_url) as remote_url by host, User
| convert ctime(first_seen) ctime(last_seen)
| sort - last_seenMicrosoft KQL
DeviceProcessEvents
| where Timestamp > ago(24h)
| where FileName =~ "mshta.exe" or ProcessVersionInfoOriginalFileName =~ "MSHTA.EXE"
| where ProcessCommandLine matches regex @"(?i)(https?://|\.hta)"
| where InitiatingProcessFileName in~ ("explorer.exe","cmd.exe","powershell.exe","winword.exe","outlook.exe","chrome.exe","msedge.exe","firefox.exe","winrar.exe","7zfm.exe")
| project Timestamp, DeviceName, AccountName, InitiatingProcessFileName, InitiatingProcessCommandLine, ProcessCommandLine, SHA256
| order by Timestamp descSigma
title: UAC-0247 LegionRelay Delivery - mshta.exe Executing Remote HTA
id: 3f2a9c1e-7b41-4d52-9a10-353200000001
status: experimental
description: Detects mshta.exe launched with a remote URL or .hta argument from a user-facing parent process, matching the UAC-0247 / GREYVIBE LNK to remote HTA delivery chain reported by CERT-UA and Team Cymru (TL-2026-3532).
references:
- https://www.team-cymru.com/post/threat-hunting-legionrelay-c2-servers-ukraine
- https://www.withsecure.com/en/resources-hub/w-labs/greyvibe/
- https://github.com/WithSecureLabs/iocs/tree/master/GREYVIBE/
author: Threadlinqs Team
date: 2026/10/14
tags:
- attack.initial-access
- attack.t1566.002
- attack.execution
- attack.t1204.002
- attack.defense-evasion
- attack.t1218.005
logsource:
category: process_creation
product: windows
detection:
selection_img:
- Image|endswith: '\mshta.exe'
- OriginalFileName: 'MSHTA.EXE'
selection_cli:
CommandLine|contains:
- 'http://'
- 'https://'
- '.hta'
selection_parent:
ParentImage|endswith:
- '\explorer.exe'
- '\cmd.exe'
- '\powershell.exe'
- '\winword.exe'
- '\outlook.exe'
- '\chrome.exe'
- '\msedge.exe'
- '\firefox.exe'
- '\winrar.exe'
- '\7zFM.exe'
condition: all of selection_*
falsepositives:
- Legacy intranet applications distributed as HTA files over HTTP
- Administrative scripts that invoke mshta.exe with a trusted internal URL
level: high
Known false positives:
- Legacy intranet HTA applications launched from a trusted internal web server
- Software installers or admin scripts that call mshta.exe with an http(s) URL
Tuning notes: Allowlist known internal HTA hostnames in CommandLine and trusted deploy tooling by parent. Raise priority when the URL host is an external IP or sits in AS26383. Pivot on the resulting child processes (powershell.exe, scheduled-task creation, RuntimeBroker.exe injection).
- LegionRelay Loader Chain — wscript/cscript/mshta Spawning Encoded or Download PowerShell (Exploitation) · unlock with TL Creds
- LegionRelay / SILENTLOOP / CHROMELEVATOR — Browser and Messenger Data Staging via Scripts (Post-Exploitation) · unlock with TL Creds
- UAC-0247 Tunneling and Scanning Tools — Ligolo-ng, Chisel, RustScan (C2 / Lateral Movement) · unlock with TL Creds
- UAC-0247 Shellcode Injection into RuntimeBroker.exe (Exploitation) · unlock with TL Creds
- LegionRelay RDP Access Setup — RDP Enablement and Firewall Opening (Post-Exploitation) · unlock with TL Creds
- LegionRelay Obfuscated PowerShell Stager — DAYLIGHT-style Obfuscation with Web C2 (C2) · unlock with TL Creds
- LegionRelay PowerShell RAT — Screenshot Capture with REST Upload (Post-Exploitation) · unlock with TL Creds
- LegionRelay C2 — Connections to Known C2 IPs or PowerShell/Script Hosts on TCP/8000 (C2) · unlock with TL Creds
Indicators of compromise
As of 2026-10-14, Threadlinqs Intelligence tracks 28 indicators of compromise for TL-2026-3532.
Sample indicators (3 of 28)
- IP address:
194.87.128[.]243 - IP address:
89.125.189[.]118 - IP address:
194.87.108[.]110
Defanged, TLP:CLEAR. Full set of 28 indicators: unlock with TL Creds.
Technical analysis
LegionRelay is a lightweight PowerShell-based remote access trojan that communicates with its command-and-control server over REST API methods. It supports operator-issued PowerShell command execution, file enumeration and exfiltration, screenshot capture, browser data theft, Telegram and WhatsApp data exfiltration, and RDP access setup; additional functionality is delivered as operator-staged scripts after compromise. WithSecure (May 28, 2026) documents it as one of the implants of GREYVIBE, a Russian-speaking, Moscow-timezone group active since at least August 2025 whose lures, victimology and objectives align with Russian state interests (intelligence collection tied to the war in Ukraine). WithSecure also reports systematic use of generative AI (ChatGPT, Google Gemini, Ideogram) for lure imagery, obfuscators, RAT development, infrastructure and post-compromise scripting, with design flaws in LegionRelay that exposed backend functionality. The Team Cymru post is the source for the C2 infrastructure analysis and the UAC-0247 association; the link between the UAC-0247 CERT-UA reporting and GREYVIBE/LegionRelay is made by the Team Cymru report rather than independently confirmed in the other sources reviewed.
Team Cymru Scout analysis (published 2026-10-14) identified twelve C2 IPs observed between 2026-02-07 and 2026-06-15, all in AS26383, listening on TCP/8000 with a Uvicorn ASGI server, a login page common across the infrastructure and the distinctive banner 'France Education'. Activity intensified during March-April 2026. Delivery per Team Cymru and CERT-UA is humanitarian-aid-themed phishing emails with links; CERT-UA's UAC-0247 reporting (March-April 2026, advisory #6288271 as cited by Team Cymru) describes an LNK -> remote HTA -> scheduled-task EXE chain with shellcode injection into RuntimeBroker.exe and tooling including RAVENSHELL, AGINGFLY, SILENTLOOP, CHROMELEVATOR, ZAPIXDESK, RUSTSCAN, LIGOLO-NG, CHISEL and XMRig. WithSecure lists LegionRelay in the PrincessClub (fake adult-site lures) and DroneLink (fraudulent charity sites) campaigns, with PyInstaller/JavaScript loaders, DAYLIGHT (PowerShell, Oct 2025+) and TEASOUP (JavaScript, Mar 2026+) obfuscation. WithSecure notes suspected ties to the cybercriminal ecosystem (TrickBot, UAC-0098) but insufficient evidence of direct continuation. No CVE is involved; CVSS is not applicable.
MITRE ATT&CK techniques by tactic:
Lateral Movement
T1021.001 Remote Desktop Protocol
Defense Evasion
T1027 Obfuscated Files or Information; T1218.005 Mshta
Execution
T1059.001 PowerShell; T1059.007 JavaScript; T1204.002 Malicious File
Command and Control
Collection
Credential Access
T1555.003 Credentials from Web Browsers
Initial Access
Remediation
Immediate actions
- Block and alert on the 12 LegionRelay C2 IPs on TCP/8000 at the perimeter and retro-hunt proxy/firewall/NetFlow logs from 2026-02-07
- Hunt for outbound connections to AS26383 hosts on port 8000 (Uvicorn ASGI, banner 'France Education')
- Hunt for PowerShell making REST-style HTTP calls to non-standard ports and for staged PowerShell scripts spawned from mshta.exe, wscript.exe or PyInstaller loaders
- Reset browser-stored credentials and Telegram/WhatsApp sessions on hosts where LegionRelay is found
Workarounds
- Block RDP exposure and alert on unexpected RDP enablement or new local accounts (LegionRelay RDP setup capability)
Longer-term hardening
- Restrict execution of LNK, HTA and JS files and of mshta.exe and wscript.exe for standard users (per CERT-UA mitigation)
- Enable PowerShell Script Block and Module logging and constrain PowerShell with Constrained Language Mode/AMSI
- Train staff at government and healthcare bodies on humanitarian-aid-themed phishing lures and fake CAPTCHA pages
- Use Team Cymru Scout query openports.banner = "France Education" asn = "26383" openports.port = "8000" to track new infrastructure
Affected and fixed versions
- Microsoft — Windows (PowerShell-based implant)
Vulnerable versions: Windows endpoints with PowerShell enabled
Timeline
- GREYVIBE activity observed since at least August 2025 per WithSecure (month-level date)
- DAYLIGHT PowerShell obfuscator in use from October 2025 per WithSecure (month-level date)
- First LegionRelay C2 ([IP address withheld]:8000) observed by Team Cymru
- Activity intensifies March-April 2026; CERT-UA reports UAC-0247 humanitarian-aid phishing against government and municipal healthcare (month-level date); TEASOUP JavaScript obfuscator in use from March 2026
- Infrastructure rotates rapidly: eight new C2 IPs appear between 2026-03-17 and 2026-04-21, several lasting only a day
- WithSecure publishes GREYVIBE report documenting LegionRelay, PhantomRelay and FallSpy
- Last observation of C2s [IP address withheld] and [IP address withheld] by Team Cymru
- Team Cymru publishes analysis of twelve LegionRelay C2 servers and the AS26383/port 8000/'France Education' fingerprint
Sources cited
- LegionRelay: Ukraine Targeted by Five Previously Unidentified C2 Servers (Team Cymru, Will Thomas) team-cymru.com · Research · 2026-10-14
- GREYVIBE: A Russia-nexus group leveraging AI across state-aligned operations (WithSecure) withsecure.com · Vendor report · 2026-05-28
- WithSecure Labs GREYVIBE IOC repository GitHub · Code repository
- Vibe-Coding the Kill Chain: The GREYVIBE Story (Hive Pro) hivepro.com · Blog
- New Russian-linked GREYVIBE targets (The Hacker News) The Hacker News · News · 2026-05-29
- From clinics to government: UAC-0247 expands cyber campaign across Ukraine (Security Affairs) securityaffairs.com · News
- Russia-aligned crime group GREYVIBE extensively uses AI in attacks (CSO Online) csoonline.com · News
- UAC-0247 Targets Ukrainian Clinics and Government in Data-Theft Malware Campaign lifeboat.com · News
More from UAC-0247
- AgingFly Malware Campaign (UAC-0247) Targeting Ukrainian Governments, Hospitals, and Defense Personnel
- UAC-0247 Deploys Novel AGINGFLY Backdoor Against Ukrainian Hospitals, Local Government, and FPV Drone Operators
- AgingFly Malware — UAC-0247 Targets Ukrainian Government Agencies and Hospitals with Novel Dynamic C2 RAT
Previous and next in malware
AI-drafted from 8 cited sources; published ; last updated —.