azure-rediscache-effective-regeneratekey-permission
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.
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.'