T1020.001 Elastic Security · Elastic

Detect Traffic Duplication in Elastic Security

Adversaries may leverage traffic mirroring in order to automate data exfiltration over compromised infrastructure. Traffic mirroring is a native feature for some network devices and cloud environments, often used for legitimate network analysis. Adversaries may abuse this capability to mirror or redirect network traffic through infrastructure they control, enabling passive interception of credentials, session tokens, and sensitive data. Cloud-based environments (AWS Traffic Mirroring, GCP Packet Mirroring, Azure vTAP) provide native APIs for configuring traffic duplication, which adversaries may invoke directly after gaining sufficient privileges.

MITRE ATT&CK

Tactic
Exfiltration
Technique
T1020 Automated Exfiltration
Sub-technique
T1020.001 Traffic Duplication
Canonical reference
https://attack.mitre.org/techniques/T1020/001/

Elastic Detection Query

Elastic Security (Elastic)
eql
any where event.dataset in ("aws.cloudtrail", "azure.activitylogs", "gcp.audit")
  and (
    event.action in (
      "CreateTrafficMirrorSession",
      "CreateTrafficMirrorTarget",
      "CreateTrafficMirrorFilter",
      "ModifyTrafficMirrorSession",
      "ModifyTrafficMirrorFilterRule",
      "DeleteTrafficMirrorSession",
      "google.compute.v1.PacketMirrorings.Insert",
      "google.compute.v1.PacketMirrorings.Patch",
      "google.compute.v1.PacketMirrorings.Delete"
    )
    or event.action like~ "*TrafficMirror*"
    or event.action like~ "*PacketMirror*"
    or event.action like~ "*virtualNetworkTaps*"
    or event.action like~ "*tapConfiguration*"
  )
high severity high confidence

Detects creation, modification, and deletion of traffic mirroring and packet duplication resources across AWS (Traffic Mirror Sessions, Targets, Filters), Azure (vTAP and TAP configurations), and GCP (Packet Mirroring policies). Adversaries with sufficient cloud privileges invoke these native APIs to passively intercept credentials, session tokens, and sensitive data without disrupting network flows.

Data Sources

AWS CloudTrail via Elastic Agent AWS integration (logs-aws.cloudtrail-*)Azure Activity Logs via Elastic Agent Azure integration (logs-azure.activitylogs-*)GCP Cloud Audit Logs via Elastic Agent GCP integration (logs-gcp.audit-*)

Required Tables

logs-aws.cloudtrail-*logs-azure.activitylogs-*logs-gcp.audit-*

False Positives & Tuning

  • Network or cloud security engineering teams deploying approved IDS, NDR, or packet capture appliances (e.g., Darktrace, ExtraHop, Corelight) that require traffic mirror sessions routed to inspection infrastructure
  • Infrastructure-as-code pipelines (Terraform, CloudFormation, Pulumi) running under CI/CD service accounts that provision or update traffic mirroring configurations as part of sanctioned environment builds
  • Security Operations teams creating short-lived traffic mirror sessions during active incident response or forensic capture workflows to record network evidence from a compromised instance
Download portable Sigma rule (.yml)

Other platforms for T1020.001


Testing Methodology

Validate this detection against 4 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 1AWS Traffic Mirror Session Creation

    Expected signal: AWS CloudTrail will log CreateTrafficMirrorTarget, CreateTrafficMirrorFilter, CreateTrafficMirrorFilterRule (x2), and CreateTrafficMirrorSession events. Each event will contain userIdentity.arn, sourceIPAddress, eventTime, requestParameters (including networkInterfaceId, trafficMirrorTargetId), and responseElements with the created resource IDs.

  2. Test 2Azure Virtual Network TAP Configuration

    Expected signal: Azure Activity Log will record Microsoft.Network/virtualNetworkTaps/write and Microsoft.Network/networkInterfaces/tapConfigurations/write operations with caller identity (UPN or service principal), CallerIpAddress, ResourceGroup, and SubscriptionId. Events appear within 1-5 minutes of execution.

  3. Test 3GCP Packet Mirroring Policy Creation

    Expected signal: GCP Cloud Audit Log (Admin Activity) will record a compute.packetMirrorings.insert method call with principalEmail, callerIp, requestMetadata, and resource name. The event is logged in the cloudaudit.googleapis.com/activity log stream for the project.

  4. Test 4Cisco IOS SPAN Session Configuration Simulation

    Expected signal: Linux syslog will contain CISCO-IOS tagged entries showing ERSPAN configuration commands. These would be ingested via syslog forwarder into SIEM. In a real scenario, TACACS+ accounting would also log the commands with the authenticated username, timestamp, and device IP.

Unlock Pro Content

Get the full detection package for T1020.001 including response playbook, investigation guide, and atomic red team tests.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections