Skip to content

YARA · WithSecure Labs IOCs

WITHSECURELABS_Legionrelay_Client

Detects LegionRelay client script

GenericWithSecure Labs IOCsBSD 2-Clause LicenseCompiles with YARA-X
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:
		description = "Detects LegionRelay client script"
		author = "WithSecure"
		id = "ec6b7aae-414d-5e54-9fc0-6826c7e9e1b8"
		date = "2026-05-28"
		modified = "2026-05-28"
		reference = "https://github.com/WithSecureLabs/iocs"
		source_url = "https://github.com/WithSecureLabs/iocs/blob/1a8384468dd292c6d2c5114c32e42dc0da1f5ae1/GREYVIBE/greyvibe.yara#L105-L119"
		license_url = "https://github.com/WithSecureLabs/iocs/blob/1a8384468dd292c6d2c5114c32e42dc0da1f5ae1/LICENSE"
		logic_hash = "ba3fff2de891e880884434150f7a6331356a234ad0b2bc572e158a9b7ac03c0c"
		score = 75
		quality = 75
		tags = ""

	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)

IdentifierTypeValueModifiers
$a1text"powershell_ise"
$a2text"pwsh"
$a3text"/status"
$a4text"/commands?client_id="
$a5text"[^\\w\\-]"
$a6text"client_config.json"

Condition

all of them

In 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.

Open in editor

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

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: ec6b7aae-414d-5e54-9fc0-6826c7e9e1b8