Nssm-2.24: Exploit _best_
to maintain access. After the initial breach, they download NSSM to register persistent services for tools like XMRig (crypto miner) or NetCat. Ransomware Campaigns
While not an exploit target, NSSM is used as a post-exploitation tool to ensure malicious code remains running: Persistence Mechanism
Before we dive into the exploit, let's first understand what NSSM is. NSSM, or the Non-Sucking Service Manager, is a service manager for Windows that allows you to easily install, configure, and manage services on your system. It is a popular tool among system administrators and developers, as it provides a simple and efficient way to manage services. nssm-2.24 exploit
Update to the latest version, verify binary file permissions, and ensure service paths are enclosed in quotes if they contain spaces. Use cases - NSSM - the Non-Sucking Service Manager
C:\Program Files\NSSM\nssm.exe install BadService C:\My Tools\app.exe to maintain access
In 2024, SecureList published a detailed analysis of a hacktivist group dubbed . After gaining initial access – often by compromising a contractor’s VPN credentials – the attackers used NSSM together with the Localtonet tunnelling utility to maintain persistent access to the victim’s internal systems. Specifically, the attackers downloaded and deployed:
The stable version 2.24 was released on and is the last official stable build of the tool. It is widely distributed, for instance through the official website ( nssm.cc ), GitHub mirrors, and even third‑party package managers such as Chocolatey. Because of its age, however, version 2.24 contains several known bugs and characteristics that – when combined with improper deployment practices – can be leveraged by attackers. NSSM, or the Non-Sucking Service Manager, is a
: In some installations (like older versions of Apache CouchDB), the parent directory of nssm.exe inherited weak permissions. This allowed non-privileged users to replace the nssm.exe binary with a malicious one. Upon a service restart, the malicious binary would execute with Administrative/System privileges .
or using the built‑in Windows sc command: