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
name: Bitglass - User login from new geo location
status: Available
triggerThreshold: 0
severity: Medium
tactics:
- InitialAccess
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Bitglass/Analytic Rules/BitglassUserLoginNewGeoLocation.yaml
entityMappings:
- entityType: Account
  fieldMappings:
  - columnName: AccountCustomEntity
    identifier: Name
- entityType: File
  fieldMappings:
  - columnName: FileCustomEntity
    identifier: Name
queryPeriod: 14d
queryFrequency: 1h
version: 1.0.0
triggerOperator: gt
description: |
    'Detects user login from new geo location.'
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  
relevantTechniques:
- T1078
id: 34401e66-9fe9-476b-a443-3a3f89e4f3b0
requiredDataConnectors:
- dataTypes:
  - Bitglass
  connectorId: Bitglass
kind: Scheduled
{
  "$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/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",
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [
          "InitialAccess"
        ],
        "techniques": [
          "T1078"
        ],
        "templateVersion": "1.0.0",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}