Alibaba Cloud ECS disk encryption protects data at rest by automatically encrypting data transferred to disks and decrypting when read. Ensuring all attached disks are encrypted prevents unauthorized access to stored data. This check verifies disk encryption is enabled on all ECS disks attached to instances, using KMS for key management.
Risk
Unencrypted disks attached to ECS instances pose a significant security risk, as sensitive data could be exposed if the disk is compromised, improperly decommissioned, or accessed by unauthorized parties. Data at rest without encryption is vulnerable to unauthorized access, impacting confidentiality and potentially leading to data breaches or regulatory non-compliance.
prowler alibabacloud --checks ecs_attached_disk_encrypted
Recommendation
Enable encryption on all ECS disks to protect data at rest. Use KMS-managed keys for encryption. Note that existing unencrypted disks cannot be directly converted; data must be migrated to new encrypted disks.
Remediation
aliyun ecs CreateDisk --DiskName <disk_name> --Size <size> --Encrypted true --KmsKeyId <kms_key_id>
- Log on to the ECS Console > Instances & Images > Images.
- Select the Custom Image tab and select the target image.
- Click Copy Image and check the Encrypt box.
- Select a key and click OK.
- For data disks, go to Instances > Create Instance, in the Storage section click Add Disk, select Disk Encryption, and choose a key.
Note: You cannot directly convert unencrypted disks to encrypted disks.
Source Code
Resource Type
ALIYUN::ECS::Disk