Techniques › T1090 › T1090.002
T1090.002 External Proxy
command and control — ESXi, Linux, macOS, Network Devices, Windows · attack.mitre.org · JSON
1
MITRE detection strategy
5
analytics
2
Sigma rules tagged attack.t1090.002
0
KEV CVEs mapped here
<p>Adversaries may use an external proxy to act as an intermediary for network communications to a command and control server to avoid direct connections to their infrastructure. Many tools exist that enable traffic redirection through proxies or port redirection, including HTRAN, ZXProxy, and ZXPortMap. Adversaries use these types of proxies to manage command and control communications, to provide resiliency in the face of connection loss, or to ride over existing trusted communications paths to avoid suspicion.</p><p>External connection proxies are used to mask the destination of C2 traffic and are typically implemented with port redirectors. Compromised systems outside of the victim environment may be used for these purposes, as well as purchased infrastructure such as cloud-based resources or virtual private servers. Proxies may be chosen based on the low likelihood that a connection to them from a compromised system would be investigated. Victim systems would communicate directly with the external proxy on the Internet and then the proxy would forward communications to the C2 server.</p>
KEV CVEs mapped to this technique · CTID Mappings Explorer
None. No KEV entry in the public mapping names this technique. Given that 74.7% of KEV has no mapping at all, this says more about the mapping than about the technique.
Detection strategy · ATT&CK Enterprise v19.2
- DET0325 External Proxy Behavior via Outbound Relay to Intermediate Infrastructure v1.0
AN0922 WindowsUnusual process (e.g.,
rundll32,mshta,wscript, or custom payloads) initiates network connection to external IPs/domains that proxy C2 traffic, often over uncommon ports or high entropy HTTP/S connections.WinEventLog:Microsoft-Windows-Windows Defender/OperationalUnusual external domain access→ DC0085 Network Traffic ContentTunable:DestinationASNParentProcessEntropyThresholdAN0923 Linuxcurl,wget,ncat,socat, or custom binaries initiate outbound traffic to Internet-based proxies (e.g., via VPS or CDN). Behavior may include reverse shell constructs or persistent outbound beacons.Tunable:CommandLinePatternExternalIPListUserContextAN0924 macOSAppleScript or terminal sessions launch tools (curl,nc,ssh) to external IPs not commonly accessed. Outbound connections are made by LaunchAgents/LaunchDaemons, often masquerading as system services.Tunable:LaunchAgentPathExternalPortProcessReputationAN0925 ESXiESXi shell or guest VM tools initiate external connections via scripted traffic forwarding to Internet-based proxies. Detected by firewall or shell audit logs showing outbound connection spikes from hypervisor or guest VM to remote proxy nodes.Tunable:VMOutboundPatternsProxyHostPatternConnectionDirectionalityAN0926 Network DevicesChanges to NAT/firewall policies enabling outbound port forwarding from internal IPs to Internet-based proxy endpoints. Log spikes in outbound flows to CDN, VPS, or anomalous ASNs with few return packets.Tunable:FlowThresholdDestinationIPCategoryConfigChangeUser
Sigma rules · SigmaHQ da9bb07d64, tag attack.t1090.002
Author: Florian Roth (Nextron Systems)
· 2024-05-31 · logsource: product=windows category=network_connection · 07837ab9-60e1-481f-a74d-c31fb496a94c
Detects an executable accessing the portmap.io domain, which could be a sign of forbidden C2 traffic or data exfiltration by malicious actors
Author: Samir Bousseaden
· 2019-02-16 (modified 2022-09-02) · logsource: product=windows service=security · 5bed80b6-b3e8-428e-a3ae-d3c757589e41
Detects svchost hosting RDP termsvcs communicating with the loopback address
Rules tagged at the parent level (attack.t1090) 22
These target the parent technique, not this sub-technique specifically. Listed for completeness, not counted as coverage.
Author: Florian Roth (Nextron Systems)
· 2022-11-03 · logsource: product=linux category=network_connection · 19bf6fdb-7721-4f3d-867f-53467f6a5db6
Detects an executable accessing an ngrok tunneling endpoint, which could be a sign of forbidden exfiltration of data exfiltration by malicious actors
Author: Florian Roth (Nextron Systems)
· 2022-11-03 (modified 2024-02-02) · logsource: product=windows category=network_connection · 1d08ac94-400d-4469-a82f-daee9a908849
Detects an executable initiating a network connection to "ngrok" tunneling domains.
Attackers were seen using this "ngrok" in order to store their second stage payloads and malware.
While communication with such domains can be legitimate, often times is a sign of either data exfiltration by malicious actors or additional download.
Author: Florian Roth (Nextron Systems), omkar72, oscd.community, Swachchhanda Shrawan Poudel
· 2019-01-29 (modified 2023-09-01) · logsource: product=windows category=process_creation · 322ed9ec-fcab-4f67-9a34-e7c6aef43614
Detects the execution of netsh commands that configure a new port forwarding (PortProxy) rule
Author: frack113, Florian Roth
· 2022-09-02 (modified 2024-11-23) · logsource: product=windows category=process_creation · 32410e29-5f94-4568-b6a3-d91a8adad863
Detects the use of Fast Reverse Proxy. frp is a fast reverse proxy to help you expose a local server behind a NAT or firewall to the Internet.
Author: Mark Morowczynski '@markmorow', Gloria Lee, '@gleeiamglo'
· 2023-09-07 · logsource: product=azure service=riskdetection · 36440e1c-5c22-467a-889b-593e66498472
Indicates sign-in from a malicious IP address known to be malicious at time of sign-in.
Author: Andreas Braathen (mnemonic.io)
· 2024-06-17 · logsource: product=windows category=network_connection · 3ab65069-d82a-4d44-a759-466661a082d1
Detects an executable initiating a network connection to "LocaltoNet" tunneling sub-domains.
LocaltoNet is a reverse proxy that enables localhost services to be exposed to the Internet.
Attackers have been seen to use this service for command-and-control activities to bypass MFA and perimeter controls.
Author: Security Onion Solutions
· 2024-03-08 · logsource: product=opencanary category=application · 5498fc09-adc6-4804-b9d9-5cca1f0b8760
Detects instances where an HTTPPROXY service on an OpenCanary node has had an attempt to proxy another page.
Author: Muhammad Faisal (@faisalusuf), Hunter Juhan (@threatHNTR)
· 2024-06-03 · logsource: product=windows category=process_creation · 5fc297ae-25b6-488a-8f25-cc12ac29b744
Detects potentially suspicious execution of the Qemu utility in a Windows environment.
Threat actors have leveraged this utility and this technique for achieving network access as reported by Kaspersky.
Author: Florian Roth (Nextron Systems)
· 2022-04-29 · logsource: product=windows service=terminalservices-localsessionmanager · 64d51a51-32a6-49f0-9f3d-17e34d640272
Detects cases in which ngrok, a reverse proxy tool, forwards events to the local RDP port, which could be a sign of malicious behaviour
Author: Florian Roth (Nextron Systems)
· 2022-10-08 (modified 2024-11-23) · logsource: product=windows category=process_creation · 68d37776-61db-42f5-bf54-27e87072d17e
Detects the use of NPS, a port forwarding and intranet penetration proxy server
Author: Nasreddine Bencherchali (Nextron Systems)
· 2023-05-17 (modified 2023-12-21) · logsource: product=windows category=process_creation · 7050bba1-1aed-454e-8f73-3f46f09ce56a
Detects execution of the "cloudflared" tool with the tunnel "cleanup" flag in order to cleanup tunnel connections.
Author: Ömer Günal
· 2020-06-17 (modified 2022-10-05) · logsource: product=linux category=process_creation · 72f4ab3f-787d-495d-a55d-68c2ff46cf4c
Detects setting proxy configuration
Author: Florian Roth (Nextron Systems), oscd.community
· 2019-01-29 (modified 2023-02-13) · logsource: product=windows category=process_creation · 782d6f3e-4c5d-4b8c-92a3-1d05fed72e63
Detects the execution of netsh to configure a port forwarding of port 3389 (RDP) rule
Author: Mark Morowczynski '@markmorow', Gloria Lee, '@gleeiamglo'
· 2023-09-03 · logsource: product=azure service=riskdetection · 821b4dc3-1295-41e7-b157-39ab212dd6bd
Indicates sign-ins from IP addresses infected with malware that is known to actively communicate with a bot server.
Author: Janantha Marasinghe, Nasreddine Bencherchali (Nextron Systems)
· 2023-05-17 (modified 2023-12-20) · logsource: product=windows category=process_creation · 9a019ffc-3580-4c9d-8d87-079f7e8d3fd4
Detects execution of the "cloudflared" tool to connect back to a tunnel. This was seen used by threat actors to maintain persistence and remote access to compromised networks.
Author: Mark Morowczynski '@markmorow', Gloria Lee, '@gleeiamglo'
· 2023-09-07 · logsource: product=azure service=riskdetection · a3f55ebd-0c01-4ed6-adc0-8fb76d8cd3cd
Indicates sign-in from a malicious IP address based on high failure rates.
Author: Andreas Hunkeler (@Karneades)
· 2021-06-22 (modified 2024-03-25) · logsource: product=windows category=registry_event · a54f842a-3713-4b45-8c84-5f136fdebd3c
Detects the modification of the PortProxy registry key which is used for port forwarding.
Author: Nasreddine Bencherchali (Nextron Systems)
· 2022-07-08 · logsource: product=windows category=ps_script · bd33d2aa-497e-4651-9893-5c5364646595
Detects powershell scripts that creates sockets/listeners which could be indicative of tunneling activity
Author: Andreas Braathen (mnemonic.io)
· 2024-06-17 · logsource: product=linux category=network_connection · c4568f5d-131f-4e78-83d4-45b2da0ec4f1
Detects an executable initiating a network connection to "LocaltoNet" tunneling sub-domains.
LocaltoNet is a reverse proxy that enables localhost services to be exposed to the Internet.
Attackers have been seen to use this service for command-and-control activities to bypass MFA and perimeter controls.
Author: Florian Roth (Nextron Systems)
· 2022-10-08 (modified 2024-11-23) · logsource: product=windows category=process_creation · d7654f02-e04b-4934-9838-65c46f187ebc
Detects the use of IOX - a tool for port forwarding and intranet proxy purposes
Author: Arda Buyukkaya (EclecticIQ)
· 2025-02-11 · logsource: product=windows category=process_creation · e99375eb-3ee0-407a-9f90-79569cc6a01c
Detects the execution of the "curl.exe" command, referencing "SOCKS" and ".onion" domains, which could be indicative of Kalambur backdoor activity.
Author: Florian Roth (Nextron Systems)
· 2022-12-27 (modified 2023-02-04) · logsource: product=windows category=process_creation · f5e3b62f-e577-4e59-931e-0a15b2b94e1e
Detects executable names or flags used by Htran or Htran-like tools (e.g. NATBypass)