YARA Detection Rule: PUA_VULN_Driver_Fintekcorp_Fintekcorpfintekpcieuart_32BD
Repository: Neo23x0/signature-base
Detects: Detects vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - FPCIE2COM.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]6e[PII_REDACTED]6b[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]72 } /* FileDescription FintekPcieUartAdapter */
		$ = { 0043006f006d[PII_REDACTED]6e0079004e0061006d0065[1-8][PII_REDACTED]6e[PII_REDACTED]6b[PII_REDACTED]6f[PII_REDACTED]2e } /* CompanyName FintekCorp */
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED]0069006f006e[1-8]0031002c[PII_REDACTED]2c[PII_REDACTED]2c00200030 } /* FileVersion  */
		$ = {[PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED]730069006f006e[1-8]0031002c[PII_REDACTED]2c[PII_REDACTED]2c00200030 } /* ProductVersion  */
		$ = {[PII_REDACTED]6f[PII_REDACTED]630074004e0061006d0065[1-8][PII_REDACTED]6e[PII_REDACTED]6b[PII_REDACTED]6f[PII_REDACTED]2e[PII_REDACTED]69006e[PII_REDACTED]6b[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED] } /* ProductName FintekCorpFintekPcieUart */
		$ = { 004f[PII_REDACTED]670069006e0061006c[PII_REDACTED]6c0065006e0061006d0065[1-8][PII_REDACTED][PII_REDACTED][PII_REDACTED]4f004d002e[PII_REDACTED]73 } /* OriginalFilename FPCIECOMsys */
		$ = { 00

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

Full rule:
rule PUA_VULN_Driver_Fintekcorp_Fintekcorpfintekpcieuart_32BD {
	meta:
		description = "Detects vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - FPCIE2COM.sys"
		author = "Florian Roth"
		reference = "https://github.com/magicsword-io/LOLDrivers"
		hash = "32bd0edb9daa60175b1dc054f30e28e8dbfa293a32e6c86bfd06bc046eaa2f9e"
		hash = "[PII_REDACTED]bd3d6e6633c90cc4bd692ae0951a8589dbe103c1e293b3067344d"
		hash = "b[PII_REDACTED]cd5054e3ab6433a618e76c6671c3e806af8b3084c77c0e7648cbe"
		date = "2024-08-07"
		score = 40
		id = "61ea6f89-2dc0-525c-919a-8b47b85f0240"
	strings:
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]006f006e[1-8][PII_REDACTED]6e[PII_REDACTED]6b[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]72 } /* FileDescription FintekPcieUartAdapter */
		$ = { 0043006f006d[PII_REDACTED]6e0079004e0061006d0065[1-8][PII_REDACTED]6e[PII_REDACTED]6b[PII_REDACTED]6f[PII_REDACTED]2e } /* CompanyName FintekCorp */
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED]0069006f006e[1-8]0031002c[PII_REDACTED]2c[PII_REDACTED]2c00200030 } /* FileVersion  */
		$ = {[PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED]730069006f006e[1-8]0031002c[PII_REDACTED]2c[PII_REDACTED]2c00200030 } /* ProductVersion  */
		$ = {[PII_REDACTED]6f[PII_REDACTED]630074004e0061006d0065[1-8][PII_REDACTED]6e[PII_REDACTED]6b[PII_REDACTED]6f[PII_REDACTED]2e[PII_REDACTED]69006e[PII_REDACTED]6b[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED] } /* ProductName FintekCorpFintekPcieUart */
		$ = { 004f[PII_REDACTED]670069006e0061006c[PII_REDACTED]6c0065006e0061006d0065[1-8][PII_REDACTED][PII_REDACTED][PII_REDACTED]4f004d002e[PII_REDACTED]73 } /* OriginalFilename FPCIECOMsys */
		$ = { 004c[PII_REDACTED]61006c0043006f[PII_REDACTED][PII_REDACTED]00680074[1-8]0043006f[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]6e[PII_REDACTED]6b[PII_REDACTED]6f[PII_REDACTED]2e[PII_REDACTED][PII_REDACTED]002d[PII_REDACTED]310033 } /* LegalCopyright CopyrightFintekCorp */
	condition:
		uint16(0) == 0x5a4d and filesize < 100KB and all of them
}