Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Apt_Unc3524_Quietexit_Strings

Detect the QUIETEXIT malware used by UNC3524

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

What this rule detects

Detect the QUIETEXIT malware used by UNC3524

Targets: Linux ELF.

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

Summary generated from the rule's metadata and condition.

Rule source

apt-unc3524-quietexit-strings.yarDetection Rule License 1.1
rule SEKOIA_Apt_Unc3524_Quietexit_Strings : FILE
{
	meta:
		description = "Detect the QUIETEXIT malware used by UNC3524"
		author = "Sekoia.io"
		id = "1bfa9baa-40a3-4ad7-83dc-f9340fbed180"
		date = "2022-05-04"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_unc3524_quietexit_strings.yar#L1-L23"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "9f8bc7516fdefd94c6bddaf77ea3ac1ba8a3a6380530118c4b28d74b42eaae54"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = "Child connection from %s:%s" ascii
		$ = "Failed to run %s" ascii
		$ = "add %s %s %s" ascii
		$ = "/usr/bin/xauth -q" ascii
		$ = "/tmp/dropbear-%" ascii
		$ = "cron" ascii
		$ = { DD E5 D5 97 20 53 27 BF F0 A2 BA CD 96 35 9A AD 1C 75 EB 47 }

	condition:
		uint32be( 0 ) == 0x7f454c46 and filesize > 1MB and 5 of them
}

Strings (7 patterns)

IdentifierTypeValueModifiers
$text"Child connection from %s:%s"ascii
$text"Failed to run %s"ascii
$text"add %s %s %s"ascii
$text"/usr/bin/xauth -q"ascii
$text"/tmp/dropbear-%"ascii
$text"cron"ascii
$hex{ DD E5 D5 97 20 53 27 BF F0 A2 BA CD 96 35 9A AD 1C 75 EB 47 }

Condition

uint32be( 0 ) == 0x7f454c46 and filesize > 1MB and 5 of them

In plain words (Heuristic)

  • The file must start with the ELF header — a Linux/Unix executable.
  • The file must be larger than 1MB.
  • At least 5 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: 1bfa9baa-40a3-4ad7-83dc-f9340fbed180

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE