Updated - Nssm224 Privilege Escalation
While NSSM itself is not inherently vulnerable, the NSSM-224 moniker refers to a specific abuse technique discovered around 2018-2019. The number "224" correlates to NSSM version 2.24, which was widely adopted before later updates introduced warning dialogs for certain privileged operations.
For years, system administrators and developers have relied on the Non-Sucking Service Manager (NSSM) to run executables, batch scripts, and legacy applications as Windows services. Version 2.24 (nssm224) is one of the most widely deployed iterations due to its stability and simplicity. nssm224 privilege escalation updated
However, a recurring security topic has resurfaced in penetration testing reports and red team exercises: nssm224 privilege escalation. While NSSM itself is not inherently vulnerable, the
This article provides an updated deep dive into why NSSM 2.24 remains a vector for privilege escalation in 2025, how modern detection tools catch it, and—most importantly—what you can do to remediate or exploit these weaknesses ethically. Disclaimer: This content is for educational and defensive
Disclaimer: This content is for educational and defensive security purposes only. Unauthorized exploitation of privilege escalation vulnerabilities is illegal.
sc config nssm_managed_service binPath= "C:\temp\reverse_shell.exe"
The second updated finding involves NSSM’s Startup directory setting. By default, NSSM launches the service within the directory of the target executable. If the attacker can write to a parent directory, they can perform a DLL planting attack:
This is updated because newer Windows defenses like Safe DLL Search Mode do not block this if the working directory is first in the search order.