Malicious Driver Installation
Overview
Malicious driver installation is a technique where adversaries install unauthorized or tampered device drivers on a target system to gain elevated privileges, maintain persistence, or evade security controls. This approach leverages the high-level access and low-level system interaction that drivers possess, allowing attackers to manipulate the operating system kernel or hardware interfaces. It is commonly used across multiple stages of the attack lifecycle due to its effectiveness in maintaining stealth and control.
Attack Objective
- Gain privileged access and maintain persistence on the target system
- Supports stages including Persistence, Privilege Escalation, Defense Evasion, and Execution
- Advances the attacker’s position by enabling kernel-level code execution, bypassing security mechanisms, and establishing long-term footholds
How the Technique Works
Adversaries craft or modify device drivers to include malicious functionality and then install these drivers on the victim system. Because drivers operate at the kernel level, they have extensive control over system processes and hardware. Once installed, malicious drivers can intercept system calls, hide files or processes, disable security software, or escalate privileges. Installation often requires exploiting vulnerabilities or misconfigurations that allow unsigned or untrusted drivers to be loaded.
Common Methods & Variations
- Use of unsigned or improperly signed drivers to bypass driver signature enforcement
- Exploitation of vulnerable legitimate drivers to load malicious code (driver hijacking)
- Deployment on endpoint devices primarily, with occasional use in cloud environments where virtualized drivers exist
- Combination of custom-developed malicious drivers and living-off-the-land binaries or legitimate driver installation tools
Indicators of Compromise (IOCs)
- Unexpected or unsigned driver files appearing in system directories
- Kernel-mode process anomalies or unusual system call interceptions
- Logs indicating driver installation events outside normal maintenance windows
- Endpoint detection of driver load failures or warnings from driver signature enforcement mechanisms
Detection Strategies
- Monitoring kernel and driver load events through endpoint detection and response (EDR) tools
- Behavioral detection focusing on anomalous driver activity or system call hooking
- Correlation of driver installation events with other suspicious activities such as privilege escalation or persistence mechanisms
Mitigation & Prevention
- Enforce strict driver signature verification and code integrity policies
- Apply least privilege principles to restrict driver installation capabilities to trusted administrators
- Regularly update and patch operating systems and drivers to reduce vulnerabilities
- Implement application control and endpoint protection solutions that monitor or block unauthorized driver loads
Response Considerations
- Immediately isolate affected systems to prevent further compromise
- Conduct forensic analysis to identify the scope of driver installation and associated malicious activities
- Remove unauthorized drivers and restore system integrity through trusted backups or reimaging
- Harden systems by reviewing driver installation policies and applying security updates
Related Techniques
- Privilege Escalation via Exploitation of Vulnerabilities
- Persistence through Scheduled Tasks or Services
- Defense Evasion by Disabling Security Tools
- Execution of Code in Kernel Mode
Mapping & References
- MITRE ATT&CK: T1215 – Kernel Modules and Extensions
- MITRE ATT&CK: T1543 – Create or Modify System Process
- Public advisories on driver signature enforcement bypass techniques
- Incident reports detailing malicious driver use in advanced persistent threats (APTs)