PT0-002 · Question #595
A penetration tester issued the following command at a command prompt: Which of the following is the best reason the penetration tester ran this command?
The correct answer is B. To possibly utilize an MSI file to escalate privileges. The penetration tester likely ran a command to check for the AlwaysInstallElevated registry key settings, as this configuration allows non-privileged users to install Windows Installer (.msi) packages with elevated system privileges, presenting a common privilege escalation…
Question
A penetration tester issued the following command at a command prompt:
Which of the following is the best reason the penetration tester ran this command?
Options
- ATo check if command prompts will automatically open with an administrator token
- BTo possibly utilize an MSI file to escalate privileges
- CTo validate HKLM was installed correctly
- DTo determine the current bypass setting for PowerShell
How the community answered
(39 responses)- A13% (5)
- B74% (29)
- C5% (2)
- D8% (3)
Why each option
The penetration tester likely ran a command to check for the AlwaysInstallElevated registry key settings, as this configuration allows non-privileged users to install Windows Installer (.msi) packages with elevated system privileges, presenting a common privilege escalation vector.
Checking if command prompts open with an administrator token is usually done via whoami /priv or observing the prompt, not typically through commands related to MSI files.
The AlwaysInstallElevated registry setting, when enabled in both HKLM and HKCU, allows Windows Installer (.msi) packages to run with SYSTEM privileges, regardless of the user's current privileges. A penetration tester would check this setting to identify a potential privilege escalation vulnerability.
HKLM (HKEY_LOCAL_MACHINE) is a root registry key; it is not "installed" but is a fundamental part of the Windows registry.
Determining bypass settings for PowerShell usually involves checking execution policies (Get-ExecutionPolicy) or other PowerShell-specific configurations, not MSI-related commands.
Concept tested: MSI AlwaysInstallElevated privilege escalation
Source: https://learn.microsoft.com/en-us/windows/win32/msi/alwaysinstallelevated
Topics
Community Discussion
No community discussion yet for this question.