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

Egress Defend - Dangerous Link Click

Back
Ida896123e-03a5-4a4d-a7e3-fd814846dfb2
RulenameEgress Defend - Dangerous Link Click
DescriptionDefend has detected a user has clicked a dangerous link in their mailbox.
SeverityMedium
TacticsExecution
TechniquesT1204
T0853
Required data connectorsEgressDefend
KindScheduled
Query frequency30m
Query period30m
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Egress Defend/Analytic Rules/DangerousLinksClicked.yaml
Version1.0.0
Arm templatea896123e-03a5-4a4d-a7e3-fd814846dfb2.json
Deploy To Azure
DefendAuditData
| where LinksClicked > 0
| where ThreatLevel == "dangerous" or ThreatLevel == "suspicious"
| extend Account_0_FullName = trim(@"[^@.\w]+",Recipients)
id: a896123e-03a5-4a4d-a7e3-fd814846dfb2
triggerThreshold: 0
severity: Medium
customDetails:
  timesClicked: LinksClicked
  DefendSender: From
  DefendSenderIP: SenderIP
alertDetailsOverride:
  alertDisplayNameFormat: Alert - {{Account_0_FullName}} as clicked a suspicious link.
requiredDataConnectors:
- connectorId: EgressDefend
  dataTypes:
  - EgressDefend_CL
tags:
- Defend
entityMappings:
- fieldMappings:
  - identifier: FullName
    columnName: Account_0_FullName
  entityType: Account
- fieldMappings:
  - identifier: Address
    columnName: SenderIP
  entityType: IP
- fieldMappings:
  - identifier: Url
    columnName: Url
  entityType: URL
- fieldMappings:
  - identifier: MailboxPrimaryAddress
    columnName: Account_0_FullName
  entityType: Mailbox
version: 1.0.0
triggerOperator: gt
queryPeriod: 30m
query: |
  DefendAuditData
  | where LinksClicked > 0
  | where ThreatLevel == "dangerous" or ThreatLevel == "suspicious"
  | extend Account_0_FullName = trim(@"[^@.\w]+",Recipients)  
relevantTechniques:
- T1204
- T0853
tactics:
- Execution
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Egress Defend/Analytic Rules/DangerousLinksClicked.yaml
status: Available
description: |
    'Defend has detected a user has clicked a dangerous link in their mailbox.'
name: Egress Defend - Dangerous Link Click
kind: Scheduled
queryFrequency: 30m
{
  "$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/a896123e-03a5-4a4d-a7e3-fd814846dfb2')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/a896123e-03a5-4a4d-a7e3-fd814846dfb2')]",
      "properties": {
        "alertDetailsOverride": {
          "alertDisplayNameFormat": "Alert - {{Account_0_FullName}} as clicked a suspicious link."
        },
        "alertRuleTemplateName": "a896123e-03a5-4a4d-a7e3-fd814846dfb2",
        "customDetails": {
          "DefendSender": "From",
          "DefendSenderIP": "SenderIP",
          "timesClicked": "LinksClicked"
        },
        "description": "'Defend has detected a user has clicked a dangerous link in their mailbox.'\n",
        "displayName": "Egress Defend - Dangerous Link Click",
        "enabled": true,
        "entityMappings": [
          {
            "entityType": "Account",
            "fieldMappings": [
              {
                "columnName": "Account_0_FullName",
                "identifier": "FullName"
              }
            ]
          },
          {
            "entityType": "IP",
            "fieldMappings": [
              {
                "columnName": "SenderIP",
                "identifier": "Address"
              }
            ]
          },
          {
            "entityType": "URL",
            "fieldMappings": [
              {
                "columnName": "Url",
                "identifier": "Url"
              }
            ]
          },
          {
            "entityType": "Mailbox",
            "fieldMappings": [
              {
                "columnName": "Account_0_FullName",
                "identifier": "MailboxPrimaryAddress"
              }
            ]
          }
        ],
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Egress Defend/Analytic Rules/DangerousLinksClicked.yaml",
        "query": "DefendAuditData\n| where LinksClicked > 0\n| where ThreatLevel == \"dangerous\" or ThreatLevel == \"suspicious\"\n| extend Account_0_FullName = trim(@\"[^@.\\w]+\",Recipients)\n",
        "queryFrequency": "PT30M",
        "queryPeriod": "PT30M",
        "severity": "Medium",
        "status": "Available",
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [
          "Execution"
        ],
        "tags": [
          "Defend"
        ],
        "techniques": [
          "T1204"
        ],
        "templateVersion": "1.0.0",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}