AWS Security Services

AWS Security Services

Get Started. It's Free
or sign up with your email address
Rocket clouds
AWS Security Services by Mind Map: AWS Security Services

1. IAM

2. Cognito

3. Secrets Manager

4. Directory Service

5. Amazon Macie

6. WAF & Shield

7. Detective

8. Inspector

9. AWS Single Sign-On

10. GuardDuty

11. Artifact

12. Resource Access Manager

13. Certificate Manager

13.1. A service that simplifies provisioning, managing, and deploying public and private Secure Sockets Layer/Transport Layer Security (SSL/TLS) certificates for use with AWS services and your internal connected resources.

14. Key Management Service

14.1. With the Master Key, you can generate Data Keys, which in turn are used for the encryption

14.2. Data Keys are used for encrypting data. A Data Key is in plain text, so needs to be secured

14.3. Disable, delete and manage the lifecycle of the keys

14.4. Master Keys can encrypt max 4KB of data

14.5. Master Keys can also be used for encryption of data such as passwords

14.6. Types of Keys: once created by AWS and keys created by the account owner.

14.6.1. Customer Master Keys (CMK) CMK is a logical representation of a master key Creation Steps Create alias and description Create a Tag Define Key Administrative Permissions: Users who have Admin Privileges for the Key. Define User Permissions Preview Key Policy Data keys are encryption keys that you can use to encrypt data, including large amounts of data and other data encryption keys Key Material is the underlying algorithm for encryption and decryption. You can create your own Key Material and import and use it for a AWS CMK

14.6.2. AWS Managed CMK AWS managed CMKs are CMKs in your account that are created, managed, and used on your behalf by an AWS service that is integrated with AWS KMS. No actions can be done on these keys and are used internally by AWS Services.

14.6.3. AWS Owned CMK AWS owned CMKs are not in your AWS account. They are part of a collection of CMKs that AWS owns and manages for use in multiple AWS accounts. AWS services can use AWS owned CMKs to protect your data.

14.7. Encrypting and Decrypting

14.7.1. AWS CLI (Command Line Interface) can be used

14.7.2. AWS Encryption SDK is a client-side encryption library that integrates with KMS to make it easier to implement encryption best practices in your applications

14.8. Key Policies

14.8.1. If a new feature is added to KMS, it is automatically added to the default Key Policy. For older keys this has to be done manually

14.8.2. Default policies are created, providing admin permissions to the root user

14.9. Audit and Logging

14.9.1. Cloudtrail logs can be used to check the usage of the keys. This is not available in all regions.

14.10. KMS & S3 Buckets

14.10.1. S3 Encryption Process S3 request plaintext and encrypted Data Key from KMS S3 encrypts te object with the plaintext data key and deletes the plaintext key The encrypted Data Key is stored with the encrypted data

14.10.2. S3 Decryption Process S3 sends encrypted Data Key to KMS KMS send plaintext key from to S3 based on Customer Master Key S3 decrypts the object with the plaintext Data Key, and deletes it asap

14.10.3. Encryption on bucket level does not encrypt the existing objects in that bucket

14.11. KMS & EBS

14.11.1. By default AWS uses CMK when encrypting EBS vokumes. You can also choose the Key for the encryption

14.11.2. Encryption process uses the encrypted Data Key from the chosen CMK received from the KMS and attach it as metadata to the EBS volume.

14.11.3. Decryption occurs when the EBS volume is attached to the EC2 instance. The encrypted Data Key is sent to KMS and a plaintext Data Key is received and stored in the hypervisor memory to encrypt disc I/O on the disc volume

14.11.4. When the Key is disabled, the current volume will still be able to be decrypted by the EC2 instanced. BUT if the volume is detached from the instance the decryption will not work anymore

14.12. Key Rotation

14.12.1. AWS rotates the backend key and keeps the initial Key ID. Key ID is a pointer to the CMK

14.12.2. When a key is deleted, a schedule for the deletion is created. AWS will delete it between 7 and 30 days. Deletion is irreversible

14.12.3. Disable the Key instead of deleting. You can always re-enable a key

14.13. Key Caching

14.13.1. Key caching can be used within the SDK to reduce costs

14.13.2. By requesting multiple Data Keys, you achieve a higher Security Level

14.14. DynamoDB Encryption at rest

14.14.1. Encryption can only be done when the table is created.

14.14.2. Encryption is also done for the indexes

14.14.3. Metadata from S3 objects is not encrypted. A solution is to store it in a DynamoDB table and encrypt.

14.15. General Notes

14.15.1. KMS is a region-wise service. Keys defined in one region cannot be used in another region

14.15.2. KMS uses FIPS 140-2 validated hardware security modules to generate and store your keys

14.15.3. KMS is integrated with AWS CloudTrail to provide a consolidated record of all key management activities and any attempt to use your keys

15. CloudHSM

15.1. A fully managed HSM service that integrates with your applications using industry-standard APIs, such as PKCS#11, Java Cryptography Extension (JCE), and Microsoft CryptoNG (CNG) libraries

16. Security Hub

17. Detective