Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Apt_Andariel_Dorarat_Strings

Detects Dora RAT based on strings

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

What this rule detects

Detects Dora RAT based on strings

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

apt-andariel-dorarat-strings.yarDetection Rule License 1.1
rule SEKOIA_Apt_Andariel_Dorarat_Strings : FILE
{
	meta:
		description = "Detects Dora RAT based on strings"
		author = "Sekoia.io"
		id = "30388291-a287-489f-a060-c90a16cda217"
		date = "2024-06-17"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_andariel_dorarat_strings.yar#L1-L19"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "21e1c77d486cbf6ddaa2eca673275c7c21cc59fa9551c2eb02c526518ed5b217"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$x1 = "/encryption.go" ascii fullword
		$x2 = "/handshake.go" ascii fullword
		$x3 = "/trans_module.go" ascii fullword
		$enc_rsc = { 14 02 72 14 D3 4C 4A 49 55 36 14 DF 8D 6F 2D CF }

	condition:
		uint16be( 0 ) == 0x4d5a and ( all of ( $x* ) or $enc_rsc )
}

Strings (4 patterns)

IdentifierTypeValueModifiers
$x1text"/encryption.go"ascii fullword
$x2text"/handshake.go"ascii fullword
$x3text"/trans_module.go"ascii fullword
$enc_rschex{ 14 02 72 14 D3 4C 4A 49 55 36 14 DF 8D 6F 2D CF }

Condition

uint16be( 0 ) == 0x4d5a and ( all of ( $x* ) or $enc_rsc )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • All patterns in ( $x* ) must match.
  • Pattern $enc_rsc must be present.

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: 30388291-a287-489f-a060-c90a16cda217

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE