nerdexam
GIAC

GSEC · Question #123

What is the most secure way to address an unused Windows service so it cannot be exploited by malware?

The correct answer is D. Uninstall it. Uninstalling an unused Windows service completely removes it from the system, eliminating all attack surface rather than simply restricting or deferring service execution.

Windows and Malware

Question

What is the most secure way to address an unused Windows service so it cannot be exploited by malware?

Options

  • AFirewall it
  • BSet to manual startup
  • CDisable it
  • DUninstall it

How the community answered

(40 responses)
  • A
    8% (3)
  • B
    15% (6)
  • C
    5% (2)
  • D
    73% (29)

Why each option

Uninstalling an unused Windows service completely removes it from the system, eliminating all attack surface rather than simply restricting or deferring service execution.

AFirewall it

Firewalling a service restricts network-level access but does not prevent local exploitation or direct interaction with the service process from within the host.

BSet to manual startup

Setting a service to manual startup still allows any sufficiently privileged process or user to start the service on demand, leaving the full attack surface available.

CDisable it

Disabling a service prevents automatic startup but the service binary and configuration remain on the system, allowing a privileged attacker or malware to re-enable and subsequently exploit it.

DUninstall itCorrect

Uninstalling a service removes its binaries, registry entries, and configuration entirely from the system so there is no code for malware to exploit, re-enable, or interact with - this is strictly more secure than disabling, which leaves the service present on disk where a privileged process or attacker could re-enable it.

Concept tested: Windows service attack surface reduction and hardening

Source: https://learn.microsoft.com/en-us/windows-server/security/windows-services/security-guidelines-for-disabling-system-services-in-windows-server

Topics

#Windows services#attack surface reduction#hardening#malware defense

Community Discussion

No community discussion yet for this question.

Full GSEC Practice