Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Apt_Qnapworm_Loader_May2022

Detects the QNAPWorm loader

APT / threat actorSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2022-05-23
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Detects the QNAPWorm loader

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

apt-qnapworm-loader-may2022.yarDetection Rule License 1.1
rule SEKOIA_Apt_Qnapworm_Loader_May2022 : FILE
{
	meta:
		description = "Detects the QNAPWorm loader"
		author = "Sekoia.io"
		id = "c6e87a55-73ea-4df4-ab61-b5d34968d741"
		date = "2022-05-23"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_qnapworm_loader_may2022.yar#L1-L28"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "d31fdaaacd417a4191e79e3a287e84c55109158eaacc789b2129e2ba94e443f6"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$s1 = {
        66 C1 C0 05
        0F B7 D8
        81 C3 85 D0 FF FF
        66 C1 C3 02
        0F B7 C3
        0F B6 9A ?? ?? ?? ??
        33 D8
        88 1C 11
        42
        0F B6 D2
        81 FA ?? 00 00 00
        }

	condition:
		uint16be( 0 ) == 0x4d5a and all of ( $s* )
}

Strings (1 patterns)

IdentifierTypeValueModifiers
$s1hex{ 66 C1 C0 05 0F B7 D8 81 C3 85 D0 FF FF 66 C1 C3 02 0F B7 C3 0F B6 9A ?? ?? ?? ?? 33 D8 88 1C 1 …

Condition

uint16be( 0 ) == 0x4d5a and all of ( $s* )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • All patterns in ( $s* ) 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: c6e87a55-73ea-4df4-ab61-b5d34968d741

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE