YARA Detection Rule: PUA_VULN_Renamed_Driver_Asustekcomputerinc_Bsdefsys_Supportsstsfssteeatftatcamfntamfnbvctvcbmftwc_5F5E
Repository: Neo23x0/signature-base
Detects: Detects renamed vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - Bs_Def.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]006c[PII_REDACTED]420049004f[PII_REDACTED]46006c[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED] } /* FileDescription DefaultBIOSFlashDriver */
		$ = { 0043006f006d[PII_REDACTED]6e0079004e0061006d0065[1-8][PII_REDACTED][PII_REDACTED]0065006b[PII_REDACTED]6f006d[PII_REDACTED][PII_REDACTED][PII_REDACTED]6e0063002e } /* CompanyName AsusTekComputerInc */
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED]0069006f006e[1-8]0031002e[PII_REDACTED][PII_REDACTED]0069006c[PII_REDACTED]620079003a[PII_REDACTED]69006e[PII_REDACTED]4b } /* FileVersion builtbyWinDDK */
		$ = {[PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED]730069006f006e[1-8]0031002e00320034 } /* ProductVersion  */
		$ = { 0049006e[PII_REDACTED]72006e0061006c004e0061006d0065[1-8][PII_REDACTED]5f[PII_REDACTED][PII_REDACTED]002e[PII_REDACTED]73 } /* InternalName BsDefsys */
		$ = {[PII_REDACTED]6f[PII_REDACTED]630074004e0061006d0065[1-8][PII_REDACTED]700070006f[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]30002c[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]0

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

Full rule:
rule PUA_VULN_Renamed_Driver_Asustekcomputerinc_Bsdefsys_Supportsstsfssteeatftatcamfntamfnbvctvcbmftwc_5F5E {
	meta:
		description = "Detects renamed vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - Bs_Def.sys"
		author = "Florian Roth"
		reference = "https://github.com/magicsword-io/LOLDrivers"
		hash = "5f5e5f1c93d[PII_REDACTED]68b7c676d488c7c7c1d4c043f6fc1ea1904fefb75be"
		hash = "3326e2d32bbabd69feb6024809afc56c7e39241ebe70a53728c77e80995422a5"
		hash = "[PII_REDACTED]b88bee27eb4f1eca6855039e1a057370f5e8c615724fa5215bada3"
		hash = "36b9e31240ab0341873c7092b63e2e0f2cab2962ebf9b25271c3a1216b7669eb"
		date = "2024-08-07"
		score = 70
		id = "352c2210-c58d-57be-98f3-39ba15d97cf9"
	strings:
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]006f006e[1-8][PII_REDACTED][PII_REDACTED]006c[PII_REDACTED]420049004f[PII_REDACTED]46006c[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED] } /* FileDescription DefaultBIOSFlashDriver */
		$ = { 0043006f006d[PII_REDACTED]6e0079004e0061006d0065[1-8][PII_REDACTED][PII_REDACTED]0065006b[PII_REDACTED]6f006d[PII_REDACTED][PII_REDACTED][PII_REDACTED]6e0063002e } /* CompanyName AsusTekComputerInc */
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED]0069006f006e[1-8]0031002e[PII_REDACTED][PII_REDACTED]0069006c[PII_REDACTED]620079003a[PII_REDACTED]69006e[PII_REDACTED]4b } /* FileVersion builtbyWinDDK */
		$ = {[PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED]730069006f006e[1-8]0031002e00320034 } /* ProductVersion  */
		$ = { 0049006e[PII_REDACTED]72006e0061006c004e0061006d0065[1-8][PII_REDACTED]5f[PII_REDACTED][PII_REDACTED]002e[PII_REDACTED]73 } /* InternalName BsDefsys */
		$ = {[PII_REDACTED]6f[PII_REDACTED]630074004e0061006d0065[1-8][PII_REDACTED]700070006f[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]30002c[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]002c[PII_REDACTED][PII_REDACTED][PII_REDACTED]320054002c[PII_REDACTED][PII_REDACTED][PII_REDACTED]30002c0041004d[PII_REDACTED][PII_REDACTED]0032004e0054002c0041004d[PII_REDACTED][PII_REDACTED]0032004e0042002c[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]002c[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]002c004d