mirror of
https://github.com/S12cybersecurity/YaraRules
synced 2026-06-08 12:22:33 +00:00
20 lines
659 B
Plaintext
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
|
|
}
|