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

Suspicious link sharing pattern

Back
Id1218175f-c534-421c-8070-5dcaabf28067
RulenameSuspicious link sharing pattern
DescriptionAlerts in links that have been shared across multiple Zoom chat channels by the same user in a short space if time.

Adjust the threshold figure to change the number of channels a message needs to be posted in before an alert is raised.
SeverityLow
TacticsCredentialAccess
Persistence
KindScheduled
Query frequency1d
Query period1d
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Detections/ZoomLogs/SupiciousLinkSharing.yaml
Version1.0.2
Arm template1218175f-c534-421c-8070-5dcaabf28067.json
Deploy To Azure
let threshold = 3;
ZoomLogs
| where Event =~ "chat_message.sent"
| extend Channel = tostring(parse_json(ChatEvents).Channel)
| extend Message = tostring(parse_json(ChatEvents).Message)
| where Message matches regex "http(s?):\\/\\/"
| summarize Channels = makeset(Channel), StartTime = min(TimeGenerated), EndTime = max(TimeGenerated) by Message, User, UserId
| extend ChannelCount = arraylength(Channels)
| where ChannelCount > threshold
| extend timestamp = StartTime, AccountCustomEntity = User
name: Suspicious link sharing pattern
query: |
  let threshold = 3;
  ZoomLogs
  | where Event =~ "chat_message.sent"
  | extend Channel = tostring(parse_json(ChatEvents).Channel)
  | extend Message = tostring(parse_json(ChatEvents).Message)
  | where Message matches regex "http(s?):\\/\\/"
  | summarize Channels = makeset(Channel), StartTime = min(TimeGenerated), EndTime = max(TimeGenerated) by Message, User, UserId
  | extend ChannelCount = arraylength(Channels)
  | where ChannelCount > threshold
  | extend timestamp = StartTime, AccountCustomEntity = User  
version: 1.0.2
severity: Low
kind: Scheduled
triggerOperator: gt
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Detections/ZoomLogs/SupiciousLinkSharing.yaml
requiredDataConnectors: []
tactics:
- CredentialAccess
- Persistence
entityMappings:
- fieldMappings:
  - identifier: FullName
    columnName: AccountCustomEntity
  entityType: Account
description: |
  'Alerts in links that have been shared across multiple Zoom chat channels by the same user in a short space if time.
  Adjust the threshold figure to change the number of channels a message needs to be posted in before an alert is raised.'  
id: 1218175f-c534-421c-8070-5dcaabf28067
queryPeriod: 1d
metadata:
  source:
    kind: Community
  author:
    name: Pete Bryan
  support:
    tier: Community
  categories:
    domains:
    - Security - Others
queryFrequency: 1d
triggerThreshold: 0
{
  "$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/1218175f-c534-421c-8070-5dcaabf28067')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/1218175f-c534-421c-8070-5dcaabf28067')]",
      "properties": {
        "alertRuleTemplateName": "1218175f-c534-421c-8070-5dcaabf28067",
        "customDetails": null,
        "description": "'Alerts in links that have been shared across multiple Zoom chat channels by the same user in a short space if time.\nAdjust the threshold figure to change the number of channels a message needs to be posted in before an alert is raised.'\n",
        "displayName": "Suspicious link sharing pattern",
        "enabled": true,
        "entityMappings": [
          {
            "entityType": "Account",
            "fieldMappings": [
              {
                "columnName": "AccountCustomEntity",
                "identifier": "FullName"
              }
            ]
          }
        ],
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Detections/ZoomLogs/SupiciousLinkSharing.yaml",
        "query": "let threshold = 3;\nZoomLogs\n| where Event =~ \"chat_message.sent\"\n| extend Channel = tostring(parse_json(ChatEvents).Channel)\n| extend Message = tostring(parse_json(ChatEvents).Message)\n| where Message matches regex \"http(s?):\\\\/\\\\/\"\n| summarize Channels = makeset(Channel), StartTime = min(TimeGenerated), EndTime = max(TimeGenerated) by Message, User, UserId\n| extend ChannelCount = arraylength(Channels)\n| where ChannelCount > threshold\n| extend timestamp = StartTime, AccountCustomEntity = User\n",
        "queryFrequency": "P1D",
        "queryPeriod": "P1D",
        "severity": "Low",
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [
          "CredentialAccess",
          "Persistence"
        ],
        "templateVersion": "1.0.2",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}