System Network Connections Discovery

Last updated 21 days ago on 2025-12-24
Created 3 years ago on 2023-07-11

About

Adversaries may attempt to get a listing of network connections to or from a compromised system.
Tags
Domain: EndpointOS: LinuxOS: macOSUse Case: Threat DetectionTactic: DiscoveryRule Type: BBRData Source: Elastic DefendLanguage: kuery
Severity
low
Risk Score
21
MITRE ATT&CK™

Discovery (TA0007)(external, opens in a new tab or window)

License
Elastic License v2(external, opens in a new tab or window)

Definition

Rule Type
New Terms Rule
Integration Pack
Prebuilt Security Detection Rules
Index Patterns
logs-endpoint.events.*
Related Integrations

endpoint(external, opens in a new tab or window)

Query
text code block:
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") )

Install detection rules in Elastic Security

Detect System Network Connections Discovery in the Elastic Security detection engine by installing this rule into your Elastic Stack.

To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).