This hunt hypothesis targets the initial deployment of the BRICKSTEAL backdoor dropper by the China Nexus APT group to identify early-stage compromise and data exfiltration capabilities within our Azure Sentinel environment. Proactively hunting for this specific adversary behavior is critical because UNC5221’s sophisticated use of legitimate tools allows them to evade standard signature-based defenses, necessitating a behavioral approach to detect stealthy persistence mechanisms before significant impact occurs.
rule MAL_G_Dropper_BRICKSTEAL_1 {
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 = "c96eeeb0-ccb4-572c-80b5-638ce3bb51a9"
strings:
$str1 = "Base64.getDecoder().decode"
$str2 = "Thread.currentThread().getContextClassLoader()"
$str3 = ".class.getDeclaredMethod"
$str4 = "byte[].class"
$str5 = "method.invoke"
$str6 = "filterClass.newInstance()"
$str7 = "/websso/SAML2/SSO/*"
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 4 specific false positive scenarios for the BRICKSTEAL dropper detection rule, including suggested filters and exclusions:
Legitimate Software Deployment via SCCM/Intune
ccmexec.exe (SCCM) or Microsoft.IntuneManagementAgent.exe, specifically when the file hash matches a known good deployment package in the asset inventory.Scheduled Maintenance and Patching Jobs
C:\Windows\Temp or ProgramData).svchost.exe with service name Schedule) where the command line contains specific keywords like /patch, /update, or references to known internal script paths (e.g., \\fileserver\scripts\maintenance.ps1).Third-Party Backup and Archive Solutions