Skip to content

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_Hvs_APT27_Hyperbro_Decrypted_Stage2

HyperBro Stage 2 and compressed Stage 3 detection

MalwareHyperbroSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compiles with YARA-X
Author
Moritz Oettle
Date
2022-02-07
Modified
2023-12-05
Score / Quality
75 / 85

What this rule detects

HyperBro Stage 2 and compressed Stage 3 detection

Associated malware family: Hyperbro.

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

Summary generated from the rule's metadata and condition.

Rule source

hvs-apt27-hyperbro-decrypted-stage2.yarDetection Rule License 1.1
rule SIGNATURE_BASE_Hvs_APT27_Hyperbro_Decrypted_Stage2 : FILE
{
	meta:
		description = "HyperBro Stage 2 and compressed Stage 3 detection"
		author = "Moritz Oettle"
		id = "039e5d41-eadb-5c53-82cd-20ffd4105326"
		date = "2022-02-07"
		modified = "2023-12-05"
		reference = "https://www.hvs-consulting.de/en/threat-intelligence-report-emissary-panda-apt27"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/apt_apt27_hyperbro.yar#L35-L57"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		hash = "fc5a58bf0fce9cb96f35ee76842ff17816fe302e3164bc7c6a5ef46f6eff67ed"
		logic_hash = "6eb56c4a92e89977e536ccc3c70170062aca072c6981b40aeea184ea2ca461a6"
		score = 75
		quality = 85
		tags = "FILE"

	strings:
		$lznt1_compressed_pe_header_small = { FC B9 00 4D 5A 90 }
		$lznt1_compressed_pe_header_large_1 = { FC B9 00 4D 5A 90 00 03 00 00 00 82 04 00 30 FF FF 00 }
		$lznt1_compressed_pe_header_large_2 = { 00 b8 00 38 0d 01 00 40 04 38 19 00 10 01 00 00 }
		$lznt1_compressed_pe_header_large_3 = { 00 0e 1f ba 0e 00 b4 09 cd 00 21 b8 01 4c cd 21 }
		$lznt1_compressed_pe_header_large_4 = { 54 68 00 69 73 20 70 72 6f 67 72 00 61 6d 20 63 }
		$lznt1_compressed_pe_header_large_5 = { 61 6e 6e 6f 00 74 20 62 65 20 72 75 6e 00 20 69 }
		$lznt1_compressed_pe_header_large_6 = { 6e 20 44 4f 53 20 00 6d 6f 64 65 2e 0d 0d 0a 02 }

	condition:
		filesize < 200KB and ( $lznt1_compressed_pe_header_small at 0x9ce ) or ( all of ( $lznt1_compressed_pe_header_large_* ) )
}

Strings (7 patterns)

IdentifierTypeValueModifiers
$lznt1_compressed_pe_header_smallhex{ FC B9 00 4D 5A 90 }
$lznt1_compressed_pe_header_large_1hex{ FC B9 00 4D 5A 90 00 03 00 00 00 82 04 00 30 FF FF 00 }
$lznt1_compressed_pe_header_large_2hex{ 00 b8 00 38 0d 01 00 40 04 38 19 00 10 01 00 00 }
$lznt1_compressed_pe_header_large_3hex{ 00 0e 1f ba 0e 00 b4 09 cd 00 21 b8 01 4c cd 21 }
$lznt1_compressed_pe_header_large_4hex{ 54 68 00 69 73 20 70 72 6f 67 72 00 61 6d 20 63 }
$lznt1_compressed_pe_header_large_5hex{ 61 6e 6e 6f 00 74 20 62 65 20 72 75 6e 00 20 69 }
$lznt1_compressed_pe_header_large_6hex{ 6e 20 44 4f 53 20 00 6d 6f 64 65 2e 0d 0d 0a 02 }

Condition

filesize < 200KB and ( $lznt1_compressed_pe_header_small at 0x9ce ) or ( all of ( $lznt1_compressed_pe_header_large_* ) )

In plain words (Heuristic)

  • The file must be smaller than 200KB (a cheap guard that skips large files).
  • All patterns in ( $lznt1_compressed_pe_header_large_* ) must match.
  • Pattern $lznt1_compressed_pe_header_small must be found at offset 0x9ce.

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).

  • fc5a58bf0fce9cb96f35ee76842ff17816fe302e3164bc7c6a5ef46f6eff67ed

Licence & attribution

Author: Moritz Oettle

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: 039e5d41-eadb-5c53-82cd-20ffd4105326

Tags:FILE

More Hyperbro rules