YARA Detection Rule: PUA_VULN_Renamed_Driver_Windowsrwinddkprovider_Netfiltersys_Windowsrwinddkdriver_9DBC
Repository: Neo23x0/signature-base
Detects: Detects renamed 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 and not filename matches /netfilter2/i

Full rule:
rule PUA_VULN_Renamed_Driver_Windowsrwinddkprovider_Netfiltersys_Windowsrwinddkdriver_9DBC {
	meta:
		description = "Detects renamed 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 = 70
		id = "1f537870-332a-5281-ac5e-8c7a4129c4d7"
	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 } /