YARA Detection Rule: PUA_VULN_Driver_Asmediatechnologyinc_Asmiosys_Asmediapcidriver_E465
Repository: Neo23x0/signature-base
Detects: Detects vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - AsmIo64.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]6d[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED] } /* FileDescription AsmediaPCIDriver */
		$ = { 0043006f006d[PII_REDACTED]6e0079004e0061006d0065[1-8][PII_REDACTED]6d[PII_REDACTED][PII_REDACTED][PII_REDACTED]630068006e006f006c006f[PII_REDACTED][PII_REDACTED]006e0063002e } /* CompanyName AsmediaTechnologyInc */
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED]0069006f006e[1-8]0031002e0030002e0031002e[PII_REDACTED][PII_REDACTED][PII_REDACTED]69006c[PII_REDACTED]620079003a[PII_REDACTED]69006e[PII_REDACTED]4b } /* FileVersion builtbyWinDDK */
		$ = {[PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED]730069006f006e[1-8]0031002e0030002e0031002e[PII_REDACTED]300030 } /* ProductVersion  */
		$ = { 0049006e[PII_REDACTED]72006e0061006c004e0061006d0065[1-8][PII_REDACTED]6d0049006f002e[PII_REDACTED]73 } /* InternalName AsmIosys */
		$ = {[PII_REDACTED]6f[PII_REDACTED]630074004e0061006d0065[1-8][PII_REDACTED]6d[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED] } /* ProductName AsmediaPCID

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

Full rule:
rule PUA_VULN_Driver_Asmediatechnologyinc_Asmiosys_Asmediapcidriver_E465 {
	meta:
		description = "Detects vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - AsmIo64.sys"
		author = "Florian Roth"
		reference = "https://github.com/magicsword-io/LOLDrivers"
		hash = "e4658d93544f69f5cb9aa6d9fec420fecc8750cb57e1e9798da38c139d44f2eb"
		date = "2024-08-07"
		score = 40
		id = "196ff2dc-bbf5-5728-bcc9-29fa774b1e84"
	strings:
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]006f006e[1-8][PII_REDACTED]6d[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED] } /* FileDescription AsmediaPCIDriver */
		$ = { 0043006f006d[PII_REDACTED]6e0079004e0061006d0065[1-8][PII_REDACTED]6d[PII_REDACTED][PII_REDACTED][PII_REDACTED]630068006e006f006c006f[PII_REDACTED][PII_REDACTED]006e0063002e } /* CompanyName AsmediaTechnologyInc */
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED]0069006f006e[1-8]0031002e0030002e0031002e[PII_REDACTED][PII_REDACTED][PII_REDACTED]69006c[PII_REDACTED]620079003a[PII_REDACTED]69006e[PII_REDACTED]4b } /* FileVersion builtbyWinDDK */
		$ = {[PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED]730069006f006e[1-8]0031002e0030002e0031002e[PII_REDACTED]300030 } /* ProductVersion  */
		$ = { 0049006e[PII_REDACTED]72006e0061006c004e0061006d0065[1-8][PII_REDACTED]6d0049006f002e[PII_REDACTED]73 } /* InternalName AsmIosys */
		$ = {[PII_REDACTED]6f[PII_REDACTED]630074004e0061006d0065[1-8][PII_REDACTED]6d[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED] } /* ProductName AsmediaPCIDriver */
		$ = { 004f[PII_REDACTED]670069006e0061006c[PII_REDACTED]6c0065006e0061006d0065[1-8][PII_REDACTED]6d0049006f002e[PII_REDACTED]73 } /* OriginalFilename AsmIosys */
		$ = { 004c[PII_REDACTED]61006c0043006f[PII_REDACTED][PII_REDACTED]00680074[1-8]00a[PII_REDACTED]073006d[PII_REDACTED][PII_REDACTED][PII_REDACTED]630068006e006f006c006f[PII_REDACTED]2e } /* LegalCopyright AsmediaTechnology */
	condition:
		uint16(0) == 0x5a4d and filesize < 100KB and all of them
}