This hunt hypothesis targets the initial deployment of the BRICKSTEAL backdoor dropper employed by the China Nexus APT group to establish persistent access within Azure environments. Proactively hunting for this behavior is critical because early detection of the dropper allows the SOC team to identify and contain the threat before it executes its full payload, thereby preventing potential data exfiltration or lateral movement.
rule MAL_G_Dropper_BRICKSTEAL_2 {
meta:
description = "Detects backdoor BRICKSTEAL dropper used by APT group UNC5221 (China Nexus)"
author = "Google Threat Intelligence Group (GTIG) (modified by Florian Roth)"
date = "2025-09-25"
score = 75
reference = "https://cloud.google.com/blog/topics/threat-intelligence/brickstorm-espionage-campaign"
id = "8139f8c0-4c18-51bd-bf23-8c4cdc3fd555"
strings:
// $str1 = /\(Class<\?>\)\smethod\.invoke\(\w{1,20},\s\w{1,20},\s0,\s\w{1,20}\.length\);/i ascii wide
$str1_alt = "(Class<?>) method.invoke(" ascii wide
$str2 = "(\"yv66vg" ascii wide
$str3 = "request.getSession().getServletContext" ascii wide
$str4 = ".getClass().getDeclaredField(" ascii wide
$str5 = "new FilterDef();" ascii wide
$str6 = "new FilterMap();" ascii wide
condition:
all of them
}
This YARA rule can be deployed in the following contexts:
This rule contains 7 string patterns in its detection logic.
Here are 3-5 specific false positive scenarios for the BRICKSTEAL dropper detection rule, tailored for an enterprise environment:
Scenario: Scheduled Software Deployment via SCCM/Intune
C:\Windows\Temp directory before execution, mimicking the “dropper” behavior of BRICKSTEAL which stages payloads in temporary locations.ccmsetup.exe, Microsoft.IntuneManagementAgent) where the parent process is a trusted management service account (e.g., NT SERVICE\CCM). Additionally, filter out events where the dropped file’s hash matches a known good baseline in the enterprise software library.Scenario: Automated Antivirus Definition Updates
C:\ProgramData\Microsoft\Windows Defender) before the main service loads them, triggering a “dropper” alert due to the creation of new executables or DLLs in protected paths.csagent.exe, rtvscan64.exe) and the destination path matches the vendor’s standard update directory structure.Scenario: PowerShell Script Execution by Admins
powershell.exe) invoking New-Item