← Learn
Dangerous
aws secretsmanager put-resource-policy --secret-id prod/db --resource-policy '{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Principal":"*","Action":"secretsmanager:GetSecretValue"}]}'

cross-platform · bash · Expert

Attaches a resource policy allowing any principal to read the secret's value. IAM policies in the account still apply, but a resource…

The full explanation and danger signals for this pack are part of Pro.

Think you can spot these under time pressure?

Start Training

More Credential Access