Files
splunk-security_content/dev/endpoint/linux_possible_access_to_credential_files.yml
2023-01-20 13:24:15 +01:00

65 lines
2.2 KiB
YAML

name: Linux Possible Access To Credential Files
id: 16107e0e-71fc-11ec-b862-acde48001122
version: 1
date: '2022-01-10'
author: Teoderick Contreras, Splunk
status: production
type: Anomaly
description: This analytic is to detect a possible attempt to dump or access the content
of /etc/passwd and /etc/shadow to enable offline credential cracking. "etc/passwd"
store user information within linux OS while "etc/shadow" contain the user passwords
hash. Adversaries and threat actors may attempt to access this to gain persistence
and/or privilege escalation. This anomaly detection can be a good indicator of possible
credential dumping technique but it might catch some normal administrator automation
scripts or during credential auditing. In this scenario filter is needed.
data_source:
- Sysmon Event ID 1
search:
selection1:
CommandLine:
- '*/etc/shadow*'
- '*/etc/passwd*'
Image|endswith:
- cat
- nano*
- vim*
- vi*
condition: selection1
how_to_implement: To successfully implement this search, you need to be ingesting
logs with the process name, parent process, and command-line executions from your
endpoints. If you are using Sysmon, you can use the Add-on for Linux Sysmon from
Splunkbase.
known_false_positives: Administrator or network operator can execute this command.
Please update the filter macros to remove false positives.
references:
- https://askubuntu.com/questions/445361/what-is-difference-between-etc-shadow-and-etc-passwd
- https://attack.mitre.org/techniques/T1003/008/
tags:
analytic_story:
- Linux Privilege Escalation
- Linux Persistence Techniques
asset_type: Endpoint
confidence: 50
impact: 50
message: A commandline $process$ executed on $dest$
mitre_attack_id:
- T1003.008
- T1003
observable:
- name: dest
type: Hostname
role:
- Victim
product:
- Splunk Enterprise
- Splunk Enterprise Security
- Splunk Cloud
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/T1003.008/copy_file_stdoutpipe/sysmon_linux.log
source: Syslog:Linux-Sysmon/Operational
sourcetype: sysmon_linux