YARA Detection Rule: PUA_VULN_Driver_Powertool_Kevpsys_Powertool_7C0F
Repository: Neo23x0/signature-base
Detects: Detects vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - kEvP64.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]0050006f[PII_REDACTED]720054006f006f006c } /* FileDescription PowerTool */
		$ = { 0043006f006d[PII_REDACTED]6e0079004e0061006d0065[1-8]0050006f[PII_REDACTED]720054006f006f006c } /* CompanyName PowerTool */
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED]0069006f006e[1-8]0031002e0030002e0031002e[PII_REDACTED][PII_REDACTED]006c[PII_REDACTED]620079003a[PII_REDACTED]69006e[PII_REDACTED]4b } /* FileVersion builtbyWinDDK */
		$ = {[PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED]730069006f006e[1-8]0031002e0030002e0031002e0030 } /* ProductVersion  */
		$ = { 0049006e[PII_REDACTED]72006e0061006c004e0061006d0065[1-8]006b[PII_REDACTED][PII_REDACTED]002e[PII_REDACTED]73 } /* InternalName kEvPsys */
		$ = {[PII_REDACTED]6f[PII_REDACTED]630074004e0061006d0065[1-8]0050006f[PII_REDACTED]720054006f006f006c } /* ProductName PowerTool */
		$ = { 004f[PII_REDACTED]670069006e0061006c[PII_REDACTED]6c0065006e0061006d0065[1-8]006b[PII_REDACTED][PII_REDACTED]002e[PII_REDACTED]73 } /* OriginalFilename kEvPsys */
		$ = { 004c006500

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

Full rule:
rule PUA_VULN_Driver_Powertool_Kevpsys_Powertool_7C0F {
	meta:
		description = "Detects vulnerable driver mentioned in LOLDrivers project using VersionInfo values from the PE header - kEvP64.sys"
		author = "Florian Roth"
		reference = "https://github.com/magicsword-io/LOLDrivers"
		hash = "7c0f77d103015fc29379ba75d133dc3450d557b0ba1f7495c6b43447abdae230"
		hash = "d9500af86bf129d06b47bcfbc4b23fcc724cfbd2af58b03cdb13b26f8f50d65e"
		hash = "2a4f4400402cdc475d39389645ca825bb0e775c3ecb7c527e30c5be44e24af7d"
		hash = "8e6363a6393eb4234667c6f614b2072e33512866b3204f8395bbe01530d63f2f"
		hash = "09b0e07af8b17db1d896b78da4dd3f55db76738ee1f4ced083a97d737334a184"
		hash = "e61004335dfe7349f2b2252baa1e111fb47c0f2d6c78a060502b6fcc92f801e4"
		hash = "7462b7ae48ae[PII_REDACTED]d4df2f0c4f72cdef7f3a69a524d4fccc5ed0fd343f"
		hash = "97363f377aaf3c01641ac04a15714acbec978afb1219ac8f22c7e5df7f2b2d56"
		hash = "1aaa9aef39cb3c0a854ecb4ca7d3b213458f302025e0ec5bfbdef973cca9111c"
		date = "2024-08-07"
		score = 40
		id = "b4eb0239-e787-50d8-bac9-78178e245bb8"
	strings:
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED][PII_REDACTED][PII_REDACTED]006f006e[1-8]0050006f[PII_REDACTED]720054006f006f006c } /* FileDescription PowerTool */
		$ = { 0043006f006d[PII_REDACTED]6e0079004e0061006d0065[1-8]0050006f[PII_REDACTED]720054006f006f006c } /* CompanyName PowerTool */
		$ = {[PII_REDACTED]6c[PII_REDACTED][PII_REDACTED]0069006f006e[1-8]0031002e0030002e0031002e[PII_REDACTED][PII_REDACTED]006c[PII_REDACTED]620079003a[PII_REDACTED]69006e[PII_REDACTED]4b } /* FileVersion builtbyWinDDK */
		$ = {[PII_REDACTED]6f[PII_REDACTED][PII_REDACTED][PII_REDACTED]730069006f006e[1-8]0031002e0030002e0031002e0030 } /* ProductVersion  */
		$ = { 0049006e[PII_REDACTED]72006e0061006c004e0061006d0065[1-8]006b[PII_REDACTED][PII_REDACTED]002e[PII_REDACTED]73 } /* InternalName kEvPsys */
		$ = {[PII_REDACTED]6f[PII_REDACTED]630074004e0061006d0065[1-8]0050006f[PII_REDACTED]720054006f006f006c } /* ProductName PowerTool */
		$ = { 004f[PII_REDACTED]670069006e0061006c[PII_REDACTED]6c0065006e0061006d0065[1-8]006b[PII_REDACTED][PII_REDACTED]002e00730