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
queryPeriod: 1h
version: 1.0.0
kind: Scheduled
triggerThreshold: 0
relevantTechniques:
- T1485
triggerOperator: gt
entityMappings:
- fieldMappings:
  - identifier: Name
    columnName: AccountCustomEntity
  entityType: Account
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  
name: Snowflake - Possible data destraction
queryFrequency: 1h
requiredDataConnectors:
- connectorId: Snowflake
  dataTypes:
  - Snowflake
description: |
    'Detects possible data destruction.'
status: Available
id: c2f93727-e4b0-4cb9-8f80-f52ebbd96ece
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Snowflake/Analytic Rules/SnowflakePossibleDataDestruction.yaml
tactics:
- Impact
severity: Medium
{
  "$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"
    }
  ]
}