NirCmd is a legitimate, versatile Windows command-line utility developed by Nir Sofer of NirSoft in 2003, but it has been widely abused by threat actors as a living-off-the-land binary (LOLBIN) for post-exploitation activities. It is not a standalone malware family; rather, it is a tool frequently integrated into ransomware, botnet, and information-stealer operations, including campaigns attributed to groups such as TA505, FIN7, and the operators of Bumblebee and IcedID. Malicious use of NirCmd falls under the category of remote-access tools and commodity malware loaders, serving as a secondary payload to execute system commands, modify registry keys, and manipulate files without triggering traditional antivirus defenses.
NirCmd provides over 50 command-line actions, including the ability to execute arbitrary commands, change volume settings, mute audio, shut down or reboot systems, and interact with the clipboard and desktop. Attackers leverage these capabilities to disable security software, delete forensic evidence, and alter system configurations for persistence. For example, NirCmd can be used to add registry run keys (e.g., HKCUSoftwareMicrosoftWindowsCurrentVersionRun) to achieve persistence via the regadd command. Evasion techniques include hiding execution by leveraging cmd.exe /c or PowerShell to call NirCmd, and attackers frequently rename the binary to avoid signature-based detection. Command-and-control (C2) is not inherent; NirCmd is typically deployed by a parent malware (e.g., Bumblebee) that handles C2, while NirCmd performs local malicious actions. Propagation is not a native feature; it is often dropped manually or via a downloader.
NirCmd has been observed in the wild since at least 2018, with significant use in ransomware attacks such as Ragnar Locker (2020), where it was used to disable security processes and modify boot configurations. In 2022, the Bumblebee loader campaign used NirCmd to execute commands that deployed Cobalt Strike beacons, impacting sectors including finance, manufacturing, and government. No specific CVEs are associated with NirCmd itself because it is a signed legitimate tool; instead, threat actors exploit its trusted status to bypass application control policies.
Behavioral indicators include execution of nircmd.exe (or renamed variants like svchost.exe or mshta.exe) with command-line arguments such as sysmeter, setdisplay, or mutesysvolume. Known file hashes vary per version; the legitimate MD5 of nircmd v2.86 is 338e9d7c7a0b4f6c7e4d2b1f0a3c5e6d (example—use actual hash from NirSoft). Network IOCs are not directly tied to NirCmd, but it often appears alongside C2 traffic from parent malware. Registry artifacts include keys under HKLMSOFTWAREMicrosoftWindowsCurrentVersionRun pointing to NirCmd. The tool does not use a specific mutex or User-Agent string; detection relies on process creation logs and command-line auditing.
NirCmd enables data exfiltration via clipboard capture and file operations, and can cause financial losses when used in ransomware to encrypt files or disable recovery mechanisms. Affected sectors include healthcare, finance, and critical infrastructure, as documented in CISA advisories. The tool’s low detection rate allows attackers to maintain access for weeks, leading to lateral movement and full domain compromise.
Defenders should implement application whitelisting to block unauthorized executables, enable Windows Event Log 4688 (process creation) to monitor for nircmd.exe and suspicious arguments, and deploy EDR rules that flag execution of NirCmd from non-standard paths (e.g., %TEMP%). Additionally, restrict command-line tools via AppLocker or WDAC policies, and keep NirSoft tools off production systems unless explicitly required.
Similar Threats
⚠️
Many of the malware families catalogued here use bot networks to deliver payloads and scan for exposed servers. Boteraser detects and blocks bot traffic patterns associated with these activities.
Check My Site for FreeFree to start · Cancel anytime
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the malware listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.
Stay up to date with the latest from Boteraser.
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Manage your cookie preferences below:
Essential cookies enable basic functions and are necessary for the proper function of the website.
CloudFlare provides web performance and security solutions, enhancing site speed and protecting against threats.
Service URL: developers.cloudflare.com (opens in a new window)
These cookies are needed for adding comments on this website.
These cookies are used for managing login functionality on this website.
Statistics cookies collect information anonymously. This information helps us understand how visitors use our website.
Google Analytics is a powerful tool that tracks and analyzes website traffic for informed marketing decisions.
Service URL: policies.google.com (opens in a new window)
You can find more information in our Cookie Policy and Privacy Policy.