azure-rediscache-effective-regeneratekey-permission

explicit azure emits HasPermission

match (effective permission)

{ "action": "Microsoft.Cache/redis/regenerateKey/action", "resource_type": "Microsoft.Cache/redis" }

emit

source typeIdentity
target type*
source<principal>
target<Redis cache node (Cache generic_type)>
permissionsMicrosoft.Cache/redis/regenerateKey/action

Narrative

{principal.name} has effective Microsoft.Cache/redis/regenerateKey/action on {cache.name}, allowing key rotation to revoke existing sessions or establish persistence with attacker-controlled keys.

Raw rule rules/explicit/azure-rediscache.yaml

id: azure-rediscache-effective-regeneratekey-permission
emits: HasPermission
applies_to:
- azure
match_effective_permission:
  action: Microsoft.Cache/redis/regenerateKey/action
  resource_type: Microsoft.Cache/redis
emit:
  source_type: Identity
  target_type: '*'
  source: <principal>
  target: <Redis cache node (Cache generic_type)>
  permissions:
  - Microsoft.Cache/redis/regenerateKey/action
  narrative: '{principal.name} has effective Microsoft.Cache/redis/regenerateKey/action on {cache.name},
    allowing key rotation to revoke existing sessions or establish persistence with attacker-controlled
    keys.'
move · open · esc close