Skip to content

YARA · Trellix Advanced Research Center

TRELLIX_ARC_Redline_Payload

Rule to detect the RedLine payload

MalwareRedLineTrellix Advanced Research CenterApache License 2.0Compiles with YARA-X
Author
Marc Rivero | McAfee ATR Team
Date
2020-04-16
Modified
2020-08-14
Score / Quality
75 / 70

What this rule detects

Rule to detect the RedLine payload

Associated malware family: RedLine.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

redline-payload.yarApache License 2.0
rule TRELLIX_ARC_Redline_Payload : BACKDOOR FILE
{
	meta:
		description = "Rule to detect the RedLine payload"
		author = "Marc Rivero | McAfee ATR Team"
		id = "61c2032f-1e6b-5123-8f99-ff83ae95e8a9"
		date = "2020-04-16"
		modified = "2020-08-14"
		reference = "https://www.proofpoint.com/us/threat-insight/post/new-redline-stealer-distributed-using-coronavirus-themed-email-campaign"
		source_url = "https://github.com/advanced-threat-research/Yara-Rules//blob/1919562a59f190bda60c982424f6a24c542ee3e0/malware/MALW_redline.yar#L1-L38"
		license_url = "https://github.com/advanced-threat-research/Yara-Rules//blob/1919562a59f190bda60c982424f6a24c542ee3e0/LICENSE"
		hash = "5df956f08d6ad0559efcdb7b7a59b2f3b95dee9e2aa6b76602c46e2aba855eff"
		logic_hash = "44df161b7434b9137ca5bb919eb314f8447b216b3f6e1214606a898fb36ee4f4"
		score = 75
		quality = 70
		tags = "BACKDOOR, FILE"
		rule_version = "v1"
		malware_type = "backdoor"
		malware_family = "Backdoor:W32/RedLine"
		actor_type = "Cybercrime"
		actor_group = "Unknown"

	strings:
		$s1 = "Cambrel.exe" fullword ascii
		$s2 = { 22 00 54 00 65 00 78 00 74 00 49 00 6e 00 70 00 75 00 74 00 46 00 72 00 61 00 6d 00 65 00 77 00 6f 00 72 00 6b 00 2e 00 44 00 59 00 4e 00 4c 00 49 00 4e 00 4b 00 22 00 }
		$op0 = { 06 7c 34 00 00 04 7b 17 00 00 04 7e 21 00 00 0a }
		$op1 = { 96 00 92 0e 83 02 02 00 f4 20 }
		$op2 = { 03 00 c6 01 d9 08 1b 03 44 }
		$p0 = { 80 00 96 20 83 11 b7 02 10 }
		$p1 = { 20 01 00 72 0f 00 20 02 00 8a 0f 00 20 03 00 61 }
		$p2 = { 03 00 c6 01 cd 06 13 03 79 }

	condition:
		uint16( 0 ) == 0x5a4d and filesize < 60KB and all of ( $s* ) and all of ( $op* ) or all of ( $p* )
}

Strings (8 patterns)

IdentifierTypeValueModifiers
$s1text"Cambrel.exe"fullword ascii
$s2hex{ 22 00 54 00 65 00 78 00 74 00 49 00 6e 00 70 00 75 00 74 00 46 00 72 00 61 00 6d 00 65 00 77 00 6f 00 72 00 6b 00 2e 00 44 00 59 00 4e 00 4c 00 49 00 4e 00 4b …
$op0hex{ 06 7c 34 00 00 04 7b 17 00 00 04 7e 21 00 00 0a }
$op1hex{ 96 00 92 0e 83 02 02 00 f4 20 }
$op2hex{ 03 00 c6 01 d9 08 1b 03 44 }
$p0hex{ 80 00 96 20 83 11 b7 02 10 }
$p1hex{ 20 01 00 72 0f 00 20 02 00 8a 0f 00 20 03 00 61 }
$p2hex{ 03 00 c6 01 cd 06 13 03 79 }

Condition

uint16( 0 ) == 0x5a4d and filesize < 60KB and all of ( $s* ) and all of ( $op* ) or all of ( $p* )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • The file must be smaller than 60KB (a cheap guard that skips large files).
  • All patterns in ( $s* ) must match.
  • All patterns in ( $op* ) must match.
  • All patterns in ( $p* ) 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

Sample hashes

Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).

  • 5df956f08d6ad0559efcdb7b7a59b2f3b95dee9e2aa6b76602c46e2aba855eff

Licence & attribution

Author: Marc Rivero | McAfee ATR Team

Source repository: Trellix Advanced Research Center @ 1919562a59

Licence: Apache License 2.0 (repository licence)

Original rule

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

Rule id: 61c2032f-1e6b-5123-8f99-ff83ae95e8a9

Metadata

rule_versionv1
malware_typebackdoor
malware_familyBackdoor:W32/RedLine
actor_typeCybercrime
actor_groupUnknown

Tags:BACKDOORFILE

More RedLine rules