nerdexam
CompTIA

CAS-005 · Question #157

During a security assessment, a penetration tester executed the following attack: The tester then shared the results with the security analyst. Which of the following should the analyst do to…

The correct answer is C. Disable services with unquoted paths on the endpoint. The question describes a specific type of attack related to unquoted service paths and asks for the direct remediation to address this vulnerability.

Submitted by yuki_2020· Mar 6, 2026Security Engineering

Question

During a security assessment, a penetration tester executed the following attack:

The tester then shared the results with the security analyst. Which of the following should the analyst do to remediate the attack?

Options

  • AEnable user control access on the endpoint.
  • BEnable a PowerShell execution policy on the endpoint.
  • CDisable services with unquoted paths on the endpoint.
  • DImplement a security endpoint solution.

How the community answered

(27 responses)
  • A
    4% (1)
  • B
    11% (3)
  • C
    81% (22)
  • D
    4% (1)

Why each option

The question describes a specific type of attack related to unquoted service paths and asks for the direct remediation to address this vulnerability.

AEnable user control access on the endpoint.

Enabling User Account Control (UAC) helps prevent unauthorized changes to the system but does not directly address the unquoted service path vulnerability, which allows privilege escalation even with UAC enabled.

BEnable a PowerShell execution policy on the endpoint.

Enabling a PowerShell execution policy restricts script execution, but the unquoted service path vulnerability exploits how Windows services locate executables, not PowerShell script execution.

CDisable services with unquoted paths on the endpoint.Correct

The attack refers to the 'unquoted service path' vulnerability, which occurs when a Windows service executable path contains spaces and is not enclosed in quotes, allowing an attacker to inject and execute arbitrary code. Disabling or fixing services with unquoted paths by enclosing the path in quotes directly remediates this specific privilege escalation vulnerability.

DImplement a security endpoint solution.

Implementing a general security endpoint solution (like EDR) is a good practice for overall security but is a broad measure that may not specifically prevent or remediate the root cause of an unquoted service path vulnerability without specific configuration or detection rules.

Concept tested: Unquoted service path vulnerability remediation

Source: https://learn.microsoft.com/en-us/windows/win32/services/service-security-and-access-rights

Community Discussion

No community discussion yet for this question.

Full CAS-005 Practice