
That shift creates a real visibility gap. Security and operations teams still need packet-level evidence for troubleshooting, threat detection, incident response, and compliance investigations — they just can't get it the old way.
AWS packet capture, built on VPC Traffic Mirroring, fills that gap. But mirrored traffic has to be scoped carefully, filtered deliberately, and interpreted with its limitations in mind. This article covers the architecture, the setup workflow, how to run an actual investigation, where the limits are, and how packet evidence fits into a broader detection strategy.
Key Takeaways
- Traffic Mirroring copies selected ENI traffic to a monitoring target without touching the workload's normal traffic path.
- Four components make up a working capture design: mirror source, mirror filter, mirror target, mirror session.
- Narrow filters, short capture windows, and private targets cut exposure, storage volume, and performance impact.
- Packet evidence delivers the most value when correlated with flow logs, identity data, endpoint telemetry, and control-plane logs.
What Is AWS Packet Capture and How Does VPC Traffic Mirroring Work?
Packet capture means collecting network packets (or selected packet metadata) for inspection, reconstruction, troubleshooting, threat hunting, or evidence preservation. It's a different animal from flow logs, metrics, or application logs.
Flow logs tell you a conversation happened. Packet captures show you what was actually said. A VPC Flow Log record describes an IP flow using fields like source, destination, and protocol over an aggregation interval. It doesn't contain the packet payload itself.
If an investigation needs the actual DNS query string, the HTTP header, or the TLS handshake details, flow logs won't get you there. Traffic Mirroring will.
Why AWS Capture Isn't Just a Virtual TAP
In a data center, a physical TAP sits inline on a cable. In AWS, there's no cable to tap. Traffic moves through virtual network interfaces and software-defined routing. Traffic Mirroring was built specifically to solve this: it copies traffic from an eligible ENI and delivers it to a separate collector, entirely outside the normal data path.
The Four Core Components
| Component | What It Does |
|---|---|
| Mirror source | An eligible ENI tied to an AWS workload. Supported instance families and bare-metal eligibility change over time, so always verify current support in AWS documentation before you design around a specific instance type. |
| Mirror filter | Ordered inbound and outbound rules determining which protocols, addresses, ports, and directions get copied or rejected. |
| Mirror target | A collector ENI, Network Load Balancer, or Gateway Load Balancer endpoint that receives the mirrored traffic. |
| Mirror session | The association linking source, filter, and target, including session priority and optional packet-length limits. |
Here's the packet path in plain terms: AWS matches traffic against your filter, encapsulates the copy, and ships it to your target. The original workload traffic never moves; it stays on its normal route. That encapsulated copy still needs decoding before an analyst can read the inner packet. Your collector has to handle that step; it won't happen automatically.

