YARA Detection Rule: PUA_VULN_Driver_Phoenixtechnologies_Agentsys_Driveragent_4045
Repository: Neo23x0/signature-base
Detects: Detects vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - Agent64.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][PII_REDACTED][PII_REDACTED][PII_REDACTED]670065006e[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]002f004f[PII_REDACTED]6f[PII_REDACTED]360034002d[PII_REDACTED][PII_REDACTED]0069006e0064006f00770073 } /* FileDescription DriverAgentDirectIOforbitWindows */
		$ = { 0043006f006d[PII_REDACTED]6e0079004e0061006d0065[1-8][PII_REDACTED]6f0065006e[PII_REDACTED][PII_REDACTED][PII_REDACTED]6e006f006c006f[PII_REDACTED]650073 } /* CompanyName PhoenixTechnologies */
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED]0069006f006e[1-8]0036002e0030 } /* FileVersion  */
		$ = {[PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED]730069006f006e[1-8]0036002e0030 } /* ProductVersion  */
		$ = { 0049006e[PII_REDACTED]72006e0061006c004e0061006d0065[1-8][PII_REDACTED]65006e[PII_REDACTED]34002e[PII_REDACTED]73 } /* InternalName Agentsys */
		$ = {[PII_REDACTED]6f[PII_REDACTED]630074004e0061006d0065[1-8][PII_REDACTED][PII_REDACTED][PII_REDACTED]670065006e0074 } /* ProductName DriverAgent */
		$ = { 004f[PII_REDACTED]670069006e0061006c[PII_REDACTED]6c0065006e00

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

Full rule:
rule PUA_VULN_Driver_Phoenixtechnologies_Agentsys_Driveragent_4045 {
	meta:
		description = "Detects vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - Agent64.sys"
		author = "Florian Roth"
		reference = "https://github.com/magicsword-io/LOLDrivers"
		hash = "4045ae77859b1dbf[PII_REDACTED]eaaf6f3c97bea423e9e78f1c2f14330cd47ca"
		hash = "8cb62c5d41148de416014f80bd1fd033fd4d2bd504cb05b90eeb6992a382d58f"
		hash = "[PII_REDACTED]137987a0be626c24cf[PII_REDACTED]42cd75f094cd6aaa5c2e7a54fa"
		hash = "b1d96233235a62dbb21b8dbe2d1ae333199669f67664b107bff1ad49b41d9414"
		hash = "05f052c64d192cf69a462a5ec16dda0d43ca5d0245900c9fcb9201685a2e7748"
		hash = "4db1e0fdc9e6cefeb1d588668ea6161a977c372d841e7b87098cf90aa679abfb"
		date = "2024-08-07"
		score = 40
		id = "41ccdc0b-ec41-51b3-9039-bf5206f9a79f"
	strings:
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]006f006e[1-8][PII_REDACTED][PII_REDACTED][PII_REDACTED]670065006e[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]002f004f[PII_REDACTED]6f[PII_REDACTED]360034002d[PII_REDACTED][PII_REDACTED]0069006e0064006f00770073 } /* FileDescription DriverAgentDirectIOforbitWindows */
		$ = { 0043006f006d[PII_REDACTED]6e0079004e0061006d0065[1-8][PII_REDACTED]6f0065006e[PII_REDACTED][PII_REDACTED][PII_REDACTED]6e006f006c006f[PII_REDACTED]650073 } /* CompanyName PhoenixTechnologies */
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED]0069006f006e[1-8]0036002e0030 } /* FileVersion  */
		$ = {[PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED]730069006f006e[1-8]0036002e0030 } /* ProductVersion  */
		$ = { 0049006e[PII_REDACTED]72006e0061006c004e0061006d0065[1-8][PII_REDACTED]65006e[PII_REDACTED]34002e[PII_REDACTED]73 } /* InternalName Agentsys */
		$ = {[PII_REDACTED]6f[PII_REDACTED]630074004e0061006d0065[1-8][PII_REDACTED][PII_REDACTED][PII_REDACTED]670065006e0074 } /* ProductName DriverAgent */
		$ = { 004f[PII_REDACTED]670069006e0061006c[PII_REDACTED]6c0065006e0061006d0065[1-8][PII_REDACTED]65006e[PII_REDACTED]34002e[PII_REDACTED]73 } /* OriginalFilename Agentsys */
		$ = { 004c[PII_REDACTED]61006c0043006f[PII_REDACTED][PII_REDACTED]00680