Query Details

LOL Driver Usage

Query

# LOL Driver Usage

## Query Information

#### Description
This query uses different tables to list all actions related to LOL drivers. It combines DeviceFileEvents, DeviceProcessEvents and DeviceImageLoadEvents to list the results. The lol drivers project is a curated list of Windows drivers used by adversaries to bypass security controls and carry out attacks. The project helps security professionals stay informed and mitigate potential threats. Those drivers should preferable be removed from your environment.

#### Risk
An adversary uses a loldriver to perform malicious activities.

#### References
- https://www.loldrivers.io/

## Defender For Endpoint
```
let LolDriverSHA1 = externaldata(SHA1: string)[@"https://raw.githubusercontent.com/magicsword-io/LOLDrivers/main/detections/hashes/authentihash_samples.sha1"] with (format="txt", ignoreFirstRecord=False);
// Combine results to get ImageLoads, FileActions and Process Events
union isfuzzy=true
(DeviceFileEvents
| where SHA1 in~ (LolDriverSHA1)),
(DeviceProcessEvents
| where InitiatingProcessSHA1 in~ (LolDriverSHA1) or SHA1 in~ (LolDriverSHA1)),
(DeviceImageLoadEvents
| where SHA1 in (LolDriverSHA1))
| project-reorder Timestamp, DeviceName, FolderPath, ProcessCommandLine
```
## Sentinel
```
let LolDriverSHA1 = externaldata(SHA1: string)[@"https://raw.githubusercontent.com/magicsword-io/LOLDrivers/main/detections/hashes/authentihash_samples.sha1"] with (format="txt", ignoreFirstRecord=False);
// Combine results to get ImageLoads, FileActions and Process Events
union isfuzzy=true
(DeviceFileEvents
| where SHA1 in~ (LolDriverSHA1)),
(DeviceProcessEvents
| where InitiatingProcessSHA1 in~ (LolDriverSHA1) or SHA1 in~ (LolDriverSHA1)),
(DeviceImageLoadEvents
| where SHA1 in (LolDriverSHA1))
| project-reorder TimeGenerated, DeviceName, FolderPath, ProcessCommandLine
```


Explanation

This query combines different tables to list all actions related to LOL drivers. It uses DeviceFileEvents, DeviceProcessEvents, and DeviceImageLoadEvents tables to gather the results. LOL drivers are Windows drivers used by adversaries to bypass security controls and carry out attacks. The query helps security professionals identify and mitigate potential threats by listing these drivers, which should be removed from the environment.

Details

Bert-Jan Pals profile picture

Bert-Jan Pals

Released: June 11, 2023

Tables

DeviceFileEventsDeviceProcessEventsDeviceImageLoadEvents

Keywords

DeviceFileEvents,DeviceProcessEvents,DeviceImageLoadEvents,SHA1,Timestamp,DeviceName,FolderPath,ProcessCommandLine,TimeGenerated

Operators

externaldataunionisfuzzywherein~orinproject-reorder

Actions