VPC, EC2, and VLAN: Not the Same Thing
New to AWS networking? These three terms get confused constantly:
- VPC: a logically isolated virtual network. It's a Layer 3 construct built around IP routing, not a Layer 2 broadcast domain.
- EC2: the compute service. Instances connect to a VPC through network interfaces; the ENI, not the whole instance, is what becomes a mirror source.
- VLAN: a traditional Layer 2 segmentation mechanism tied to Ethernet switching and 802.1Q tagging.
A VPC is not simply a VLAN in the cloud. The routing model, the abstraction layer, and the visibility mechanisms are fundamentally different, even though both provide logical separation between resources.
How to Set Up and Verify an AWS Packet Capture
Before touching the console, define your investigation objective. Vague captures produce vague evidence.
Scope the Capture First
Nail down these details before you create a single resource:
- The specific source workload or interface involved
- Traffic direction (inbound, outbound, or both)
- Protocols and ports relevant to the question
- Time window and expected traffic volume
- What evidence the investigation actually requires
Start with the narrowest filter that still answers your question. Document the investigation owner, purpose, start time, expiration time, and retention requirement in resource tags. You'll thank yourself later when cleaning up.
Confirm Prerequisites
Check these before building anything:
- Source eligibility: Is the ENI type and instance family actually supported?
- Network path: Does the subnet route reach the target? Are security groups and NACLs open for mirrored traffic?
- Target capacity: Can the collector handle the expected volume?
- IAM permissions: Are mirror-session, filter, and source permissions scoped correctly?
- Cross-account or cross-VPC connectivity: Does your architecture require VPC peering or Transit Gateway?
Quotas and regional availability shift over time, so check current AWS documentation rather than relying on numbers from an old blog post, including this one.
Three Steps to a Basic Capture
- Create or select the mirror target. Make sure the collector is private, reachable, and capable of decoding the mirrored encapsulation.
- Build inbound and outbound filter rules. Rule order matters: AWS evaluates sequentially, and the first matching rule wins. Skip the outbound rule and you'll get an incomplete investigation, missing half the conversation.
- Create the mirror session. Associate source, filter, and target. Decide between full-packet capture or an intentional length limit based on what you're actually investigating.
Verify It's Actually Working
Generate controlled test traffic and inspect the collector output with a packet-analysis tool. Confirm the collector is receiving encapsulated traffic and successfully decoding the inner packets.
Compare source-side mirroring metrics, drop or skip indicators, target counters, and packet timestamps against each other. An empty PCAP doesn't automatically mean the application generated no traffic. It might mean your filter was too narrow, your source wasn't eligible, or packets dropped before reaching the target.
Scaling for Larger Environments
For multi-account or high-volume environments, a Network Load Balancer or Gateway Load Balancer endpoint can front a fleet of collectors instead of a single ENI target. This trades some packet-ordering fidelity for scalability and centralized appliance management, a fair trade in many architectures but one worth naming explicitly.
If you need long-term evidence retention, S3 or equivalent storage works well, provided you apply encryption, access controls, lifecycle policies, and documented chain-of-custody procedures.
How to Use AWS Packet Captures for Threat Investigation
A packet capture without a repeatable process is just noise with extra steps. Here's a workflow that holds up under scrutiny.
From Alert to Conclusion
- Scope the alert. Identify affected accounts, VPCs, subnets, ENIs, workloads, identities, destinations, and time ranges.
- Capture only what answers the question. Preserve the filter configuration and resource identifiers alongside the PCAP — evidence without context is hard to defend later.
- Examine the traffic. Look at connection establishment, DNS activity, protocol behavior, retransmissions, unusual destinations, lateral movement indicators, and data-transfer patterns.
- Correlate across sources. Match packet evidence against VPC Flow Logs, CloudTrail, DNS telemetry, endpoint data, identity logs, and SIEM alerts.
- Document findings honestly. Note confidence level, missing visibility, packet loss indicators, encryption constraints, and recommended next steps.

