Installation of Unsigned Kernel-Mode Drivers Allowed
ID: unsigned-kernel-mode-drivers-allowed
Severity: high
Author: princechaddha
Tags: drivers,kernel-mode,code,windows-audit
Description
Section titled “Description”Checks if the system allows installation of unsigned kernel-mode drivers, which can be malicious.
YAML Source
Section titled “YAML Source”id: unsigned-kernel-mode-drivers-allowed
info: name: Installation of Unsigned Kernel-Mode Drivers Allowed author: princechaddha severity: high description: Checks if the system allows installation of unsigned kernel-mode drivers, which can be malicious. impact: | Unsigned kernel-mode drivers can be malicious and compromise system security. remediation: | Restrict the installation of unsigned drivers by enforcing driver signature checks. tags: drivers,kernel-mode,code,windows-audit
self-contained: true
code: - pre-condition: | IsWindows(); engine: - powershell.exe args: - -ExecutionPolicy - Bypass pattern: "*.ps1" source: | if ((Get-ItemProperty 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverInstall' -Name 'BehaviorOnFailedVerify' -ErrorAction SilentlyContinue).BehaviorOnFailedVerify -eq 0) { Write-Output 'Unsigned driver installation allowed'; }
matchers: - type: word words: - "Unsigned driver installation allowed"# digest: 4a0a00473045022100fdc8d6474c5d684196142e2d90e9840dd18ca1a1c7ae9bb31dc39a8c39a0a5ea02207c45135d828d0298c89d45253c831bed0b620a6fa4c4a645066993a45c05591b:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "code/windows/audit/unsigned-kernel-mode-drivers-allowed.yaml"