← Back to SOC feed Coverage →

possible includes base64 packed functions

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-31T23:00:00Z · Confidence: medium

Hunt Hypothesis

This detection identifies suspicious processes or scripts that incorporate Base64-encoded packed functions, a common obfuscation technique used by adversaries to conceal malicious logic and evade static analysis. Proactively hunting for these patterns in Azure Sentinel is critical because low-severity alerts often represent early-stage reconnaissance or fileless attacks that could escalate into significant threats if the encoded payload’s behavior remains unexamined.

YARA Rule

rule possible_includes_base64_packed_functions  
{ 
	meta: 
		impact = 5 
		hide = true 
		desc = "Detects possible includes and packed functions" 
	strings: 
		$f = /(atob|btoa|;base64|base64,)/ nocase
		//$ff = /(?:[A-Za-z0-9]{4}){2,}(?:[A-Za-z0-9]{2}[AEIMQUYcgkosw048]=|[A-Za-z0-9][AQgw]==)/ nocase 
		$fff = /([A-Za-z0-9]{4})*([A-Za-z0-9]{2}==|[A-Za-z0-9]{3}=|[A-Za-z0-9]{4})/ 
	condition: 
		$f and $fff
}

Deployment Notes

This YARA rule can be deployed in the following contexts:

This rule contains 3 string patterns in its detection logic.

False Positive Guidance

Here are 3-5 specific false positive scenarios for the possible_includes_base64_packed_functions detection rule, along with recommended filters or exclusions:

Original source: https://github.com/Yara-Rules/rules/blob/main/packers/Javascript_exploit_and_obfuscation.yar