Skip to content

YARA · WithSecure Labs IOCs

WITHSECURELABS_Phantomrelay_Client

Detects PhantomRelay 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 PhantomRelay client script

It defines 4 patterns (4 text, 0 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

phantomrelay-client.yarBSD 2-Clause License
rule WITHSECURELABS_Phantomrelay_Client : FILE
{
	meta:
		description = "Detects PhantomRelay client script"
		author = "WithSecure"
		id = "d65c65a3-beab-51cd-8700-1204ce40791e"
		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#L141-L153"
		license_url = "https://github.com/WithSecureLabs/iocs/blob/1a8384468dd292c6d2c5114c32e42dc0da1f5ae1/LICENSE"
		logic_hash = "3d5ad744d1689b71604d55ec75a971f1a1f89c3f030c069a5ea205e4a3e4fac4"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$a = ".idc"
		$b = ".cmd"
		$c = ".psh"
		$d = "WebSockets.ClientWebSocket"

	condition:
		filesize < 100KB and all of them
}

Strings (4 patterns)

IdentifierTypeValueModifiers
$atext".idc"
$btext".cmd"
$ctext".psh"
$dtext"WebSockets.ClientWebSocket"

Condition

filesize < 100KB and all of them

In plain words (Heuristic)

  • The file must be smaller than 100KB (a cheap guard that skips large files).
  • 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: d65c65a3-beab-51cd-8700-1204ce40791e

Tags:FILE