T1049 System Network Connections Discovery
Adversaries may attempt to get a listing of network connections to or from the compromised system they are currently accessing or from remote systems by querying for information over the network. MITRE ATT&CK
6 Sigma rules T1049 on attack.mitre.org
Sigma rules tagged with it
Command lines CmdID reads as it
Show all TCP sockets connected to the local HTTPS port (443) on the page for ss
ss --tcp src :443IdentifyList files opened by the given command or process on the page for lsof
lsof -c process_or_command_nameIdentifyList files opened by a specific process, given its PID on the page for lsof
lsof -p process_idIdentifyFind the process that is listening on a local IPv6 TCP port and don't convert network or port numbers on the page for lsof
lsof -i6TCP:port -sTCP:LISTEN -n -PIdentifyAnd 35 more examples on CmdID’s program pages.
An example is here when CmdID’s reading of it names T1049: a Sigma rule it trips is tagged with it, or its abuse is documented as it.