EFS file systems should be encrypted at rest
This check looks at each Amazon EFS file system and whether encryption at rest is on. The safe setting is an encrypted file system, using an AWS KMS key.
Why it matters
An EFS file system often holds shared application data, home directories or backups of sensitive files. Encryption at rest protects the stored data and metadata if the underlying storage is ever accessed without authorisation. EFS encrypts file contents with an AWS KMS key, either the AWS owned key for EFS or a customer managed key, and encrypts file and directory names with a key it manages internally. It handles encryption and decryption transparently, so applications need no changes.
AWS states that from September 4, 2026 every new EFS file system is encrypted, whether created in the console, CLI, API or an SDK. File systems made earlier and left unencrypted stay unencrypted, which is what this check finds. The encryption setting cannot be changed after creation.
Source: Encrypting data at rest in the Amazon EFS user guide.
How to check it yourself
In the Amazon EFS console, open File systems, select one and look at the Encrypted value on the General tab. Repeat for each Region you use.
Read-only AWS CLI:
aws efs describe-file-systems --query "FileSystems[].{Id:FileSystemId,Name:Name,Encrypted:Encrypted,KmsKeyId:KmsKeyId}"Any file system showing Encrypted: false needs attention.
How to fix it
You cannot turn encryption on for an existing file system. AWS's documented route is to replicate the data into a new, encrypted file system and then point your workloads at it. In the console, select the unencrypted file system and use its Replication tab to create a replica, choosing a KMS key for the destination. Read AWS's replication page before you start, because the destination options matter.
aws efs create-replication-configuration --source-file-system-id <fs-id> --destinations Region=<region>,KmsKeyId=<kms-key-id>When the copy is in sync, plan a cut-over: remount clients to the new file system, check the application, and only then retire the old one. If you use a customer managed key, its policy must allow the EFS service as described in the AWS guide. ConfigCobra itself never changes your AWS account; these steps are yours to run.
What changes when you fix it
This is a migration, so plan for it. Clients that mount the old file system have to be switched to the new one, which means a new file system ID in mount configuration, infrastructure templates and any access points. Expect a short maintenance window for the final sync and remount. While both file systems exist you pay for both. AWS says encryption and decryption are transparent to applications, so the data itself should behave the same. If you choose a customer managed KMS key, whoever manages that key now also controls EFS access, and revoking its grant stops EFS from using the key. You can enforce encrypted creation going forward with the elasticfilesystem:Encrypted IAM condition key or a service control policy.
Included in
| Benchmark | CIS ID | Profile |
|---|---|---|
| CIS Amazon Web Services Foundations v7.0.0 | 3.3.1 | Level 1 |
Related checks
- Ensure S3 Bucket Policy is set to deny HTTP requestsCIS 3.1.1
- Ensure MFA Delete is enabled on S3 bucketsCIS 3.1.2
- Ensure all data in Amazon S3 has been discovered, classified, and secured when necessaryCIS 3.1.3
- Ensure that S3 is configured with 'Block Public Access' enabledCIS 3.1.4
- Ensure that encryption-at-rest is enabled for RDS instancesCIS 3.2.1
Check this on your AWS
ConfigCobra runs this check with every other control of the CIS Amazon Web Services Benchmarks, read-only.