YARA Detection Rule: PUA_VULN_Renamed_Driver_Asrockincorporation_Asrdrvsys_Asrockiodriver_4D03
Repository: Neo23x0/signature-base
Detects: Detects renamed vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - AsrDrv.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]52006f0063006b[PII_REDACTED]4f[PII_REDACTED][PII_REDACTED]00650072 } /* FileDescription ASRockIODriver */
		$ = { 0043006f006d[PII_REDACTED]6e0079004e0061006d0065[1-8][PII_REDACTED]52006f0063006b[PII_REDACTED]6e0063006f[PII_REDACTED]6f[PII_REDACTED]740069006f006e } /* CompanyName ASRockIncorporation */
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED]0069006f006e[1-8]0031002e[PII_REDACTED]2e[PII_REDACTED]2e[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]0031002e[PII_REDACTED]2e[PII_REDACTED]2e[PII_REDACTED]300030 } /* ProductVersion  */
		$ = { 0049006e[PII_REDACTED]72006e0061006c004e0061006d0065[1-8][PII_REDACTED][PII_REDACTED]0076002e[PII_REDACTED]73 } /* InternalName AsrDrvsys */
		$ = {[PII_REDACTED]6f[PII_REDACTED]630074004e0061006d0065[1-8][PII_REDACTED]52006f0063006b[PII_REDACTED]4f[PII_REDACTED][PII_REDACTED]00650072 } /* ProductName ASRockIODriver */
		$ = {

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

Full rule:
rule PUA_VULN_Renamed_Driver_Asrockincorporation_Asrdrvsys_Asrockiodriver_4D03 {
	meta:
		description = "Detects renamed vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - AsrDrv.sys"
		author = "Florian Roth"
		reference = "https://github.com/magicsword-io/LOLDrivers"
		hash = "4d03a01257e156a3a[PII_REDACTED]52791c3cde556e5cec7a4dd2f55f65c06e146"
		hash = "3943a796cc7c5352aa57ccf544295bfd6fb69aae147bc8235a00202dc6ed6838"
		hash = "950a4c0c772021cee26011a92194f0e58d61588f77f2873aa0599dff52a160c9"
		hash = "d20d8bf80017e98b6dfc9f6c3960271fa792a908758bef49a390e2692a2a4341"
		hash = "2003b478b9fd1b3d76ec5bf4172c2e8915babbbee7ad1783794acbf8d4c2519d"
		hash = "6ed35f310c96920a271c59a097b382da07856e40179c2a4239f8daa04eef38e7"
		hash = "4bf974f5d3489638a48ee508b4a8cfa0f[PII_REDACTED]ccdd2e871172b71654d89"
		hash = "ece0a900ea089e[PII_REDACTED]14c[PII_REDACTED]ceb5e11599ee3a1bb679e24fd2c"
		hash = "53bb076e81f6104f41bc284eedae36bd99b53e42719573fa[PII_REDACTED]ebc854"
		hash = "f[PII_REDACTED]9b4fb3b945ca21a8325a51e1b5f80f045ab019748d0ec66056a8b"
		hash = "a7c2e7910942dd5e43e2f4eb159bcd2b4e71366e34a68109548b9fb12ac0f7cc"
		date = "2024-08-07"
		score = 70
		id = "3ad02476-24f8-5ef3-a9af-501d072b3d3d"
	strings:
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]006f006e[1-8][PII_REDACTED]52006f0063006b[PII_REDACTED]4f[PII_REDACTED][PII_REDACTED]00650072 } /* FileDescription ASRockIODriver */
		$ = { 0043006f006d[PII_REDACTED]6e0079004e0061006d0065[1-8][PII_REDACTED]52006f0063006b[PII_REDACTED]6e0063006f[PII_REDACTED]6f[PII_REDACTED]740069006f006e } /* CompanyName ASRockIncorporation */
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED]0069006f006e[1-8]0031002e[PII_REDACTED]2e[PII_REDACTED]2e[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]0031002e[PII_REDACTED]2e[PII_REDACTED]2e[PII_REDACTED]300030 } /* ProductVersion  */
		$ = { 0049006e[PII_REDACTED]72006e0061006c004e0061006d0