YARA Detection Rule: PUA_VULN_Driver_Multitheftauto_Mtasanandreas_9F4C
Repository: Neo23x0/signature-base
Detects: Detects vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - FairplayKD.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]004d0075006c[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]72 } /* FileDescription MultiTheftAutopatchdriver */
		$ = { 0043006f006d[PII_REDACTED]6e0079004e0061006d0065[1-8]004d0075006c[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]6f } /* CompanyName MultiTheftAuto */
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED]0069006f006e[1-8][PII_REDACTED]37002e[PII_REDACTED]360039002e[PII_REDACTED]2e00360034 } /* FileVersion  */
		$ = {[PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED]730069006f006e[1-8][PII_REDACTED]37002e[PII_REDACTED]360039002e[PII_REDACTED]2e00360034 } /* ProductVersion  */
		$ = {[PII_REDACTED]6f[PII_REDACTED]630074004e0061006d0065[1-8]004d[PII_REDACTED][PII_REDACTED]006e[PII_REDACTED]6e[PII_REDACTED][PII_REDACTED] } /* ProductName MTASanAndreas */
		$ = { 004c[PII_REDACTED]61006c0043006f[PII_REDACTED][PII_REDACTED]00680074[1-8][PII_REDACTED][PII_REDACTED][PII_REDACTED]330020002d[PII_REDACTED][PII_REDACTED]0020004d0075006c[PII_REDACTED][PII_REDACTED]006

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

Full rule:
rule PUA_VULN_Driver_Multitheftauto_Mtasanandreas_9F4C {
	meta:
		description = "Detects vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - FairplayKD.sys"
		author = "Florian Roth"
		reference = "https://github.com/magicsword-io/LOLDrivers"
		hash = "9f4ce6ab5e8d44f355426d9a6ab79833709f39b300733b5b251a0766e895e0e5"
		date = "2024-08-07"
		score = 40
		id = "a7059f0e-ae46-506f-a3c0-8ecb6911cd1d"
	strings:
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]006f006e[1-8]004d0075006c[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]72 } /* FileDescription MultiTheftAutopatchdriver */
		$ = { 0043006f006d[PII_REDACTED]6e0079004e0061006d0065[1-8]004d0075006c[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]6f } /* CompanyName MultiTheftAuto */
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED]0069006f006e[1-8][PII_REDACTED]37002e[PII_REDACTED]360039002e[PII_REDACTED]2e00360034 } /* FileVersion  */
		$ = {[PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED]730069006f006e[1-8][PII_REDACTED]37002e[PII_REDACTED]360039002e[PII_REDACTED]2e00360034 } /* ProductVersion  */
		$ = {[PII_REDACTED]6f[PII_REDACTED]630074004e0061006d0065[1-8]004d[PII_REDACTED][PII_REDACTED]006e[PII_REDACTED]6e[PII_REDACTED][PII_REDACTED] } /* ProductName MTASanAndreas */
		$ = { 004c[PII_REDACTED]61006c0043006f[PII_REDACTED][PII_REDACTED]00680074[1-8][PII_REDACTED][PII_REDACTED][PII_REDACTED]330020002d[PII_REDACTED][PII_REDACTED]0020004d0075006c[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]6f } /* LegalCopyright CMultiTheftAuto */
	condition:
		uint16(0) == 0x5a4d and filesize < 100KB and all of them
}