YARA Detection Rule: PUA_VULN_Driver_Inferre_Hwdetectngsys_Hwdetectngsys_D456
Repository: Neo23x0/signature-base
Detects: Detects vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - hwdetectng.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]74004e0047 } /* FileDescription HWDetectNG */
		$ = { 0043006f006d[PII_REDACTED]6e0079004e0061006d0065[1-8]0069004e[PII_REDACTED][PII_REDACTED] } /* CompanyName iNFERRE */
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED]0069006f006e[1-8]0032002e[PII_REDACTED][PII_REDACTED]006c[PII_REDACTED]620079003a[PII_REDACTED]69006e[PII_REDACTED]4b } /* FileVersion builtbyWinDDK */
		$ = {[PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED]730069006f006e[1-8]0032002e0038 } /* ProductVersion  */
		$ = { 0049006e[PII_REDACTED]72006e0061006c004e0061006d0065[1-8][PII_REDACTED][PII_REDACTED][PII_REDACTED]74006e0067002e[PII_REDACTED]73 } /* InternalName hwdetectngsys */
		$ = {[PII_REDACTED]6f[PII_REDACTED]630074004e0061006d0065[1-8][PII_REDACTED][PII_REDACTED][PII_REDACTED]74006e0067002e[PII_REDACTED]73 } /* ProductName hwdetectngsys */
		$ = { 004f[PII_REDACTED]670069006e0061006c[PII_REDACTED]6c0065006e0061006d0065[1-8][PII_REDACTED][PII_REDACTED][PII_REDACTED]74006e0067002e[PII_REDACTED]73 } /* OriginalFilename hwde

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

Full rule:
rule PUA_VULN_Driver_Inferre_Hwdetectngsys_Hwdetectngsys_D456 {
	meta:
		description = "Detects vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - hwdetectng.sys"
		author = "Florian Roth"
		reference = "https://github.com/magicsword-io/LOLDrivers"
		hash = "d45600f3015a54fa2c9baa7897edbd821aeea2532e6aadb8065415ed0a23d0c2"
		hash = "43136de6b77ef85bc661d401723f38624e93c4408d758bc9f27987f2b4511fee"
		hash = "2f8b68de1e541093f2d4525a0d02f36d361cd69ee8b1db18e6dd064af3856f4f"
		date = "2024-08-07"
		score = 40
		id = "861a355c-e883-5384-9d77-b572575905d1"
	strings:
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]006f006e[1-8][PII_REDACTED][PII_REDACTED][PII_REDACTED]74004e0047 } /* FileDescription HWDetectNG */
		$ = { 0043006f006d[PII_REDACTED]6e0079004e0061006d0065[1-8]0069004e[PII_REDACTED][PII_REDACTED] } /* CompanyName iNFERRE */
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED]0069006f006e[1-8]0032002e[PII_REDACTED][PII_REDACTED]006c[PII_REDACTED]620079003a[PII_REDACTED]69006e[PII_REDACTED]4b } /* FileVersion builtbyWinDDK */
		$ = {[PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED]730069006f006e[1-8]0032002e0038 } /* ProductVersion  */
		$ = { 0049006e[PII_REDACTED]72006e0061006c004e0061006d0065[1-8][PII_REDACTED][PII_REDACTED][PII_REDACTED]74006e0067002e[PII_REDACTED]73 } /* InternalName hwdetectngsys */
		$ = {[PII_REDACTED]6f[PII_REDACTED]630074004e0061006d0065[1-8][PII_REDACTED][PII_REDACTED][PII_REDACTED]74006e0067002e[PII_REDACTED]73 } /* ProductName hwdetectngsys */
		$ = { 004f[PII_REDACTED]670069006e0061006c[PII_REDACTED]6c0065006e0061006d0065[1-8][PII_REDACTED][PII_REDACTED][PII_REDACTED]74006e0067002e[PII_REDACTED]73 } /* OriginalFilename hwdetectngsys */
		$ = { 004c[PII_REDACTED]61006c0043006f[PII_REDACTED][PII_REDACTED]00680074[1-8][PII_REDACTED][PII_REDACTED][PII_REDACTED]38002d[PII_REDACTED]200069004e[PII_REDACTED][PII_REDACTED] } /* LegalCopyright ciNFERRE */
	condition:
		uint16(0) == 0x5a4d and filesize < 100KB and all of them
}