What Packet Capture Can't Prove
A mirrored packet shows traffic observed at the eligible interface and matched by your filter. It does not prove delivery to the remote application, successful processing, or the absence of traffic outside your capture scope.
Encrypted payloads add another wrinkle. Mirroring copies the traffic, but TLS or IPsec content stays encrypted unless you control a decryption point with legitimate key access. Without that, you're working with connection metadata and protocol behavior — still useful, just not a full content view.
An Illustrative Example: DNS-Based Exfiltration
AWS GuardDuty defines a finding type specifically for this pattern: an EC2 instance exfiltrating data by encoding it into DNS queries sent to an attacker-controlled server. This is a documented threat pattern in AWS's GuardDuty finding types, not a confirmed breach — but it shows exactly where packet capture earns its keep.
A flow log tells you an instance talked to a DNS server on port 53. It won't tell you what was in the query. Mirror TCP and UDP traffic on port 53 from the suspect ENI, and you can inspect the actual query content — length, encoding patterns, destination entropy — details that separate a routine lookup from a covert channel.
Where MixMode Fits In
Packet capture gives you deep, retrospective evidence for traffic you already decided to scope and filter. It doesn't continuously watch everything, and it won't flag the anomaly that tells you where to look next.
That's the gap a cybersecurity intelligence layer is built to close. MixMode's platform continuously models network context across cloud, hybrid, IT, and OT environments, surfacing anomalous behavior — reconnaissance, lateral movement, insider activity, in-progress attacks — without relying on static rules or signatures. In practice, this looks like correlating CloudTrail activity with VPC Flow Logs and threat intelligence feeds to flag suspicious IPs before an analyst ever has to pull a manual PCAP.
In one documented engagement, this kind of correlation surfaced high-volume inbound and outbound connections to hostile geolocations, cleartext credential exposure, Kerberoasting risk, and reverse-tunneling activity used for covert command-and-control — all patterns that a targeted packet capture could then confirm at the protocol level. MixMode doesn't replace AWS's native mirroring mechanism; it gives security teams a reason to point that mechanism at the right traffic in the first place.
AWS Packet Capture Limitations, Security Considerations, and Best Practices
Mirroring has real constraints that affect evidence quality, and you need to know them before you build an investigation around assumptions.
Technical Limits That Affect Evidence
- Bandwidth and PPS contention — mirrored traffic competes with production traffic for instance bandwidth. When limits are exceeded, mirrored packets get dropped and production traffic takes priority.
- MTU overhead and truncation — encapsulation adds bytes; oversized packets can get truncated before they reach the collector.
- Packet reordering — load-balanced targets (NLB, GWLB endpoints) may deliver packets out of sequence.
- Unsupported traffic types — some traffic, including ARP, DHCP, and instance metadata service calls, simply can't be mirrored.
- Source eligibility and quotas — not every instance family qualifies, and account-level quotas cap sessions, filters, and targets.
Always validate current limits against AWS documentation — these specifications change as AWS updates the service.
Protecting Sensitive Payloads
Packet captures often contain more sensitive data than flow records — credentials, personal information, health data, and full application payloads can all show up in a PCAP. Treat captured data accordingly:
- Place collectors in private subnets with least-privilege IAM
- Restrict UDP delivery access (VXLAN traffic typically uses UDP 4789)
- Encrypt stored captures and limit analyst access
- Apply retention limits and defined handling procedures for sensitive content
Controlling Storage and Operational Impact
Traffic Mirroring consumes ENI-hours, and sessions keep consuming them until they are actively deleted — even if the source instance is stopped. Keep this in mind:
- Use short-lived sessions for incident-specific captures, not persistent monitoring
- Apply packet truncation when full payloads aren't necessary
- Tag sessions with explicit expiration dates
- Delete sessions, filters, targets, and temporary collectors once the investigation closes
Treat persistent monitoring architecture as a separate design decision from an incident-only capture — the storage and complexity trade-offs differ significantly between the two.

Frequently Asked Questions
What are the three main steps involved in packet capture?
Preparation and scoping, capture and collection, and analysis or preservation. In AWS, this maps to defining your filter and session, mirroring traffic to a collector, and then analyzing or storing the PCAP for evidence.
What is the purpose of packet capture?
Packet capture supports troubleshooting, threat investigation, protocol analysis, compliance evidence, and validation of security controls. It gives analysts the actual packet content that flow logs and metrics can't provide.
What's the difference between a VPC and EC2?
A VPC is the virtual network boundary (the logically isolated space where your resources live). EC2 provides the compute instances themselves, which connect to the VPC through network interfaces.
Is a VPC just a VLAN?
No. A VPC uses a virtualized Layer 3 routing model, while a VLAN is a traditional Layer 2 segmentation mechanism. Both create logical separation, but the underlying architecture and visibility tools differ.
How does AWS VPC Traffic Mirroring work?
Traffic Mirroring copies traffic from a source ENI, encapsulates it based on your filter rules, and delivers it to a target (an ENI, NLB, or Gateway Load Balancer endpoint). The original workload traffic stays on its normal path the entire time.
Can AWS Traffic Mirroring decrypt encrypted traffic?
No. Mirroring copies traffic as-is; it doesn't decrypt TLS, IPsec, or other encrypted payloads. Content inspection requires an authorized decryption point where your organization controls the endpoint and keys.