YARA · Embee Research
EMBEERESEARCH_Win_Redline_Updated_Bytecodes_Oct_2023
Configuration related bytecodes in redline .net files
- Author
- Matthew @ Embee_Research
- Date
- 2023-10-11
- Score / Quality
- 75 / 75
What this rule detects
Configuration related bytecodes in redline .net files
Associated malware family: RedLine.
It defines 2 patterns (1 text, 1 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule EMBEERESEARCH_Win_Redline_Updated_Bytecodes_Oct_2023
{
meta:
= "Configuration related bytecodes in redline .net files"
= "Matthew @ Embee_Research"
= "1e4470cf-fad3-57e5-8a95-deb97e98dbdc"
= "2023-10-11"
= "2023-10-11"
= "https://github.com/embee-research/Yara-detection-rules/"
= "https://github.com/embee-research/Yara-detection-rules//blob/ac56d6f6fd2a30c8cb6e5c0455d6519210a8b0f4/Rules/win_redline_bytecodes_oct_2023.yar#L2-L35"
= "N/A"
= "0cc3a0f8b48ef8d8562b9cdf9c7cfe7f63faf43a5ac6dc6973dc8bf13b6c88cf"
= "77273ba3736baf2c197fb8b17de1e22ba8f2380f73f9114f324ef56bfa508654"
= 75
= 75
= ""
strings:
$s_1 = {
20 ?? ?? ?? ?? // ldc.i4
2B 00 // br.s
28 ?? ?? ?? 2B // Call
80 ?? ?? ?? 04 // stsfld
(20 ?? ?? ?? ?? 2B00 28 ?? ?? ?? 2B | 72 ?? ?? ?? 70) // ldc.i4, br.s, call OR ldstr
80 ?? ?? ?? 04 // Call
(20 ?? ?? ?? ?? 2B00 28 ?? ?? ?? 2B | 72 ?? ?? ?? 70) // ldc.i4, br.s, call OR ldstr
80 ?? ?? ?? 04 // Call
20 ?? ?? ?? ?? // ldc.i4
2B00 // br.s
28 ?? ?? ?? 2B // Call
80 ?? ?? ?? 04 // stsfld
2A // ret
}
$s_2 = "mscoree.dll"
condition:
$s_1 and $s_2
}
Strings (2 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s_1 | hex | { 20 ?? ?? ?? ?? // ldc.i4 2B 00 // br.s 28 ?? ?? ?? 2B // Call 80 ?? ?? ?? 04 // stsfld … | |
| $s_2 | text | "mscoree.dll" |
Condition
$s_1 and $s_2In plain words (Heuristic)
- Pattern $s_1 must be present.
- Pattern $s_2 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.
Sample hashes
Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).
- 0cc3a0f8b48ef8d8562b9cdf9c7cfe7f63faf43a5ac6dc6973dc8bf13b6c88cf
Licence & attribution
Author: Matthew @ Embee_Research
Source repository: Embee Research @ ac56d6f6fd
Licence: Detection Rule License 1.1 (repository licence)
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: 1e4470cf-fad3-57e5-8a95-deb97e98dbdc
Related rules
- MalwareEmbee Research· Matthew @ Embee_Research· 2023-08-27
- MalwareEmbee Research· Matthew @ Embee_Research· 2023-12-24
- MalwareEmbee Research· Matthew @ Embee_Research· 2023-12-24
- 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