Check ID:
Provider: AWS
Service:
Severity: CRITICAL
Categories:
Resource type:
autoscaling_find_secrets_ec2_launch_configurationProvider: AWS
Service:
autoscalingSeverity: CRITICAL
Categories:
secretsResource type:
AwsAutoScalingLaunchConfigurationWhat this check verifies
[DEPRECATED] EC2 Auto Scaling launch configurations are analyzed for secrets embedded inUser Data, such as passwords, tokens, or API keys in bootstrapping scripts.
Risk
Secrets inUser Data erode confidentiality and integrity:
- Instance users or processes can read or log them
- Exposed keys enable unauthorized API calls, data exfiltration, and lateral movement
- Credential reuse increases blast radius across accounts and services
Recommendation
Never place secrets inUser Data.
- Use a managed secret store with an instance role to fetch at runtime
- Enforce least privilege, rotate secrets, and avoid writing secrets to logs
- Prefer short-lived, scoped credentials and layer controls for defense in depth
Remediation
- Terraform
- Native IaC
- Dashboard steps
References
Where this check fires
This check runs on every scheduled scan against your AWS account. Findings appear at Cloud Security → Findings filterable byCheck ID = autoscaling_find_secrets_ec2_launch_configuration. To re-evaluate after a fix, hit Run now on the account’s schedule under Cloud Security → Schedules — the next scan re-checks this control and marks the finding fixed or keeps it persistent.
← Back to AWS checks