Files
splunk-security_content/detections/endpoint/powershell_windows_defender_exclusion_commands.yml
2022-11-29 11:58:02 -06:00

70 lines
2.6 KiB
YAML

name: Powershell Windows Defender Exclusion Commands
id: 907ac95c-4dd9-11ec-ba2c-acde48001122
version: 1
date: '2021-11-25'
author: Teoderick Contreras, Splunk
type: TTP
datamodel:
- Endpoint
description: This analytic will detect a suspicious process commandline related to
windows defender exclusion feature. This command is abused by adversaries, malware
author and red teams to bypassed Windows Defender Anti-Virus product by excluding folder
path, file path, process, extensions and etc. from its real time or schedule scan
to execute their malicious code. This is a good indicator for defense evasion and
to look further for events after this behavior.
search: '`powershell` EventCode=4104 (Message = "*Add-MpPreference *" OR Message =
"*Set-MpPreference *") AND Message = "*-exclusion*" | stats count min(_time) as
firstTime max(_time) as lastTime by EventCode Message ComputerName User | `security_content_ctime(firstTime)`
| `security_content_ctime(lastTime)` | `powershell_windows_defender_exclusion_commands_filter`'
how_to_implement: To successfully implement this search you need to be ingesting information
on process that include the name of the process responsible for the changes from
your endpoints into the `Endpoint` datamodel in the `Registry` node. Also make sure
that this registry was included in your config files ex. sysmon config to be monitored.
known_false_positives: admin or user may choose to use this windows features.
references:
- https://tccontre.blogspot.com/2020/01/remcos-rat-evading-windows-defender-av.html
- https://app.any.run/tasks/cf1245de-06a7-4366-8209-8e3006f2bfe5/
- https://www.microsoft.com/security/blog/2022/01/15/destructive-malware-targeting-ukrainian-organizations/
tags:
analytic_story:
- Remcos
- Windows Defense Evasion Tactics
- WhisperGate
- CISA AA22-320A
- AgentTesla
confidence: 80
context:
- Source:Endpoint
- Stage:Defense Evasion
dataset:
- https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1562.001/defender_exclusion_powershell/powershell.log
impact: 80
kill_chain_phases:
- Exploitation
message: exclusion command $Message$ executed on $ComputerName$
mitre_attack_id:
- T1562.001
- T1562
observable:
- name: User
type: User
role:
- Victim
- name: ComputerName
type: Hostname
role:
- Victim
product:
- Splunk Enterprise
- Splunk Enterprise Security
- Splunk Cloud
required_fields:
- _time
- EventCode
- Message
- ComputerName
- User
risk_score: 64
security_domain: endpoint
asset_type: Endpoint