{"id":"00321fee-ca72-4cce-b011-5415af3b9960","title":"MSSQL Destructive Query","description":"Detects the invocation of MS SQL transactions that are destructive towards table or database data, such as \"DROP TABLE\" or \"DROP DATABASE\".\n","author":"Daniel Degasperi '@d4ns4n_'","status":"experimental","level":"medium","date":"2025-06-04","modified":"","tags":["attack.exfiltration","attack.impact","attack.t1485"],"technique_ids":["T1485"],"logsource":{"product":"windows","service":"application","definition":"Requirements: MSSQL audit policy must be enabled in order to receive this event (event id 33205)"},"falsepositives":["Legitimate transaction from a sysadmin."],"references":["https://learn.microsoft.com/en-us/sql/t-sql/statements/drop-table-transact-sql?view=sql-server-ver16","https://learn.microsoft.com/en-us/sql/t-sql/statements/drop-database-transact-sql?view=sql-server-ver16","https://learn.microsoft.com/en-us/sql/t-sql/statements/truncate-table-transact-sql?view=sql-server-ver16"],"source_path":"rules/windows/builtin/application/mssqlserver/win_mssql_destructive_query.yml","source_sha256":"809cb3ce6cccae3f40b23635c4aeb618ac8827dda92c13d04e12a3a64e523c1f","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/builtin/application/mssqlserver/win_mssql_destructive_query.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: MSSQL Destructive Query\nid: 00321fee-ca72-4cce-b011-5415af3b9960\nstatus: experimental\ndescription: |\n    Detects the invocation of MS SQL transactions that are destructive towards table or database data, such as \"DROP TABLE\" or \"DROP DATABASE\".\nreferences:\n    - https://learn.microsoft.com/en-us/sql/t-sql/statements/drop-table-transact-sql?view=sql-server-ver16\n    - https://learn.microsoft.com/en-us/sql/t-sql/statements/drop-database-transact-sql?view=sql-server-ver16\n    - https://learn.microsoft.com/en-us/sql/t-sql/statements/truncate-table-transact-sql?view=sql-server-ver16\nauthor: Daniel Degasperi '@d4ns4n_'\ndate: 2025-06-04\ntags:\n    - attack.exfiltration\n    - attack.impact\n    - attack.t1485\nlogsource:\n    product: windows\n    service: application\n    definition: 'Requirements: MSSQL audit policy must be enabled in order to receive this event (event id 33205)'\ndetection:\n    selection:\n        Provider_Name: 'MSSQLSERVER$AUDIT'\n        EventID: 33205\n        Data|contains:\n            - 'statement:TRUNCATE TABLE'\n            - 'statement:DROP TABLE'\n            - 'statement:DROP DATABASE'\n    condition: selection\nfalsepositives:\n    - Legitimate transaction from a sysadmin.\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1485","id":"T1485","name":"Data Destruction","page":"techniques/enterprise/T1485/"}],"data_path":"data/detection-rules/00321fee-ca72-4cce-b011-5415af3b9960.json","kind":"sigma"}
