Detection rules › Sigma

Potential Persistence Via PlistBuddy

Status
test
Severity
high
Log source
product macos, category process_creation
Author
Sohan G (D4rkCiph3r)
Source
github.com/SigmaHQ/sigma

Detects potential persistence activity using LaunchAgents or LaunchDaemons via the PlistBuddy utility

MITRE ATT&CK coverage

Event coverage

ProviderEventTitle
ESFexecProcess Execution (Notify)

Rule body yaml

title: Potential Persistence Via PlistBuddy
id: 65d506d3-fcfe-4071-b4b2-bcefe721bbbb
status: test
description: Detects potential persistence activity using LaunchAgents or LaunchDaemons via the PlistBuddy utility
references:
    - https://redcanary.com/blog/clipping-silver-sparrows-wings/
    - https://www.manpagez.com/man/8/PlistBuddy/
author: Sohan G (D4rkCiph3r)
date: 2023-02-18
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.t1543.001
    - attack.t1543.004
logsource:
    category: process_creation
    product: macos
detection:
    selection:
        Image|endswith: '/PlistBuddy'
        CommandLine|contains|all:
            - 'RunAtLoad'
            - 'true'
        CommandLine|contains:
            - 'LaunchAgents'
            - 'LaunchDaemons'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith: '/PlistBuddy'
    CommandLine|contains|all:
        - 'RunAtLoad'
        - 'true'
    CommandLine|contains:
        - 'LaunchAgents'
        - 'LaunchDaemons'

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
CommandLinematch
  • LaunchAgents
  • LaunchDaemons
  • RunAtLoad
  • true
Imageends_with
  • /PlistBuddy