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

Stale last password change

Back
Id645A8724-5C7E-4A1F-81CB-C33AFF1439EB
RulenameStale last password change
DescriptionThis query searches for stale last password change
SeverityLow
TacticsInitialAccess
TechniquesT1566
Required data connectorsSenservaPro
KindScheduled
Query frequency6h
Query period6h
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Solutions/SenservaPro/Analytic Rules/SearchStaleLastPasswordChange.yaml
Version1.0.0
Arm template645A8724-5C7E-4A1F-81CB-C33AFF1439EB.json
Deploy To Azure
SenservaPro_CL
| where ControlName_s == 'UserStaleLastPasswordChange'
name: Stale last password change
query: |
  SenservaPro_CL
  | where ControlName_s == 'UserStaleLastPasswordChange'  
description: |
    'This query searches for stale last password change'
tactics:
- InitialAccess
requiredDataConnectors:
- dataTypes:
  - SenservaPro_CL
  connectorId: SenservaPro
queryPeriod: 6h
queryFrequency: 6h
status: Available
triggerThreshold: 0
id: 645A8724-5C7E-4A1F-81CB-C33AFF1439EB
triggerOperator: gt
version: 1.0.0
relevantTechniques:
- T1566
severity: Low
kind: Scheduled
entityMappings:
- entityType: Account
  fieldMappings:
  - identifier: Name
    columnName: ControlName_s
  - identifier: AadTenantId
    columnName: TenantId
  - identifier: DisplayName
    columnName: TenantDisplayName_s
- entityType: SecurityGroup
  fieldMappings:
  - identifier: DistinguishedName
    columnName: Group_s
- entityType: AzureResource
  fieldMappings:
  - identifier: ResourceId
    columnName: SourceSystem
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/SenservaPro/Analytic Rules/SearchStaleLastPasswordChange.yaml
{
  "$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/645A8724-5C7E-4A1F-81CB-C33AFF1439EB')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/645A8724-5C7E-4A1F-81CB-C33AFF1439EB')]",
      "properties": {
        "alertRuleTemplateName": "645A8724-5C7E-4A1F-81CB-C33AFF1439EB",
        "customDetails": null,
        "description": "'This query searches for stale last password change'\n",
        "displayName": "Stale last password change",
        "enabled": true,
        "entityMappings": [
          {
            "entityType": "Account",
            "fieldMappings": [
              {
                "columnName": "ControlName_s",
                "identifier": "Name"
              },
              {
                "columnName": "TenantId",
                "identifier": "AadTenantId"
              },
              {
                "columnName": "TenantDisplayName_s",
                "identifier": "DisplayName"
              }
            ]
          },
          {
            "entityType": "SecurityGroup",
            "fieldMappings": [
              {
                "columnName": "Group_s",
                "identifier": "DistinguishedName"
              }
            ]
          },
          {
            "entityType": "AzureResource",
            "fieldMappings": [
              {
                "columnName": "SourceSystem",
                "identifier": "ResourceId"
              }
            ]
          }
        ],
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/SenservaPro/Analytic Rules/SearchStaleLastPasswordChange.yaml",
        "query": "SenservaPro_CL\n| where ControlName_s == 'UserStaleLastPasswordChange'\n",
        "queryFrequency": "PT6H",
        "queryPeriod": "PT6H",
        "severity": "Low",
        "status": "Available",
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [
          "InitialAccess"
        ],
        "techniques": [
          "T1566"
        ],
        "templateVersion": "1.0.0",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}