Skip to main content
Mallory
MalwareRansomwareUsed by 5 actorsExploits 1 CVE

Ngrok

ngrok is a legitimate publicly available tunneling and proxy utility that exposes local ports and services to the internet, including systems behind NAT or firewalls, optionally over TLS-encrypted tunnels. In the provided reporting it is repeatedly described as being abused by threat actors as a dual-use tool rather than as a bespoke malware family. Observed malicious uses include establishing encrypted tunnels for inbound remote access, proxying command-and-control traffic to ngrok service subdomains, tunneling RDP sessions, exposing compromised internal servers, and configuring servers for data exfiltration. Multiple reports describe ngrok being deployed as a persistence or access-enablement mechanism on compromised hosts, including internal servers and VMware Horizon servers, and in one case being renamed to conhost.exe and executed via a VBS script with an ngrok.yml configuration file. Threat activity in the content associates ngrok use with Kimsuky-related intrusions, UNC3944/Scattered Spider tradecraft, Iranian-aligned TunnelVision activity, Pioneer Kitten/UNC757 and COBALT FOXGLOVE/Fox Kitten operations, the SMOKEDHAM/UNC2465 supply-chain intrusion, and destructive operations attributed to Twelve. High-confidence artifacts and behaviors mentioned include tunneling of malicious RDP connections through ngrok, download attempts from transfer.sh, execution with configuration file ngrok.yml, and network connections to external ngrok cloud infrastructure over TCP 443.

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

"...the threat actor attempted to download ngrok to a compromised VMware Horizon server" and later "Download and execution of tunneling tools, including Plink and Ngrok, used to tunnel RDP traffic."

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
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
Twelve

The malicious RDP connections to the system are tunneled through ngrok.

via the hacker newsthehackernews.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
tunnelvision

"...the threat actor attempted to download ngrok to a compromised VMware Horizon server" and later "Download and execution of tunneling tools, including Plink and Ngrok, used to tunnel RDP traffic."

via sentinelone labssentinelone.com
Scattered Spider

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

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

Techniques & procedures

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

Initial Access

2 techniques
T1133External Remote ServicesEvidence2

Instances of ngrok were launched on these internal servers, exposing them through encrypted tunnels to the threat actor’s infrastructure. These tunnels enabled continued inbound access for Remote Desktop Protocol (RDP) sessions without requiring exposed firewall ports.

T1190Exploit Public-Facing ApplicationEvidence1

"we have observed wide exploitation of ... recently Log4Shell... focusing around exploitation of VMware Horizon Log4j vulnerabilities."

Execution

2 techniques
T1047Windows Management InstrumentationEvidence1
TacticExecution

Lateral movement was further supported by Windows Management Instrumentation (WMI)-based remote execution, which was used to deploy and launch ngrok on additional devices from compromised web servers.

T1059Command and Scripting InterpreterEvidence1
TacticExecution

Alternatively, analysts can use Florian’s sigma rule that looks at command line parameters used by ngrok. Searching for ngrok activity via its command line patterns.

Persistence

2 techniques
T1133External Remote ServicesEvidence2

Instances of ngrok were launched on these internal servers, exposing them through encrypted tunnels to the threat actor’s infrastructure. These tunnels enabled continued inbound access for Remote Desktop Protocol (RDP) sessions without requiring exposed firewall ports.

T1543.003Windows ServiceEvidence1

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

T1543.003Windows ServiceEvidence1

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

2 techniques
T1036MasqueradingEvidence1
TacticStealth

Threat actors are using the tools’ legitimately signed certificates to help bypass security mechanisms... Host security bypass: Security tools, such as antivirus or endpoint detection and response tools, often fail to detect remote-access software because it uses legitimate certificates and exclusion paths.

T1036.004Masquerade Task or ServiceEvidence2
TacticStealth

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.

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 ProtocolEvidence7

Creating an RDP tunnel by ngrok leaves a source address value of ::%16777216 in the system’s RDP event logs.

T1021.004SSHEvidence1

Once inside, Pioneer Kitten frequently leverages SSH tunnels, proxy tools (e.g., ngrok, ligolo), or compromised Linux systems to reach Windows and cloud systems.

T1021.006Windows Remote ManagementEvidence1

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

Command and Control

10 techniques
T1071.001Web ProtocolsEvidence1

The ngrok agent prior to creating the tunnel, will first fetch the ngrok tunneling servers domains and IP addresses list from https://s3.amazonaws.com/dns.ngrok.com/tunnel.json.

T1090ProxyEvidence9

Creating an RDP tunnel by ngrok leaves a source address value of ::%16777216 in the system’s RDP event logs.

T1090.001Internal ProxyEvidence2

"APT41 used a tool called CLASSFON to covertly proxy network communications." / "BADCALL functions as a proxy server between the victim and C2 server." / "Sandworm Team's BCS-server tool can create an internal proxy server to redirect traffic..."

T1090.002External ProxyEvidence6

The NGROK utility is used by the threat actors to circumvent firewalls and expose remote desktop service ports.

T1090.003Multi-hop ProxyEvidence1

The threat actors exploited the ProxyShell and Log4j vulnerabilities to deploy TunnelFish, a custom Fast Reverse Proxy client (FRPC) variant and enable remote access to vulnerable systems.

T1102Web ServiceEvidence1

Annotations ID Technique Tactic T1102 Web Service Command And Control

T1105Ingress Tool TransferEvidence1

"attempted to download ngrok" and "Download and execution of tunneling tools, including Plink and Ngrok"; also mentions transfer.sh, ufile.io, raw.githubusercontent.com.

T1219Remote Access ToolsEvidence3

RMM tools are being exploited in several ways: Threat actors are using the tools’ legitimately signed certificates to help bypass security mechanisms, employing network encryption and legitimate network relays to proxy connection to a victim, and securing remote desktop-like access to client machines, among other actions.

T1568.002Domain Generation AlgorithmsEvidence1

APT41 has used DGAs to change their C2 servers monthly. Aria-body has the ability to use a DGA for C2 communications. Astaroth has used a DGA in C2 communications. Bazar can implement DGA using the current date as a seed variable.

T1572Protocol TunnelingEvidence4

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

Exfiltration

2 techniques
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.

T1048Exfiltration Over Alternative ProtocolEvidence1

Ngrok in particular has been leveraged by threat actors in several campaigns including use for lateral movement and data exfiltration.

INDICATORS OF COMPROMISE

IOCs tracked for this family

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

View more in app
Hashes
1 tracked

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

TypeValueLatest sighting
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 matching1

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 mapping23

Every documented technique, ranked by evidence weight.

Researcher chatter

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