Threaticon
Toggle sidebar

You're viewing a limited, public preview. Log in for full access.

Log in User Guide
Log in Get started
Detection Strategies DET0181 — Detection Strategy for SQL Stored Procedures Abuse via T1505.001
DET0181

Detection Strategy for SQL Stored Procedures Abuse via T1505.001

2 analytic(s) · 1 technique(s) detected

Analytics

2
AN0511 Analytic 0511
Windows

Creation or modification of stored procedures invoking xp_cmdshell or CLR assemblies for command execution and persistence.

WinEventLog:Application Stored procedure creation, modification, or xp_cmdshell invocation via SQL logs or SQL Server auditing WinEventLog:Sysmon EventCode=1 WinEventLog:Application CLR Assembly creation, loading, or modification logs via MSSQL CLR integration
[xp_cmdshell_invocation_threshold] Adjust if legitimate procedures use xp_cmdshell often in environment
[CLRAssemblyNameWhitelist] Organization-defined whitelist of legitimate CLR assemblies
[TimeWindow] Tune time window to correlate stored procedure creation with process execution
AN0512 Analytic 0512
Linux

SQL stored procedures that invoke OS-level commands via `xp_cmdshell` equivalent or via UDF (User-Defined Functions) mechanisms.

auditd:SYSCALL execve ApplicationLogs:SQL Stored procedure creation or modification with shell invocation (e.g., system(), exec())
[CommandRegex] Regex used to detect suspicious OS commands via SQL
[TimeWindow] Window for correlating procedure creation and command execution

Detected Techniques

1

Details

MITRE ID
DET0181
STIX ID
x-mitre-detection-strategy--101bde37-6150-45c6-bf88-3a8cda39b2f0
Analytics
2
Techniques Detected
1
By Tactic
Persistence
1
Leaving Threaticon

This link opens an external site that isn't part of the platform.