YARA Detection Rule: PUA_VULN_Driver_Avaluetechnologyinc_Avalueio_Avalueio_A5A4
Repository: Neo23x0/signature-base
Detects: Detects vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - avalueio.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]61006c[PII_REDACTED]49004f[PII_REDACTED][PII_REDACTED]00650072 } /* FileDescription AvalueIODriver */
		$ = { 0043006f006d[PII_REDACTED]6e0079004e0061006d0065[1-8][PII_REDACTED]760061006c[PII_REDACTED][PII_REDACTED][PII_REDACTED]6e006f006c006f[PII_REDACTED]200049006e0063002e } /* CompanyName AvalueTechnologyInc */
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED]0069006f006e[1-8]0032002e[PII_REDACTED]2e[PII_REDACTED]2e00300030 } /* FileVersion  */
		$ = {[PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED]730069006f006e[1-8]0032002e[PII_REDACTED]2e[PII_REDACTED]2e00300030 } /* ProductVersion  */
		$ = { 0049006e[PII_REDACTED]72006e0061006c004e0061006d0065[1-8][PII_REDACTED]41004c[PII_REDACTED]49004f } /* InternalName AVALUEIO */
		$ = {[PII_REDACTED]6f[PII_REDACTED]630074004e0061006d0065[1-8][PII_REDACTED]61006c[PII_REDACTED]49004f0020 } /* ProductName AvalueIO */
		$ = { 004f[PII_REDACTED]670069006e0061006c[PII_REDACTED]6c0065006e0061006d0065[1-8][PII_REDACTED]41004c[PII_REDACTED]49004f002e[PII_REDACTED]53 } /* Original

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

Full rule:
rule PUA_VULN_Driver_Avaluetechnologyinc_Avalueio_Avalueio_A5A4 {
	meta:
		description = "Detects vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - avalueio.sys"
		author = "Florian Roth"
		reference = "https://github.com/magicsword-io/LOLDrivers"
		hash = "a5a4a3c3d3d5a79f3ed703fc56d45011c21f9913001fcbcc43a3f7572cff44ec"
		hash = "defde359045213ae6ae278e2a92c5b4a46a[PII_REDACTED]4c7957a38138e9c9bbd"
		date = "2024-08-07"
		score = 40
		id = "e0e5d6b9-6e7e-5955-b7f0-a4c331fb19fc"
	strings:
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]006f006e[1-8][PII_REDACTED]61006c[PII_REDACTED]49004f[PII_REDACTED][PII_REDACTED]00650072 } /* FileDescription AvalueIODriver */
		$ = { 0043006f006d[PII_REDACTED]6e0079004e0061006d0065[1-8][PII_REDACTED]760061006c[PII_REDACTED][PII_REDACTED][PII_REDACTED]6e006f006c006f[PII_REDACTED]200049006e0063002e } /* CompanyName AvalueTechnologyInc */
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED]0069006f006e[1-8]0032002e[PII_REDACTED]2e[PII_REDACTED]2e00300030 } /* FileVersion  */
		$ = {[PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED]730069006f006e[1-8]0032002e[PII_REDACTED]2e[PII_REDACTED]2e00300030 } /* ProductVersion  */
		$ = { 0049006e[PII_REDACTED]72006e0061006c004e0061006d0065[1-8][PII_REDACTED]41004c[PII_REDACTED]49004f } /* InternalName AVALUEIO */
		$ = {[PII_REDACTED]6f[PII_REDACTED]630074004e0061006d0065[1-8][PII_REDACTED]61006c[PII_REDACTED]49004f0020 } /* ProductName AvalueIO */
		$ = { 004f[PII_REDACTED]670069006e0061006c[PII_REDACTED]6c0065006e0061006d0065[1-8][PII_REDACTED]41004c[PII_REDACTED]49004f002e[PII_REDACTED]53 } /* OriginalFilename AVALUEIOSYS */
		$ = { 004c[PII_REDACTED]61006c0043006f[PII_REDACTED][PII_REDACTED]00680074[1-8]0043006f[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]310036 } /* LegalCopyright Copyrightc */
	condition:
		uint16(0) == 0x5a4d and filesize < 100KB and all of them
}