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

Box - New external user

Back
Idfd36ac88-cd92-4137-aa23-37a3648621fa
RulenameBox - New external user
DescriptionDetects when new user created with SourceLogin containing non-corporate domain.
SeverityMedium
TacticsInitialAccess
Persistence
TechniquesT1078
Required data connectorsBoxDataConnector
KindScheduled
Query frequency1h
Query period1h
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Box/Analytic Rules/BoxNewExternalUser.yaml
Version1.0.0
Arm templatefd36ac88-cd92-4137-aa23-37a3648621fa.json
Deploy To Azure
BoxEvents
| where EventType =~ 'NEW_USER'
| extend corp_domain = extract(@'@(.*)', 1, SourceLogin)
| extend new_domain = tolower(extract(@'@(.*)', 1, SourceLogin))
| where corp_domain != new_domain
| extend AccountCustomEntity = SourceLogin
| extend IPCustomEntity = SrcIpAddr
severity: Medium
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Box/Analytic Rules/BoxNewExternalUser.yaml
id: fd36ac88-cd92-4137-aa23-37a3648621fa
name: Box - New external user
query: |
  BoxEvents
  | where EventType =~ 'NEW_USER'
  | extend corp_domain = extract(@'@(.*)', 1, SourceLogin)
  | extend new_domain = tolower(extract(@'@(.*)', 1, SourceLogin))
  | where corp_domain != new_domain
  | extend AccountCustomEntity = SourceLogin
  | extend IPCustomEntity = SrcIpAddr  
entityMappings:
- fieldMappings:
  - columnName: AccountCustomEntity
    identifier: FullName
  entityType: Account
- fieldMappings:
  - columnName: IPCustomEntity
    identifier: Address
  entityType: IP
queryPeriod: 1h
triggerThreshold: 0
tactics:
- InitialAccess
- Persistence
version: 1.0.0
kind: Scheduled
relevantTechniques:
- T1078
queryFrequency: 1h
status: Available
requiredDataConnectors:
- dataTypes:
  - BoxEvents_CL
  connectorId: BoxDataConnector
description: |
    'Detects when new user created with SourceLogin containing non-corporate domain.'
triggerOperator: gt
{
  "$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/fd36ac88-cd92-4137-aa23-37a3648621fa')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/fd36ac88-cd92-4137-aa23-37a3648621fa')]",
      "properties": {
        "alertRuleTemplateName": "fd36ac88-cd92-4137-aa23-37a3648621fa",
        "customDetails": null,
        "description": "'Detects when new user created with SourceLogin containing non-corporate domain.'\n",
        "displayName": "Box - New external user",
        "enabled": true,
        "entityMappings": [
          {
            "entityType": "Account",
            "fieldMappings": [
              {
                "columnName": "AccountCustomEntity",
                "identifier": "FullName"
              }
            ]
          },
          {
            "entityType": "IP",
            "fieldMappings": [
              {
                "columnName": "IPCustomEntity",
                "identifier": "Address"
              }
            ]
          }
        ],
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Box/Analytic Rules/BoxNewExternalUser.yaml",
        "query": "BoxEvents\n| where EventType =~ 'NEW_USER'\n| extend corp_domain = extract(@'@(.*)', 1, SourceLogin)\n| extend new_domain = tolower(extract(@'@(.*)', 1, SourceLogin))\n| where corp_domain != new_domain\n| extend AccountCustomEntity = SourceLogin\n| extend IPCustomEntity = SrcIpAddr\n",
        "queryFrequency": "PT1H",
        "queryPeriod": "PT1H",
        "severity": "Medium",
        "status": "Available",
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [
          "InitialAccess",
          "Persistence"
        ],
        "techniques": [
          "T1078"
        ],
        "templateVersion": "1.0.0",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}