Ensure that your Amazon Secrets Manager secrets (i.e. database credentials, API keys, OAuth tokens, etc) are encrypted with Amazon KMS Customer Master Keys (CMKs) instead of default encryption keys that Secrets Manager service creates for you, in order to have a more granular control over secret data encryption and decryption process, and meet compliance requirements.
This rule can help you with the following compliance standards:
- GDPR
- APRA
- MAS
- NIST4
For further details on compliance standards supported by Conformity, see here.
This rule can help you work with the AWS Well-Architected Framework.
This rule resolution is part of the Conformity Security & Compliance tool for AWS.
By default, your secret information is encrypted using the default encryption key that Secrets Manager creates on your behalf. But when you use your own Amazon KMS Customer Master Key (CMK) to protect the secret data managed by AWS Secrets Manager service, you get full control over who can use the encryption key to access your secrets. Amazon Key Management Service (KMS) allows you to easily create, rotate, disable and audit Customer Master Keys created for your Secrets Manager secrets.
Note: When using customer-managed CMKs to encrypt Secrets Manager secret data, the IAM user or role that needs to read the secret later must have the "kms:Decrypt" permission for that KMS CMK.
Audit
To determine the encryption status and configuration for your Amazon Secrets Manager secrets, perform the following actions:
Remediation / Resolution
To configure existing Amazon Secrets Manager secrets to encrypt their data using customer-managed KMS Customer Master Keys (CMKs), perform the following actions:
References
- AWS Documentation
- AWS Secrets Manager FAQs
- What is AWS Key Management Service?
- How AWS Secrets Manager Uses AWS KMS
- AWS Command Line Interface (CLI) Documentation
- secretsmanager
- list-secrets
- describe-secret
- update-secret
- kms
- describe-key
- create-key
- create-alias
Unlock the Remediation Steps
Free 30-day Trial
Automatically audit your configurations with Conformity
and gain access to our cloud security platform.
You are auditing:
Secret Encrypted With KMS Customer Master Keys
Risk Level: High