AWS - Secrets Manager Persistence
Secrets Manager
For more info check:
pageAWS - Secrets Manager EnumVia Resource Policies
It's possible to grant access to secrets to external accounts via resource policies. Check the Secrets Manager Privesc page for more information. Note that to access a secret, the external account will also need access to the KMS key encrypting the secret.
Via Secrets Rotate Lambda
To rotate secrets automatically a configured Lambda is called. If an attacker could change the code he could directly exfiltrate the new secret to himself.
This is how lambda code for such action could look like:
Last updated