This detection rule identifies anomalous code execution patterns associated with the Scarhikn threat actor, specifically targeting unique behavioral signatures that may indicate early-stage reconnaissance or lateral movement within cloud workloads. Proactively hunting for these features in Azure Sentinel is critical to validate low-severity alerts before they escalate, ensuring that subtle indicators of compromise are not overlooked amidst routine operational noise.
rule ScarhiknCode : Scarhikn Family
{
meta:
description = "Scarhikn code features"
author = "Seth Hardy"
last_modified = "2014-06-25"
strings:
// decryption
$ = { 8B 06 8A 8B ?? ?? ?? ?? 30 0C 38 03 C7 55 43 E8 ?? ?? ?? ?? 3B D8 59 72 E7 }
$ = { 8B 02 8A 8D ?? ?? ?? ?? 30 0C 30 03 C6 8B FB 83 C9 FF 33 C0 45 F2 AE F7 D1 49 3B E9 72 E2 }
condition:
any of them
}
This YARA rule can be deployed in the following contexts:
Here are 5 specific false positive scenarios for the Scarhikn code features detection rule in an enterprise environment, including suggested filters and exclusions:
Scheduled Antivirus Database Updates via SCCM
ccmexec.exe or mpcmdrun.exe where the parent process is TaskScheduler. Additionally, filter out events occurring strictly between 02:00 and 04:00 UTC to align with maintenance windows.CI/CD Pipeline Artifact Generation
msbuild.exe or javac) create numerous new files with specific metadata tags that mimic the “Scarhikn” feature signature.svc-jenkins-build, gitlab-runner). Filter events where the source IP belongs to the internal build subnet (e.g., 10.20.30.0/24) and the destination path matches the artifact repository pattern (\\build-server\artifacts\*).Enterprise Software Patching via WSUS