Nssm-2.24 Privilege Escalation Extra Quality
Assume an attacker has gained initial access to a Windows 10 or Windows Server 2016 machine as a (e.g., via a phishing email or a vulnerable web app).
: By replacing the NSSM binary, attackers can establish persistent backdoors that survive system reboots and service restarts.
The service controller executes C:\Program.exe , giving the attacker full control over the machine. Why NSSM 2.24 Specifically?
This public link is valid for 7 days and shares a thread, including any personal information you added. This link or copies made by others cannot be deleted. If you share with third parties, their policies apply. Can’t copy the link right now. Try again later.
The "nssm-2.24 privilege escalation" typically refers to an insecure configuration rather than a memory corruption bug. The exploit usually follows one of two paths: nssm-2.24 privilege escalation
Attackers generally look for three distinct misconfigurations when they find an active nssm.exe deployment on a target machine: 1. Insecure File and Folder Permissions (Weak ACLs)
If a service named LegacyApp exists and is managed by NSSM 2.24, the attacker can simply modify its parameters without needing admin rights (due to the broken ACL or design flaw in that version):
Understanding and Mitigating NSSM 2.24 Privilege Escalation Vulnerabilities
If you see nssm-2.24.exe , assume an attacker can become SYSTEM within minutes. Upgrade immediately, or remove it entirely in favor of native Windows tools like sc.exe or PowerShell’s New-Service . Assume an attacker has gained initial access to
Check HKLM\System\CurrentControlSet\Services\[ServiceName] to ensure permissions are restricted to Administrators and SYSTEM.
The core issue across all these vulnerabilities is a fundamental failure of Windows NTFS file system security. Here is a step-by-step breakdown of a typical attack chain:
Upon the next system restart, the Windows Service Control Manager executes C:\Program Files\Application.exe with SYSTEM privileges, granting the attacker full control over the machine. 4. How to Remediate NSSM 2.24 Vulnerabilities
: Used nssm-2.24 to create malicious services (like sysmon ) to launch tunneling tools like Ngrok. Why NSSM 2
: Successful exploitation of this vulnerability could allow an attacker to execute arbitrary code with elevated privileges, potentially leading to a complete compromise of the system.
Several CVEs have been issued related to privilege escalation through NSSM, primarily stemming from incorrect permission settings on the nssm.exe binary. The most critical of these is detailed below.
In documented campaigns such as those attributed to the hacking group, attackers have used NSSM as a persistence mechanism to maintain access to compromised systems. The group used NSSM to create and manage services on hosts, allowing them to maintain backdoor access alongside Localtonet for encrypted tunnel connectivity.