YARA · WithSecure Labs IOCs
WITHSECURELABS_Legionrelay_Client
Detects LegionRelay client script
- Author
- WithSecure
- Date
- 2026-05-28
- Score / Quality
- 75 / 75
What this rule detects
Detects LegionRelay client script
It defines 6 patterns (6 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
legionrelay-client.yarBSD 2-Clause License
rule WITHSECURELABS_Legionrelay_Client
{
meta:
= "Detects LegionRelay client script"
= "WithSecure"
= "ec6b7aae-414d-5e54-9fc0-6826c7e9e1b8"
= "2026-05-28"
= "2026-05-28"
= "https://github.com/WithSecureLabs/iocs"
= "https://github.com/WithSecureLabs/iocs/blob/1a8384468dd292c6d2c5114c32e42dc0da1f5ae1/GREYVIBE/greyvibe.yara#L105-L119"
= "https://github.com/WithSecureLabs/iocs/blob/1a8384468dd292c6d2c5114c32e42dc0da1f5ae1/LICENSE"
= "ba3fff2de891e880884434150f7a6331356a234ad0b2bc572e158a9b7ac03c0c"
= 75
= 75
= ""
strings:
$a1 = "powershell_ise"
$a2 = "pwsh"
$a3 = "/status"
$a4 = "/commands?client_id="
$a5 = "[^\\w\\-]"
$a6 = "client_config.json"
condition:
all of them
}
Strings (6 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $a1 | text | "powershell_ise" | |
| $a2 | text | "pwsh" | |
| $a3 | text | "/status" | |
| $a4 | text | "/commands?client_id=" | |
| $a5 | text | "[^\\w\\-]" | |
| $a6 | text | "client_config.json" |
Condition
all of themIn plain words (Heuristic)
- All patterns in the rule must match.
Test this rule in your browser
Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.
Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.
References
Licence & attribution
Author: WithSecure
Source repository: WithSecure Labs IOCs @ 1a8384468d
Licence: BSD 2-Clause License (repository licence)
Copyright notice: Copyright (c) 2022, WithSecure Oyj
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: ec6b7aae-414d-5e54-9fc0-6826c7e9e1b8
Related rules
- Suspicious / huntingWithSecure Labs IOCs· WithSecure· 2026-01-22
- MalwareWithSecure Labs IOCs· WithSecure· 2026-01-22
- MalwareWithSecure Labs IOCs· WithSecure· 2022-11-17
- GenericWithSecure Labs IOCs· WithSecure· 2026-01-22
- GenericWithSecure Labs IOCs· WithSecure· 2026-01-22
- GenericWithSecure Labs IOCs· WithSecure· 2026-01-22
- GenericWithSecure Labs IOCs· WithSecure· 2026-01-22
- GenericWithSecure Labs IOCs· WithSecure· 2026-01-22