Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Apt_Apt29_Quarterrig

Detects QUARTERRIG

APT / threat actorQuarterrigSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X (with warnings)
Author
Sekoia.io
Date
2023-04-19
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Detects QUARTERRIG

Associated malware family: Quarterrig.

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

YARA-X says: warning[consecutive_jumps]: consecutive jumps in hex pattern `$op_resolve_and_call_openthread`

Summary generated from the rule's metadata and condition.

Rule source

apt-apt29-quarterrig.yarDetection Rule License 1.1
rule SEKOIA_Apt_Apt29_Quarterrig
{
	meta:
		description = "Detects QUARTERRIG"
		author = "Sekoia.io"
		id = "e370ed7e-5e12-4add-95f3-3773ea8e2d03"
		date = "2023-04-19"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_apt29_quarterrig.yar#L1-L18"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "9628418789a9bc24c7e44dbc9106ffa6316aefebe33b91c749b54cb5462b1309"
		score = 75
		quality = 80
		tags = ""
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$str_dll_name = "hijacker.dll"
		$str_import_name = "VCRUNTIME140.dll"
		$op_resolve_and_call_openthread = { 48 [6] 48 [6] 8B D8 E8 [4] [3] 33 D2 B9 FF FF 1F 00 FF D0 }
		$op_resolve_and_call_suspendthread = { E8 [4] 48 8B CB FF D0 83 F8 FF }

	condition:
		all of them
}

Strings (4 patterns)

IdentifierTypeValueModifiers
$str_dll_nametext"hijacker.dll"
$str_import_nametext"VCRUNTIME140.dll"
$op_resolve_and_call_openthreadhex{ 48 [6] 48 [6] 8B D8 E8 [4] [3] 33 D2 B9 FF FF 1F 00 FF D0 }
$op_resolve_and_call_suspendthreadhex{ E8 [4] 48 8B CB FF D0 83 F8 FF }

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: Sekoia.io

Source repository: SEKOIA.IO Community @ a438a5901a

Licence: Detection Rule License 1.1 (repository licence)

Original rule

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

Rule id: e370ed7e-5e12-4add-95f3-3773ea8e2d03

Metadata

version1.0
classificationTLP:CLEAR