mirror of
https://github.com/splunk/security_content
synced 2026-06-08 17:32:49 +00:00
77 lines
2.6 KiB
YAML
77 lines
2.6 KiB
YAML
name: Batch File Write to System32
|
|
id: 503d17cb-9eab-4cf8-a20e-01d5c6987ae3
|
|
version: 1
|
|
date: '2018-12-14'
|
|
author: Rico Valdez, Splunk
|
|
type: TTP
|
|
datamodel:
|
|
- Endpoint
|
|
description: The search looks for a batch file (.bat) written to the Windows system
|
|
directory tree.
|
|
search: '| tstats `security_content_summariesonly` count min(_time) as firstTime max(_time)
|
|
as lastTime values(Filesystem.dest) as dest values(Filesystem.file_name) as file_name
|
|
values(Filesystem.user) as user from datamodel=Endpoint.Filesystem by Filesystem.file_path
|
|
| `drop_dm_object_name(Filesystem)` | `security_content_ctime(lastTime)` | `security_content_ctime(firstTime)`|
|
|
rex field=file_name "(?<file_extension>\.[^\.]+)$" | search file_path=*system32*
|
|
AND file_extension=.bat | `batch_file_write_to_system32_filter`'
|
|
how_to_implement: You must be ingesting data that records the file-system activity
|
|
from your hosts to populate the Endpoint file-system data-model node. If you are
|
|
using Sysmon, you will need a Splunk Universal Forwarder on each endpoint from which
|
|
you want to collect data.
|
|
known_false_positives: It is possible for this search to generate a notable event
|
|
for a batch file write to a path that includes the string "system32", but is not
|
|
the actual Windows system directory. As such, you should confirm the path of the
|
|
batch file identified by the search. In addition, a false positive may be generated
|
|
by an administrator copying a legitimate batch file in this directory tree. You
|
|
should confirm that the activity is legitimate and modify the search to add exclusions,
|
|
as necessary.
|
|
references: []
|
|
tags:
|
|
analytic_story:
|
|
- SamSam Ransomware
|
|
asset_type: Endpoint
|
|
automated_detection_testing: passed
|
|
cis20:
|
|
- CIS 8
|
|
confidence: 90
|
|
context:
|
|
- Source:Endpoint
|
|
- Stage:Execution
|
|
dataset:
|
|
- https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1204.002/batch_file_in_system32/windows-sysmon.log
|
|
impact: 70
|
|
kill_chain_phases:
|
|
- Delivery
|
|
message: A file - $file_name$ was written to system32 has occurred on endpoint $dest$
|
|
by user $user$.
|
|
mitre_attack_id:
|
|
- T1204.002
|
|
nist:
|
|
- PR.PT
|
|
- DE.CM
|
|
observable:
|
|
- name: user
|
|
type: User
|
|
role:
|
|
- Victim
|
|
- name: dest
|
|
type: Hostname
|
|
role:
|
|
- Victim
|
|
- name: file_name
|
|
type: File Name
|
|
role:
|
|
- Victim
|
|
product:
|
|
- Splunk Enterprise
|
|
- Splunk Enterprise Security
|
|
- Splunk Cloud
|
|
required_fields:
|
|
- _time
|
|
- Filesystem.dest
|
|
- Filesystem.file_name
|
|
- Filesystem.user
|
|
- Filesystem.file_path
|
|
risk_score: 63
|
|
security_domain: endpoint
|