macOS Local Network Configuration Discovery via ARP/ifconfig/netstat/networksetup/defaults
Finds macOS network discovery activity by spotting arp/ifconfig/netstat/networksetup/socketfilterfw and specific firewall preference reads.
- Product
- macos
- Category
- process_creation
- Author
- remotephone, oscd.community (SigmaHQ), DRL 1.1
- Published
- 2020-10-06
- Updated
- 2026-07-31
ATT&CK techniques
DiscoveryRecon
Resource Dev
Initial Access
Execution
Persistence
Priv Esc
Defense Evasion
Cred Access
Lateral Movement
Collection
C2
Exfiltration
Impact
What it detects
This rule identifies process executions on macOS that enumerate local network configuration by running common network tools (arp, ifconfig, netstat, networksetup, socketfilterfw). It also flags use of the defaults command to read application preferences related to the Apple Firewall configuration. Attackers often perform this type of discovery to map network settings and connectivity before further activity, so matching these command patterns can highlight reconnaissance. The detection relies on process creation telemetry with executable paths and command-line content for the defaults invocation, plus parent process context to suppress wifivelocityd-related activity.
Reporting behind it
Changelog
v2- v2Candidate ingested via manual entry.2026-07-31
- v1No changelog recorded for this version.2026-07-30
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.
title: macOS Local Network Configuration Discovery via ARP/ifconfig/netstat/networksetup/defaults
id: c4e737f2-df51-4f08-8198-6069d28f8ec0
status: test
description: This rule identifies process executions on macOS that enumerate local network configuration by running common network tools (arp, ifconfig, netstat, networksetup, socketfilterfw). It also flags use of the defaults command to read application preferences related to the Apple Firewall configuration. Attackers often perform this type of discovery to map network settings and connectivity before further activity, so matching these command patterns can highlight reconnaissance. The detection relies on process creation telemetry with executable paths and command-line content for the defaults invocation, plus parent process context to suppress wifivelocityd-related activity.
references:
- https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1016/T1016.md
- https://github.com/SigmaHQ/sigma/blob/master/rules/macos/process_creation/proc_creation_macos_susp_system_network_discovery.yml
author: remotephone, oscd.community, Huntrule Team
date: 2020-10-06
modified: 2024-08-29
tags:
- attack.discovery
- attack.t1016
logsource:
product: macos
category: process_creation
detection:
selection_1:
Image|endswith:
- /arp
- /ifconfig
- /netstat
- /networksetup
- /socketfilterfw
selection_2:
Image: /usr/bin/defaults
CommandLine|contains|all:
- /Library/Preferences/com.apple.alf
- read
filter_main_wifivelocityd:
ParentImage|endswith: /wifivelocityd
condition: 1 of selection_* and not 1 of filter_main_*
falsepositives:
- Legitimate administration activities
level: informational
license: DRL-1.1
related:
- id: 58800443-f9fc-4d55-ae0c-98a3966dfb97
type: derived