AWS EC2 Full Network Packet Capture Detected

Identifies potential Traffic Mirroring in an Amazon Elastic Compute Cloud (EC2) instance. Traffic Mirroring is an Amazon VPC feature that you can use to copy network traffic from an Elastic network interface. This feature can potentially be abused to exfiltrate sensitive data from unencrypted internal traffic.

Elastic rule (View on GitHub)

 1[metadata]
 2creation_date = "2021/05/05"
 3integration = ["aws"]
 4maturity = "production"
 5updated_date = "2024/05/21"
 6
 7[rule]
 8author = ["Elastic", "Austin Songer"]
 9description = """
10Identifies potential Traffic Mirroring in an Amazon Elastic Compute Cloud (EC2) instance. Traffic Mirroring is an Amazon
11VPC feature that you can use to copy network traffic from an Elastic network interface. This feature can potentially be
12abused to exfiltrate sensitive data from unencrypted internal traffic.
13"""
14false_positives = [
15    """
16    Traffic Mirroring may be done by a system or network administrator. Verify whether the user identity, user agent,
17    and/or hostname should be making changes in your environment. Traffic Mirroring from unfamiliar users or hosts
18    should be investigated. If known behavior is causing false positives, it can be exempted from the rule.
19    """,
20]
21from = "now-60m"
22index = ["filebeat-*", "logs-aws.cloudtrail-*"]
23interval = "10m"
24language = "kuery"
25license = "Elastic License v2"
26name = "AWS EC2 Full Network Packet Capture Detected"
27note = """## Setup
28
29The AWS Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule."""
30references = [
31    "https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_TrafficMirrorFilter.html",
32    "https://github.com/easttimor/aws-incident-response",
33]
34risk_score = 47
35rule_id = "c1812764-0788-470f-8e74-eb4a14d47573"
36severity = "medium"
37tags = [
38    "Domain: Cloud",
39    "Data Source: AWS",
40    "Data Source: Amazon Web Services",
41    "Use Case: Network Security Monitoring",
42    "Tactic: Exfiltration",
43    "Tactic: Collection",
44]
45timestamp_override = "event.ingested"
46type = "query"
47
48query = '''
49event.dataset:aws.cloudtrail and event.provider:ec2.amazonaws.com and
50event.action:(CreateTrafficMirrorFilter or CreateTrafficMirrorFilterRule or CreateTrafficMirrorSession or CreateTrafficMirrorTarget) and
51event.outcome:success
52'''
53
54
55[[rule.threat]]
56framework = "MITRE ATT&CK"
57[[rule.threat.technique]]
58id = "T1020"
59name = "Automated Exfiltration"
60reference = "https://attack.mitre.org/techniques/T1020/"
61
62
63[rule.threat.tactic]
64id = "TA0010"
65name = "Exfiltration"
66reference = "https://attack.mitre.org/tactics/TA0010/"
67[[rule.threat]]
68framework = "MITRE ATT&CK"
69[[rule.threat.technique]]
70id = "T1074"
71name = "Data Staged"
72reference = "https://attack.mitre.org/techniques/T1074/"
73
74
75[rule.threat.tactic]
76id = "TA0009"
77name = "Collection"
78reference = "https://attack.mitre.org/tactics/TA0009/"

Setup

The AWS Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule.

References

Related rules

to-top