Skip to content

Commit

Permalink
New Atomic Test: PromptOnSecureDesktop (#2549)
Browse files Browse the repository at this point in the history
* New Atomic Test: PromptOnSecureDesktop

* Update T1548.002.yaml

---------

Co-authored-by: Carrie Roberts <[email protected]>
  • Loading branch information
msdlearn and clr2of8 authored Oct 2, 2023
1 parent 3094726 commit 3397666
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions atomics/T1548.002/T1548.002.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -652,3 +652,17 @@ atomic_tests:
cleanup_command: |
Remove-Item #{commandpath} -Recurse -Force
name: powershell
- name: Disable UAC - Switch to the secure desktop when prompting for elevation via registry key
description: |
User Account Control (UAC) is a security mechanism for limiting the elevation of privileges, including administrative accounts, unless authorized.
This setting ensures that the elevation prompt is only used in secure desktop mode.
Disable User Account Conrol (UAC) for secure desktop by setting the registry key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\PromptOnSecureDesktop to 0.
supported_platforms:
- windows
executor:
command: |-
Set-ItemProperty HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System -Name PromptOnSecureDesktop -Value 0 -Type Dword -Force
cleanup_command: |
Set-ItemProperty HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System -Name PromptOnSecureDesktop -Value 1 -Type Dword -Force
name: powershell
elevation_required: true

0 comments on commit 3397666

Please sign in to comment.