YARA Detection Rule: PUA_VULN_Renamed_Driver_Windowsrwinddkprovider_Vmdrvsys_Windowsrwinddkdriver_5C0B
Repository: Neo23x0/signature-base
Detects: Detects renamed vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - vmdrv.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]0056006f[PII_REDACTED]65006d006f[PII_REDACTED][PII_REDACTED][PII_REDACTED]61006c[PII_REDACTED][PII_REDACTED]006f[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]0044004d0029 } /* FileDescription VoicemodVirtualAudioDeviceWDM */
		$ = { 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]0076006d[PII_REDACTED]76002e[PII_REDACTED]73 } /* InternalName vmdrvsys */
		$ = {[PII_REDACTED]6f[PII_REDACTED]630074004e0061006d0065[1-8][PII_REDACTED]6e0064006f0077007

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

Full rule:
rule PUA_VULN_Renamed_Driver_Windowsrwinddkprovider_Vmdrvsys_Windowsrwinddkdriver_5C0B {
	meta:
		description = "Detects renamed vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - vmdrv.sys"
		author = "Florian Roth"
		reference = "https://github.com/magicsword-io/LOLDrivers"
		hash = "5c0b429e[PII_REDACTED]934fa9c10ac7a88e19068fa1bd152879e4e9b89c103921"
		hash = "32cccc4f249499061c0afa18f534c825d01034a1f6815f5506bf4c4ff55d1351"
		hash = "d884ca8cc4ef1826ca3ab03eb3c2d8f356ba25f2d20db0a7d9fc251c565be7f3"
		date = "2024-08-07"
		score = 70
		id = "0d3a77dc-c2c8-5741-b574-e3a1afe4e43d"
	strings:
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]006f006e[1-8]0056006f[PII_REDACTED]65006d006f[PII_REDACTED][PII_REDACTED][PII_REDACTED]61006c[PII_REDACTED][PII_REDACTED]006f[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]0044004d0029 } /* FileDescription VoicemodVirtualAudioDeviceWDM */
		$ = { 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]0076006d[PII_REDACTED]76002e[PII_REDACTED]73 } /* InternalName vmdrvsys */
		$ = {[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]0076006d[PII_REDACTED]76002e[PII_REDACTED]73 } /* OriginalFilename vmdrvsys */
		$ = { 004c[PII_REDACTED]61006c0043006f[PII_REDACTED][PII_REDACTED]00680074[1-8]0043006f00700