Detectionmediumtest
System Information Discovery Via Sysctl - MacOS
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.
Convert In Phoenix Studio
Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.
Launch
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 Logic2 selectors
detection:
selection_img:
- Image|endswith: '/sysctl'
- CommandLine|contains: 'sysctl'
selection_cmd:
CommandLine|contains:
- 'hw.'
- 'kern.'
- 'machdep.'
condition: all of selection_*False Positives
Legitimate administrative activities
MITRE ATT&CK
Techniques
Sub-techniques
Rule Metadata
Rule ID
6ff08e55-ea53-4f27-94a1-eff92e6d9d5c
Status
test
Level
medium
Type
Detection
Created
Mon May 27
Author
Path
rules/macos/process_creation/proc_creation_macos_sysctl_discovery.yml
Raw Tags
attack.defense-evasionattack.t1497.001attack.discoveryattack.t1082