IPSEC NAT Traversal Port Activity

This rule detects events that could be describing IPSEC NAT Traversal traffic. IPSEC is a VPN technology that allows one system to talk to another using encrypted tunnels. NAT Traversal enables these tunnels to communicate over the Internet where one of the sides is behind a NAT router gateway. This may be common on your network, but this technique is also used by threat actors to avoid detection.

Elastic rule (View on GitHub)

 1[metadata]
 2creation_date = "2020/02/18"
 3integration = ["network_traffic"]
 4maturity = "production"
 5min_stack_comments = "New fields added: required_fields, related_integrations, setup"
 6min_stack_version = "8.3.0"
 7updated_date = "2023/08/17"
 8
 9[rule]
10author = ["Elastic"]
11description = """
12This rule detects events that could be describing IPSEC NAT Traversal traffic. IPSEC is a VPN technology that allows one
13system to talk to another using encrypted tunnels. NAT Traversal enables these tunnels to communicate over the Internet
14where one of the sides is behind a NAT router gateway. This may be common on your network, but this technique is also
15used by threat actors to avoid detection.
16"""
17false_positives = [
18    """
19    Some networks may utilize these protocols but usage that is unfamiliar to local network administrators can be
20    unexpected and suspicious. Because this port is in the ephemeral range, this rule may false under certain
21    conditions, such as when an application server with a public IP address replies to a client which has used a UDP
22    port in the range by coincidence. This is uncommon but such servers can be excluded.
23    """,
24]
25from = "now-9m"
26index = ["packetbeat-*", "auditbeat-*", "filebeat-*", "logs-network_traffic.*"]
27language = "kuery"
28license = "Elastic License v2"
29name = "IPSEC NAT Traversal Port Activity"
30risk_score = 21
31rule_id = "a9cb3641-ff4b-4cdc-a063-b4b8d02a67c7"
32severity = "low"
33tags = ["Tactic: Command and Control", "Domain: Endpoint", "Use Case: Threat Detection"]
34timestamp_override = "event.ingested"
35type = "query"
36
37query = '''
38(event.dataset: network_traffic.flow or (event.category: (network or network_traffic))) and network.transport:udp and destination.port:4500
39'''
40
41
42[[rule.threat]]
43framework = "MITRE ATT&CK"
44
45[rule.threat.tactic]
46id = "TA0011"
47name = "Command and Control"
48reference = "https://attack.mitre.org/tactics/TA0011/"

Related rules

to-top