YARA Detection Rule: PUA_VULN_Renamed_Driver_Cpuid_Cpuzsys_Cpuidservice_0E85
Repository: Neo23x0/signature-base
Detects: Detects renamed vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - cpuz.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][PII_REDACTED]00650072 } /* FileDescription CPUIDDriver */
		$ = { 0043006f006d[PII_REDACTED]6e0079004e0061006d0065[1-8][PII_REDACTED][PII_REDACTED] } /* CompanyName CPUID */
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED]0069006f006e[1-8]0036002e0031002e[PII_REDACTED]300030002e[PII_REDACTED][PII_REDACTED][PII_REDACTED]750069006c[PII_REDACTED]620079003a[PII_REDACTED]69006e[PII_REDACTED]4b } /* FileVersion builtbyWinDDK */
		$ = {[PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED]730069006f006e[1-8]0036002e0031002e[PII_REDACTED]300030002e[PII_REDACTED][PII_REDACTED] } /* ProductVersion  */
		$ = { 0049006e[PII_REDACTED]72006e0061006c004e0061006d0065[1-8][PII_REDACTED]75007a002e[PII_REDACTED]73 } /* InternalName cpuzsys */
		$ = {[PII_REDACTED]6f[PII_REDACTED]630074004e0061006d0065[1-8][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]65 } /* ProductName CPUIDservice */
		$ = { 004f[PII_REDACTED]670069006e0061006c[PII_REDACTED]6c0065006e0061006d0065[1-8][PII_REDACTED]75007a002e[PII_REDACTED]7

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

Full rule:
rule PUA_VULN_Renamed_Driver_Cpuid_Cpuzsys_Cpuidservice_0E85 {
	meta:
		description = "Detects renamed vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - cpuz.sys"
		author = "Florian Roth"
		reference = "https://github.com/magicsword-io/LOLDrivers"
		hash = "0e8595217f4457757bed0e3cdea25ea70429732b173bba999f02dc85c7e06d02"
		hash = "73c03b01d5d1eb03ec5cb5a443714b12fa095cc4b09ddc34671a92117ae4bb3a"
		hash = "b0f6cd34717d0cea5ab394b39a9de3a479ca472a071540a595117219d9a61a44"
		hash = "ff987c30ce822d99f3b4b4e23c61b88955f52406a95e6331570a2a13cbebc498"
		hash = "40da0adf588cbb2841a657239d92f24b111d62b173204b8102dd0e014932fe59"
		hash = "a072197177aad26c31960694e38e2cae85afbab070929e67e331b99d3a418cf4"
		hash = "e0b5a5f8333fc1213791af5c5814d7a99615b3951361ca75f8aa5022c9cfbc2b"
		hash = "405a99028c99f36ab0f84a1fd810a167b8f0597725e37513d[PII_REDACTED]501f1"
		hash = "ded2927f9a4e64eefd09d0caba78e94f309e3a6292841ae81d5528cab109f95d"
		hash = "78d[PII_REDACTED]6340d8d0ef952e8fe9ada9e8b20726b77fb88c9fb5d54510663"
		date = "2024-08-07"
		score = 70
		id = "4ecccfaa-43fb-582e-9a9e-77529ee9234f"
	strings:
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]006f006e[1-8][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]00650072 } /* FileDescription CPUIDDriver */
		$ = { 0043006f006d[PII_REDACTED]6e0079004e0061006d0065[1-8][PII_REDACTED][PII_REDACTED] } /* CompanyName CPUID */
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED]0069006f006e[1-8]0036002e0031002e[PII_REDACTED]300030002e[PII_REDACTED][PII_REDACTED][PII_REDACTED]750069006c[PII_REDACTED]620079003a[PII_REDACTED]69006e[PII_REDACTED]4b } /* FileVersion builtbyWinDDK */
		$ = {[PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED]730069006f006e[1-8]0036002e0031002e[PII_REDACTED]300030002e[PII_REDACTED][PII_REDACTED] } /* ProductVersion  */
		$ = { 0049006e[PII_REDACTED]72006e0061006c004e0061006d0065[1-8][PII_REDACTED]75007a002e[PII_REDACTED]73 } /* InternalName cpuzsys */
		$ = {[PII_REDACTED]6f[PII_REDACTED]630074004e0061006d0065[1-8][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]006900