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:
S12cybersecurity
2026-01-12 10:17:29 +01:00
committed by GitHub
parent 0eceaa73d8
commit be86905cd1
+27
View File
@@ -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*)
}