Dataverse - Audit log data deletion
Id | f1634822-b7e9-44f5-95ac-fa4a04f14513 |
Rulename | Dataverse - Audit log data deletion |
Description | Identifies audit log data deletion activity in Dataverse. |
Severity | Low |
Tactics | DefenseEvasion |
Techniques | T1070 |
Required data connectors | Dataverse |
Kind | Scheduled |
Query frequency | 1h |
Query period | 14d |
Trigger threshold | 0 |
Trigger operator | gt |
Source Uri | https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Microsoft Business Applications/Analytic Rules/Dataverse - Audit log data deletion.yaml |
Version | 3.2.0 |
Arm template | f1634822-b7e9-44f5-95ac-fa4a04f14513.json |
let query_frequency = 1h;
DataverseActivity
| where TimeGenerated >= ago(query_frequency)
| where Message =~ 'DeleteRecordChangeHistory' or Message =~ 'DeleteAuditData'
| extend CloudAppId = int(32780)
| extend AccountName = tostring(split(UserId, "@")[0])
| extend UPNSuffix = tostring(split(UserId, "@")[1])
| project
TimeGenerated,
UserId,
ClientIp,
UserAgent,
Message,
EntityName,
InstanceUrl,
AccountName,
UPNSuffix,
CloudAppId
relevantTechniques:
- T1070
name: Dataverse - Audit log data deletion
queryPeriod: 14d
triggerThreshold: 0
alertDetailsOverride:
alertDescriptionFormat: User {{UserId}} deleted audit log data in {{InstanceUrl}}. The message type is {{Message}}.
alertDisplayNameFormat: Dataverse - Audit logs deleted in {{InstanceUrl}}
id: f1634822-b7e9-44f5-95ac-fa4a04f14513
eventGroupingSettings:
aggregationKind: SingleAlert
severity: Low
requiredDataConnectors:
- dataTypes:
- DataverseActivity
connectorId: Dataverse
description: Identifies audit log data deletion activity in Dataverse.
version: 3.2.0
status: Available
entityMappings:
- entityType: Account
fieldMappings:
- columnName: AccountName
identifier: Name
- columnName: UPNSuffix
identifier: UPNSuffix
- entityType: CloudApplication
fieldMappings:
- columnName: CloudAppId
identifier: AppId
- columnName: InstanceUrl
identifier: InstanceName
- entityType: IP
fieldMappings:
- columnName: ClientIp
identifier: Address
tactics:
- DefenseEvasion
query: |
let query_frequency = 1h;
DataverseActivity
| where TimeGenerated >= ago(query_frequency)
| where Message =~ 'DeleteRecordChangeHistory' or Message =~ 'DeleteAuditData'
| extend CloudAppId = int(32780)
| extend AccountName = tostring(split(UserId, "@")[0])
| extend UPNSuffix = tostring(split(UserId, "@")[1])
| project
TimeGenerated,
UserId,
ClientIp,
UserAgent,
Message,
EntityName,
InstanceUrl,
AccountName,
UPNSuffix,
CloudAppId
kind: Scheduled
triggerOperator: gt
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Microsoft Business Applications/Analytic Rules/Dataverse - Audit log data deletion.yaml
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/f1634822-b7e9-44f5-95ac-fa4a04f14513')]",
"kind": "Scheduled",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/f1634822-b7e9-44f5-95ac-fa4a04f14513')]",
"properties": {
"alertDetailsOverride": {
"alertDescriptionFormat": "User {{UserId}} deleted audit log data in {{InstanceUrl}}. The message type is {{Message}}.",
"alertDisplayNameFormat": "Dataverse - Audit logs deleted in {{InstanceUrl}}"
},
"alertRuleTemplateName": "f1634822-b7e9-44f5-95ac-fa4a04f14513",
"customDetails": null,
"description": "Identifies audit log data deletion activity in Dataverse.",
"displayName": "Dataverse - Audit log data deletion",
"enabled": true,
"entityMappings": [
{
"entityType": "Account",
"fieldMappings": [
{
"columnName": "AccountName",
"identifier": "Name"
},
{
"columnName": "UPNSuffix",
"identifier": "UPNSuffix"
}
]
},
{
"entityType": "CloudApplication",
"fieldMappings": [
{
"columnName": "CloudAppId",
"identifier": "AppId"
},
{
"columnName": "InstanceUrl",
"identifier": "InstanceName"
}
]
},
{
"entityType": "IP",
"fieldMappings": [
{
"columnName": "ClientIp",
"identifier": "Address"
}
]
}
],
"eventGroupingSettings": {
"aggregationKind": "SingleAlert"
},
"OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Microsoft Business Applications/Analytic Rules/Dataverse - Audit log data deletion.yaml",
"query": "let query_frequency = 1h;\nDataverseActivity\n| where TimeGenerated >= ago(query_frequency)\n| where Message =~ 'DeleteRecordChangeHistory' or Message =~ 'DeleteAuditData'\n| extend CloudAppId = int(32780)\n| extend AccountName = tostring(split(UserId, \"@\")[0])\n| extend UPNSuffix = tostring(split(UserId, \"@\")[1])\n| project\n TimeGenerated,\n UserId,\n ClientIp,\n UserAgent,\n Message,\n EntityName,\n InstanceUrl,\n AccountName,\n UPNSuffix,\n CloudAppId\n",
"queryFrequency": "PT1H",
"queryPeriod": "P14D",
"severity": "Low",
"status": "Available",
"subTechniques": [],
"suppressionDuration": "PT1H",
"suppressionEnabled": false,
"tactics": [
"DefenseEvasion"
],
"techniques": [
"T1070"
],
"templateVersion": "3.2.0",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0
},
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
}
]
}