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

Trust Monitor Event

Back
Id8dcf7238-a7d0-4cfd-8d0c-b230e3cd9182
RulenameTrust Monitor Event
DescriptionThis query identifies when a new trust monitor event is detected.
SeverityMedium
TacticsCredentialAccess
KindScheduled
Query frequency5m
Query period5m
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Detections/DuoSecurity/TrustMonitorEvent.yaml
Version1.0.3
Arm template8dcf7238-a7d0-4cfd-8d0c-b230e3cd9182.json
Deploy To Azure
let timeframe = ago(5m);
DuoSecurityTrustMonitor_CL
| where TimeGenerated >= timeframe
| extend AccountName = tostring(split(surfaced_auth_user_name_s, "@")[0]), AccountUPNSuffix = tostring(split(surfaced_auth_user_name_s, "@")[1])
triggerOperator: gt
tactics:
- CredentialAccess
queryPeriod: 5m
kind: Scheduled
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Detections/DuoSecurity/TrustMonitorEvent.yaml
queryFrequency: 5m
description: |
    'This query identifies when a new trust monitor event is detected.'
requiredDataConnectors: []
version: 1.0.3
triggerThreshold: 0
severity: Medium
metadata:
  author:
    name: SecurityJedi
  categories:
    domains:
    - Security - Others
  source:
    kind: Community
  support:
    tier: Community
id: 8dcf7238-a7d0-4cfd-8d0c-b230e3cd9182
entityMappings:
- entityType: Account
  fieldMappings:
  - columnName: surfaced_auth_user_name_s
    identifier: FullName
  - columnName: AccountName
    identifier: Name
  - columnName: AccountUPNSuffix
    identifier: UPNSuffix
- entityType: IP
  fieldMappings:
  - columnName: surfaced_auth_access_device_ip_s
    identifier: Address
name: Trust Monitor Event
query: |
  let timeframe = ago(5m);
  DuoSecurityTrustMonitor_CL
  | where TimeGenerated >= timeframe
  | extend AccountName = tostring(split(surfaced_auth_user_name_s, "@")[0]), AccountUPNSuffix = tostring(split(surfaced_auth_user_name_s, "@")[1])  
{
  "$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/8dcf7238-a7d0-4cfd-8d0c-b230e3cd9182')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/8dcf7238-a7d0-4cfd-8d0c-b230e3cd9182')]",
      "properties": {
        "alertRuleTemplateName": "8dcf7238-a7d0-4cfd-8d0c-b230e3cd9182",
        "customDetails": null,
        "description": "'This query identifies when a new trust monitor event is detected.'\n",
        "displayName": "Trust Monitor Event",
        "enabled": true,
        "entityMappings": [
          {
            "entityType": "Account",
            "fieldMappings": [
              {
                "columnName": "surfaced_auth_user_name_s",
                "identifier": "FullName"
              },
              {
                "columnName": "AccountName",
                "identifier": "Name"
              },
              {
                "columnName": "AccountUPNSuffix",
                "identifier": "UPNSuffix"
              }
            ]
          },
          {
            "entityType": "IP",
            "fieldMappings": [
              {
                "columnName": "surfaced_auth_access_device_ip_s",
                "identifier": "Address"
              }
            ]
          }
        ],
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Detections/DuoSecurity/TrustMonitorEvent.yaml",
        "query": "let timeframe = ago(5m);\nDuoSecurityTrustMonitor_CL\n| where TimeGenerated >= timeframe\n| extend AccountName = tostring(split(surfaced_auth_user_name_s, \"@\")[0]), AccountUPNSuffix = tostring(split(surfaced_auth_user_name_s, \"@\")[1])\n",
        "queryFrequency": "PT5M",
        "queryPeriod": "PT5M",
        "severity": "Medium",
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [
          "CredentialAccess"
        ],
        "templateVersion": "1.0.3",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}