System Network Connections Discovery - MacOs
A Sigma rule for process creation on macOS, by Daniil Yugoslavskiy, oscd.community.
informational 1 ATT&CK technique 5 programs it names 32 everyday examples trip it
What it looks for
detection:
selection:
Image|endswith:
- '/who'
- '/w'
- '/last'
- '/lsof'
- '/netstat'
condition: selection
The rule’s detection, its selections and fields in order of name. The whole rule, with its references and false positives, is on SigmaHQ, by Daniil Yugoslavskiy, oscd.community, under the Detection Rule License 1.1. CmdID evaluates it on a command line alone: a test on what a command line cannot show, such as the parent process or the user, is not met.
Command lines that trip it
View last login information (e.g., username, terminal, boot time, kernel) of all users as read from /var/log/wtmp on the page for last
lastIdentifyList 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 20 more examples on CmdID’s program pages.
The commands documented for last, lastb trip it too: each is on its program’s page, read by CmdID.