Privilege Escalation — Nssm-2.24
frequently used by attackers and identified in vulnerabilities where its misconfiguration improper installation
From Service Manager to SYSTEM: Abusing NSSM 2.24 for Privilege Escalation
NSSM (Non-Sucking Service Manager) version 2.24 is a widely used tool for managing Windows services, but it presents specific security risks, primarily revolving around . While NSSM itself is not inherently "malicious," its misconfiguration or presence in a compromised environment can be leveraged by attackers to gain NT AUTHORITY\SYSTEM privileges. Deep Review of NSSM 2.24 Vulnerabilities 1. Unquoted Service Path (Most Common) nssm-2.24 privilege escalation
: By default, Windows services managed by NSSM are configured to execute under highly privileged security contexts, most notably LocalSystem ( NT AUTHORITY\SYSTEM ) . 🔓 Technical Root Cause: Insecure Permissions
Implement Windows Defender Application Control (WDAC) or AppLocker to restrict execution of binaries to only those that are signed and trusted. This can prevent execution of malicious binaries even if replacement occurs. Unquoted Service Path (Most Common) : By default,
NSSM is convenient but dangerous if misconfigured. Always assume that a service running as SYSTEM with writable configuration is a . Audit your endpoints, and don’t let convenience override security.
The "Non-Sucking Service Manager" () version 2.24 is frequently featured in cybersecurity "stories" or labs because it is a textbook example of how a helpful administrative tool can be turned into a vehicle for Local Privilege Escalation (LPE) on Windows systems . The Core Vulnerability NSSM is convenient but dangerous if misconfigured
A service is configured to run: C:\Program Files\App\nssm.exe
The attacker finds a service running C:\Program Files\NSSM\nssm.exe .