T1071 Application Layer Protocol

Adversaries may communicate using OSI application layer protocols to avoid detection/network filtering by blending in with existing traffic. Commands to the remote system, and often the results of those commands, will be embedded within the protocol traffic between the client and server.

Adversaries may utilize many different protocols, including those used for web browsing, transferring files, electronic mail, DNS, or publishing/subscribing. For connections that occur internally within an enclave (such as those between a proxy or pivot node and other nodes), commonly used protocols are SMB, SSH, or RDP.(Citation: Mandiant APT29 Eye Spy Email Nov 22)

View in MITRE ATT&CK®

CRI Profile Mappings

Capability ID Capability Description Mapping Type ATT&CK ID ATT&CK Name Notes
DE.AE-02.01 Event analysis and detection Mitigates T1071 Application Layer Protocol
Comments
This diagnostic statement provides for implementation of methods to block similar future attacks via security tools such as antivirus and IDS/IPS to provide protection against threats and exploitation attempts.
References
    DE.CM-01.01 Intrusion detection and prevention Mitigates T1071 Application Layer Protocol
    Comments
    This diagnostic statement protects against adversaries that may try to utilize different protocols, such as web browsing, transferring files, email, from attacking at the OSI level. Network intrusion detection and prevention systems that use network signatures to identify traffic for specific adversary malware can be used to mitigate activity at the network level.
    References
      PR.IR-04.01 Utilization monitoring Mitigates T1071 Application Layer Protocol
      Comments
      This diagnostic statement describes how the organization establishes and manages baseline measures of network activity. Supported by network monitoring tools and other controls to detect events and identify incidents. Mitigating mechanisms may include: Data Loss Prevention (DLP); Filtering Network Traffic; Limit Network Traffic; Network Intrusion Prevention Systems (NIPS); and Network Segmentation for these type of network-based techniques.
      References
        PR.IR-01.02 Network device configurations Mitigates T1071 Application Layer Protocol
        Comments
        This diagnostic statement provides protection through secure network device configurations (e.g., firewall rules, ports, protocols) aligned to security baselines. Using network appliances to block or filter network traffic that is not necessary within the environment can mitigate adversary use of application layer protocols.
        References
          PR.IR-01.03 Network communications integrity and availability Mitigates T1071 Application Layer Protocol
          Comments
          This diagnostic statement protects against Application Layer Protocol through the use of secure network configurations, architecture, implementations of zero trust architecture, and segmentation.
          References
            PR.PS-01.08 End-user device protection Mitigates T1071 Application Layer Protocol
            Comments
            This diagnostic statement protects against Application Layer Protocol through the use of limiting access to resources to only authorized devices, management of personal computing devices, network intrusion prevention, and the use of antimalware.
            References

              NIST 800-53 Mappings

              Capability ID Capability Description Mapping Type ATT&CK ID ATT&CK Name Notes
              CA-07 Continuous Monitoring mitigates T1071 Application Layer Protocol
              CM-06 Configuration Settings mitigates T1071 Application Layer Protocol
              SC-10 Network Disconnect mitigates T1071 Application Layer Protocol
              SC-20 Secure Name/Address Resolution Service (Authoritative Source) mitigates T1071 Application Layer Protocol
              SC-21 Secure Name/Address Resolution Service (Recursive or Caching Resolver) mitigates T1071 Application Layer Protocol
              SC-22 Architecture and Provisioning for Name/Address Resolution Service mitigates T1071 Application Layer Protocol
              SC-23 Session Authenticity mitigates T1071 Application Layer Protocol
              SC-37 Out-of-band Channels mitigates T1071 Application Layer Protocol
              SC-31 Covert Channel Analysis mitigates T1071 Application Layer Protocol
              SI-03 Malicious Code Protection mitigates T1071 Application Layer Protocol
              CM-02 Baseline Configuration mitigates T1071 Application Layer Protocol
              CM-07 Least Functionality mitigates T1071 Application Layer Protocol
              SI-04 System Monitoring mitigates T1071 Application Layer Protocol
              AC-04 Information Flow Enforcement mitigates T1071 Application Layer Protocol
              SC-07 Boundary Protection mitigates T1071 Application Layer Protocol

              VERIS Mappings

              Capability ID Capability Description Mapping Type ATT&CK ID ATT&CK Name Notes
              action.hacking.variety.Other Other related-to T1071 Application Layer Protocol
              action.hacking.variety.Evade Defenses Modification of the action (rather than the system, as in 'Disable controls') to avoid detection. related-to T1071 Application Layer Protocol
              action.hacking.vector.Other network service Network service that is not remote access or a web application. related-to T1071 Application Layer Protocol
              action.malware.variety.C2 Malware creates Command and Control capability for malware. Child of 'Backdoor or C2'. related-to T1071 Application Layer Protocol

              Azure Mappings

              Capability ID Capability Description Mapping Type ATT&CK ID ATT&CK Name Notes
              alerts_for_azure_network_layer Alerts for Azure Network Layer technique_scores T1071 Application Layer Protocol
              Comments
              This control can identify connections to known malicious sites. Scored minimal since the malicious sites must be on block list.
              References
              alerts_for_dns Alerts for DNS technique_scores T1071 Application Layer Protocol
              Comments
              Can detect potential DNS protocol misuse/anomalies. Technique coverage is restricted to DNS and therefore results in a Minimal score.
              References
              azure_dns_analytics Azure DNS Analytics technique_scores T1071 Application Layer Protocol
              Comments
              This control can be used forensically to identify clients that communicated with identified C2 hosts via DNS.
              References
              azure_network_watcher_traffic_analytics Azure Network Watcher: Traffic Analytics technique_scores T1071 Application Layer Protocol
              Comments
              This control can identify anomalous traffic with respect to NSG and application layer protocols.
              References
              azure_policy Azure Policy technique_scores T1071 Application Layer Protocol
              azure_web_application_firewall Azure Web Application Firewall technique_scores T1071 Application Layer Protocol
              Comments
              This control can detect one of the sub-techniques of this technique while not providing detection for the remaining, resulting in a Minimal overall score.
              References
              azure_web_application_firewall Azure Web Application Firewall technique_scores T1071 Application Layer Protocol
              Comments
              This control can protect against one of the sub-techniques of this technique while not providing protection for the remaining, resulting in a Minimal overall score.
              References

              GCP Mappings

              Capability ID Capability Description Mapping Type ATT&CK ID ATT&CK Name Notes
              cloud_ngfw Cloud Next-Generation Firewall (NGFW)_ technique_scores T1071 Application Layer Protocol
              Comments
              Cloud NGFW can allow or deny traffic based on the traffic's protocol, destination ports, sources, and destinations. This functionality can be used to block malicious or unwanted traffic leveraging application layer protocols. Given this supports all sub-techniques, the mapping is given a score of Significant.
              References
              google_secops Google Security Operations technique_scores T1071 Application Layer Protocol
              Comments
              Google Security Ops is able to trigger an alert based on suspicious modifications to the network infrastructure. This technique was scored as minimal based on low or uncertain detection coverage factor. https://github.com/chronicle/detection-rules/tree/main/gcp_cloudaudit https://github.com/chronicle/detection-rules/blob/main/gcp_cloudaudit/gcp_vpc_network_changes.yaral
              References

              AWS Mappings

              Capability ID Capability Description Mapping Type ATT&CK ID ATT&CK Name Notes
              amazon_guardduty Amazon GuardDuty technique_scores T1071 Application Layer Protocol
              Comments
              GuardDuty flags events matching the following finding types that relate to adversaries attempting to communicate using application layer protocols to avoid detection. UnauthorizedAccess:EC2/MaliciousIPCaller.Custom Trojan:EC2/DropPoint!DNS Trojan:EC2/DropPoint Backdoor:EC2/C&CActivity.B!DNS Trojan:EC2/BlackholeTraffic Trojan:EC2/BlackholeTraffic!DNS
              References
              aws_iot_device_defender AWS IoT Device Defender technique_scores T1071 Application Layer Protocol
              Comments
              The following AWS IoT Device Defender cloud-side detection metrics can detect indicators that an adversary may be leveraging compromised AWS IoT devices and application layer protocols - especially the Message Queuing Telemetry Transport (MQTT) protocol - to communicate for command and control purposes: "Source IP" ("aws:source-ip-address") values outside of expected IP address ranges may suggest that a device has been stolen. "Messages sent" ("aws:num-messages-sent"), "Messages received" ("aws:num-messages-received"), and "Message size" ("aws:message-byte-size") values outside of expected norms may indicate that devices are sending and/or receiving non-standard traffic, which may include command and control traffic. The following AWS IoT Device Defender device-side detection metrics can detect indicators that an adversary may be leveraging compromised AWS IoT devices and application layer protocols - especially the Message Queuing Telemetry Transport (MQTT) protocol - to communicate for command and control purposes: "Destination IPs" ("aws:destination-ip-addresses") outside of expected IP address ranges may suggest that a device is communicating with unexpected parties. "Bytes in" ("aws:all-bytes-in"), "Bytes out" ("aws:all-bytes-out"), "Packets in" ("aws:all-packets-in"), and "Packets out" ("aws:all-packets-out") values outside of expected norms may indicate that the device is sending and/or receiving non-standard traffic, which may include command and control traffic. "Listening TCP ports" ("aws:listening-tcp-ports"), "Listening TCP port count" ("aws:num-listening-tcp-ports"), "Established TCP connections count" ("aws:num-established-tcp-connections"), "Listening UDP ports" ("aws:listening-udp-ports"), and "Listening UDP port count" ("aws:num-listening-udp-ports") values outside of expected norms may indicate that devices are communicating via unexpected ports/protocols that may suggest application layer command and control traffic. Coverage factor is minimal, since these metrics are limited to IoT device communication and none of this technique's sub-techniques are addressed, resulting in an overall score of Minimal.
              References
              aws_network_firewall AWS Network Firewall technique_scores T1071 Application Layer Protocol
              Comments
              AWS Network Firewall has the ability to pass, drop, or alert on traffic based on the network protocol as well as perform deep packet inspection on the payload. This functionality can be used to block malicious or unwanted traffic leveraging application layer protocols. Given this supports all sub-techniques, the mapping is given a score of Significant.
              References
              aws_web_application_firewall AWS Web Application Firewall technique_scores T1071 Application Layer Protocol
              Comments
              AWS WAF protects against this by inspecting incoming requests and blocking malicious traffic. AWS WAF uses the following rule sets to provide this protection. AWSManagedRulesCommonRuleSet AWSManagedRulesAdminProtectionRuleSet AWSManagedRulesKnownBadInputsRuleSet AWSManagedRulesSQLiRuleSet AWSManagedRulesLinuxRuleSet AWSManagedRulesUnixRuleSet AWSManagedRulesWindowsRuleSet AWSManagedRulesPHPRuleSet AWSManagedRulesWordPressRuleSet AWSManagedRulesBotControlRuleSet This is scored as Minimal because the rule sets only protect against a subset of the sub-techniques (1 of 4).
              References

              ATT&CK Subtechniques

              Technique ID Technique Name Number of Mappings
              T1071.004 DNS 33
              T1071.005 Publish/Subscribe Protocols 16
              T1071.003 Mail Protocols 25
              T1071.002 File Transfer Protocols 23
              T1071.001 Web Protocols 30