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 AWS policy attachment to identity"
| project EventID, Policy, Severity, Description, Recommendation, URL, Category, Tactics
status: Available
queryFrequency: 30m
suppressionEnabled: false
queryPeriod: 30m
triggerOperator: gt
alertDetailsOverride:
alertSeverity: Severity
alertTactics: Tactics
alertnameFormat: Alert from Authomize - Stale AWS policy attachment to identity
alertDynamicProperties:
- alertProperty: AlertLink
value: URL
alertDescriptionFormat: Stale AWS policy attachment to identity. The policy detects 'AWS policies' attached to IAM users or roles that have not used it during the last 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 AWS policy attachment to identity"
| project EventID, Policy, Severity, Description, Recommendation, URL, Category, Tactics
eventGroupingSettings:
aggregationKind: SingleAlert
suppressionDuration: 5h
tactics:
- InitialAccess
triggerThreshold: 0
entityMappings:
- entityType: URL
fieldMappings:
- identifier: Url
columnName: URL
requiredDataConnectors:
- connectorId: Authomize
dataTypes:
- Authomize_v2_CL
kind: Scheduled
relevantTechniques:
- T1078
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Authomize/Analytic Rules/Stale_AWS_policy_attachment_to_identity.yaml
customDetails:
EventDescription: Description
EventName: Policy
EventRecommendation: Recommendation
ReferencedURL: URL
AuthomizeEventID: EventID
description: The policy detects 'AWS policies' attached to IAM users or roles that have not used it during the last X days. It is recommended to remove unused policies from identities to reduce risk.
incidentConfiguration:
groupingConfiguration:
reopenClosedIncident: false
groupByCustomDetails: []
enabled: true
groupByAlertDetails: []
matchingMethod: AnyAlert
lookbackDuration: 5h
groupByEntities: []
createIncident: true
name: Stale AWS policy attachment to identity
version: 1.0.2
id: 766a3b1b-0d5b-4a8d-b0d6-7dd379e73567
severity: Low