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

Stale AWS policy attachment to identity

Back
Id766a3b1b-0d5b-4a8d-b0d6-7dd379e73567
RulenameStale AWS policy attachment to identity
DescriptionThe 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.
SeverityLow
TacticsInitialAccess
TechniquesT1078
Required data connectorsAuthomize
KindScheduled
Query frequency30m
Query period30m
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Authomize/Analytic Rules/Stale_AWS_policy_attachment_to_identity.yaml
Version1.0.2
Arm template766a3b1b-0d5b-4a8d-b0d6-7dd379e73567.json
Deploy To Azure
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
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.
entityMappings:
- fieldMappings:
  - columnName: URL
    identifier: Url
  entityType: URL
kind: Scheduled
tactics:
- InitialAccess
severity: Low
triggerThreshold: 0
queryFrequency: 30m
status: Available
queryPeriod: 30m
relevantTechniques:
- T1078
version: 1.0.2
suppressionEnabled: false
id: 766a3b1b-0d5b-4a8d-b0d6-7dd379e73567
name: Stale AWS policy attachment to identity
incidentConfiguration:
  createIncident: true
  groupingConfiguration:
    reopenClosedIncident: false
    groupByCustomDetails: []
    enabled: true
    matchingMethod: AnyAlert
    groupByAlertDetails: []
    groupByEntities: []
    lookbackDuration: 5h
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  
triggerOperator: gt
customDetails:
  EventRecommendation: Recommendation
  ReferencedURL: URL
  EventName: Policy
  EventDescription: Description
  AuthomizeEventID: EventID
suppressionDuration: 5h
eventGroupingSettings:
  aggregationKind: SingleAlert
alertDetailsOverride:
  alertTactics: Tactics
  alertSeverity: Severity
  alertnameFormat: Alert from Authomize - Stale AWS policy attachment to identity
  alertDynamicProperties:
  - value: URL
    alertProperty: AlertLink
  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.
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Authomize/Analytic Rules/Stale_AWS_policy_attachment_to_identity.yaml
requiredDataConnectors:
- dataTypes:
  - Authomize_v2_CL
  connectorId: Authomize