Detectionlowtest

MacOS Network Service Scanning

Detects enumeration of local or remote network services.

Open in Detection LabConvert ruleBuild Package
Alejandro Ortuno, oscd.communityCreated 2020-10-21Updated 2026-10-1984bae5d4-b518-4ae0-b331-6d4afd34d00fmacos
Log Source
macOSProcess Creation
ProductmacOS← raw: macos
CategoryProcess Creation← raw: process_creation

Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.

Detection Logic
Detection Logic3 selectors
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
False Positives

Legitimate administration activities

Rule Metadata
Rule ID
84bae5d4-b518-4ae0-b331-6d4afd34d00f
Status
test
Level
low
Type
Detection
Created
2020-10-21
Modified
2026-10-19
Path
rules/macos/process_creation/proc_creation_macos_network_service_scanning.yml
Raw Tags
attack.discoveryattack.t1046
View on GitHub