Skip to main content

Boteraser | Website and Server Security Solutions

NirCmd

Malware

⚠️ Overview

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.

🔧 Technical Capabilities

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.

📜 History & Notable Incidents

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.

🔍 Detection Indicators

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.

☠️ Risk & Impact

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.

🛡️ Mitigation

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.

⚠️

Malware Families Commonly Operate Through Automated Botnets

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 Free

Free 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.

✓