YARA Detection Rule: PUA_VULN_Renamed_Driver_Multitheftauto_Mtasanandreas_9F4C
Repository: Neo23x0/signature-base
Detects: Detects renamed 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 and not filename matches /FairplayKD/i

Full rule:
rule PUA_VULN_Renamed_Driver_Multitheftauto_Mtasanandreas_9F4C {
	meta:
		description = "Detects renamed 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 = 70
		id = "5f75950b-3802-55d5-ad51-37ab9c31d5e4"
	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 and not filename matches /FairplayKD/i
}