Changes to Application Logout URL
Id | 492fbe35-cbac-4a8c-9059-826782e6915a |
Rulename | Changes to Application Logout URL |
Description | Detects changes to an applications sign out URL. Look for any modifications to a sign out URL. Blank entries or entries to non-existent locations would stop a user from terminating a session. Ref: https://docs.microsoft.com/azure/active-directory/fundamentals/security-operations-applications#logout-url-modified-or-removed |
Severity | Low |
Tactics | Persistence PrivilegeEscalation |
Techniques | T1078.004 |
Required data connectors | AzureActiveDirectory |
Kind | Scheduled |
Query frequency | 1d |
Query period | 1d |
Trigger threshold | 0 |
Trigger operator | gt |
Source Uri | https://github.com/Azure/Azure-Sentinel/blob/master/Detections/AuditLogs/ChangestoApplicationLogoutURL.yaml |
Version | 1.0.1 |
Arm template | 492fbe35-cbac-4a8c-9059-826782e6915a.json |
AuditLogs
| where Category =~ "ApplicationManagement"
| where OperationName has_any ("Update Application", "Update Service principal")
| extend appName = tostring(parse_json(tostring(InitiatedBy.app)).displayName)
| extend UPN = tostring(parse_json(tostring(InitiatedBy.user)).userPrincipalName)
| extend UpdatedBy = iif(isnotempty(appName), appName, UPN)
| extend mod_props = TargetResources[0].modifiedProperties
| extend AppName = tostring(TargetResources[0].displayName)
| mv-expand mod_props
| extend Action = tostring(mod_props.displayName)
| where Action contains "Url"
| extend OldURL = tostring(mod_props.oldValue)
| extend NewURL = tostring(mod_props.newValue)
| project-reorder TimeGenerated, OperationName, Action, AppName, OldURL, NewURL, UpdatedBy
severity: Low
queryFrequency: 1d
relevantTechniques:
- T1078.004
tactics:
- Persistence
- PrivilegeEscalation
kind: Scheduled
query: |
AuditLogs
| where Category =~ "ApplicationManagement"
| where OperationName has_any ("Update Application", "Update Service principal")
| extend appName = tostring(parse_json(tostring(InitiatedBy.app)).displayName)
| extend UPN = tostring(parse_json(tostring(InitiatedBy.user)).userPrincipalName)
| extend UpdatedBy = iif(isnotempty(appName), appName, UPN)
| extend mod_props = TargetResources[0].modifiedProperties
| extend AppName = tostring(TargetResources[0].displayName)
| mv-expand mod_props
| extend Action = tostring(mod_props.displayName)
| where Action contains "Url"
| extend OldURL = tostring(mod_props.oldValue)
| extend NewURL = tostring(mod_props.newValue)
| project-reorder TimeGenerated, OperationName, Action, AppName, OldURL, NewURL, UpdatedBy
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Detections/AuditLogs/ChangestoApplicationLogoutURL.yaml
queryPeriod: 1d
version: 1.0.1
tags:
- AADSecOpsGuide
metadata:
support:
tier: Community
source:
kind: Community
categories:
domains:
- Security - Others
author:
name: Pete Bryan
name: Changes to Application Logout URL
requiredDataConnectors:
- dataTypes:
- AuditLogs
connectorId: AzureActiveDirectory
triggerOperator: gt
entityMappings:
- entityType: Account
fieldMappings:
- identifier: FullName
columnName: UpdatedBy
- entityType: URL
fieldMappings:
- identifier: Url
columnName: OldURL
- entityType: URL
fieldMappings:
- identifier: Url
columnName: NewURL
id: 492fbe35-cbac-4a8c-9059-826782e6915a
description: |
'Detects changes to an applications sign out URL.
Look for any modifications to a sign out URL. Blank entries or entries to non-existent locations would stop a user from terminating a session.
Ref: https://docs.microsoft.com/azure/active-directory/fundamentals/security-operations-applications#logout-url-modified-or-removed'
triggerThreshold: 0
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"workspace": {
"type": "String"
}
},
"resources": [
{
"id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/providers', parameters('workspace'), 'Microsoft.SecurityInsights'),'/alertRules/492fbe35-cbac-4a8c-9059-826782e6915a')]",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/492fbe35-cbac-4a8c-9059-826782e6915a')]",
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules",
"kind": "Scheduled",
"apiVersion": "2022-11-01-preview",
"properties": {
"displayName": "Changes to Application Logout URL",
"description": "'Detects changes to an applications sign out URL.\n Look for any modifications to a sign out URL. Blank entries or entries to non-existent locations would stop a user from terminating a session.\n Ref: https://docs.microsoft.com/azure/active-directory/fundamentals/security-operations-applications#logout-url-modified-or-removed'\n",
"severity": "Low",
"enabled": true,
"query": "AuditLogs\n | where Category =~ \"ApplicationManagement\"\n | where OperationName has_any (\"Update Application\", \"Update Service principal\")\n | extend appName = tostring(parse_json(tostring(InitiatedBy.app)).displayName)\n | extend UPN = tostring(parse_json(tostring(InitiatedBy.user)).userPrincipalName)\n | extend UpdatedBy = iif(isnotempty(appName), appName, UPN)\n | extend mod_props = TargetResources[0].modifiedProperties\n | extend AppName = tostring(TargetResources[0].displayName)\n | mv-expand mod_props\n | extend Action = tostring(mod_props.displayName)\n | where Action contains \"Url\"\n | extend OldURL = tostring(mod_props.oldValue)\n | extend NewURL = tostring(mod_props.newValue)\n | project-reorder TimeGenerated, OperationName, Action, AppName, OldURL, NewURL, UpdatedBy\n",
"queryFrequency": "P1D",
"queryPeriod": "P1D",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0,
"suppressionDuration": "PT1H",
"suppressionEnabled": false,
"tactics": [
"Persistence",
"PrivilegeEscalation"
],
"techniques": [
"T1078.004"
],
"alertRuleTemplateName": "492fbe35-cbac-4a8c-9059-826782e6915a",
"customDetails": null,
"entityMappings": [
{
"fieldMappings": [
{
"columnName": "UpdatedBy",
"identifier": "FullName"
}
],
"entityType": "Account"
},
{
"fieldMappings": [
{
"columnName": "OldURL",
"identifier": "Url"
}
],
"entityType": "URL"
},
{
"fieldMappings": [
{
"columnName": "NewURL",
"identifier": "Url"
}
],
"entityType": "URL"
}
],
"tags": [
"AADSecOpsGuide"
],
"templateVersion": "1.0.1",
"OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Detections/AuditLogs/ChangestoApplicationLogoutURL.yaml"
}
}
]
}