MITRE ATT&CKtechnique
T1652 Device Driver Discovery
- Domain
- enterprise
- Tactics
- Discovery
- Platforms
- Linux, macOS, Windows
- Version
- 1.0
- Created
- 2023-03-28
Description
Adversaries may attempt to enumerate local device drivers on a victim host. Information about device drivers may highlight various insights that shape follow-on behaviors, such as the function/purpose of the host, present security tools (i.e. Security Software Discovery) or other defenses (e.g., Virtualization/Sandbox Evasion), as well as potential exploitable vulnerabilities (e.g., Exploitation for Privilege Escalation).
Many OS utilities may provide information about local device drivers, such as `driverquery.exe` and the `EnumDeviceDrivers()` API function on Windows. Information about device drivers (as well as associated services, i.e., System Service Discovery) may also be available in the Registry.
On Linux/macOS, device drivers (in the form of kernel modules) may be visible within `/dev` or using utilities such as `lsmod` and `modinfo`.
Related
Tactic · MITRE ATT&CK (1)
- TA0007 Discovery tactic
References
- https://man7.org/linux/man-pages/man8/lsmod.8.html lsmod man
- https://learn.microsoft.com/windows-hardware/drivers/install/overview-of-registry-trees-and-keys Microsoft Registry Drivers
- https://learn.microsoft.com/windows/win32/api/psapi/nf-psapi-enumdevicedrivers Microsoft EnumDeviceDrivers
- https://learn.microsoft.com/windows-server/administration/windows-commands/driverquery Microsoft Driverquery
- https://www.tldp.org/LDP/lkmpg/2.4/lkmpg.pdf Linux Kernel Programming
- https://linux.die.net/man/8/modinfo modinfo man