Files
blue-team-tools/rules/windows/builtin/application/win_mssql_xp_cmdshell_change.yml
T
Nasreddine Bencherchali 3a1bb6f7de Fix Error in logsource
2022-07-12 16:50:08 +01:00

26 lines
1.0 KiB
YAML

title: MSSQL XPCmdshell Option Change
id: d08dd86f-681e-4a00-a92c-1db218754417
status: experimental
description: Detects when the MSSQL "xp_cmdshell" stored procedure setting is changed
author: Nasreddine Bencherchali
references:
- https://www.netspi.com/blog/technical/network-penetration-testing/sql-server-persistence-part-1-startup-stored-procedures/
- https://thedfirreport.com/2022/07/11/select-xmrig-from-sqlserver/
date: 2022/07/12
logsource:
product: windows
service: application
# warning: The 'data' field used in the detection section is the container for the event data as a whole. You may have to adapt the rule for your backend accordingly
detection:
selection:
Provider_Name: 'MSSQLSERVER'
EventID: 15457
Data|contains: 'xp_cmdshell'
condition: selection
falsepositives:
- Legitimate enable/disable of the setting
- Note that since the event contain the change for both values. This means that this will trigger on both enable and disable
level: high
tags:
- attack.execution