Stale IAAS policy attachment to role
Id | ccdf3f87-7890-4549-9d0f-8f43c1d2751d |
Rulename | Stale IAAS policy attachment to role |
Description | The rule detects ‘IaaS policies’ attached to a role that has not used them during the past X days. It is recommended to remove unused policies from identities to reduce risk. |
Severity | Informational |
Tactics | PrivilegeEscalation Persistence |
Techniques | T1098 |
Required data connectors | Authomize |
Kind | Scheduled |
Query frequency | 30m |
Query period | 30m |
Trigger threshold | 0 |
Trigger operator | gt |
Source Uri | https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Authomize/Analytic Rules/Stale_IAAS_policy_attachment_to_role.yaml |
Version | 1.0.3 |
Arm template | ccdf3f87-7890-4549-9d0f-8f43c1d2751d.json |
Authomize_v2_CL
| where ingestion_time() >= ago(30m)
| extend EventID = id_s, Policy = policy_name_s, Severity = severity_s,Description = description_s,Recommendation = recommendation_s,URL = url_s,Tactics = tactics_s
| where Policy has "Stale IAAS policy attachment to role"
| project EventID, Policy, Severity, Description, Recommendation, URL, Category, Tactics
relevantTechniques:
- T1098
incidentConfiguration:
createIncident: true
groupingConfiguration:
lookbackDuration: 5h
groupByCustomDetails: []
groupByAlertDetails: []
enabled: true
reopenClosedIncident: false
matchingMethod: AnyAlert
groupByEntities: []
name: Stale IAAS policy attachment to role
requiredDataConnectors:
- dataTypes:
- Authomize_v2_CL
connectorId: Authomize
entityMappings:
- fieldMappings:
- identifier: Url
columnName: URL
entityType: URL
triggerThreshold: 0
id: ccdf3f87-7890-4549-9d0f-8f43c1d2751d
tactics:
- PrivilegeEscalation
- Persistence
version: 1.0.3
customDetails:
ReferencedURL: URL
EventRecommendation: Recommendation
AuthomizeEventID: EventID
EventName: Policy
EventDescription: Description
alertDetailsOverride:
alertDescriptionFormat: Stale IAAS policy attachment to role. The rule detects 'IaaS policies' attached to a role that has not used them during the past X days.It is recommended to remove unused policies from identities to reduce risk.
alertTactics: Tactics
alertSeverity: Severity
alertnameFormat: Alert from Authomize - Stale IAAS policy attachment to role
alertDynamicProperties:
- alertProperty: AlertLink
value: URL
queryPeriod: 30m
kind: Scheduled
eventGroupingSettings:
aggregationKind: SingleAlert
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Authomize/Analytic Rules/Stale_IAAS_policy_attachment_to_role.yaml
suppressionDuration: 5h
queryFrequency: 30m
severity: Informational
status: Available
suppressionEnabled: false
description: The rule detects 'IaaS policies' attached to a role that has not used them during the past X days. It is recommended to remove unused policies from identities to reduce risk.
query: |-
Authomize_v2_CL
| where ingestion_time() >= ago(30m)
| extend EventID = id_s, Policy = policy_name_s, Severity = severity_s,Description = description_s,Recommendation = recommendation_s,URL = url_s,Tactics = tactics_s
| where Policy has "Stale IAAS policy attachment to role"
| project EventID, Policy, Severity, Description, Recommendation, URL, Category, Tactics
triggerOperator: gt
{
"$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/ccdf3f87-7890-4549-9d0f-8f43c1d2751d')]",
"kind": "Scheduled",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/ccdf3f87-7890-4549-9d0f-8f43c1d2751d')]",
"properties": {
"alertDetailsOverride": {
"alertDescriptionFormat": "Stale IAAS policy attachment to role. The rule detects 'IaaS policies' attached to a role that has not used them during the past X days.It is recommended to remove unused policies from identities to reduce risk.",
"alertDynamicProperties": [
{
"alertProperty": "AlertLink",
"value": "URL"
}
],
"alertnameFormat": "Alert from Authomize - Stale IAAS policy attachment to role",
"alertSeverity": "Severity",
"alertTactics": "Tactics"
},
"alertRuleTemplateName": "ccdf3f87-7890-4549-9d0f-8f43c1d2751d",
"customDetails": {
"AuthomizeEventID": "EventID",
"EventDescription": "Description",
"EventName": "Policy",
"EventRecommendation": "Recommendation",
"ReferencedURL": "URL"
},
"description": "The rule detects 'IaaS policies' attached to a role that has not used them during the past X days. It is recommended to remove unused policies from identities to reduce risk.",
"displayName": "Stale IAAS policy attachment to role",
"enabled": true,
"entityMappings": [
{
"entityType": "URL",
"fieldMappings": [
{
"columnName": "URL",
"identifier": "Url"
}
]
}
],
"eventGroupingSettings": {
"aggregationKind": "SingleAlert"
},
"incidentConfiguration": {
"createIncident": true,
"groupingConfiguration": {
"enabled": true,
"groupByAlertDetails": [],
"groupByCustomDetails": [],
"groupByEntities": [],
"lookbackDuration": "PT5H",
"matchingMethod": "AnyAlert",
"reopenClosedIncident": false
}
},
"OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Authomize/Analytic Rules/Stale_IAAS_policy_attachment_to_role.yaml",
"query": "Authomize_v2_CL\n| where ingestion_time() >= ago(30m)\n| extend EventID = id_s, Policy = policy_name_s, Severity = severity_s,Description = description_s,Recommendation = recommendation_s,URL = url_s,Tactics = tactics_s\n| where Policy has \"Stale IAAS policy attachment to role\"\n| project EventID, Policy, Severity, Description, Recommendation, URL, Category, Tactics",
"queryFrequency": "PT30M",
"queryPeriod": "PT30M",
"severity": "Informational",
"status": "Available",
"subTechniques": [],
"suppressionDuration": "PT5H",
"suppressionEnabled": false,
"tactics": [
"Persistence",
"PrivilegeEscalation"
],
"techniques": [
"T1098"
],
"templateVersion": "1.0.3",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0
},
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
}
]
}