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

Failed sign-ins into LastPass due to MFA

Back
Id760b8467-e6cc-4006-9149-5696845c1a54
RulenameFailed sign-ins into LastPass due to MFA
DescriptionThis rule will check if a sign-in failed into LastPass due to MFA.

An incident can indicate the potential brute forcing of a LastPass account.

The use of MFA is identified by combining the sign-in logs, this rule assumes LastPass is federated to Entra ID.
SeverityLow
TacticsInitialAccess
TechniquesT1078
T1190
Required data connectorsAzureActiveDirectory
LastPass
KindScheduled
Query frequency1d
Query period1d
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Solutions/LastPass/Analytic Rules/FailedSigninDueToMFA.yaml
Version1.0.1
Arm template760b8467-e6cc-4006-9149-5696845c1a54.json
Deploy To Azure
LastPassNativePoller_CL
| where Action_s == "Log in"
| join (SigninLogs | where AppDisplayName == "LastPass Enterprise") on $left.IP_Address_s == $right.IPAddress and $left.Username_s == $right.UserPrincipalName
| where ResultType in (50074, 50076)
| extend AccountCustomEntity = Username_s, IPCustomEntity = IP_Address_s
severity: Low
name: Failed sign-ins into LastPass due to MFA
queryPeriod: 1d
eventGroupingSettings:
  aggregationKind: AlertPerResult
id: 760b8467-e6cc-4006-9149-5696845c1a54
requiredDataConnectors:
- connectorId: LastPass
  dataTypes:
  - LastPassNativePoller_CL
- connectorId: AzureActiveDirectory
  dataTypes:
  - SigninLogs
kind: Scheduled
tactics:
- InitialAccess
triggerThreshold: 0
description: |
  'This rule will check if a sign-in failed into LastPass due to MFA.
  An incident can indicate the potential brute forcing of a LastPass account. 
  The use of MFA is identified by combining the sign-in logs, this rule assumes LastPass is federated to Entra ID.'  
entityMappings:
- fieldMappings:
  - columnName: AccountCustomEntity
    identifier: Name
  entityType: Account
- fieldMappings:
  - columnName: IPCustomEntity
    identifier: Address
  entityType: IP
triggerOperator: gt
queryFrequency: 1d
status: Available
relevantTechniques:
- T1078
- T1190
query: |
  LastPassNativePoller_CL
  | where Action_s == "Log in"
  | join (SigninLogs | where AppDisplayName == "LastPass Enterprise") on $left.IP_Address_s == $right.IPAddress and $left.Username_s == $right.UserPrincipalName
  | where ResultType in (50074, 50076)
  | extend AccountCustomEntity = Username_s, IPCustomEntity = IP_Address_s  
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/LastPass/Analytic Rules/FailedSigninDueToMFA.yaml
version: 1.0.1
{
  "$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/760b8467-e6cc-4006-9149-5696845c1a54')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/760b8467-e6cc-4006-9149-5696845c1a54')]",
      "properties": {
        "alertRuleTemplateName": "760b8467-e6cc-4006-9149-5696845c1a54",
        "customDetails": null,
        "description": "'This rule will check if a sign-in failed into LastPass due to MFA.\nAn incident can indicate the potential brute forcing of a LastPass account. \nThe use of MFA is identified by combining the sign-in logs, this rule assumes LastPass is federated to Entra ID.'\n",
        "displayName": "Failed sign-ins into LastPass due to MFA",
        "enabled": true,
        "entityMappings": [
          {
            "entityType": "Account",
            "fieldMappings": [
              {
                "columnName": "AccountCustomEntity",
                "identifier": "Name"
              }
            ]
          },
          {
            "entityType": "IP",
            "fieldMappings": [
              {
                "columnName": "IPCustomEntity",
                "identifier": "Address"
              }
            ]
          }
        ],
        "eventGroupingSettings": {
          "aggregationKind": "AlertPerResult"
        },
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/LastPass/Analytic Rules/FailedSigninDueToMFA.yaml",
        "query": "LastPassNativePoller_CL\n| where Action_s == \"Log in\"\n| join (SigninLogs | where AppDisplayName == \"LastPass Enterprise\") on $left.IP_Address_s == $right.IPAddress and $left.Username_s == $right.UserPrincipalName\n| where ResultType in (50074, 50076)\n| extend AccountCustomEntity = Username_s, IPCustomEntity = IP_Address_s\n",
        "queryFrequency": "P1D",
        "queryPeriod": "P1D",
        "severity": "Low",
        "status": "Available",
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [
          "InitialAccess"
        ],
        "techniques": [
          "T1078",
          "T1190"
        ],
        "templateVersion": "1.0.1",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}