YARA Detection Rule: PUA_VULN_Renamed_Driver_Asustek_Driversys_Ectool_927C
Repository: Neo23x0/signature-base
Detects: Detects renamed vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - driver7-x86-withoutdbg.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][PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED]430074006f006f006c[PII_REDACTED][PII_REDACTED][PII_REDACTED]2d[PII_REDACTED][PII_REDACTED][PII_REDACTED]6f006f006c0073 } /* FileDescription ThedriverfortheECtooldriverbasedtools */
		$ = { 0043006f006d[PII_REDACTED]6e0079004e0061006d0065[1-8][PII_REDACTED][PII_REDACTED]0065006b } /* CompanyName ASUStek */
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED]0069006f006e[1-8]0032002e0035002e0030002e0032 } /* FileVersion  */
		$ = {[PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED]730069006f006e[1-8]0032002e0035 } /* ProductVersion  */
		$ = { 0049006e[PII_REDACTED]72006e0061006c004e0061006d0065[1-8][PII_REDACTED][PII_REDACTED][PII_REDACTED]2e[PII_REDACTED]73 } /* InternalName Driversys */
		$ = {[PII_REDACTED]6f[PII_REDACTED]630074004e0061006d0065[1-8][PII_REDACTED]200074006f006f006c } /* ProductName ECtool */
		$ = { 004f[PII_REDACTED]670069006e0061006c[PII_REDACTED]6c0065006e0061006d0065[1-8][PII_REDACTED][PII_REDACTED]00720037 } /* Or

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

Full rule:
rule PUA_VULN_Renamed_Driver_Asustek_Driversys_Ectool_927C {
	meta:
		description = "Detects renamed vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - driver7-x86-withoutdbg.sys"
		author = "Florian Roth"
		reference = "https://github.com/magicsword-io/LOLDrivers"
		hash = "927c2a580d51a598177fa54c65e9d2610f5f212f1b6cb2fbf2740b64368f010a"
		hash = "42851a01469ba97cdc38939b10cf9ea13237aa1f6c37b1ac84904c5a12a81fa0"
		hash = "1beb15c90dcf7a5234ed077833a0a3e900969b60be1d04fcebce0a9f8994bdbb"
		hash = "771a8d05f1af6214e0ef0886662be500ee910ab99f[PII_REDACTED]fddcfe08a3dd"
		date = "2024-08-07"
		score = 70
		id = "cc670ae4-3be4-5e70-9b8c-4bf52aa3191d"
	strings:
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]006f006e[1-8][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED]430074006f006f006c[PII_REDACTED][PII_REDACTED][PII_REDACTED]2d[PII_REDACTED][PII_REDACTED][PII_REDACTED]6f006f006c0073 } /* FileDescription ThedriverfortheECtooldriverbasedtools */
		$ = { 0043006f006d[PII_REDACTED]6e0079004e0061006d0065[1-8][PII_REDACTED][PII_REDACTED]0065006b } /* CompanyName ASUStek */
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED]0069006f006e[1-8]0032002e0035002e0030002e0032 } /* FileVersion  */
		$ = {[PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED]730069006f006e[1-8]0032002e0035 } /* ProductVersion  */
		$ = { 0049006e[PII_REDACTED]72006e0061006c004e0061006d0065[1-8][PII_REDACTED][PII_REDACTED][PII_REDACTED]2e[PII_REDACTED]73 } /* InternalName Driversys */
		$ = {[PII_REDACTED]6f[PII_REDACTED]630074004e0061006d0065[1-8][PII_REDACTED]200074006f006f006c } /* ProductName ECtool */
		$ = { 004f[PII_REDACTED]670069006e0061006c[PII_REDACTED]6c0065006e0061006d0065[1-8][PII_REDACTED][PII_REDACTED]00720037 } /* OriginalFilename Driver */
		$ = { 004c[PII_REDACTED]61006c0043006f[PII_REDACTED][PII_REDACTED]00680074[1-8]0043006f[PII_REDACTED][PII_REDACTED][PII_REDACTED]20 } /* LegalCopyright Copyright */
	condition:
		uint16(0) == 0x5a4d and filesize < 100KB and all of them and not filename matches /driver7-x86-withoutdbg/i
}