Possible System Information Enumeration Via sw_vers (via process_creation)

This rule detects the use of "sw_vers" for system information discovery

SigmamediummacOSv1
sigma
title: Possible System Information Enumeration Via sw_vers (via process_creation)
id: 0f8e2575-a5ed-51c7-9c16-4a53b3289a89
status: stable
description: This rule detects the use of "sw_vers" for system information discovery
references:
    - https://attack.mitre.org/techniques/T1082/
    - https://www.virustotal.com/gui/file/d3fa64f63563fe958b75238742d1e473800cb5f49f5cb79d38d4aa3c93709026/behavior
    - https://www.virustotal.com/gui/file/03b71eaceadea05bc0eea5cddecaa05f245126d6b16cfcd0f3ba0442ac58dab3/behavior
    - https://ss64.com/osx/sw_vers.html
author: Huntrule Team
date: 2026-05-08
tags:
    - attack.discovery
    - attack.t1082
logsource:
    product: macos
    category: process_creation
detection:
    selection_image:
        Image|endswith: '/sw_vers'
    selection_options:
        CommandLine|contains:
            - '-buildVersion'
            - '-productName'
            - '-productVersion'
    condition: all of selection_*
falsepositives:
    - Unknown
level: medium

Known false positives

  • Unknown

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.