← Back to SOC feed Coverage →

Testing the base64 encoded file in sys32

yara LOW Yara-Rules
community
This rule was pulled from an open-source repository and enriched with AI. Validate in a test environment before deploying to production.
View original rule at Yara-Rules →
Retrieved: 2026-07-10T11:00:01Z · Confidence: medium

Hunt Hypothesis

This hunt targets adversaries who execute Base64-encoded files within the Sys32 directory to evade signature-based detection by mimicking legitimate system artifacts. Proactive hunting for this behavior in Azure Sentinel is essential because attackers frequently leverage these benign-looking locations and encoding techniques to establish persistence or deliver payloads before triggering high-severity alerts.

YARA Rule

rule pos_uploader
{
meta:
	author = "@patrickrolsen"
	maltype = "Point of Sale (POS) Malware"
    reference = "http://blogs.mcafee.com/mcafee-labs/analyzing-the-target-point-of-sale-malware"
	version = "0.1"
	description = "Testing the base64 encoded file in sys32"
	date = "01/30/2014"
strings:
	$s1 = "cmd /c net start %s"
	$s2 = "ftp -s:%s"
	$s3 = "data_%d_%d_%d_%d_%d.txt"
	$s4 = "\\uploader\\"
condition:
	uint16(0) == 0x5A4D and all of ($s*)
}

Deployment Notes

This YARA rule can be deployed in the following contexts:

This rule contains 4 string patterns in its detection logic.

References

False Positive Guidance

Here are 5 specific false positive scenarios for the rule “Testing the base64 encoded file in sys32”, tailored for a legitimate enterprise environment:

Original source: https://github.com/Yara-Rules/rules/blob/main/malware/POS.yar