Because the traffic looks like normal traffic, it is harder to spot and block. MITRE tracks it as T1071 under the Command and Control tactic.
How it works
Attackers need a way to send instructions to a compromised system and get results back. With this technique they put those instructions and results inside a common protocol, so the traffic blends in with everything else on the network.
MITRE lists protocols used for web browsing, transferring files, electronic mail, DNS, and publishing or subscribing to messages. Inside a network, protocols such as SMB, SSH and RDP are commonly used between a proxy or pivot node and other nodes.
One sub-technique, T1071.004 DNS, covers abuse of DNS. MITRE notes that DNS packets have many fields and headers where data can be hidden, which is often known as DNS tunneling.
MITRE lists five sub-techniques: T1071.001 Web Protocols; T1071.002 File Transfer Protocols; T1071.003 Mail Protocols; T1071.004 DNS; T1071.005 Publish/Subscribe Protocols.
A real example
Procedure examples listed by MITRE ATT&CK:
- Clambling can use Telnet for communication.
- Hildegard has used an IRC channel for command and control.
- Lucifer can use the Stratum protocol on port 10001 between the cryptojacking bot and the mining server.
- Sliver can use the WireGuard VPN protocol for command and control.
- Siloscape connects to an IRC server for command and control.
Who uses it
Seen in incidents
- Incident Bankshot implant attacks on the Turkish financial sector In March 2018, McAfee Advanced Threat Research reported the Bankshot implant, linked to North Korean Hidden Cobra activity, at five Turkish financial and government-finance organizations. March 2018 · Financial services
- Incident Kyiv substation attack with Industroyer On 17 December 2016, malware called Industroyer, also known as CrashOverride, disrupted a transmission substation outside Kyiv, Ukraine. December 2016 · Energy and utilities
- Incident MuddyWater campaign against Turkish government entities Cisco Talos described a MuddyWater campaign, active as recently as November 2021, against Turkish government bodies including TÜBİTAK. November 2021 · Government and public sector
How to detect
-
Unusual processes using common protocols
Look for processes that make web, DNS or other application layer connections they would not normally make, especially with high outbound data volumes or irregular ports.
-
Beacon-like timing
Regular, repeated connections at fixed intervals, or unbalanced traffic where much more data leaves than arrives, can point to command and control.
-
Tunnelling and misused protocols
Watch for control traffic hidden in protocol headers, DNS over HTTPS, or SMB traffic crossing network segments where it does not belong.
-
Detection strategy MITRE lists
DET0444, Detection of Command and Control Over Application Layer Protocols.
How to defend
-
Filter network traffic
Use network appliances to filter inbound and outbound traffic by protocol, and set endpoint software to filter traffic too.
-
Use network intrusion prevention
Intrusion detection and prevention systems that use network signatures can identify traffic linked to known adversary malware and block it.
Frequently Asked Questions
What is Application Layer Protocol (T1071)?
Application Layer Protocol is a Command and Control technique where attackers talk to a system they control using ordinary network protocols, such as those used for web browsing, file transfer, email or DNS. Because the traffic looks normal, it is harder to spot and block.
Which protocols do attackers hide control traffic in?
MITRE lists protocols used for web browsing, transferring files, electronic mail, DNS, and publishing or subscribing to messages. Inside a network, SMB, SSH and RDP are commonly used between a proxy or pivot node and other nodes.
What is DNS tunneling?
DNS tunneling is covered by sub-technique T1071.004. MITRE notes that DNS packets have many fields and headers where data can be hidden, so attackers can pass instructions and results inside DNS traffic.
How can I detect Application Layer Protocol abuse?
Look for processes that make web, DNS or other connections they would not normally make, especially with high outbound data volumes or irregular ports. Regular connections at fixed intervals, or traffic where much more data leaves than arrives, can point to command and control.
How do I defend against Application Layer Protocol abuse?
Use network appliances to filter inbound and outbound traffic by protocol, and set endpoint software to filter traffic too. Intrusion detection and prevention systems that use network signatures can identify traffic linked to known adversary malware and block it.
