mirror of
https://github.com/splunk/security_content
synced 2026-06-08 17:32:49 +00:00
71 lines
3.0 KiB
YAML
71 lines
3.0 KiB
YAML
name: MacOS plutil
|
|
id: c11f2b57-92c1-4cd2-b46c-064eafb833ac
|
|
version: 7
|
|
date: '2025-05-02'
|
|
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_macro` 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/
|
|
drilldown_searches:
|
|
- name: View the detection results for - "$user$" and "$dest$"
|
|
search: '%original_detection_search% | search user = "$user$" dest = "$dest$"'
|
|
earliest_offset: $info_min_time$
|
|
latest_offset: $info_max_time$
|
|
- name: View risk events for the last 7 days for - "$user$" and "$dest$"
|
|
search: '| from datamodel Risk.All_Risk | search normalized_risk_object IN ("$user$",
|
|
"$dest$") starthoursago=168 | stats count min(_time) as firstTime max(_time)
|
|
as lastTime values(search_name) as "Search Name" values(risk_message) as "Risk
|
|
Message" values(analyticstories) as "Analytic Stories" values(annotations._all)
|
|
as "Annotations" values(annotations.mitre_attack.mitre_tactic) as "ATT&CK Tactics"
|
|
by normalized_risk_object | `security_content_ctime(firstTime)` | `security_content_ctime(lastTime)`'
|
|
earliest_offset: $info_min_time$
|
|
latest_offset: $info_max_time$
|
|
rba:
|
|
message: plutil are executed on $dest$ from $user$
|
|
risk_objects:
|
|
- field: user
|
|
type: user
|
|
score: 25
|
|
- field: dest
|
|
type: system
|
|
score: 25
|
|
threat_objects: []
|
|
tags:
|
|
analytic_story:
|
|
- Living Off The Land
|
|
asset_type: Endpoint
|
|
mitre_attack_id:
|
|
- T1647
|
|
product:
|
|
- Splunk Enterprise
|
|
- Splunk Enterprise Security
|
|
- Splunk Cloud
|
|
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
|