Skip to main content
T1090Command and Controlmedium difficulty

Proxy

Proxy (T1090) is how attackers add distance between themselves and their command-and-control: chaining internal tunnels like ngrok or FRP, external VPS relays, or Tor's onion routing so the traffic a defender sees never touches the real C2 server. Detection shifts from spotting the payload to spotting the tunnel tool and the proxy infrastructure itself.

Practice detecting Proxy on realistic SIEM, XDR, Firewall alerts in SOCSimulator Operations.

SIEMXDRFirewall

What is Proxy?

Proxy is documented as technique T1090 in MITRE ATT&CK® v19.1 under the Command and Control tactic. Detection requires visibility into SIEM, XDR, Firewall telemetry.

Proxy has four sub-techniques and each buys the attacker something different. Internal Proxy (T1090.001) relays C2 between compromised hosts inside the network using tools MITRE names directly under T1090, ngrok and FRP among them: ngrok registers an authtoken then opens a tcp or http tunnel (ngrok.exe tcp 3389 exposes RDP straight through NAT), while FRP runs frpc.exe against a frpc.ini config that maps a local port to the attacker's frps.exe server. External Proxy (T1090.002) moves the relay outside the victim network entirely, onto a purchased VPS, a compromised residential endpoint, or a legacy SOHO router; APT29 has used compromised residential IPs this way specifically to blend with normal consumer traffic.

Multi-hop Proxy (T1090.003) chains several of these hops together, most visibly through Tor. SystemBC and Cyclops Blink both route C2 over Tor's onion network, and WannaCry used Tor for its own command channel; APT28 and APT29 have both layered Tor with commercial VPN exits on top. Each additional hop the traffic takes strips one more piece of attribution before it reaches the operator, and because the analyst only ever sees the nearest hop, tracing back to the real C2 server from network telemetry alone is close to impossible. Domain Fronting (T1090.004) is the fourth variant: routing traffic through a CDN like Cloudflare so the TLS SNI shows a benign, high-reputation hostname while the HTTP Host header, hidden inside the encrypted session, carries the real destination.

What ties the four together operationally is that none of them require custom malware. An attacker who already holds a foothold can pull a legitimate binary (ngrok, frp, a SOCKS5 proxy like go-socks5) or simply purchase VPN or VPS access, and get the same result: outbound traffic that looks, at the packet level, like ordinary remote access or backup software. That is why detection has to key on the tool and the destination, not on payload signatures that were never written.

Where Proxy fits in an attack

Proxy sits in the middle-to-late stage of an intrusion, after the attacker already has a working foothold and wants durable, harder-to-trace command and control. UNC5537's 2024 campaign against Snowflake customers shows the pattern cleanly: the group obtained valid credentials from infostealer logs, then authenticated to victim Snowflake instances almost exclusively through Mullvad and Private Internet Access, commercial VPN services that gave them a different, disposable exit IP for nearly every login. When they moved to exfiltration, they shifted to VPS infrastructure from providers like ALEXHOST, staging stolen data there before it went to MEGA or a buyer.

Nation-state actors use the internal and external proxy sub-techniques the same way at larger scale: Volt Typhoon and other China-nexus operators route through hijacked SOHO routers and VPS-based multi-hop chains specifically so the traffic a US network defender investigates traces back to a residential IP block, not to state infrastructure. On the internal side, ngrok and FRP tend to show up earlier, in ransomware and access-broker intrusions, as a fast way to expose RDP or SMB through a firewall the operator does not control credentials for. In both cases, proxy activity is the connective tissue between an initial foothold and whatever the attacker does next: further lateral movement, data staging, or, once destructive techniques run, ransomware detonation.

Detection Strategies

The following detection strategies help SOC analysts identify Proxy activity. These methods apply across SIEM, XDR, Firewall environments and can be implemented as detection rules, correlation queries, or behavioral analytics in your security platform.

SPL
index=auth sourcetype=cloud_app_login action=success
| lookup vpn_tor_exit_nodes.csv src_ip OUTPUT provider_name
| where isnotnull(provider_name)
| stats count, values(provider_name) as provider by user, src_ip
| where count>0

Correlates successful cloud-app logins against a maintained VPN and Tor exit-node lookup table. Mirrors the pattern Mandiant documented in the UNC5537 Snowflake campaign, where victim logins came almost entirely from Mullvad and Private Internet Access exit IPs instead of the account's normal network.

Tuning and false positives

Corporate VPN clients, legitimate remote-support tunnels, and developers using ngrok to demo a local web app all generate traffic that looks identical at the network layer to a malicious tunnel. FRP and similar tunneling tools are also legitimately used by IT teams to expose internal services during vendor testing, and plenty of remote employees use commercial VPN services, including Mullvad and PIA, for entirely personal privacy reasons that have nothing to do with the corporate network.

The fix is context, not the tool name. An allow-list of the ngrok or FRP use your engineering team actually runs, tied to specific accounts and expected hours, turns the rest into signal; the same applies to VPN egress, where a small number of user workstations routing through a VPN client is normal and a server or service account doing the same is not. Weight the alert by what changed: a first-seen tunnel destination, a service account making a consumer VPN connection it has never made before, or a tunnel that immediately forwards RDP or SMB rather than a web port, separates real incidents from a developer's afternoon demo.

Example Alerts

These realistic alert examples show what Proxy looks like in your security tools. Use them to tune detection rules and train analysts to recognize true positives versus false positives in live environments.

CriticalXDR

FRP Client Tunneling RDP to an External Relay

