YARA Detection Rule: PUA_VULN_Driver_Netfiltersdkcom_Lgdcatchersys_Netfiltersdk_0C42
Repository: Neo23x0/signature-base
Detects: Detects vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - LgDCatcher.sys
Author: Florian Roth
Reference: https://github.com/magicsword-io/LOLDrivers

Pattern signatures:
$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]006f006e[1-8]004e[PII_REDACTED]460069006c[PII_REDACTED][PII_REDACTED]0044004b[PII_REDACTED][PII_REDACTED]0048006f006f006b[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]29 } /* FileDescription NetFilterSDKTDIHookDriverWPP */
		$ = { 0043006f006d[PII_REDACTED]6e0079004e0061006d0065[1-8]004e[PII_REDACTED]460069006c[PII_REDACTED][PII_REDACTED]004b002e0063006f006d } /* CompanyName NetFilterSDKcom */
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED]0069006f006e[1-8]0031002e0034002e0039002e[PII_REDACTED][PII_REDACTED]006c[PII_REDACTED]620079003a[PII_REDACTED]69006e[PII_REDACTED]4b } /* FileVersion builtbyWinDDK */
		$ = {[PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED]730069006f006e[1-8]0031002e0035002e0038002e0039 } /* ProductVersion  */
		$ = { 0049006e[PII_REDACTED]72006e0061006c004e0061006d0065[1-8]004c[PII_REDACTED][PII_REDACTED][PII_REDACTED]650072002e[PII_REDACTED]73 } /* InternalName LgDCatchersys */
		$ = {[PII_REDACTED]6f[PII_REDACTED]630074004e0061006d0065[1-8]004e[PII_REDACTED]460069006c[PII_REDACTED][PII_REDACTED]0044004b } /*

Detection condition:
uint16(0) == 0x5a4d and filesize < 100KB and all of them

Full rule:
rule PUA_VULN_Driver_Netfiltersdkcom_Lgdcatchersys_Netfiltersdk_0C42 {
	meta:
		description = "Detects vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - LgDCatcher.sys"
		author = "Florian Roth"
		reference = "https://github.com/magicsword-io/LOLDrivers"
		hash = "0c42fe45ffa9a9c36c87a7f01510a077da6340ffd86bf8509f02c6939da133c5"
		date = "2024-08-07"
		score = 40
		id = "3659a46f-25cf-5f9f-9ac5-578e2ffa6e45"
	strings:
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]006f006e[1-8]004e[PII_REDACTED]460069006c[PII_REDACTED][PII_REDACTED]0044004b[PII_REDACTED][PII_REDACTED]0048006f006f006b[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]29 } /* FileDescription NetFilterSDKTDIHookDriverWPP */
		$ = { 0043006f006d[PII_REDACTED]6e0079004e0061006d0065[1-8]004e[PII_REDACTED]460069006c[PII_REDACTED][PII_REDACTED]004b002e0063006f006d } /* CompanyName NetFilterSDKcom */
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED]0069006f006e[1-8]0031002e0034002e0039002e[PII_REDACTED][PII_REDACTED]006c[PII_REDACTED]620079003a[PII_REDACTED]69006e[PII_REDACTED]4b } /* FileVersion builtbyWinDDK */
		$ = {[PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED]730069006f006e[1-8]0031002e0035002e0038002e0039 } /* ProductVersion  */
		$ = { 0049006e[PII_REDACTED]72006e0061006c004e0061006d0065[1-8]004c[PII_REDACTED][PII_REDACTED][PII_REDACTED]650072002e[PII_REDACTED]73 } /* InternalName LgDCatchersys */
		$ = {[PII_REDACTED]6f[PII_REDACTED]630074004e0061006d0065[1-8]004e[PII_REDACTED]460069006c[PII_REDACTED][PII_REDACTED]0044004b } /* ProductName NetFilterSDK */
		$ = { 004f[PII_REDACTED]670069006e0061006c[PII_REDACTED]6c0065006e0061006d0065[1-8]004c[PII_REDACTED][PII_REDACTED][PII_REDACTED]650072002e[PII_REDACTED]73 } /* OriginalFilename LgDCatchersys */
		$ = { 004c[PII_REDACTED]61006c0043006f[PII_REDACTED][PII_REDACTED]00680074[1-8]0043006f[PII_REDACTED][PII_REDACTED][PII_REDACTED]20003f0020004e[PII_REDACTED]460069006c[PII_REDACTED][PII_REDACTED]004b002e0063006f006d } /* LegalCopyright CopyrightNetFilterSDKcom */
	condition:
		uint16(0) == 0x5a4d and filesize < 100KB and all of them
}