YARA Detection Rule: PUA_VULN_Driver_Msi_Ntiolibsys_Ntiolib_D0BD
Repository: Neo23x0/signature-base
Detects: Detects vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - NTIOLib.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]004e[PII_REDACTED]4f004c00690062 } /* FileDescription NTIOLib */
		$ = { 0043006f006d[PII_REDACTED]6e0079004e0061006d0065[1-8]004d00530049 } /* CompanyName MSI */
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED]0069006f006e[1-8]0031002e0030002e0030002e00300031 } /* FileVersion  */
		$ = {[PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED]730069006f006e[1-8]0031002e0030002e0030002e00300031 } /* ProductVersion  */
		$ = { 0049006e[PII_REDACTED]72006e0061006c004e0061006d0065[1-8]004e[PII_REDACTED]4f004c[PII_REDACTED]2e[PII_REDACTED]73 } /* InternalName NTIOLibsys */
		$ = {[PII_REDACTED]6f[PII_REDACTED]630074004e0061006d0065[1-8]004e[PII_REDACTED]4f004c00690062 } /* ProductName NTIOLib */
		$ = { 004f[PII_REDACTED]670069006e0061006c[PII_REDACTED]6c0065006e0061006d0065[1-8]004e[PII_REDACTED]4f004c[PII_REDACTED]2e[PII_REDACTED]73 } /* OriginalFilename NTIOLibsys */
		$ = { 004c[PII_REDACTED]61006c0043006f[PII_REDACTED][PII_REDACTED]00680074[1-8]0043006f[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]

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

Full rule:
rule PUA_VULN_Driver_Msi_Ntiolibsys_Ntiolib_D0BD {
	meta:
		description = "Detects vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - NTIOLib.sys"
		author = "Florian Roth"
		reference = "https://github.com/magicsword-io/LOLDrivers"
		hash = "d0bd1ae72aeb5f3eabf1531a635f990e5eaae7fdd560342f915f723766c80889"
		date = "2024-08-07"
		score = 40
		id = "8[PII_REDACTED]-565a-8[PII_REDACTED]d93ee"
	strings:
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]006f006e[1-8]004e[PII_REDACTED]4f004c00690062 } /* FileDescription NTIOLib */
		$ = { 0043006f006d[PII_REDACTED]6e0079004e0061006d0065[1-8]004d00530049 } /* CompanyName MSI */
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED]0069006f006e[1-8]0031002e0030002e0030002e00300031 } /* FileVersion  */
		$ = {[PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED]730069006f006e[1-8]0031002e0030002e0030002e00300031 } /* ProductVersion  */
		$ = { 0049006e[PII_REDACTED]72006e0061006c004e0061006d0065[1-8]004e[PII_REDACTED]4f004c[PII_REDACTED]2e[PII_REDACTED]73 } /* InternalName NTIOLibsys */
		$ = {[PII_REDACTED]6f[PII_REDACTED]630074004e0061006d0065[1-8]004e[PII_REDACTED]4f004c00690062 } /* ProductName NTIOLib */
		$ = { 004f[PII_REDACTED]670069006e0061006c[PII_REDACTED]6c0065006e0061006d0065[1-8]004e[PII_REDACTED]4f004c[PII_REDACTED]2e[PII_REDACTED]73 } /* OriginalFilename NTIOLibsys */
		$ = { 004c[PII_REDACTED]61006c0043006f[PII_REDACTED][PII_REDACTED]00680074[1-8]0043006f[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]4d[PII_REDACTED]72006f002d[PII_REDACTED][PII_REDACTED]0049004e[PII_REDACTED]4c[PII_REDACTED]4f002e002c0020004c[PII_REDACTED]2e } /* LegalCopyright CopyrightCMicroStarINTLCOLTD */
	condition:
		uint16(0) == 0x5a4d and filesize < 100KB and all of them
}