Files
sigma-rules/rules_building_block/discovery_system_network_connections.toml
T

65 lines
1.9 KiB
TOML
Raw Normal View History

2023-07-19 21:27:23 +05:30
[metadata]
creation_date = "2023/07/11"
2026-01-07 16:52:40 +01:00
integration = ["endpoint"]
2023-07-19 21:27:23 +05:30
maturity = "production"
2026-01-07 16:52:40 +01:00
updated_date = "2025/12/24"
2023-07-19 21:27:23 +05:30
[rule]
author = ["Elastic"]
building_block_type = "default"
2026-01-07 16:52:40 +01:00
description = """
Adversaries may attempt to get a listing of network connections to or from a compromised system.
"""
2023-07-19 21:27:23 +05:30
from = "now-119m"
2026-01-07 16:52:40 +01:00
index = ["logs-endpoint.events.*"]
2024-05-23 00:45:10 +05:30
interval = "60m"
2026-01-07 16:52:40 +01:00
language = "kuery"
2023-07-19 21:27:23 +05:30
license = "Elastic License v2"
name = "System Network Connections Discovery"
risk_score = 21
rule_id = "e2dc8f8c-5f16-42fa-b49e-0eb8057f7444"
severity = "low"
2024-03-07 12:35:33 +01:00
tags = [
2024-05-23 00:45:10 +05:30
"Domain: Endpoint",
"OS: Linux",
"OS: macOS",
"Use Case: Threat Detection",
"Tactic: Discovery",
"Rule Type: BBR",
"Data Source: Elastic Defend",
]
2023-07-19 21:27:23 +05:30
timestamp_override = "event.ingested"
2026-01-07 16:52:40 +01:00
type = "new_terms"
2023-07-19 21:27:23 +05:30
query = '''
2026-01-07 16:52:40 +01:00
event.category:process and host.os.type:(linux or macos) and event.type:start and event.action:exec and
process.name:("netstat" or "lsof" or "ss" or "iftop" or "ip" or "nmcli" or "arp" or "route" or "ifconfig" or "netcfg" or "networksetup") and
not (
process.parent.executable:(
/Library/Elastic/Agent/* or "/Applications/Docker.app/Contents/MacOS/com.docker.backend" or
"/opt/NinjaRMMAgent/programfiles/ninjarmm-linagent" or "/usr/local/ASR/Vx/bin/svagents"
) or
process.working_directory:("/var/ossec" or "/usr/lib/check_mk_agent/plugins" or "/opt/microsoft/mdatp/sbin")
)
2023-07-19 21:27:23 +05:30
'''
[[rule.threat]]
framework = "MITRE ATT&CK"
2026-01-07 16:52:40 +01:00
2023-07-19 21:27:23 +05:30
[[rule.threat.technique]]
id = "T1049"
name = "System Network Connections Discovery"
reference = "https://attack.mitre.org/techniques/T1049/"
[rule.threat.tactic]
id = "TA0007"
name = "Discovery"
reference = "https://attack.mitre.org/tactics/TA0007/"
2024-05-23 00:45:10 +05:30
2026-01-07 16:52:40 +01:00
[rule.new_terms]
field = "new_terms_fields"
value = ["process.parent.executable", "process.command_line", "agent.id"]
[[rule.new_terms.history_window_start]]
field = "history_window_start"
value = "now-5d"