YARA Detection Rule: PUA_VULN_Renamed_Driver_Highresolutionenterpriseswwwhighrezcouk_Inpoutxsys_Inpoutxdriverversion_X_F581
Repository: Neo23x0/signature-base
Detects: Detects renamed vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - inpoutx64.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]004b[PII_REDACTED]6e0065006c0020006c[PII_REDACTED]65006c[PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]0072 } /* FileDescription Kernellevelportaccessdriver */
		$ = { 0043006f006d[PII_REDACTED]6e0079004e0061006d0065[1-8][PII_REDACTED][PII_REDACTED][PII_REDACTED]6f006c[PII_REDACTED]69006f006e[PII_REDACTED]6e[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]005b[PII_REDACTED]77002e[PII_REDACTED][PII_REDACTED]0065007a002e0063006f002e0075006b005d } /* CompanyName HighresolutionEnterpriseswwwhighrezcouk */
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED]0069006f006e[1-8]0031002e[PII_REDACTED][PII_REDACTED][PII_REDACTED]750069006c[PII_REDACTED]620079003a[PII_REDACTED]69006e[PII_REDACTED]4b } /* FileVersion xbuiltbyWinDDK */
		$ = {[PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED]730069006f006e[1-8]0031002e[PII_REDACTED][PII_REDACTED] } /* ProductVersion x */
		$ = { 0049006e[PII_REDACTED]72006e0061006c004e0061006d0065[1-8]0069006e0070006f[PII_REDACTED][PII_REDACTED]002e[PII_REDACTED]73 } /* InternalName inpout

Detection condition:
uint16(0) == 0x5a4d and filesize < 100KB and all of them and not filename matches /inpoutx64/i

Full rule:
rule PUA_VULN_Renamed_Driver_Highresolutionenterpriseswwwhighrezcouk_Inpoutxsys_Inpoutxdriverversion_X_F581 {
	meta:
		description = "Detects renamed vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - inpoutx64.sys"
		author = "Florian Roth"
		reference = "https://github.com/magicsword-io/LOLDrivers"
		hash = "f581decc2888ef27ee1ea85ea23bbb5fb2fe6a554266ff5a1476acd1d29d53af"
		hash = "f8965fdce668692c3785afa3559159f9a18287bc0d53abb21902895a8ecf221b"
		hash = "2d83ccb1ad9839c9f5b3f10b1f856177df1594c66cbbc7661677d4b462ebf44d"
		date = "2024-08-07"
		score = 70
		id = "8a86b8d4-fc20-5b4e-9ff7-f19d229d7eff"
	strings:
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]006f006e[1-8]004b[PII_REDACTED]6e0065006c0020006c[PII_REDACTED]65006c[PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]0072 } /* FileDescription Kernellevelportaccessdriver */
		$ = { 0043006f006d[PII_REDACTED]6e0079004e0061006d0065[1-8][PII_REDACTED][PII_REDACTED][PII_REDACTED]6f006c[PII_REDACTED]69006f006e[PII_REDACTED]6e[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]005b[PII_REDACTED]77002e[PII_REDACTED][PII_REDACTED]0065007a002e0063006f002e0075006b005d } /* CompanyName HighresolutionEnterpriseswwwhighrezcouk */
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED]0069006f006e[1-8]0031002e[PII_REDACTED][PII_REDACTED][PII_REDACTED]750069006c[PII_REDACTED]620079003a[PII_REDACTED]69006e[PII_REDACTED]4b } /* FileVersion xbuiltbyWinDDK */
		$ = {[PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED]730069006f006e[1-8]0031002e[PII_REDACTED][PII_REDACTED] } /* ProductVersion x */
		$ = { 0049006e[PII_REDACTED]72006e0061006c004e0061006d0065[1-8]0069006e0070006f[PII_REDACTED][PII_REDACTED]002e[PII_REDACTED]73 } /* InternalName inpoutxsys */
		$ = {[PII_REDACTED]6f[PII_REDACTED]630074004e0061006d0065[1-8]0069006e0070006f[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]69006f006e[PII_REDACTED]2e0032 } /* ProductName inpoutxDriverVersion */
		$ = { 004f[PII_REDACTED]670069006e0061006c[PII_REDACTED]6c0065006e0061006d0065[1-8]0069006e0070006f[PII_REDACTED][PII_REDACTED]