Files
splunk-security_content/detections/endpoint/macos_plutil.yml
2024-06-05 21:05:06 +00:00

69 lines
2.3 KiB
YAML

name: MacOS plutil
id: c11f2b57-92c1-4cd2-b46c-064eafb833ac
version: 4
date: '2024-05-22'
author: Patrick Bareiss, Splunk
status: production
type: TTP
description: The following analytic detects the usage of the `plutil` command to modify
plist files on macOS systems. It leverages osquery to monitor process events, specifically
looking for executions of `/usr/bin/plutil`. This activity is significant because
adversaries can use `plutil` to alter plist files, potentially adding malicious
binaries or command-line arguments that execute upon user logon or system startup.
If confirmed malicious, this could allow attackers to achieve persistence, execute
arbitrary code, or escalate privileges, posing a significant threat to the system's
security.
data_source:
- osquery
search: '`osquery` name=es_process_events columns.path=/usr/bin/plutil | rename columns.*
as * | stats count min(_time) as firstTime max(_time) as lastTime by username host
cmdline pid path parent signing_id | rename username as user, cmdline as process,
path as process_path, host as dest | `security_content_ctime(firstTime)`| `security_content_ctime(lastTime)`
| `macos_plutil_filter`'
how_to_implement: This detection uses osquery and endpoint security on MacOS. Follow
the link in references, which describes how to setup process auditing in MacOS with
endpoint security and osquery.
known_false_positives: Administrators using plutil to change plist files.
references:
- https://osquery.readthedocs.io/en/stable/deployment/process-auditing/
tags:
analytic_story:
- Living Off The Land
asset_type: Endpoint
confidence: 50
impact: 50
message: plutil are executed on $dest$ from $user$
mitre_attack_id:
- T1647
observable:
- name: user
type: User
role:
- Victim
- name: dest
type: Hostname
role:
- Victim
product:
- Splunk Enterprise
- Splunk Enterprise Security
- Splunk Cloud
required_fields:
- _time
- columns.cmdline
- columns.pid
- columns.parent
- columns.path
- columns.signing_id
- columns.username
- host
risk_score: 25
security_domain: endpoint
tests:
- name: True Positive Test
attack_data:
- data:
https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1647/atomic_red_team/osquery.log
source: osquery
sourcetype: osquery:results