Back
Idbc489413-747f-41c7-bfe7-0ab66ded788e
RulenamePulumi Cloud - Stack deleted
DescriptionIdentifies deletion of a Pulumi stack. Stack deletion is a destructive operation that removes the stack’s infrastructure state, and may be legitimate maintenance or unauthorized activity.
SeverityMedium
TacticsImpact
TechniquesT1485
Required data connectorsPulumiAuditLogsDefinition
KindScheduled
Query frequency1h
Query period1h
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Solutions/PulumiCloudAuditLogs/Analytic%20Rules/StackDeletion.yaml
Version1.0.0
Arm templatebc489413-747f-41c7-bfe7-0ab66ded788e.json
Deploy To Azure
PulumiAuditLogs_CL
| where Event_s == "stack-deleted"
entityMappings:
- fieldMappings:
  - identifier: Name
    columnName: UserLogin_s
  entityType: Account
- fieldMappings:
  - identifier: Address
    columnName: SourceIP_s
  entityType: IP
id: bc489413-747f-41c7-bfe7-0ab66ded788e
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/PulumiCloudAuditLogs/Analytic%20Rules/StackDeletion.yaml
triggerOperator: gt
tactics:
- Impact
kind: Scheduled
requiredDataConnectors:
- dataTypes:
  - PulumiAuditLogs_CL
  connectorId: PulumiAuditLogsDefinition
queryPeriod: 1h
severity: Medium
relevantTechniques:
- T1485
triggerThreshold: 0
version: 1.0.0
name: Pulumi Cloud - Stack deleted
status: Available
query: |
  PulumiAuditLogs_CL
  | where Event_s == "stack-deleted"
description: |
  Identifies deletion of a Pulumi stack. Stack deletion is a destructive operation that removes the stack's infrastructure state, and may be legitimate maintenance or unauthorized activity.
queryFrequency: 1h
{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workspace": {
      "type": "String"
    }
  },
  "resources": [
    {
      "apiVersion": "2024-01-01-preview",
      "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/providers', parameters('workspace'), 'Microsoft.SecurityInsights'),'/alertRules/bc489413-747f-41c7-bfe7-0ab66ded788e')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/bc489413-747f-41c7-bfe7-0ab66ded788e')]",
      "properties": {
        "alertRuleTemplateName": "bc489413-747f-41c7-bfe7-0ab66ded788e",
        "customDetails": null,
        "description": "Identifies deletion of a Pulumi stack. Stack deletion is a destructive operation that removes the stack's infrastructure state, and may be legitimate maintenance or unauthorized activity.\n",
        "displayName": "Pulumi Cloud - Stack deleted",
        "enabled": true,
        "entityMappings": [
          {
            "entityType": "Account",
            "fieldMappings": [
              {
                "columnName": "UserLogin_s",
                "identifier": "Name"
              }
            ]
          },
          {
            "entityType": "IP",
            "fieldMappings": [
              {
                "columnName": "SourceIP_s",
                "identifier": "Address"
              }
            ]
          }
        ],
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/PulumiCloudAuditLogs/Analytic%20Rules/StackDeletion.yaml",
        "query": "PulumiAuditLogs_CL\n| where Event_s == \"stack-deleted\"\n",
        "queryFrequency": "PT1H",
        "queryPeriod": "PT1H",
        "severity": "Medium",
        "status": "Available",
        "subTechniques": [],
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [
          "Impact"
        ],
        "techniques": [
          "T1485"
        ],
        "templateVersion": "1.0.0",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}