This plugin guarantees that legitimate KMS keys are used to encrypt EFS file systems
Risk Level: Medium
Description:
This plugin guarantees that legitimate KMS keys are used to encrypt EFS file systems. If an encryption key has been destroyed, an issue will be reported.
About the Service :
Amazon EFS is a scalable file storage system that works with Amazon EC2. For workloads and applications operating on several instances, an EFS file system may be used as a shared data source. With no need for maintenance or provisioning, Amazon Elastic File System (Amazon EFS) expands and shrinks as the files are added or deleted.
Impact :
In case the encryption key is deleted, there are greater chances of unauthorized access and the compliance requirements will not be met.
Steps to reproduce :
- Log in to the AWS Management Console.
- Navigate to the Amazon EFS dashboard.
https://ap-south-1.console.aws.amazon.com/efs/ - Click on File systems on the left navigation panel.
- Click on the file system that you want to examine.
- Check whether it shows the encryption is enabled or not and if the encryption key is present or not. If the encryption key has been deleted that means it is not following the best security practices.
- Repeat the same steps for other file systems as well.
Steps for remediation :
- Log in to the AWS Management Console.
- Navigate to the Amazon EFS dashboard.
- https://ap-south-1.console.aws.amazon.com/efs/
- Click on File systems on the left navigation panel.
- Click on the file system that you want to examine.
- Check whether it shows the encryption is enabled or not and if the encryption key is present or not. If the encryption key has been deleted that means it is not following the best security practices.
- Navigate to KMS dashboard and click on Customer Managed Keys.
- Next, click on Create Key and then choose the required options in the Configure key and click Next.
- In the Add labels section, add the alias and description and click Next.
- Next, define Key administrative permissions and Define key usage permissions. Finally, review and click Finish.
- Now, navigate to the EFS dashboard and click on Create new file system
- Fill in all the necessary details required in the File System Settings dialogue box.
- In the encryption table, select enable encryption and fill in the CMK created earlier.
- Fill in all the details in the Network Access tab.
- Click next, and then select the most appropriate options of File System Policy.
Click Next and then click Create. - Take the copy of the data of the old file system in this file system and then delete the old file system.
Repeat the same steps for other file systems as well.
References: