XTunnel
- Type
- Proxyware
- Capabilities
- Credential theftExfiltrationLateral movementScanningDefense evasion
- Platforms
- Windows
XTunnel, also known as X-Tunnel, XAPS, and TrojanShunnael, is a Windows network-proxy and tunneling tool associated with APT28, the Russian GRU-linked espionage group also known as Fancy Bear, Sednit, and Sofacy. It relays arbitrary network traffic between an Internet-based command-and-control server and an endpoint inside a compromised local network, enabling network pivoting and data exfiltration. APT28 used XTunnel during the 2016 Democratic National Committee intrusion, alongside other tools in its espionage arsenal.
XTunnel can probe networks for open ports and access locally stored passwords. It protects communications using SSL/TLS and RC4 and receives an alternate port number from its command-and-control server to use if the current connection closes. Analyzed variants embed OpenSSL and use code obfuscation, including opaque predicates that complicate analysis. The family also includes .NET variants.
Associated threat actors
1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
The APT28 software table lists XTunnel with proxying, encrypted channels, fallback channels, network-service scanning, and obfuscation.
Techniques & procedures
25 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
3 techniques
Initial Access
They also send emails purportedly containing links to news items, but instead linking to malware drop sites that install toolkits onto the target's computer.
Among other things, it uses zero-day exploits, spear phishing and malware to compromise targets.
For example: in late March the attackers registered a domain with a typo—misdepatrment[.]com—to look suspiciously like the company hired by the DNC to manage its network, MIS Department.
Execution
1 technique
Execution
[XTunnel](https://attack.mitre.org/software/S0117) has been used to execute remote commands.(Citation: Crowdstrike DNC June 2016)
Stealth
3 techniques
Stealth
A version of [XTunnel](https://attack.mitre.org/software/S0117) introduced in July 2015 obfuscated the binary using opaque predicates and other techniques in a likely attempt to obfuscate it and bypass security products.(Citation: ESET Sednit Part 2)
The Command and Control (C2) IPs were hardcoded into the provided sample which also matched the Netzpolotik reporting.
A version of [XTunnel](https://attack.mitre.org/software/S0117) introduced in July 2015 inserted junk code into the binary in a likely attempt to obfuscate it and bypass security products.(Citation: ESET Sednit Part 2)
Credential Access
2 techniques
Credential Access
[XTunnel](https://attack.mitre.org/software/S0117) is capable of accessing locally stored passwords on victims.(Citation: Invincea XTunnel)
AADInternals can gather unsecured credentials for Azure AD services, such as Azure AD Connect, from a local machine... Agent Tesla has the ability to extract credentials from configuration or support files... APT33 has used a variety of publicly available tools like LaZagne to gather credentials.
Discovery
1 technique
Discovery
[XTunnel](https://attack.mitre.org/software/S0117) is capable of probing the network for open ports.(Citation: Invincea XTunnel)
Lateral Movement
1 technique
Lateral Movement
The C&C server can then order Xtunnel to open a tunnel with a designated machine, so that any data coming from the C&C server will be forwarded to this machine... any kind of TCP data can be sent through the tunnel... UDP traffic tunneling was introduced.
Command and Control
12 techniques
Command and Control
The C2 server used by [XTunnel](https://attack.mitre.org/software/S0117) provides a port number to the victim to use as a fallback in case the connection closes on the currently used port.(Citation: ESET Sednit Part 2)
APT28_2016-10_ESET_Observing the Comings and Goings Xtunnel
The source code contains two different channel implementations, one over HTTP and one over email... HttpChannel::getRawPacket() method is implemented as a HTTP GET request... sendRawPacket() is an HTTP POST request.
[XTunnel](https://attack.mitre.org/software/S0117) relays traffic between a C2 server and a victim.(Citation: Crowdstrike DNC June 2016)
Xtunnel is a network proxy tool that can relay any kind of network traffic between a C&C server on the Internet and an endpoint computer inside a local network... An Xtunnel infected machine serves as a network pivot
Xtunnel first tries to retrieve the Internet Explorer proxy configuration... Once a proxy IP address has been chosen, Xtunnel uses the HTTP CONNECT method to reach its C&C server.
The Sednit group developed a network proxy tool, named Xtunnel, to effectively transform a compromised computer into a network pivot, in order to contact machines that are normally unreachable from the Internet... An Xtunnel infected machine serves as a network pivot to contact machines that are normally unreachable from the Internet.
The attackers then upgraded valuable targets to the X-Agent backdoor, often pairing it with the Sedreco loader and the X-Tunnel network pivot.
expanded its tactics to include X-Agent, X-Tunnel, and LameHug
Xtunnel proxies network traffic between a C&C server on the Internet and a target computer, hence creating a “tunnel” between the two... UDP traffic tunneling was introduced
The content repeatedly describes malware and threat actors using SSL, TLS, HTTPS, RSA, AES, Blowfish, RC4, ECIES, Diffie-Hellman, OpenSSL, WolfSSL, and mutual TLS to protect command and control traffic.
[XTunnel](https://attack.mitre.org/software/S0117) uses SSL/TLS and RC4 to encrypt traffic.(Citation: Invincea XTunnel)(Citation: ESET Sednit Part 2)
Exfiltration
2 techniques
Exfiltration
X-Tunnel for exfiltration
On April 28, they used additional malware known as X-Tunnel to create an encrypted connection between the DCCC computers and GRU-controlled proxy computers for secure, large-scale data transfers, and then exfiltrated the over-70 Gigabytes of compressed data to a remote, GRU-controlled server.
Observables
56 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
54 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.