YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_MAL_G_Backdoor_BRICKSTORM_2
Detects BRICKSTORM backdoor used by APT group UNC5221 (China Nexus)
- Author
- Google Threat Intelligence Group (GTIG) (modified by Florian Roth)
- Date
- 2025-09-25
- Modified
- 2026-05-15
- Score / Quality
- 75 / 85
What this rule detects
Detects BRICKSTORM backdoor used by APT group UNC5221 (China Nexus)
Targets: Linux ELF.
It defines 13 patterns (10 text, 3 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule SIGNATURE_BASE_MAL_G_Backdoor_BRICKSTORM_2 : FILE
{
meta:
= "Detects BRICKSTORM backdoor used by APT group UNC5221 (China Nexus)"
= "Google Threat Intelligence Group (GTIG) (modified by Florian Roth)"
= "03618840-c3f3-5ba6-983b-181a855d506b"
= "2025-09-25"
= "2026-05-15"
= "https://cloud.google.com/blog/topics/threat-intelligence/brickstorm-espionage-campaign"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/apt_cn_brickstorm_sep25.yar#L20-L53"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "afea32d3c817473ec0dbc20177daa4070f847c23295318fa093fc3a96a15e764"
= 75
= 85
= "FILE"
strings:
$decr1 = { 0F B6 4C 04 ?? 0F B6 54 04 ?? 31 D1 88 4C 04 ?? 48 FF C0 [0-4] 48 83 F8 ?? 7C }
$decr2 = { 40 88 7C 34 34 48 FF C3 48 FF C6 48 39 D6 7D 18 0F B6 3B 48 39 CE 73 63 44 0F B6 04 30 44 31 C7 48 83 FE 04 72 DA }
$decr3 = { 0F B6 54 0C ?? 0F B6 5C 0C ?? 31 DA 88 14 08 48 FF C1 48 83 F9 ?? 7C E8 }
$str1 = "main.selfWatcher"
$str2 = "main.copyFile"
$str3 = "main.startNew"
$str4 = "WRITE_LOG=true"
$str5 = "WRITE_LOGWednesday"
$str6 = "vami-httpdvideo/webm"
$str7 = "/opt/vmware/sbin/"
$str8 = "/home/vsphere-ui/"
$str9 = "/opt/vmware/sbin/vami-http"
$str10 = "main.getVFromEnv"
condition:
uint32( 0 ) == 0x464c457f and filesize < 10MB and ( 1 of ( $decr* ) and 1 of ( $str* ) or 5 of ( $str* ) )
}
Strings (13 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $decr1 | hex | { 0F B6 4C 04 ?? 0F B6 54 04 ?? 31 D1 88 4C 04 ?? 48 FF C0 [0-4] 48 83 F8 ?? 7C } | |
| $decr2 | hex | { 40 88 7C 34 34 48 FF C3 48 FF C6 48 39 D6 7D 18 0F B6 3B 48 39 CE 73 63 44 0F B6 04 30 44 31 C7 48 83 FE 04 72 DA } | |
| $decr3 | hex | { 0F B6 54 0C ?? 0F B6 5C 0C ?? 31 DA 88 14 08 48 FF C1 48 83 F9 ?? 7C E8 } | |
| $str1 | text | "main.selfWatcher" | |
| $str2 | text | "main.copyFile" | |
| $str3 | text | "main.startNew" | |
| $str4 | text | "WRITE_LOG=true" | |
| $str5 | text | "WRITE_LOGWednesday" | |
| $str6 | text | "vami-httpdvideo/webm" | |
| $str7 | text | "/opt/vmware/sbin/" | |
| $str8 | text | "/home/vsphere-ui/" | |
| $str9 | text | "/opt/vmware/sbin/vami-http" | |
| $str10 | text | "main.getVFromEnv" |
Condition
uint32( 0 ) == 0x464c457f and filesize < 10MB and ( 1 of ( $decr* ) and 1 of ( $str* ) or 5 of ( $str* ) )In plain words (Heuristic)
- The file must start with the ELF header — a Linux/Unix executable.
- The file must be smaller than 10MB (a cheap guard that skips large files).
- At least 1 patterns in ( $decr* ) must match.
- At least 1 patterns in ( $str* ) must match.
- At least 5 patterns in ( $str* ) 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.
Licence & attribution
Author: Google Threat Intelligence Group (GTIG) (modified by Florian Roth)
Source repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a
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: 03618840-c3f3-5ba6-983b-181a855d506b
Tags:FILE
Related rules
- MalwareSignature Base (Florian Roth / Nextron)· Google Threat Intelligence Group (GTIG) (modified by Flor…· 2025-09-25
- MalwareSignature Base (Florian Roth / Nextron)· Google Threat Intelligence Group (GTIG) (modified by Flor…· 2025-09-25
- MalwareSignature Base (Florian Roth / Nextron)· Google Threat Intelligence Group (GTIG) (modified by Flor…· 2025-09-25
- MalwareSignature Base (Florian Roth / Nextron)· Google Threat Intelligence Group (GTIG) (modified by Flor…· 2025-09-25
- MalwareSignature Base (Florian Roth / Nextron)· Google Threat Intelligence Group (GTIG) (modified by Flor…· 2025-09-25
- MalwareSignature Base (Florian Roth / Nextron)· Google Threat Intelligence Group (GTIG) (modified by Flor…· 2025-09-25
- WebshellSignature Base (Florian Roth / Nextron)· Google Threat Intelligence Group (GTIG) (modified by Flor…· 2025-09-25
- WebshellSignature Base (Florian Roth / Nextron)· Google Threat Intelligence Group (GTIG) (modified by Flor…· 2025-09-25