MacOS Sysctl Usage for System Discovery (hw., kern., machdep.)

Flags macOS sysctl commands querying hw., kern., or machdep. values for system discovery.

FreeReviewedSigma · Medium · v2
Product
macos
Category
process_creation
Author
Pratinav Chandra (SigmaHQ), DRL 1.1
Published
2024-05-27
Updated
2026-07-31

ATT&CK techniques

Defense Evasion → Discovery
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Cred Access

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule flags execution of the sysctl utility on macOS where the command line includes sysctl and specific sysctl namespaces (hw., kern., machdep.). Attackers commonly use this local system information discovery to tailor behavior and evade analysis or virtualization environments. Telemetry relied upon is process creation data with process path and full command line arguments.

Related detections9 linkedT1082 — drag to rearrange
Suspicious System Profiler Hardware Enumeration (via process_creation)
macOS Process Execution of system_profiler for System Discovery via Specific Data Types
Malicious Turla Kopiluwak Reconnaissance Output to Windows Temp via process_creation
Suspicious HeartCrypt Sandbox Detection DLL Load
Possible DarkCloud Geo-IP Lookup to showip.net
Suspicious Windows Defender Support Directory Enumeration via Process Creation
Suspicious System Reconnaissance via Windows Script Host
Suspicious Host Reconnaissance Command Chain via cmd
Malicious DinodasRAT Hidden Config File Creation on Linux (via file_event)
MacOS Sysctl Usage for System Discovery (hw., kern., machdep.)
Pivot detection · T1082 · 9 related

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. v1
    No 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.