YARA · Trellix Advanced Research Center
TRELLIX_ARC_Redline_Payload
Rule to detect the RedLine payload
- 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
rule TRELLIX_ARC_Redline_Payload : BACKDOOR FILE
{
meta:
= "Rule to detect the RedLine payload"
= "Marc Rivero | McAfee ATR Team"
= "61c2032f-1e6b-5123-8f99-ff83ae95e8a9"
= "2020-04-16"
= "2020-08-14"
= "https://www.proofpoint.com/us/threat-insight/post/new-redline-stealer-distributed-using-coronavirus-themed-email-campaign"
= "https://github.com/advanced-threat-research/Yara-Rules//blob/1919562a59f190bda60c982424f6a24c542ee3e0/malware/MALW_redline.yar#L1-L38"
= "https://github.com/advanced-threat-research/Yara-Rules//blob/1919562a59f190bda60c982424f6a24c542ee3e0/LICENSE"
= "5df956f08d6ad0559efcdb7b7a59b2f3b95dee9e2aa6b76602c46e2aba855eff"
= "44df161b7434b9137ca5bb919eb314f8447b216b3f6e1214606a898fb36ee4f4"
= 75
= 70
= "BACKDOOR, FILE"
= "v1"
= "backdoor"
= "Backdoor:W32/RedLine"
= "Cybercrime"
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "Cambrel.exe" | fullword ascii |
| $s2 | hex | { 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 … | |
| $op0 | hex | { 06 7c 34 00 00 04 7b 17 00 00 04 7e 21 00 00 0a } | |
| $op1 | hex | { 96 00 92 0e 83 02 02 00 f4 20 } | |
| $op2 | hex | { 03 00 c6 01 d9 08 1b 03 44 } | |
| $p0 | hex | { 80 00 96 20 83 11 b7 02 10 } | |
| $p1 | hex | { 20 01 00 72 0f 00 20 02 00 8a 0f 00 20 03 00 61 } | |
| $p2 | hex | { 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.
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)
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_version | v1 |
|---|---|
| malware_type | backdoor |
| malware_family | Backdoor:W32/RedLine |
| actor_type | Cybercrime |
| actor_group | Unknown |
Related rules
- MalwareESET malware-ioc· ESET Research· 2022-10-11
- MalwareESET malware-ioc· ESET Research· 2022-10-11
- MalwareESET malware-ioc· ESET Research· 2022-10-11
- MalwareESET malware-ioc· ESET Research· 2022-10-11
- MalwareSEKOIA.IO Community· Sekoia.io· 2022-09-07
- MalwareEmbee Research· Matthew @ Embee_Research· 2023-08-27
- MalwareEmbee Research· Matthew @ Embee_Research· 2023-12-24
- MalwareEmbee Research· Matthew @ Embee_Research· 2023-12-24