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", "panw"]
4maturity = "production"
5updated_date = "2024/09/18"
6
7[rule]
8author = ["Elastic"]
9description = """
10This rule detects events that could be describing IPSEC NAT Traversal traffic. IPSEC is a VPN technology that allows one
11system to talk to another using encrypted tunnels. NAT Traversal enables these tunnels to communicate over the Internet
12where one of the sides is behind a NAT router gateway. This may be common on your network, but this technique is also
13used by threat actors to avoid detection.
14"""
15false_positives = [
16 """
17 Some networks may utilize these protocols but usage that is unfamiliar to local network administrators can be
18 unexpected and suspicious. Because this port is in the ephemeral range, this rule may false under certain
19 conditions, such as when an application server with a public IP address replies to a client which has used a UDP
20 port in the range by coincidence. This is uncommon but such servers can be excluded.
21 """,
22]
23from = "now-9m"
24index = ["packetbeat-*", "auditbeat-*", "filebeat-*", "logs-network_traffic.*", "logs-panw.*"]
25language = "kuery"
26license = "Elastic License v2"
27name = "IPSEC NAT Traversal Port Activity"
28risk_score = 21
29rule_id = "a9cb3641-ff4b-4cdc-a063-b4b8d02a67c7"
30severity = "low"
31tags = ["Tactic: Command and Control", "Domain: Endpoint", "Use Case: Threat Detection", "Data Source: PAN-OS"]
32timestamp_override = "event.ingested"
33type = "query"
34
35query = '''
36(event.dataset: network_traffic.flow or (event.category: (network or network_traffic))) and network.transport:udp and destination.port:4500
37'''
38
39
40[[rule.threat]]
41framework = "MITRE ATT&CK"
42
43[rule.threat.tactic]
44id = "TA0011"
45name = "Command and Control"
46reference = "https://attack.mitre.org/tactics/TA0011/"
Related rules
- Accepted Default Telnet Port Connection
- Possible FIN7 DGA Command and Control Behavior
- RDP (Remote Desktop Protocol) from the Internet
- Roshal Archive (RAR) or PowerShell File Downloaded from the Internet
- SMTP on Port 26/TCP