← Back to SOC feed Coverage →

eval with comments

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-06-22T11:00:00Z · Confidence: medium

Hunt Hypothesis

The rule detects potential adversarial use of JavaScript eval functions with inline comments to obfuscate malicious code execution. SOC teams should proactively hunt for this behavior in Azure Sentinel as it may indicate attempts to bypass standard detection mechanisms and execute arbitrary code.

YARA Rule

rule eval_with_comments {
	strings:
		$ = /(^|\s)eval\s*\/\*.{,128}\*\/\s*\(/
	condition: 
        any of them and filesize < 500KB
}

Deployment Notes

This YARA rule can be deployed in the following contexts:

False Positive Guidance

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