YARA Detection Rule: PUA_VULN_Driver_Copyright_Advancedmalwareprotection_6F55
Repository: Neo23x0/signature-base
Detects: Detects vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - amsdk.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]760061006e[PII_REDACTED]640020004d0061006c[PII_REDACTED][PII_REDACTED][PII_REDACTED]6f[PII_REDACTED][PII_REDACTED]006f006e } /* FileDescription AdvancedMalwareProtection */
		$ = { 0043006f006d[PII_REDACTED]6e0079004e0061006d0065[1-8]0043006f[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]2e } /* CompanyName Copyright */
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED]0069006f006e[1-8]0033002e0030002e0030002e[PII_REDACTED]30 } /* FileVersion  */
		$ = {[PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED]730069006f006e[1-8]0033002e0030002e0030002e[PII_REDACTED]30 } /* ProductVersion  */
		$ = {[PII_REDACTED]6f[PII_REDACTED]630074004e0061006d0065[1-8][PII_REDACTED]760061006e[PII_REDACTED]640020004d0061006c[PII_REDACTED][PII_REDACTED][PII_REDACTED]6f[PII_REDACTED][PII_REDACTED]006f006e } /* ProductName AdvancedMalwareProtection */
		$ = { 004f[PII_REDACTED]670069006e0061006c[PII_REDACTED]6c0065006e0061006d0065[1-8]005a0041004d002e[PII_REDACTED]65 } /* OriginalFilename ZAMexe */
		$ = { 004c[PII_REDACTED]61006

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

Full rule:
rule PUA_VULN_Driver_Copyright_Advancedmalwareprotection_6F55 {
	meta:
		description = "Detects vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - amsdk.sys"
		author = "Florian Roth"
		reference = "https://github.com/magicsword-io/LOLDrivers"
		hash = "6f55c148bb27c14408cf0f16f344abcd63539174ac855e510a42d78cfaec451c"
		date = "2024-08-07"
		score = 40
		id = "6eb82ac7-9544-5554-b7af-557dd843d29d"
	strings:
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]006f006e[1-8][PII_REDACTED]760061006e[PII_REDACTED]640020004d0061006c[PII_REDACTED][PII_REDACTED][PII_REDACTED]6f[PII_REDACTED][PII_REDACTED]006f006e } /* FileDescription AdvancedMalwareProtection */
		$ = { 0043006f006d[PII_REDACTED]6e0079004e0061006d0065[1-8]0043006f[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]2e } /* CompanyName Copyright */
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED]0069006f006e[1-8]0033002e0030002e0030002e[PII_REDACTED]30 } /* FileVersion  */
		$ = {[PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED]730069006f006e[1-8]0033002e0030002e0030002e[PII_REDACTED]30 } /* ProductVersion  */
		$ = {[PII_REDACTED]6f[PII_REDACTED]630074004e0061006d0065[1-8][PII_REDACTED]760061006e[PII_REDACTED]640020004d0061006c[PII_REDACTED][PII_REDACTED][PII_REDACTED]6f[PII_REDACTED][PII_REDACTED]006f006e } /* ProductName AdvancedMalwareProtection */
		$ = { 004f[PII_REDACTED]670069006e0061006c[PII_REDACTED]6c0065006e0061006d0065[1-8]005a0041004d002e[PII_REDACTED]65 } /* OriginalFilename ZAMexe */
		$ = { 004c[PII_REDACTED]61006c0043006f[PII_REDACTED][PII_REDACTED]00680074[1-8]0043006f[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]2e[PII_REDACTED]6c006c[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]0064002e } /* LegalCopyright CopyrightAllrightsreserved */
	condition:
		uint16(0) == 0x5a4d and filesize < 300KB and all of them
}