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.

Open in Detection LabConvert ruleBuild Package
Pratinav ChandraCreated 2024-05-276ff08e55-ea53-4f27-94a1-eff92e6d9d5cmacos
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

Rule Metadata
Rule ID
6ff08e55-ea53-4f27-94a1-eff92e6d9d5c
Status
test
Level
medium
Type
Detection
Created
2024-05-27
Path
rules/macos/process_creation/proc_creation_macos_sysctl_discovery.yml
Raw Tags
attack.stealthattack.t1497.001attack.discoveryattack.t1082
View on GitHub