Property
Languageterraform
Severityhigh
Serviceec2
ProviderAWS
Vulnerability Typemisconfiguration

Description#

Sensitive information, such as credentials or secrets, is included in EC2 Launch Configuration user data, which is stored in plaintext and accessible to anyone with instance or API access. This exposes confidential data in an insecure manner.

Impact#

If exploited, attackers or unauthorized users with access to the instance or AWS APIs can retrieve sensitive data from user data scripts, leading to potential credential theft, unauthorized access to systems, or further compromise of cloud resources.

Resolution#

Don’t use sensitive data in user data