frpc.exe launched on WS-ACCT-07 with a command line referencing C:\ProgramData\frp\frpc.ini, spawned by a PowerShell process with no prior FRP history on the host. Fast Reverse Proxy running from a standard workstation is consistent with an attacker exposing internal RDP through a compromised host so it can be reached from outside the perimeter.

HighSIEM

Cloud App Login from a Mullvad VPN Exit Node

A successful authentication to the finance team's cloud data warehouse originated from a Mullvad VPN exit IP in the Netherlands, a provider with no prior use on this account and no corporate VPN policy covering it. The pattern mirrors how UNC5537 accessed victim Snowflake instances almost exclusively through Mullvad and Private Internet Access.

MediumFirewall

Outbound Session to a Published Tor Exit Node

A domain-joined file server initiated an outbound TLS session on port 443 to an IP published on the Tor Project's current exit-node list, with no browser process associated with the connection. Servers rarely have a legitimate reason to route through Tor, and unattended egress like this matches the Multi-hop Proxy pattern SystemBC and similar Tor-based C2 channels use.

Responding to Proxy

When a proxy alert fires, start with ownership: is there an engineering ticket, change record, or known IT project that explains this specific tunnel or VPN session on this specific host? If the process is ngrok or frp and nobody claims it, pull the full command line, since the authtoken and tcp/http flags on ngrok, or the frpc.ini path on FRP, tell you exactly what port is being exposed and to where. If the alert is a VPN or Tor egress, check whether the account or host has ever made that connection before and whether it correlates with anything else unusual: a new service, a spike in outbound data, or a login from a location the user has never worked from.

Escalate immediately when an unclaimed tunnel is forwarding RDP, SMB, or another lateral-movement port, or when a server or service account, not a person, is the one routing through Tor or a commercial VPN; neither has a routine business reason to do that. Contain by killing the tunnel process and blocking the relay domain or exit IP at the perimeter, then hunt for the same infrastructure across the fleet, since one exposed host rarely means only one. Preserve the host for IR rather than reimaging immediately: the local tunnel configuration, the ngrok config file or frpc.ini, usually names the exact external server the attacker is relaying through, which is often the fastest lead back to the rest of the intrusion.

Frequently Asked Questions

How do SOC analysts detect Proxy?
Detection centers on SIEM, XDR, Firewall telemetry for the command and control phase of the attack. Alert on ngrok.exe or frpc.exe/frps.exe process creation, especially when the command line includes --config and a .yml path (ngrok) or references frpc.ini (FRP), the two internal-proxy tunnel binaries SigmaHQ tracks as PUA. Watch for a first-seen outbound TLS session to *.ngrok.io, *.ngrok-free.app, or an unfamiliar VPS IP from a host that has never made that connection before; a workstation suddenly tunneling RDP (3389) or SMB (445) through a public relay is a strong internal-proxy signal.
What does a Proxy alert look like?
A representative XDR detection is "FRP Client Tunneling RDP to an External Relay" (critical severity): frpc.exe launched on WS-ACCT-07 with a command line referencing C:\ProgramData\frp\frpc.ini, spawned by a PowerShell process with no prior FRP history on the host. Fast Reverse Proxy running from a standard workstation is consistent with an attacker exposing internal RDP through a compromised host so it can be reached from outside the perimeter.
Which tools detect Proxy, and how can I practice?
Proxy (T1090) is best surfaced with SIEM, XDR, Firewall telemetry, which exposes the command and control signals described above. Practice detecting it on those exact consoles in SOCSimulator Operations, free.
Glossary

What is Command and Control? SOC Glossary

Command and Control (C2) refers to the infrastructure and communication channels adversaries use to remotely direct malw…

Read more
Glossary

What is NDR? SOC Glossary

Network Detection and Response (NDR) is a security platform that passively monitors network traffic, using machine learn…

Read more
Glossary

What is Firewall? SOC Glossary

A firewall is a network security control that inspects traffic crossing a boundary and permits or denies it against a co…

Read more
Glossary

What is IOC? SOC Glossary

An Indicator of Compromise (IOC) is an observable artifact, such as a file hash, IP address, domain name, URL, registry …

Read more
Career Path

SOC Analyst (Tier 2) Career Guide: Salary & Skills

Tier 2 SOC Analysts handle the investigations that Tier 1 escalates. You dig into multi-stage attacks, coordinate contai…

Read more
Career Path

Threat Hunter Career Guide: Salary & Skills

Threat Hunters do not wait for alerts. You develop hypotheses based on threat intelligence and adversary behavior models…

Read more
Tool

SIEM Training Console: SOCSimulator

The SIEM console in SOCSimulator replicates the workflow of enterprise platforms like Splunk Enterprise Security, Micros…

Read more
Tool

XDR Training Console: SOCSimulator

The XDR console in SOCSimulator replicates the investigation workflow of platforms like CrowdStrike Falcon, Microsoft De…

Read more
Tool

Firewall Training Console: SOCSimulator

The Firewall console in SOCSimulator replicates the log analysis experience of enterprise platforms like Palo Alto Netwo…

Read more
Comparison

SOCSimulator Vs. Letsdefend: Platform Comparison

SOCSimulator wins on operational realism. You get multi-tool shift simulation with SLA pressure, noise injection, and al…

Read more
Glossary

SOC Glossary: Security Operations Terminology

Complete glossary of Security Operations Center terminology for aspiring SOC analysts.

Read more
Feature

Shift Mode: Real-Time SOC Simulation

Practice alert triage under realistic time pressure with SLA timers and noise injection.

Read more