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

Dynamics Encryption Settings Changed

Back
Idb185ac23-dc27-4573-8192-1134c7a95f4f
RulenameDynamics Encryption Settings Changed
DescriptionThis query looks for changes to the Data Encryption settings for Dynamics 365.

Reference: https://docs.microsoft.com/microsoft-365/compliance/office-365-encryption-in-microsoft-dynamics-365
SeverityMedium
TacticsDefenseEvasion
TechniquesT1600
Required data connectorsDynamics365
KindScheduled
Query frequency1h
Query period1h
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Detections/Dynamics365Activity/DynamicsEncryptionSettingsChanged.yaml
Version1.0.1
Arm templateb185ac23-dc27-4573-8192-1134c7a95f4f.json
Deploy To Azure
Dynamics365Activity
| extend Message = tostring(split(OriginalObjectId, ' ')[0])
| where Message =~ 'IsDataEncryptionActive'
| project-reorder TimeGenerated, Message, UserId, ClientIP, InstanceUrl, UserAgent
| extend timestamp = TimeGenerated, AccountCustomEntity = UserId, IPCustomEntity = ClientIP
version: 1.0.1
status: Available
queryFrequency: 1h
requiredDataConnectors:
- connectorId: Dynamics365
  dataTypes:
  - Dynamics365Activity
entityMappings:
- fieldMappings:
  - columnName: AccountCustomEntity
    identifier: FullName
  entityType: Account
- fieldMappings:
  - columnName: IPCustomEntity
    identifier: Address
  entityType: IP
kind: Scheduled
queryPeriod: 1h
severity: Medium
query: |
  Dynamics365Activity
  | extend Message = tostring(split(OriginalObjectId, ' ')[0])
  | where Message =~ 'IsDataEncryptionActive'
  | project-reorder TimeGenerated, Message, UserId, ClientIP, InstanceUrl, UserAgent
  | extend timestamp = TimeGenerated, AccountCustomEntity = UserId, IPCustomEntity = ClientIP  
metadata:
  categories:
    domains:
    - Cloud Provider
    - IT Operations
    - Storage
  author:
    name: Microsoft
  support:
    tier: Microsoft
  source:
    kind: Community
triggerOperator: gt
id: b185ac23-dc27-4573-8192-1134c7a95f4f
description: |
  'This query looks for changes to the Data Encryption settings for Dynamics 365.
  Reference: https://docs.microsoft.com/microsoft-365/compliance/office-365-encryption-in-microsoft-dynamics-365'  
triggerThreshold: 0
name: Dynamics Encryption Settings Changed
relevantTechniques:
- T1600
tactics:
- DefenseEvasion
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Detections/Dynamics365Activity/DynamicsEncryptionSettingsChanged.yaml
{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workspace": {
      "type": "String"
    }
  },
  "resources": [
    {
      "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/providers', parameters('workspace'), 'Microsoft.SecurityInsights'),'/alertRules/b185ac23-dc27-4573-8192-1134c7a95f4f')]",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/b185ac23-dc27-4573-8192-1134c7a95f4f')]",
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules",
      "kind": "Scheduled",
      "apiVersion": "2022-11-01",
      "properties": {
        "displayName": "Dynamics Encryption Settings Changed",
        "description": "'This query looks for changes to the Data Encryption settings for Dynamics 365.\nReference: https://docs.microsoft.com/microsoft-365/compliance/office-365-encryption-in-microsoft-dynamics-365'\n",
        "severity": "Medium",
        "enabled": true,
        "query": "Dynamics365Activity\n| extend Message = tostring(split(OriginalObjectId, ' ')[0])\n| where Message =~ 'IsDataEncryptionActive'\n| project-reorder TimeGenerated, Message, UserId, ClientIP, InstanceUrl, UserAgent\n| extend timestamp = TimeGenerated, AccountCustomEntity = UserId, IPCustomEntity = ClientIP\n",
        "queryFrequency": "PT1H",
        "queryPeriod": "PT1H",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0,
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [
          "DefenseEvasion"
        ],
        "techniques": [
          "T1600"
        ],
        "alertRuleTemplateName": "b185ac23-dc27-4573-8192-1134c7a95f4f",
        "customDetails": null,
        "entityMappings": [
          {
            "entityType": "Account",
            "fieldMappings": [
              {
                "identifier": "FullName",
                "columnName": "AccountCustomEntity"
              }
            ]
          },
          {
            "entityType": "IP",
            "fieldMappings": [
              {
                "identifier": "Address",
                "columnName": "IPCustomEntity"
              }
            ]
          }
        ],
        "status": "Available",
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Detections/Dynamics365Activity/DynamicsEncryptionSettingsChanged.yaml",
        "templateVersion": "1.0.1"
      }
    }
  ]
}