AWS SO - Mitigated the PCAP carving problem #15307
Unanswered
vibrantsculpture-ai
asked this question in
2.4
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Version
2.4.190
Installation Method
Cloud image (Amazon, Azure, Google)
Description
other (please provide detail below)
Installation Type
Distributed
Location
cloud
Hardware Specs
Meets minimum requirements
CPU
16
RAM
64G
Storage for /
400G
Storage for /nsm
400G
Network Traffic Collection
other (please provide detail below)
Network Traffic Speeds
Less than 1Gbps
Status
Yes, all services on all nodes are running OK
Salt Status
No, there are no failures
Logs
No, there are no additional clues
Detail
PCAP Correlation Mitigation for AWS Distributed Sensors
This document describes a mitigation solution for a PCAP correlation issue in the AWS version of a distributed Security Onion deployment using separate EC2 sensor instances.
The issue affects environments that rely on AWS Traffic Mirroring and optionally AWS Load Balancers, where packet encapsulation prevents proper PCAP carving and alert correlation in Steno.
Problem Summary
When Suricata generated alerts, correlating those alerts to the related PCAP in Steno frequently failed.
Although alerts appeared correctly in the SOC, the corresponding packet data could not be located during PCAP carving.
Root Cause Analysis
AWS Traffic Mirroring encapsulates network traffic before it reaches the sensor:
Steno only sees the outer VXLAN wrapper in the PCAP files.
Example Failure Scenario
Solution Overview
To restore correct PCAP visibility and correlation, an OS-level decapsulation approach was implemented directly on the sensor.
The solution removes VXLAN and Geneve encapsulation before packets are processed by Steno.
Implementation Details
Virtual Interface
A virtual interface named
decap0was created on the sensor host.This interface receives fully decapsulated packets.
Decapsulation Logic
A custom Perl script performs the following actions:
eni1)decap0interfaceSteno Configuration
Steno was reconfigured to:
decap0interfaceThis ensures Steno sees the actual inner packet rather than the tunnel wrapper.
Operationalization
To ensure persistence across reboots:
Result
Availability
If there is interest, the following can be provided:
These can be added directly to this post.
Guidelines
Beta Was this translation helpful? Give feedback.
All reactions