This detection identifies potential code obfuscation or encryption activities within executable files that may indicate an adversary attempting to conceal malicious logic from static analysis tools. Proactively hunting for this behavior in Azure Sentinel is essential to uncover stealthy threats that evade traditional signature-based defenses by masking their underlying code structure before execution.
rule CodeCryptv0164
{
meta:
author="malware-lu"
strings:
$a0 = { E9 2E 03 00 00 EB 02 83 3D 58 EB 02 FF 1D 5B EB 02 0F C7 5F EB 03 FF 1D 34 }
condition:
$a0 at pe.entry_point
}
This YARA rule can be deployed in the following contexts:
This rule contains 1 string patterns in its detection logic.
Here are 5 specific false positive scenarios for the CodeCryptv0164 detection rule, including suggested filters and exclusions:
Scenario: Automated Deployment of Signed Artifacts via CI/CD Pipelines
.nupkg or .jar file to the deployment agent’s working directory. The extraction process often involves temporary unpacking of encrypted or obfuscated payloads that match the YARA signature before the final installation occurs.NT SERVICE\jenkins, gitlab-runner) and restrict the rule to exclude file paths within standard build agent directories like C:\ProgramData\Jenkins\workspace or /var/lib/gitlab-runner.Scenario: Scheduled Antivirus Definition Updates
C:\Program Files\CrowdStrike\FalconSensor\csfalcon.exe or MsMpEng.exe) and exclude file extensions associated with definition updates, such as .cab, .dat, and .mpst.Scenario: Execution of Obfuscated PowerShell Scripts for Patch Management