YARA Detection Rule: PUA_VULN_Renamed_Driver_Eldoscorporation_Elrawdsksys_Rawdisk_4744
Repository: Neo23x0/signature-base
Detects: Detects renamed vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - elrawdsk.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][PII_REDACTED]0073006b[PII_REDACTED][PII_REDACTED][PII_REDACTED]2e[PII_REDACTED]6c006c006f[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]6f[PII_REDACTED]69006c[PII_REDACTED]200061006e[PII_REDACTED][PII_REDACTED][PII_REDACTED]690073006b[PII_REDACTED][PII_REDACTED]006f[PII_REDACTED]200066006f[PII_REDACTED][PII_REDACTED][PII_REDACTED]6d006f[PII_REDACTED][PII_REDACTED]0070006c[PII_REDACTED][PII_REDACTED]006f006e[PII_REDACTED]69006e[PII_REDACTED]69006e0064006f[PII_REDACTED][PII_REDACTED][PII_REDACTED]200061006e[PII_REDACTED]6c[PII_REDACTED]650072002e } /* FileDescription RawDiskDriverAllowswriteaccesstofilesandrawdisksectorsforusermodeapplicationsinWindowsandlater */
		$ = { 0043006f006d[PII_REDACTED]6e0079004e0061006d0065[1-8]0045006c0064006f[PII_REDACTED]43006f[PII_REDACTED]6f[PII_REDACTED]740069006f006e } /* CompanyName EldoSCorporation */
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED]0069006f006e[1-8]0032002c[PII_REDACTED]2c[PII_REDACTED]37002c[PII_REDACTED]300036 } /* FileVersion  */
		$ = {[PII_REDACTED]6f[PII_REDACTED]630074005

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

Full rule:
rule PUA_VULN_Renamed_Driver_Eldoscorporation_Elrawdsksys_Rawdisk_4744 {
	meta:
		description = "Detects renamed vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - elrawdsk.sys"
		author = "Florian Roth"
		reference = "https://github.com/magicsword-io/LOLDrivers"
		hash = "4744df6ac02ff0a3f9ad0bf47b15854bbebb73c936dd02f7c79293a2828406f6"
		hash = "5a826b4fa10891cf63aae832fc645ce680a483b915c608ca26cedbb173b1b80a"
		date = "2024-08-07"
		score = 70
		id = "299e1312-e4ff-5152-a046-b020c825df5a"
	strings:
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]006f006e[1-8][PII_REDACTED][PII_REDACTED]0073006b[PII_REDACTED][PII_REDACTED][PII_REDACTED]2e[PII_REDACTED]6c006c006f[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]6f[PII_REDACTED]69006c[PII_REDACTED]200061006e[PII_REDACTED][PII_REDACTED][PII_REDACTED]690073006b[PII_REDACTED][PII_REDACTED]006f[PII_REDACTED]200066006f[PII_REDACTED][PII_REDACTED][PII_REDACTED]6d006f[PII_REDACTED][PII_REDACTED]0070006c[PII_REDACTED][PII_REDACTED]006f006e[PII_REDACTED]69006e[PII_REDACTED]69006e0064006f[PII_REDACTED][PII_REDACTED][PII_REDACTED]200061006e[PII_REDACTED]6c[PII_REDACTED]650072002e } /* FileDescription RawDiskDriverAllowswriteaccesstofilesandrawdisksectorsforusermodeapplicationsinWindowsandlater */
		$ = { 0043006f006d[PII_REDACTED]6e0079004e0061006d0065[1-8]0045006c0064006f[PII_REDACTED]43006f[PII_REDACTED]6f[PII_REDACTED]740069006f006e } /* CompanyName EldoSCorporation */
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED]0069006f006e[1-8]0032002c[PII_REDACTED]2c[PII_REDACTED]37002c[PII_REDACTED]300036 } /* FileVersion  */
		$ = {[PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED]730069006f006e[1-8]0032002c[PII_REDACTED]2c[PII_REDACTED]37002c00200030 } /* ProductVersion  */
		$ = { 0049006e[PII_REDACTED]72006e0061006c004e0061006d0065[1-8]0065006c[PII_REDACTED][PII_REDACTED]006b002e[PII_REDACTED]73 } /* InternalName elrawdsksys */
		$ = {[PII_REDACTED]6f[PII_REDACTED]630074004e0061006d0065[1-8][PII_REDACTED][PII_REDACTED]0073006b } /* ProductName RawDisk */
		$ = { 004f[PII_REDACTED]670069006e0061006c[PII_REDACTED]6c0065006e0061006d0065[1-8]0065006c00720