[metadata]
creation_date = "2020/02/18"
maturity = "production"
updated_date = "2020/11/03"

[rule]
author = ["Elastic"]
description = """
TCP Port 8000 is commonly used for development environments of web server software. It generally should not be exposed
directly to the Internet. If you are running software like this on the Internet, you should consider placing it behind a
reverse proxy.
"""
false_positives = [
    """
    Because this port is in the ephemeral range, this rule may false under certain conditions, such as when a NATed web
    server replies to a client which has used a port in the range by coincidence. In this case, such servers can be
    excluded. Some applications may use this port but this is very uncommon and usually appears in local traffic using
    private IPs, which this rule does not match. Some cloud environments, particularly development environments, may use
    this port when VPNs or direct connects are not in use and cloud instances are accessed across the Internet.
    """,
]
index = ["filebeat-*", "packetbeat-*", "logs-endpoint.events.*"]
language = "kuery"
license = "Elastic License"
name = "TCP Port 8000 Activity to the Internet"
risk_score = 21
rule_id = "08d5d7e2-740f-44d8-aeda-e41f4263efaf"
severity = "low"
tags = ["Elastic", "Host", "Network", "Threat Detection", "Command and Control"]
type = "query"

query = '''
event.category:(network or network_traffic) and network.transport:tcp and destination.port:8000 and
  source.ip:(
    10.0.0.0/8 or
    172.16.0.0/12 or
    192.168.0.0/16
  ) and
  not destination.ip:(
    10.0.0.0/8 or
    127.0.0.0/8 or
    169.254.0.0/16 or
    172.16.0.0/12 or
    192.168.0.0/16 or
    224.0.0.0/4 or
    "::1" or
    "FE80::/10" or
    "FF00::/8"
  )
'''


[[rule.threat]]
framework = "MITRE ATT&CK"

[rule.threat.tactic]
id = "TA0011"
name = "Command and Control"
reference = "https://attack.mitre.org/tactics/TA0011/"

