mirror of
https://github.com/S12cybersecurity/YaraRules
synced 2026-06-08 12:22:33 +00:00
Add rule for detecting custom DLL loading via NTDLL
This rule detects custom DLL loading techniques through NTDLL functions, focusing on specific strings and conditions.
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
rule Custom_DLL_Loading_via_NTDLL
|
||||
{
|
||||
meta:
|
||||
description = "Detects custom DLL loading techniques using internal NTDLL loader functions"
|
||||
author = "0x12 Dark Development"
|
||||
technique = "Custom LoadLibrary / LdrLoadDll usage"
|
||||
category = "Defense Evasion / Loader"
|
||||
version = "1.0"
|
||||
|
||||
strings:
|
||||
$ntdll_str = "ntdll.dll" ascii nocase
|
||||
$ldrload_str = "LdrLoadDll" ascii
|
||||
$rtlunicode_str = "RtlInitUnicodeString" ascii
|
||||
|
||||
// Common API resolution patterns
|
||||
$getproc_str = "GetProcAddress" ascii
|
||||
$getmodule_str = "GetModuleHandle" ascii
|
||||
|
||||
// Optional UNICODE_STRING structure indicators
|
||||
$unicode_struct1 = "_UNICODE_STRING" ascii
|
||||
$unicode_struct2 = "UNICODE_STRING" ascii
|
||||
|
||||
condition:
|
||||
all of ($ldrload_str, $rtlunicode_str, $ntdll_str) and
|
||||
1 of ($getproc_str, $getmodule_str) and
|
||||
any of ($unicode_struct*)
|
||||
}
|
||||
Reference in New Issue
Block a user