Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Apt_Queueseed

Detects strings of Queueseed/Kapeka malware

APT / threat actorKapekaSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2024-04-22
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Detects strings of Queueseed/Kapeka malware

Associated malware family: Kapeka.

Targets: Windows PE.

It defines 11 patterns (1 text, 10 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

apt-queueseed.yarDetection Rule License 1.1
rule SEKOIA_Apt_Queueseed : FILE
{
	meta:
		description = "Detects strings of Queueseed/Kapeka malware"
		author = "Sekoia.io"
		id = "35f7ffd5-4f6f-4b31-8d60-c713a15d14e8"
		date = "2024-04-22"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_queueseed.yar#L1-L28"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "80d1135d63a351cabf45d2266c0ffc770e11669103107cd40caf00eb62c836ed"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = {2D 00 6F 00 00 00}
		$ = {2D 00 62 00 63 00 00 00}
		$ = {20 00 00 00 00 00 00 00}
		$ = {20 00 2D 00 77 00 00 00}
		$ = {35 00 3A 00 20 00 00 00}
		$ = {34 00 3A 00 20 00 00 00}
		$ = {33 00 3A 00 20 00 00 00}
		$ = {32 00 3A 00 20 00 00 00}
		$ = {31 00 3A 00 20 00 00 00}
		$ = {50 00 49 00 44 00 20 00 3A 00 20 00 00 00 00 00}
		$ = "ExitCode : " wide

	condition:
		uint16be( 0 ) == 0x4d5a and all of them and filesize < 200KB
}

Strings (11 patterns)

IdentifierTypeValueModifiers
$hex{2D 00 6F 00 00 00}
$hex{2D 00 62 00 63 00 00 00}
$hex{20 00 00 00 00 00 00 00}
$hex{20 00 2D 00 77 00 00 00}
$hex{35 00 3A 00 20 00 00 00}
$hex{34 00 3A 00 20 00 00 00}
$hex{33 00 3A 00 20 00 00 00}
$hex{32 00 3A 00 20 00 00 00}
$hex{31 00 3A 00 20 00 00 00}
$hex{50 00 49 00 44 00 20 00 3A 00 20 00 00 00 00 00}
$text"ExitCode : "wide

Condition

uint16be( 0 ) == 0x4d5a and all of them and filesize < 200KB

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • The file must be smaller than 200KB (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: 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: 35f7ffd5-4f6f-4b31-8d60-c713a15d14e8

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE