This rule detects the presence of the NTKrnlPacker, a known executable packer associated with the AshkbizDanehkar malware family, which adversaries use to compress and obfuscate payloads to evade static analysis. Proactively hunting for this signature in Azure Sentinel allows the SOC team to identify compromised endpoints early, preventing the packed malware from executing its malicious logic or establishing persistence within the environment.
rule NTKrnlPackerAshkbizDanehkar
{
meta:
author="malware-lu"
strings:
$a0 = { 00 00 00 00 00 00 00 00 00 00 00 00 34 10 00 00 28 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 41 10 00 00 50 10 00 00 00 00 00 00 4B 65 72 6E 65 6C 33 32 2E 64 6C 6C 00 00 00 4C 6F 61 64 4C 69 62 72 61 72 79 41 00 00 00 47 65 74 }
condition:
$a0
}
This YARA rule can be deployed in the following contexts:
This rule contains 1 string patterns in its detection logic.
NTKrnlPacker tool (or a similar custom kernel-mode packer) to compress and obfuscate a proprietary driver or DLL for deployment to a specific test cluster or legacy application server.
C:\Dev\Projects\DriverBuild\) or exclude processes initiated by known build agents (e.g., jenkins.exe, github-actions-runner.exe) when the file extension is .sys or .dll and the size is below a certain threshold (e.g., < 50MB).powershell.exe, cmd.exe) and the user account belongs to a specific security group (e.g., Domain Admins, IT_Ops_Team) during business hours.legacy_driver_packed.sys) that are generated by a scheduled task named Monthly_Driver_Maintenance or similar.