YARA Detection Rule: PUA_VULN_Driver_Windowsrwinddkprovider_Netfiltersys_Windowsrwinddkdriver_9DBC
Repository: Neo23x0/signature-base
Detects: Detects vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - netfilter2.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][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]00500029 } /* FileDescription NetFilterSDKWFPDriverWPP */
		$ = { 0043006f006d[PII_REDACTED]6e0079004e0061006d0065[1-8][PII_REDACTED]6e0064006f[PII_REDACTED][PII_REDACTED][PII_REDACTED]570069006e[PII_REDACTED][PII_REDACTED]004b[PII_REDACTED]72006f[PII_REDACTED][PII_REDACTED] } /* CompanyName WindowsRWinDDKprovider */
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED]0069006f006e[1-8]0031002e0035002e0039002e0037 } /* FileVersion  */
		$ = {[PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED]730069006f006e[1-8]0036002e0032002e[PII_REDACTED]300030002e[PII_REDACTED][PII_REDACTED] } /* ProductVersion  */
		$ = { 0049006e[PII_REDACTED]72006e0061006c004e0061006d0065[1-8]006e[PII_REDACTED]660069006c[PII_REDACTED]720032002e[PII_REDACTED]73 } /* InternalName netfiltersys */
		$ = {[PII_REDACTED]6f[PII_REDACTED]630074004e0061006d0065[1-8][PII_REDACTED]6e0064006f[PII_REDACTED][PII_REDACTED][PII_REDACTED]570069006e[PII_REDACTED]20

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

Full rule:
rule PUA_VULN_Driver_Windowsrwinddkprovider_Netfiltersys_Windowsrwinddkdriver_9DBC {
	meta:
		description = "Detects vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - netfilter2.sys"
		author = "Florian Roth"
		reference = "https://github.com/magicsword-io/LOLDrivers"
		hash = "9dbc2a37f53507296cc912e7d354dab4e55541ba821561aa84f74d1bd8346be2"
		hash = "65a3e69854c729659281d2c5f8a4c8274ad3606befdcd9e1b79d3262f260bfa1"
		hash = "71701c5c569ef67391c995a12b21ca06935b7799ed211d978f7877115c58dce0"
		hash = "81bcd8a3f8c17ac6dc4bad750ad3417914db10aa15485094eef0951a3f72bdbd"
		hash = "1a0f57a4d7c8137baf24c65d542729547b876979273df7a245aaeea87280c090"
		hash = "62b14bb308c99132d90646e85bc7d6eb593f38e225c8232f69f24b74a019c176"
		hash = "0f3e7bf7b103613844a38afb574817ddaecd00e4d206d891660dbb0e5dfee04e"
		date = "2024-08-07"
		score = 40
		id = "8fb3920a-b0bf-57b3-bf15-24f323efde31"
	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][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]00500029 } /* FileDescription NetFilterSDKWFPDriverWPP */
		$ = { 0043006f006d[PII_REDACTED]6e0079004e0061006d0065[1-8][PII_REDACTED]6e0064006f[PII_REDACTED][PII_REDACTED][PII_REDACTED]570069006e[PII_REDACTED][PII_REDACTED]004b[PII_REDACTED]72006f[PII_REDACTED][PII_REDACTED] } /* CompanyName WindowsRWinDDKprovider */
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED]0069006f006e[1-8]0031002e0035002e0039002e0037 } /* FileVersion  */
		$ = {[PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED]730069006f006e[1-8]0036002e0032002e[PII_REDACTED]300030002e[PII_REDACTED][PII_REDACTED] } /* ProductVersion  */
		$ = { 0049006e[PII_REDACTED]72006e0061006c004e0061006d0065[1-8]006e[PII_REDACTED]660069006c[PII_REDACTED]720032002e[PII_REDACTED]73 } /* InternalName netfiltersys */
		$ = {[PII_REDACTED]6f[PII_REDACTED]630074004e0061006d0065[1-8][PII_REDACTED]6e0064006f[PII_REDACTED][PII_REDACTED][PII_REDACTED]570069006e[PII_REDACTED][PII_REDACTED]004b[PII_REDACTED][PII_REDACTED]00650072 } /* ProductName Wi