mirror of
https://github.com/S12cybersecurity/YaraRules
synced 2026-06-08 12:22:33 +00:00
1be8392e86
This rule detects binaries attempting to escalate to Protected Process Light (PPL) using Driver IOCTL based on specific conditions and API calls.
29 lines
1.0 KiB
Plaintext
29 lines
1.0 KiB
Plaintext
rule PPL_Weaponization_Intent {
|
|
meta:
|
|
description = "Detects binaries attempting to escalate to PPL (Protected Process Light) via Driver IOCTL"
|
|
author = "0x12 Dark Development"
|
|
technique = "Process Immortality / DKOM"
|
|
date = "2024-05-22"
|
|
|
|
strings:
|
|
// PPL Logic: Looking for the bitmask values
|
|
// Signer 3 (Antimalware), Type 1 (ProtectedLight)
|
|
$ppl_signer_antimalware = { C6 ?? ?? 03 } // Possible assignment of Signer level
|
|
$ppl_type_light = { C6 ?? ?? 01 } // Possible assignment of Protection type
|
|
|
|
// IOCTL and Driver Strings
|
|
$ioctl_code = { 00 08 00 00 22 } // 0x800 IOCTL or similar custom ranges
|
|
$dev_path = "\\\\.\\" wide ascii // Driver communication prefix
|
|
|
|
// Characteristic API calls
|
|
$api1 = "DeviceIoControl"
|
|
$api2 = "GetCurrentProcessId"
|
|
$api3 = "CreateFileA"
|
|
|
|
condition:
|
|
uint16(0) == 0x5A4D and // MZ Header
|
|
all of ($api*) and
|
|
$dev_path and
|
|
(any of ($ppl_*))
|
|
}
|