Skip to content

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_APT_CN_MAL_Reddelta_Shellcode_Loader_Oct20_3

Detects Red Delta samples

APT / threat actorSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compiles with YARA-X
Author
Florian Roth (Nextron Systems)
Date
2020-10-14
Modified
2022-12-21
Score / Quality
75 / 85

What this rule detects

Detects Red Delta samples

Targets: Windows PE.

It defines 5 patterns (5 text, 0 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

apt-cn-mal-reddelta-shellcode-loader-oct20-3.yarDetection Rule License 1.1
rule SIGNATURE_BASE_APT_CN_MAL_Reddelta_Shellcode_Loader_Oct20_3 : FILE
{
	meta:
		description = "Detects Red Delta samples"
		author = "Florian Roth (Nextron Systems)"
		id = "b52836bb-cdef-5416-a8e1-72d0b2298546"
		date = "2020-10-14"
		modified = "2022-12-21"
		reference = "https://twitter.com/JAMESWT_MHT/status/1316387482708119556"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/apt_cn_reddelta.yar#L59-L78"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		hash = "740992d40b84b10aa9640214a4a490e989ea7b869cea27dbbdef544bb33b1048"
		logic_hash = "64402f6265f23abf7d6a711aa888c89386c1a754f12286b0efe5fd5d81f15b01"
		score = 75
		quality = 85
		tags = "FILE"

	strings:
		$s1 = "Taskschd.dll" ascii fullword
		$s2 = "AddTaskPlanDllVerson.dll" ascii fullword
		$s3 = "\\FlashUpdate.exe" ascii
		$s4 = "D:\\Project\\FBIRedTeam" ascii fullword
		$s5 = "Error %s:%d, ErrorCode: %x" ascii fullword

	condition:
		uint16( 0 ) == 0x5a4d and filesize < 400KB and 4 of them
}

Strings (5 patterns)

IdentifierTypeValueModifiers
$s1text"Taskschd.dll"ascii fullword
$s2text"AddTaskPlanDllVerson.dll"ascii fullword
$s3text"\\FlashUpdate.exe"ascii
$s4text"D:\\Project\\FBIRedTeam"ascii fullword
$s5text"Error %s:%d, ErrorCode: %x"ascii fullword

Condition

uint16( 0 ) == 0x5a4d and filesize < 400KB and 4 of them

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • The file must be smaller than 400KB (a cheap guard that skips large files).
  • At least 4 patterns in the rule 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).

  • 740992d40b84b10aa9640214a4a490e989ea7b869cea27dbbdef544bb33b1048

Licence & attribution

Author: Florian Roth (Nextron Systems)

Source repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a

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: b52836bb-cdef-5416-a8e1-72d0b2298546

Tags:FILE