Skip to content

YARA · Embee Research

EMBEERESEARCH_Win_Redline_Bytecodes_Jan_2024

Bytecodes found in late 2023 Redline malware

MalwareRedLineEmbee ResearchDetection Rule License 1.1Compiles with YARA-X
Author
Matthew @ Embee_Research
Date
2023-08-27
Modified
2024-01-02
Score / Quality
75 / 75

What this rule detects

Bytecodes found in late 2023 Redline malware

Associated malware family: RedLine.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

win-redline-bytecodes-jan-2024.yarDetection Rule License 1.1
rule EMBEERESEARCH_Win_Redline_Bytecodes_Jan_2024 : FILE
{
	meta:
		description = "Bytecodes found in late 2023 Redline malware"
		author = "Matthew @ Embee_Research"
		id = "8acf0fbb-f7d1-5a3d-9ccb-ee21926d6a31"
		date = "2023-08-27"
		modified = "2024-01-02"
		reference = "https://github.com/embee-research/Yara-detection-rules/"
		source_url = "https://github.com/embee-research/Yara-detection-rules//blob/ac56d6f6fd2a30c8cb6e5c0455d6519210a8b0f4/Rules/win_redline_bytecodes_jan_2024.yar#L1-L22"
		license_url = "N/A"
		hash = "ea1271c032046d482ed94c6d2c2c6e3ede9bea57dff13156cabca42b24fb9332"
		logic_hash = "43f4d718611c16983071587c2806f92550ebba6bae737c59c63cd8584a5cc01f"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = {00 00 7E ?? ?? ?? 04 7E ?? ?? ?? 04 28 ?? ?? ?? 06 17 8D ?? ?? ?? 01 25 16 1F 7C 9D 6F ?? ?? ?? 0A 13 ?? 16 13 ?? 38 }
		$s2 = "mscoree.dll" ascii

	condition:
		$s1 and $s2 and uint16( 0 ) == 0x5a4d
}

Strings (2 patterns)

IdentifierTypeValueModifiers
$s1hex{00 00 7E ?? ?? ?? 04 7E ?? ?? ?? 04 28 ?? ?? ?? 06 17 8D ?? ?? ?? 01 25 16 1F 7C 9D 6F ?? ?? ?? 0A 13 ?? 16 13 ?? 38 }
$s2text"mscoree.dll"ascii

Condition

$s1 and $s2 and uint16( 0 ) == 0x5a4d

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • Pattern $s1 must be present.
  • Pattern $s2 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

Sample hashes

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

  • ea1271c032046d482ed94c6d2c2c6e3ede9bea57dff13156cabca42b24fb9332

Licence & attribution

Author: Matthew @ Embee_Research

Source repository: Embee Research @ ac56d6f6fd

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: 8acf0fbb-f7d1-5a3d-9ccb-ee21926d6a31

Tags:FILE

More RedLine rules