YARA Detection Rule: PUA_VULN_Renamed_Driver_Windowsrwinddkprovider_Amifldrvsys_Windowsrwinddkdriver_38D8
Repository: Neo23x0/signature-base
Detects: Detects renamed vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - amifldrv64.sys, amifldrv.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]0041004d[PII_REDACTED]470065006e[PII_REDACTED][PII_REDACTED][PII_REDACTED]69006c[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED] } /* FileDescription AMIGenericUtilityDriver */
		$ = { 0043006f006d[PII_REDACTED]6e0079004e0061006d0065[1-8][PII_REDACTED]6e0064006f[PII_REDACTED][PII_REDACTED][PII_REDACTED]570069006e[PII_REDACTED][PII_REDACTED]004b[PII_REDACTED]72006f[PII_REDACTED][PII_REDACTED] } /* CompanyName WindowsRWinDDKprovider */
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED]0069006f006e[1-8][PII_REDACTED]2e0030002e[PII_REDACTED][PII_REDACTED]002e[PII_REDACTED][PII_REDACTED] } /* FileVersion  */
		$ = {[PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED]730069006f006e[1-8][PII_REDACTED]2e0030002e[PII_REDACTED][PII_REDACTED]002e[PII_REDACTED][PII_REDACTED] } /* ProductVersion  */
		$ = { 0049006e[PII_REDACTED]72006e0061006c004e0061006d0065[1-8]0061006d[PII_REDACTED]6c[PII_REDACTED]76002e[PII_REDACTED]73 } /* InternalName amifldrvsys */
		$ = {[PII_REDACTED]6f[PII_REDACTED]630074004e0061006d0065[1-8][PII_REDACTED]6e0064006f[PII_REDACTED][PII_REDACTED][PII_REDACTED]5700

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

Full rule:
rule PUA_VULN_Renamed_Driver_Windowsrwinddkprovider_Amifldrvsys_Windowsrwinddkdriver_38D8 {
	meta:
		description = "Detects renamed vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - amifldrv64.sys, amifldrv.sys"
		author = "Florian Roth"
		reference = "https://github.com/magicsword-io/LOLDrivers"
		hash = "38d87b51f4b69ba2dae1477684a1415f1a3b578eee5e1126673b1beaefee9a20"
		hash = "ffc72f0bde21ba20aa97bee99d9e96870e5aa40cce9884e44c612757f939494f"
		date = "2024-08-07"
		score = 70
		id = "03c0f365-8d94-5afe-a046-810f27178ade"
	strings:
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]006f006e[1-8]0041004d[PII_REDACTED]470065006e[PII_REDACTED][PII_REDACTED][PII_REDACTED]69006c[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED] } /* FileDescription AMIGenericUtilityDriver */
		$ = { 0043006f006d[PII_REDACTED]6e0079004e0061006d0065[1-8][PII_REDACTED]6e0064006f[PII_REDACTED][PII_REDACTED][PII_REDACTED]570069006e[PII_REDACTED][PII_REDACTED]004b[PII_REDACTED]72006f[PII_REDACTED][PII_REDACTED] } /* CompanyName WindowsRWinDDKprovider */
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED]0069006f006e[1-8][PII_REDACTED]2e0030002e[PII_REDACTED][PII_REDACTED]002e[PII_REDACTED][PII_REDACTED] } /* FileVersion  */
		$ = {[PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED]730069006f006e[1-8][PII_REDACTED]2e0030002e[PII_REDACTED][PII_REDACTED]002e[PII_REDACTED][PII_REDACTED] } /* ProductVersion  */
		$ = { 0049006e[PII_REDACTED]72006e0061006c004e0061006d0065[1-8]0061006d[PII_REDACTED]6c[PII_REDACTED]76002e[PII_REDACTED]73 } /* InternalName amifldrvsys */
		$ = {[PII_REDACTED]6f[PII_REDACTED]630074004e0061006d0065[1-8][PII_REDACTED]6e0064006f[PII_REDACTED][PII_REDACTED][PII_REDACTED]570069006e[PII_REDACTED][PII_REDACTED]004b[PII_REDACTED][PII_REDACTED]00650072 } /* ProductName WindowsRWinDDKdriver */
		$ = { 004f[PII_REDACTED]670069006e0061006c[PII_REDACTED]6c0065006e0061006d0065[1-8]0061006d[PII_REDACTED]6c[PII_REDACTED]76002e[PII_REDACTED]73 } /* OriginalFilename amifldrvsys */
		$ = { 004c[PII_REDACTED]61006c0043006f[PII_REDACTED][PII_REDACTED]00680074[1-8]00a90020004d[PII_REDACTED]72006f0073006f[PII_REDACTED]200043006f[PII_REDACTED]6f[PII_REDACTED]7