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

BloodHound Enterprise - Number of Tier Zero assets increase

Back
Id13424be6-aed7-448b-afe5-c03d8b29b4fe
RulenameBloodHound Enterprise - Number of Tier Zero assets increase
DescriptionThe number of Tier Zero assets has increased by more than 5% over the past 7 days.
SeverityMedium
Required data connectorsBloodHoundEnterprise
KindScheduled
Query frequency7d
Query period7d
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Solutions/BloodHound Enterprise/Analytic Rules/BloodHoundEnterpriseTierZeroAssets.yaml
Version1.0.1
Arm template13424be6-aed7-448b-afe5-c03d8b29b4fe.json
Deploy To Azure
BloodHoundEnterprise
| where data_type == "posture"
| where created_at > ago (7d)
| summarize min_tier_zero = min(tier_zero_count), max_tier_zero = arg_max(created_at, current_tier_zero = tier_zero_count) by domain_name
| extend percent_difference = ((current_tier_zero - min_tier_zero) / min_tier_zero) * 100
| where percent_difference > 5
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/BloodHound Enterprise/Analytic Rules/BloodHoundEnterpriseTierZeroAssets.yaml
requiredDataConnectors:
- connectorId: BloodHoundEnterprise
  dataTypes:
  - BloodHoundEnterprise
query: |
  BloodHoundEnterprise
  | where data_type == "posture"
  | where created_at > ago (7d)
  | summarize min_tier_zero = min(tier_zero_count), max_tier_zero = arg_max(created_at, current_tier_zero = tier_zero_count) by domain_name
  | extend percent_difference = ((current_tier_zero - min_tier_zero) / min_tier_zero) * 100
  | where percent_difference > 5  
id: 13424be6-aed7-448b-afe5-c03d8b29b4fe
severity: Medium
queryFrequency: 7d
relevantTechniques: []
tactics: []
triggerThreshold: 0
description: |
    'The number of Tier Zero assets has increased by more than 5% over the past 7 days.'
status: Available
name: BloodHound Enterprise - Number of Tier Zero assets increase
version: 1.0.1
entityMappings:
- fieldMappings:
  - identifier: DomainName
    displayName: domain_name
  entityType: DNS
kind: Scheduled
triggerOperator: gt
queryPeriod: 7d
{
  "$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/13424be6-aed7-448b-afe5-c03d8b29b4fe')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/13424be6-aed7-448b-afe5-c03d8b29b4fe')]",
      "properties": {
        "alertRuleTemplateName": "13424be6-aed7-448b-afe5-c03d8b29b4fe",
        "customDetails": null,
        "description": "'The number of Tier Zero assets has increased by more than 5% over the past 7 days.'\n",
        "displayName": "BloodHound Enterprise - Number of Tier Zero assets increase",
        "enabled": true,
        "entityMappings": [
          {
            "entityType": "DNS",
            "fieldMappings": [
              {
                "displayName": "domain_name",
                "identifier": "DomainName"
              }
            ]
          }
        ],
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/BloodHound Enterprise/Analytic Rules/BloodHoundEnterpriseTierZeroAssets.yaml",
        "query": "BloodHoundEnterprise\n| where data_type == \"posture\"\n| where created_at > ago (7d)\n| summarize min_tier_zero = min(tier_zero_count), max_tier_zero = arg_max(created_at, current_tier_zero = tier_zero_count) by domain_name\n| extend percent_difference = ((current_tier_zero - min_tier_zero) / min_tier_zero) * 100\n| where percent_difference > 5\n",
        "queryFrequency": "P7D",
        "queryPeriod": "P7D",
        "severity": "Medium",
        "status": "Available",
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [],
        "techniques": [],
        "templateVersion": "1.0.1",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}