Files
splunk-security_content/detections/process_launching_netsh.yml
2019-12-11 15:14:49 -05:00

119 lines
3.9 KiB
YAML

asset_type: Endpoint
baselines:
- id: fc0edc95-ff2b-48b0-9f6f-63da3789fd23
name: Previously seen command line arguments
type: splunk
- id: df98763b-0b08-4281-8ef9-08db7ac572a9
name: Baseline of SMB Traffic - MLTK
type: splunk
confidence: medium
creation_date: '2017-01-08'
data_metadata:
data_models:
- Endpoint
data_source:
- Endpoint Intel
providing_technologies:
- Carbon Black Response
- CrowdStrike Falcon
- Sysmon
- Tanium
- Ziften
description: This search looks for processes launching netsh.exe. Netsh is a command-line
scripting utility that allows you to, either locally or remotely, display or modify
the network configuration of a computer that is currently running. Netsh can be
used as a persistence proxy technique to execute a helper DLL when netsh.exe is
executed. In this search, we are looking for processes spawned by netsh.exe and
executing commands via the command line.
detect:
splunk:
correlation_rule:
notable:
nes_fields: dest, process, parent_process, cmdline
rule_description: 'A process detected on $dest$ is launching netsh.exe. '
rule_title: Process launching netsh.exe detected on $dest$
risk:
risk_object: dest
risk_object_type:
- system
risk_score: 50
schedule:
cron_schedule: 0 * * * *
earliest_time: -70m@m
latest_time: -10m@m
search: '| tstats `security_content_summariesonly` count values(Processes.process) min(_time)
as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where
Processes.process=netsh.exe by Processes.parent_process Processes.process_name
Processes.user Processes.dest | `drop_dm_object_name("Processes")` | `security_content_ctime(firstTime)`|`security_content_ctime(lastTime)`'
suppress:
suppress_fields: dest, parent_process
suppress_period: 86400s
eli5: This search looks for all the parent processes of netsh.exe and returns that
process, the command-line used to execute it, the host name, and the user context
under which it ran.
entities:
- dest
how_to_implement: To successfully implement this search, you must be ingesting data
that records process activity from your hosts to populate the endpoint data model
id: b89919ed-fe5f-492c-b139-95dbb162040e
investigations:
- id: bc91a8cf-35e7-4bb2-8140-e756cc06fd76
name: Get Authentication Logs For Endpoint
type: splunk
- id: fecf2918-670d-4f1c-872b-3d7317a41bf9
name: Get Parent Process Info
type: splunk
- id: fdcfb369-1725-4c24-824a-22972d7f0d55
name: Get Risk Modifiers For User
type: splunk
- id: bc91a8cf-35e7-4bb2-8140-e756cc06fd71
name: Get Process Info
type: splunk
- id: 3d6c3213-5fff-4a1e-b57d-b24c262171e7
name: Get Notable History
type: splunk
- id: f3fb4d1b-5f33-4b01-b541-c7af9534c242
name: Get Notable Info
type: splunk
- id: fdcfb369-1725-4c24-824a-22972d7f0d65
name: Get Risk Modifiers For Endpoint
type: splunk
- id: bc91a8cf-35e7-4bb2-8140-e756cc06fd74
name: Get User Information from Identity Table
type: splunk
- id: bc91a8cf-35e7-4bb2-8140-e756cc06fd22
name: Investigate Web Activity From Host
type: splunk
known_false_positives: Some VPN applications are known to launch netsh.exe. Outside
of these instances, it is unusual for an executable to launch netsh.exe and run
commands.
maintainers:
- company: Splunk
email: bpatel@splunk.com
name: Bhavin Patel
mappings:
cis20:
- CIS 8
kill_chain_phases:
- Actions on Objectives
mitre_attack:
- Execution
- Command-Line Interface
- Persistence
- Defense Evasion
- Disabling Security Tools
nist:
- PR.PT
- DE.CM
modification_date: '2018-11-02'
name: Processes launching netsh
original_authors:
- company: Splunk
email: bpatel@splunk.com
name: Bhavin Patel
references: []
security_domain: endpoint
spec_version: 2
type: splunk
version: '2.0'