YARA · LOLDrivers
LOLDRIVERS_MAL_Driver_Microsoftcorporation_Ampgsys_Microsoftwindowsoperatingsystem_CACA
Detects malicious driver mentioned in LOLDrivers project using VersionInfo values from the PE header - ampg.sys. Investigate matches in context: expected filenames or standard vendor/system driver locations can be lower priority, while unexpected filenames or paths are more suspicious.
- Author
- Florian Roth
- Date
- 2026-09-08
- Score / Quality
- 70 / 80
What this rule detects
Detects malicious driver mentioned in LOLDrivers project using VersionInfo values from the PE header - ampg.sys. Investigate matches in context: expected filenames or standard vendor/system driver locations can be lower priority, while unexpected filenames or paths are more suspicious.
It defines 8 patterns (0 text, 8 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule LOLDRIVERS_MAL_Driver_Microsoftcorporation_Ampgsys_Microsoftwindowsoperatingsystem_CACA
{
meta:
= "Detects malicious driver mentioned in LOLDrivers project using VersionInfo values from the PE header - ampg.sys. Investigate matches in context: expected filenames or standard vendor/system driver locations can be lower priority, while unexpected filenames or paths are more suspicious."
= "Florian Roth"
= "9c8ca76c-117c-5f80-8179-abd1ffa84ba9"
= "2026-09-08"
= "2026-09-08"
= "https://github.com/magicsword-io/LOLDrivers"
= "https://github.com/magicsword-io/LOLDrivers//blob/9fa32adeab865455de8b24cba0bbc0f3439d59f7/detections/yara/yara-rules_mal_drivers.yar#L807-L826"
= "https://github.com/magicsword-io/LOLDrivers//blob/9fa32adeab865455de8b24cba0bbc0f3439d59f7/LICENSE"
= "cacaf0698c6371f8cc45fae85a13fb738f0b8ce0db716c5e4d0d12152de163e3"
= "bf38019a154863d70321b8aa1380551bd96a42a5f0141d163543d4f16b66ea22"
= 70
= 80
= ""
strings:
$ = { 460069006c0065004400650073006300720069007000740069006f006e00[1-8]53004400200043007200610073006800640075006d007000200050006f00720074002000440072006900760065007200 }
$ = { 43006f006d00700061006e0079004e0061006d006500[1-8]4d006900630072006f0073006f0066007400200043006f00720070006f0072006100740069006f006e00 }
$ = { 460069006c006500560065007200730069006f006e00[1-8]310030002e0030002e00320036003100300030002e00340032003000320020002800570069006e004200750069006c0064002e003100360030003100300031002e0030003800300030002900 }
$ = { 500072006f006400750063007400560065007200730069006f006e00[1-8]310030002e0030002e00320036003100300030002e003400320030003200 }
$ = { 49006e007400650072006e0061006c004e0061006d006500[1-8]61006d00700067002e00730079007300 }
$ = { 500072006f0064007500630074004e0061006d006500[1-8]4d006900630072006f0073006f0066007400ae002000570069006e0064006f0077007300ae0020004f007000650072006100740069006e0067002000530079007300740065006d00 }
$ = { 4f0072006900670069006e0061006c00460069006c0065006e0061006d006500[1-8]61006d00700067002e00730079007300 }
$ = { 4c006500670061006c0043006f007000790072006900670068007400[1-8]a90020004d006900630072006f0073006f0066007400200043006f00720070006f0072006100740069006f006e002e00200041006c006c0020007200690067006800740073002000720065007300650072007600650064002e00 }
condition:
all of them
}
Strings (8 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $ | hex | { 460069006c0065004400650073006300720069007000740069006f006e00[1-8]53004400200043007200610073006800640075006d007000200050006f00720074002000440072006900760065007 … | |
| $ | hex | { 43006f006d00700061006e0079004e0061006d006500[1-8]4d006900630072006f0073006f0066007400200043006f00720070006f0072006100740069006f006e00 } | |
| $ | hex | { 460069006c006500560065007200730069006f006e00[1-8]310030002e0030002e00320036003100300030002e00340032003000320020002800570069006e004200750069006c0064002e0031003 … | |
| $ | hex | { 500072006f006400750063007400560065007200730069006f006e00[1-8]310030002e0030002e00320036003100300030002e003400320030003200 } | |
| $ | hex | { 49006e007400650072006e0061006c004e0061006d006500[1-8]61006d00700067002e00730079007300 } | |
| $ | hex | { 500072006f0064007500630074004e0061006d006500[1-8]4d006900630072006f0073006f0066007400ae002000570069006e0064006f0077007300ae0020004f007000650072006100740069006 … | |
| $ | hex | { 4f0072006900670069006e0061006c00460069006c0065006e0061006d006500[1-8]61006d00700067002e00730079007300 } | |
| $ | hex | { 4c006500670061006c0043006f007000790072006900670068007400[1-8]a90020004d006900630072006f0073006f0066007400200043006f00720070006f0072006100740069006f006e002e002 … |
Condition
all of themIn plain words (Heuristic)
- All patterns in the rule must match.
Test this rule in your browser
Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.
Sample hashes
Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).
- cacaf0698c6371f8cc45fae85a13fb738f0b8ce0db716c5e4d0d12152de163e3
Licence & attribution
Author: Florian Roth
Source repository: LOLDrivers @ 9fa32adeab
Licence: Apache License 2.0 (repository licence)
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: 9c8ca76c-117c-5f80-8179-abd1ffa84ba9
Related rules
- Vulnerable / malicious driverLOLDrivers· Florian Roth· 2026-08-28
- Vulnerable / malicious driverLOLDrivers· Florian Roth· 2026-04-28
- Vulnerable / malicious driverLOLDrivers· Florian Roth· 2026-04-28
- Vulnerable / malicious driverLOLDrivers· Florian Roth· 2026-04-28
- Vulnerable / malicious driverLOLDrivers· Florian Roth· 2026-04-28
- Vulnerable / malicious driverLOLDrivers· Florian Roth· 2026-04-28
- Vulnerable / malicious driverLOLDrivers· Florian Roth· 2026-04-28
- Vulnerable / malicious driverLOLDrivers· Florian Roth· 2026-04-28