Microsoft Sentinel Analytic Rules
cloudbrothers.infoAzure Sentinel RepoToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Snowflake - Possible data destraction

Back
Idc2f93727-e4b0-4cb9-8f80-f52ebbd96ece
RulenameSnowflake - Possible data destraction
DescriptionDetects possible data destruction.
SeverityMedium
TacticsImpact
TechniquesT1485
Required data connectorsSnowflake
KindScheduled
Query frequency1h
Query period1h
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Snowflake/Analytic Rules/SnowflakePossibleDataDestruction.yaml
Version1.0.0
Arm templatec2f93727-e4b0-4cb9-8f80-f52ebbd96ece.json
Deploy To Azure
let threshold = 10;
Snowflake
| where QUERY_TYPE_s =~ 'DROP'
| where EXECUTION_STATUS_s =~ 'SUCCESS'
| summarize count() by TargetUsername, bin(TimeGenerated, 5m)
| where count_ > threshold
| extend AccountCustomEntity = TargetUsername
requiredDataConnectors:
- connectorId: Snowflake
  dataTypes:
  - Snowflake
triggerOperator: gt
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Snowflake/Analytic Rules/SnowflakePossibleDataDestruction.yaml
version: 1.0.0
status: Available
queryPeriod: 1h
severity: Medium
relevantTechniques:
- T1485
tactics:
- Impact
kind: Scheduled
queryFrequency: 1h
description: |
    'Detects possible data destruction.'
query: |
  let threshold = 10;
  Snowflake
  | where QUERY_TYPE_s =~ 'DROP'
  | where EXECUTION_STATUS_s =~ 'SUCCESS'
  | summarize count() by TargetUsername, bin(TimeGenerated, 5m)
  | where count_ > threshold
  | extend AccountCustomEntity = TargetUsername  
id: c2f93727-e4b0-4cb9-8f80-f52ebbd96ece
triggerThreshold: 0
entityMappings:
- fieldMappings:
  - identifier: Name
    columnName: AccountCustomEntity
  entityType: Account
name: Snowflake - Possible data destraction
{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workspace": {
      "type": "String"
    }
  },
  "resources": [
    {
      "apiVersion": "2023-02-01-preview",
      "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/providers', parameters('workspace'), 'Microsoft.SecurityInsights'),'/alertRules/c2f93727-e4b0-4cb9-8f80-f52ebbd96ece')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/c2f93727-e4b0-4cb9-8f80-f52ebbd96ece')]",
      "properties": {
        "alertRuleTemplateName": "c2f93727-e4b0-4cb9-8f80-f52ebbd96ece",
        "customDetails": null,
        "description": "'Detects possible data destruction.'\n",
        "displayName": "Snowflake - Possible data destraction",
        "enabled": true,
        "entityMappings": [
          {
            "entityType": "Account",
            "fieldMappings": [
              {
                "columnName": "AccountCustomEntity",
                "identifier": "Name"
              }
            ]
          }
        ],
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Snowflake/Analytic Rules/SnowflakePossibleDataDestruction.yaml",
        "query": "let threshold = 10;\nSnowflake\n| where QUERY_TYPE_s =~ 'DROP'\n| where EXECUTION_STATUS_s =~ 'SUCCESS'\n| summarize count() by TargetUsername, bin(TimeGenerated, 5m)\n| where count_ > threshold\n| extend AccountCustomEntity = TargetUsername\n",
        "queryFrequency": "PT1H",
        "queryPeriod": "PT1H",
        "severity": "Medium",
        "status": "Available",
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [
          "Impact"
        ],
        "techniques": [
          "T1485"
        ],
        "templateVersion": "1.0.0",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}