This hypothesis posits that adversaries are executing obfuscated payloads via Base64-encoded files within the System32 directory to evade signature-based detection and blend with legitimate system activity. Proactive hunting for this behavior in Azure Sentinel is critical because low-severity alerts often mask early-stage lateral movement or persistence mechanisms that require manual validation before escalating into a confirmed incident.
rule pos_chewbacca
{
meta:
author = "@patrickrolsen"
maltype = "Point of Sale (POS) Malware"
reference = "https://www.securelist.com/en/blog/208214185/ChewBacca_a_new_episode_of_Tor_based_Malware"
hashes = "21f8b9d9a6fa3a0cd3a3f0644636bf09, 28bc48ac4a92bde15945afc0cee0bd54"
version = "0.2"
description = "Testing the base64 encoded file in sys32"
date = "01/30/2014"
strings:
$s1 = "tor -f <torrc>"
$s2 = "tor_"
$s3 = "umemscan"
$s4 = "CHEWBAC"
condition:
uint16(0) == 0x5A4D and (all of ($s*))
}
This YARA rule can be deployed in the following contexts:
This rule contains 4 string patterns in its detection logic.
Here are 5 specific false positive scenarios for the rule “Testing the base64 encoded file in sys32”, along with suggested filters or exclusions:
Windows Update Service Deployment
wuauserv) frequently downloads and processes update manifests or patches that are stored as Base64-encoded XML or JSON files within the C:\Windows\System32\SoftwareDistribution directory before installation. This is a standard, high-volume administrative task occurring on all endpoints.\System32\SoftwareDistribution\ and limit the rule to processes where the parent process is svchost.exe with the service name wuauserv.Microsoft Defender Antivirus Signature Updates
MpCmdRun.exe) extracts Base64-encoded definition files into the C:\ProgramData\Microsoft\Windows Defender or System32 subfolders to verify integrity before applying them to the system.C:\Program Files\Windows Defender\MpCmdRun.exe and filter out events where the file extension is .cab or .dat, which are common containers for these encoded definitions.Group Policy Object (GPO) Script Execution
System32 to configure local settings, install certificates, or manage registry keys during the user logon phase (gpupdate).cscript.exe, wscript.exe, or `