MacOS Network Service Scanning

 Original Source: [Sigma source]
Title: MacOS Network Service Scanning
Status: test
Description:Detects enumeration of local or remote network services.
References:
  -https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1046/T1046.md
Author: Alejandro Ortuno, oscd.community
Date: 2020-10-21
modified:2026-10-19
Tags:
  • -'attack.discovery'
  • -'attack.t1046'
Logsource:
  • category: process_creation
  • product: macos
Detection:
  selection_netcat:
    Image|endswith:
      -'/nc'
      -'/netcat'

  selection_other:
    Image|endswith:
      -'/nmap'
      -'/telnet'

  filter_main_nc_listen:
    CommandLine|re: '\s(?:--listen\b|-[46DdknrtuUvz]{0,10}l[46DdknrtuUvz]{0,10})'
  condition:(selection_netcat and not 1 of filter_main_nc_*) or selection_other
Falsepositives:
  -Legitimate administration activities
Level: low