UAC Elevate Without Prompting Enabled
ID: uac-elevate-without-prompt
Severity: high
Author: princechaddha
Tags: uac,privilege,code,windows-audit
Description
Section titled “Description”Checks if User Account Control (UAC) elevates privileges without prompting, reducing security.
YAML Source
Section titled “YAML Source”id: uac-elevate-without-prompt
info: name: UAC Elevate Without Prompting Enabled author: princechaddha severity: high description: Checks if User Account Control (UAC) elevates privileges without prompting, reducing security. impact: | Elevating privileges without prompting can allow unauthorized changes to the system. remediation: | Configure UAC to prompt for administrative actions. tags: uac,privilege,code,windows-audit
self-contained: true
code: - pre-condition: | IsWindows(); engine: - powershell - powershell.exe args: - -ExecutionPolicy - Bypass pattern: "*.ps1" source: | Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'ConsentPromptBehaviorAdmin'
matchers: - type: word words: - "ConsentPromptBehaviorAdmin : 0"# digest: 4a0a0047304502205a620eaea9e82c63fe6fbcb4df164cbe516d793c1f293f383cef5e1f3c77b7170221008795689222acfcd50652a54ffb3c2519475c6f670d8470844d2a4e19e3451ab0: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/uac-elevate-without-prompt.yaml"