YARA Detection Rule: PUA_VULN_Driver_Lenovogrouplimitedr_Lenovodiagnosticsdriversys_Lenovodiagnostics_F05B
Repository: Neo23x0/signature-base
Detects: Detects vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - LenovoDiagnosticsDriver.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]004c0065006e006f0076006f[PII_REDACTED][PII_REDACTED]006e006f[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]200066006f[PII_REDACTED]570069006e0064006f[PII_REDACTED][PII_REDACTED][PII_REDACTED]6e[PII_REDACTED]6c[PII_REDACTED]650072002e } /* FileDescription LenovoDiagnosticsDriverforWindowsandlater */
		$ = { 0043006f006d[PII_REDACTED]6e0079004e0061006d0065[1-8]004c0065006e006f0076006f[PII_REDACTED]72006f[PII_REDACTED]20004c0069006d[PII_REDACTED][PII_REDACTED][PII_REDACTED]29 } /* CompanyName LenovoGroupLimitedR */
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED]0069006f006e[1-8]0031002e0030002e0034002e0030 } /* FileVersion  */
		$ = {[PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED]730069006f006e[1-8]0031002e0030002e0034002e0030 } /* ProductVersion  */
		$ = { 0049006e[PII_REDACTED]72006e0061006c004e0061006d0065[1-8]004c0065006e006f0076006f[PII_REDACTED]610067006e006f[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]0072002e[PII_REDACTED]73 } /* InternalName LenovoDiagnosticsDriversys */
		$ = { 005000720

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

Full rule:
rule PUA_VULN_Driver_Lenovogrouplimitedr_Lenovodiagnosticsdriversys_Lenovodiagnostics_F05B {
	meta:
		description = "Detects vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - LenovoDiagnosticsDriver.sys"
		author = "Florian Roth"
		reference = "https://github.com/magicsword-io/LOLDrivers"
		hash = "f05b1ee9e2f6ab704b8919d5071becbce6f9d0f9d0ba32a460c41d5272134abe"
		date = "2024-08-07"
		score = 40
		id = "791da32a-272c-5bde-9722-cc4c68321ad7"
	strings:
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]006f006e[1-8]004c0065006e006f0076006f[PII_REDACTED][PII_REDACTED]006e006f[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]200066006f[PII_REDACTED]570069006e0064006f[PII_REDACTED][PII_REDACTED][PII_REDACTED]6e[PII_REDACTED]6c[PII_REDACTED]650072002e } /* FileDescription LenovoDiagnosticsDriverforWindowsandlater */
		$ = { 0043006f006d[PII_REDACTED]6e0079004e0061006d0065[1-8]004c0065006e006f0076006f[PII_REDACTED]72006f[PII_REDACTED]20004c0069006d[PII_REDACTED][PII_REDACTED][PII_REDACTED]29 } /* CompanyName LenovoGroupLimitedR */
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED]0069006f006e[1-8]0031002e0030002e0034002e0030 } /* FileVersion  */
		$ = {[PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED]730069006f006e[1-8]0031002e0030002e0034002e0030 } /* ProductVersion  */
		$ = { 0049006e[PII_REDACTED]72006e0061006c004e0061006d0065[1-8]004c0065006e006f0076006f[PII_REDACTED]610067006e006f[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]0072002e[PII_REDACTED]73 } /* InternalName LenovoDiagnosticsDriversys */
		$ = {[PII_REDACTED]6f[PII_REDACTED]630074004e0061006d0065[1-8]004c0065006e006f0076006f[PII_REDACTED][PII_REDACTED]006e006f[PII_REDACTED][PII_REDACTED] } /* ProductName LenovoDiagnostics */
		$ = { 004f[PII_REDACTED]670069006e0061006c[PII_REDACTED]6c0065006e0061006d0065[1-8]004c0065006e006f0076006f[PII_REDACTED]610067006e006f[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]0072002e[PII_REDACTED]73 } /* OriginalFilename LenovoDiagnosticsDriversys */
		$ = { 004c[PII_REDACTED]61006c0043006f[PII_REDACTED][PII_REDACTED]00680074[1-8]00a[PII_REDACTED][PII_REDACTED]10020004c00650