This hunt targets the in-memory execution patterns of the Lavender threat actor to identify potential stealthy reconnaissance activities that may evade traditional signature-based detection. Proactively hunting for these specific behavioral indicators within Azure Sentinel is critical to validate early-stage compromises and refine telemetry coverage before the adversary establishes persistence or exfiltrates sensitive data.
rule Lavender {
meta:
description = "detect Lavender(a variant of RedLeaves) in memory"
author = "JPCERT/CC Incident Response Group"
rule_usage = "memory scan"
reference = "internal research"
hash1 = "db7c1534dede15be08e651784d3a5d2ae41963d192b0f8776701b4b72240c38d"
strings:
$a1 = { C7 ?? ?? 4C 41 56 45 }
$a2 = { C7 ?? ?? 4E 44 45 52 }
condition: all of them
}
This YARA rule can be deployed in the following contexts:
This rule contains 2 string patterns in its detection logic.
Here are 5 specific false positive scenarios for the detect Lavender (a variant of RedLeaves) rule, tailored for an enterprise environment:
Scenario: Legitimate Software Deployment via SCCM/MECM
ccmexec.exe) injects code into memory to verify the integrity of installed updates. This injection process mimics the “in-memory” behavior of Lavender, which often hides its presence by modifying existing processes rather than creating new ones.ccmexec.exe when the parent process is CcmExecService and the memory modification occurs within the standard maintenance window (e.g., 02:00–06:00 UTC). Additionally, whitelist the specific hash of the SCCM update agent if it matches a known benign signature.Scenario: Endpoint Protection Heuristic Scans
svchost.exe or explorer.exe). This activity can trigger the “in-memory variant” logic, as the security tool effectively behaves like a resident agent similar to RedLeaves.FalconSensorService.exe, MsMpEng.exe) and the action involves “Memory Scan” or “Heuristic Analysis.” Ensure the exclusion applies only when the target process is a standard OS service, not a user-facing application.Scenario: Scheduled Backup Agent Operations