Sigma rule: MSSQL Destructive Query

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-765d419571f2, updated 2025-06-04T00:00:00.000Z.

Rule

Title
MSSQL Destructive Query
Status
experimental
Level
medium
Author
Daniel Degasperi '@d4ns4n_'
Date
2025-06-04
File
rules/windows/builtin/application/mssqlserver/win_mssql_destructive_query.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects the invocation of MS SQL transactions that are destructive towards table or database data, such as "DROP TABLE" or "DROP DATABASE".

Log source

product
windows
service
application
definition
Requirements: MSSQL audit policy must be enabled in order to receive this event (event id 33205)

Detection

selection:
    Provider_Name: 'MSSQLSERVER$AUDIT'
    EventID: 33205
    Data|contains:
        - 'statement:TRUNCATE TABLE'
        - 'statement:DROP TABLE'
        - 'statement:DROP DATABASE'
condition: selection

False positives (as the rule lists them)

  • Legitimate transaction from a sysadmin.

Tags

  • attack.exfiltration
  • attack.impact
  • attack.t1485

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/builtin/application/mssqlserver/win_mssql_destructive_query.yml

Sources and licences

  • SigmaHQ

    "MSSQL Destructive Query" by Daniel Degasperi '@d4ns4n_' (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/builtin/application/mssqlserver/win_mssql_destructive_query.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: MSSQL Destructive Query",
entity page, dataset version ref-765d419571f2, updated 2025-06-04T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/00321fee-ca72-4cce-b011-5415af3b9960 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 00321fee-ca72-4cce-b011-5415af3b9960, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.