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

Bitglass - User login from new geo location

Back
Id34401e66-9fe9-476b-a443-3a3f89e4f3b0
RulenameBitglass - User login from new geo location
DescriptionDetects user login from new geo location.
SeverityMedium
TacticsInitialAccess
TechniquesT1078
Required data connectorsBitglass
KindScheduled
Query frequency1h
Query period14d
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Bitglass/Analytic Rules/BitglassUserLoginNewGeoLocation.yaml
Version1.0.0
Arm template34401e66-9fe9-476b-a443-3a3f89e4f3b0.json
Deploy To Azure
Bitglass
| where EventType =~ 'access'
| where EventMessage =~ 'Login'
| summarize g_loc = makeset(SrcGeoLocation) by User
| join (Bitglass
        | where EventType =~ 'access'
        | where EventMessage =~ 'Login') on User
| where g_loc !contains SrcGeoLocation
| extend AccountCustomEntity = User, FileCustomEntity = SrcFileName
kind: Scheduled
relevantTechniques:
- T1078
description: |
    'Detects user login from new geo location.'
queryPeriod: 14d
queryFrequency: 1h
tactics:
- InitialAccess
name: Bitglass - User login from new geo location
requiredDataConnectors:
- connectorId: Bitglass
  dataTypes:
  - Bitglass
entityMappings:
- entityType: Account
  fieldMappings:
  - identifier: Name
    columnName: AccountCustomEntity
- entityType: File
  fieldMappings:
  - identifier: Name
    columnName: FileCustomEntity
triggerThreshold: 0
version: 1.0.0
id: 34401e66-9fe9-476b-a443-3a3f89e4f3b0
query: |
  Bitglass
  | where EventType =~ 'access'
  | where EventMessage =~ 'Login'
  | summarize g_loc = makeset(SrcGeoLocation) by User
  | join (Bitglass
          | where EventType =~ 'access'
          | where EventMessage =~ 'Login') on User
  | where g_loc !contains SrcGeoLocation
  | extend AccountCustomEntity = User, FileCustomEntity = SrcFileName  
status: Available
triggerOperator: gt
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Bitglass/Analytic Rules/BitglassUserLoginNewGeoLocation.yaml
severity: Medium
{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workspace": {
      "type": "String"
    }
  },
  "resources": [
    {
      "apiVersion": "2024-01-01-preview",
      "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/providers', parameters('workspace'), 'Microsoft.SecurityInsights'),'/alertRules/34401e66-9fe9-476b-a443-3a3f89e4f3b0')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/34401e66-9fe9-476b-a443-3a3f89e4f3b0')]",
      "properties": {
        "alertRuleTemplateName": "34401e66-9fe9-476b-a443-3a3f89e4f3b0",
        "customDetails": null,
        "description": "'Detects user login from new geo location.'\n",
        "displayName": "Bitglass - User login from new geo location",
        "enabled": true,
        "entityMappings": [
          {
            "entityType": "Account",
            "fieldMappings": [
              {
                "columnName": "AccountCustomEntity",
                "identifier": "Name"
              }
            ]
          },
          {
            "entityType": "File",
            "fieldMappings": [
              {
                "columnName": "FileCustomEntity",
                "identifier": "Name"
              }
            ]
          }
        ],
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Bitglass/Analytic Rules/BitglassUserLoginNewGeoLocation.yaml",
        "query": "Bitglass\n| where EventType =~ 'access'\n| where EventMessage =~ 'Login'\n| summarize g_loc = makeset(SrcGeoLocation) by User\n| join (Bitglass\n        | where EventType =~ 'access'\n        | where EventMessage =~ 'Login') on User\n| where g_loc !contains SrcGeoLocation\n| extend AccountCustomEntity = User, FileCustomEntity = SrcFileName\n",
        "queryFrequency": "PT1H",
        "queryPeriod": "P14D",
        "severity": "Medium",
        "status": "Available",
        "subTechniques": [],
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [
          "InitialAccess"
        ],
        "techniques": [
          "T1078"
        ],
        "templateVersion": "1.0.0",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}