Sigma rule: System Information Discovery Via Sysctl - MacOS

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-38e2dc1443a1, updated 2024-05-27T00:00:00.000Z.

Rule

Title
System Information Discovery Via Sysctl - MacOS
Status
test
Level
medium
Author
Pratinav Chandra
Date
2024-05-27
File
rules/macos/process_creation/proc_creation_macos_sysctl_discovery.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects the execution of "sysctl" with specific arguments that have been used by threat actors and malware. It provides system hardware information.
This process is primarily used to detect and avoid virtualization and analysis environments.

Log source

product
macos
category
process_creation

Detection

selection_img:
    - Image|endswith: '/sysctl'
    - CommandLine|contains: 'sysctl'
selection_cmd:
    CommandLine|contains:
        - 'hw.'
        - 'kern.'
        - 'machdep.'
condition: all of selection_*

False positives (as the rule lists them)

  • Legitimate administrative activities

Tags

  • attack.stealth
  • attack.t1497.001
  • attack.discovery
  • attack.t1082

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/macos/process_creation/proc_creation_macos_sysctl_discovery.yml

Sources and licences

  • SigmaHQ

    "System Information Discovery Via Sysctl - MacOS" by Pratinav Chandra (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/macos/process_creation/proc_creation_macos_sysctl_discovery.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: System Information Discovery Via Sysctl - MacOS",
entity page, dataset version ref-38e2dc1443a1, updated 2024-05-27T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/6ff08e55-ea53-4f27-94a1-eff92e6d9d5c (accessed 2026-11-03).
Underlying source: SigmaHQ rule 6ff08e55-ea53-4f27-94a1-eff92e6d9d5c, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.