Files
S12cybersecurity-YaraRules/kernelDriverLoader.yar
T
2025-06-03 21:18:36 +02:00

20 lines
659 B
Plaintext

rule Temporary_Driver_Injection
{
meta:
description = "Detects kernel driver injection using NtLoadDriver with a temporary file"
author = "0x12 Dark Development"
technique = "Temporary Driver Injection"
reference = "https://maldev.example.com/temp-driver-injection"
strings:
$reg_key = "SYSTEM\\CurrentControlSet\\Services\\" wide ascii
$image_path = "\\??\\C:\\Users\\" wide ascii
$temp_hint = "\\AppData\\Local\\Temp\\" wide ascii
$ntloaddriver = "NtLoadDriver" ascii
$sys_ext = ".sys" ascii
$drv_prefix = "DRV" ascii
condition:
all of them
}