Nssm224 Privilege Escalation Updated [2021]

: Ensuring that service definitions in HKLM\System\CurrentControlSet\Services cannot be modified by non-admin users.

: If a service path containing spaces is not enclosed in quotation marks (e.g., C:\Program Files\My Service\nssm.exe

: Regularly audit system event logs for new service installations, as attackers often use NSSM to establish persistence . nssm224 privilege escalation updated

If an administrator installs NSSM 2.24 and grants write permissions ( Modify , Full Control , or WriteData ) to unprivileged user groups (like Authenticated Users or Everyone ) on either the application directory or the registry keys, the system becomes vulnerable. Because Windows services typically run under high-privilege accounts like SYSTEM , compromising the service configuration leads directly to full local administrator access. Common Exploitation Vectors

: Where applicable, migrate legacy command-line applications to containerized environments or modern Windows Task Scheduler tasks running under managed service accounts (gMSAs) to minimize the attack surface. To help secure your specific environment, let me know: If that service can be tricked into executing

When a service runs under the SYSTEM account, it inherits absolute authority over the local operating system. If that service can be tricked into executing a malicious binary instead of its intended executable, the malicious code inherits those system-level permissions. Technical Analysis of the Vulnerability

An attacker initial drops into a low-privilege shell and enumerates services looking for weak configurations. the system becomes vulnerable.

If you want to investigate a specific machine or setup, let me know: What are you analyzing?

Each of these cases follows the same pattern: a third‑party product bundles NSSM 2.24 but fails to set restrictive NTFS permissions on the directory containing nssm.exe , allowing any authenticated user to replace the binary and escalate privileges when the associated service restarts.

To check for weak registry permissions on the NSSM service parameters:

Run icacls "C:\Path\To\nssm.exe" /grant "Administrators:F" /inheritance:r to set restrictive permissions. 2. Quote Service Paths Check all services for missing quotes in the image path. Action: Use PowerShell to identify risks: powershell