Repository scan
secure-cloud-architecture
UniteLiveDisperseDie/secure-cloud-architecture · branch main · scanned 25 Jun 2026 · 604 resources
High 2
High Expensive NAT Gateway
NAT Gateways are expensive managed services. Ensure they are strictly necessary.
How to fix
Consider using VPC Endpoints, NAT Instances for non-critical workloads, or share a single NAT Gateway across multiple subnets.
Where
Medium 228
Medium Ensure that CloudWatch Log Group is encrypted by KMS
Ensure that CloudWatch Log Group is encrypted by KMS
Where
- ../../02-scale-startup/modules/observability/cloudtrail.tf:5
- ../../03-scale-growth/production-account/modules/compute/ecs_task.tf:3
- ../../03-scale-growth/production-account/modules/observability/cloudtrail.tf:1
- ../../03-scale-growth/production-account/modules/security/config/eventbridge.tf:47
- ../../04-scale-enterprise/logging-module/modules/alerting/main.tf:258
- ../../04-scale-enterprise/logging-module/modules/alerting/main.tf:258
- ../../04-scale-enterprise/logging-module/modules/log_sources/main.tf:17
- ../../04-scale-enterprise/logging-module/modules/log_sources/main.tf:145
- ../../04-scale-enterprise/logging-module/modules/onprem_integration/main.tf:81
- ../../04-scale-enterprise/logging-module/modules/opensearch_siem/main.tf:90
- ../../04-scale-enterprise/logging-module/modules/opensearch_siem/main.tf:90
- ../../04-scale-enterprise/logging-module/modules/opensearch_siem/main.tf:90
- ../../04-scale-enterprise/logging-module/modules/security_findings/main.tf:316
Medium Ensure CloudWatch log groups retains logs for at least 1 year
Ensure CloudWatch log groups retains logs for at least 1 year
Where
- ../../03-scale-growth/production-account/modules/compute/ecs_task.tf:3
- ../../03-scale-growth/production-account/modules/security/config/eventbridge.tf:47
- ../../04-scale-enterprise/logging-module/modules/alerting/main.tf:258
- ../../04-scale-enterprise/logging-module/modules/alerting/main.tf:258
- ../../04-scale-enterprise/logging-module/modules/log_sources/main.tf:17
- ../../04-scale-enterprise/logging-module/modules/log_sources/main.tf:145
- ../../04-scale-enterprise/logging-module/modules/onprem_integration/main.tf:81
- ../../04-scale-enterprise/logging-module/modules/opensearch_siem/main.tf:90
- ../../04-scale-enterprise/logging-module/modules/opensearch_siem/main.tf:90
- ../../04-scale-enterprise/logging-module/modules/opensearch_siem/main.tf:90
- ../../04-scale-enterprise/logging-module/modules/security_findings/main.tf:316
Medium Missing Cost and Usage Report
No AWS Cost and Usage Report (CUR) configured. CUR provides detailed cost tracking and analysis.
How to fix
Enable AWS Cost and Usage Reports to track spending patterns and identify optimization opportunities.
Where
- 04-scale-enterprise/logging-module/providers.tf:11
- 04-scale-enterprise/logging-module/examples/complete/main.tf:5
- 04-scale-enterprise/management-account-module/main.tf:11
- 03-scale-growth/log-archive-account/main.tf:1
- 03-scale-growth/production-account/main.tf:1
- 03-scale-growth/management-account/main.tf:1
- 03-scale-growth/security-account/main.tf:1
- 02-scale-startup/main.tf:1
- 01-scale-hobby/main.tf:10
- 01-scale-hobby/environments/dev/main.tf:10
- 01-scale-hobby/environments/prod/main.tf:10
Medium Ensure IAM policies does not allow write access without constraints
Ensure IAM policies does not allow write access without constraints
Where
- ../../02-scale-startup/modules/security/iam/main.tf:157
- ../../03-scale-growth/production-account/modules/security/iam/main.tf:163
- ../../04-scale-enterprise/logging-module/modules/security_findings/main.tf:189
- ../../04-scale-enterprise/management-account-module/modules/identity_center/main.tf:164
- ../../04-scale-enterprise/management-account-module/modules/identity_center/main.tf:326
- ../../04-scale-enterprise/management-account-module/modules/identity_center/main.tf:393
- ../../04-scale-enterprise/management-account-module/modules/identity_center/main.tf:453
- ../../04-scale-enterprise/management-account-module/modules/identity_center/main.tf:512
- ../../04-scale-enterprise/management-account-module/modules/identity_center/main.tf:574
Medium Ensure no IAM policies documents allow "*" as a statement's resource for restrictable actions
Ensure no IAM policies documents allow "*" as a statement's resource for restrictable actions
Where
- ../../02-scale-startup/modules/security/iam/main.tf:157
- ../../03-scale-growth/production-account/modules/security/iam/main.tf:163
- ../../04-scale-enterprise/logging-module/modules/security_findings/main.tf:189
- ../../04-scale-enterprise/management-account-module/modules/identity_center/main.tf:164
- ../../04-scale-enterprise/management-account-module/modules/identity_center/main.tf:326
- ../../04-scale-enterprise/management-account-module/modules/identity_center/main.tf:393
- ../../04-scale-enterprise/management-account-module/modules/identity_center/main.tf:453
- ../../04-scale-enterprise/management-account-module/modules/identity_center/main.tf:512
- ../../04-scale-enterprise/management-account-module/modules/identity_center/main.tf:574
Medium Ensure S3 buckets should have event notifications enabled
Ensure S3 buckets should have event notifications enabled
Where
- ../../01-scale-hobby/main.tf:24
- ../../02-scale-startup/main.tf:142
- ../../02-scale-startup/main.tf:187
- ../../02-scale-startup/modules/cdn/s3.tf:4
- ../../03-scale-growth/log-archive-account/modules/s3/main.tf:4
- ../../03-scale-growth/production-account/main.tf:124
- ../../03-scale-growth/production-account/modules/cdn/s3.tf:1
- ../../04-scale-enterprise/logging-module/modules/s3_logging/main.tf:10
Medium Ensure that S3 bucket has cross-region replication enabled
Ensure that S3 bucket has cross-region replication enabled
Where
- ../../01-scale-hobby/main.tf:24
- ../../02-scale-startup/main.tf:142
- ../../02-scale-startup/main.tf:187
- ../../02-scale-startup/modules/cdn/s3.tf:4
- ../../03-scale-growth/log-archive-account/modules/s3/main.tf:4
- ../../03-scale-growth/production-account/main.tf:124
- ../../03-scale-growth/production-account/modules/cdn/s3.tf:1
- ../../04-scale-enterprise/logging-module/modules/s3_logging/main.tf:10
Medium Ensure the S3 bucket has access logging enabled
Ensure the S3 bucket has access logging enabled
Where
- ../../01-scale-hobby/main.tf:24
- ../../02-scale-startup/main.tf:142
- ../../02-scale-startup/main.tf:187
- ../../02-scale-startup/modules/cdn/s3.tf:4
- ../../03-scale-growth/log-archive-account/modules/s3/main.tf:4
- ../../03-scale-growth/production-account/main.tf:124
- ../../03-scale-growth/production-account/modules/cdn/s3.tf:1
- ../../04-scale-enterprise/logging-module/modules/s3_logging/main.tf:10
Medium Ensure Secrets Manager secrets should have automatic rotation enabled
Ensure Secrets Manager secrets should have automatic rotation enabled
Where
- ../../02-scale-startup/main.tf:114
- ../../02-scale-startup/modules/security/secrets/main.tf:16
- ../../03-scale-growth/production-account/main.tf:85
- ../../03-scale-growth/production-account/modules/security/secrets/main.tf:1
- ../../03-scale-growth/production-account/modules/security/secrets/main.tf:15
- ../../04-scale-enterprise/logging-module/modules/onprem_integration/main.tf:120
- ../../04-scale-enterprise/logging-module/modules/opensearch_siem/main.tf:71
Medium Disallow IAM roles, users, and groups from using the AWS AdministratorAccess policy
Disallow IAM roles, users, and groups from using the AWS AdministratorAccess policy
Where
- ../../01-scale-hobby/modules/security/main.tf:21
- ../../02-scale-startup/modules/security/iam/main.tf:326
- ../../03-scale-growth/management-account/modules/identity_center/main.tf:34
- ../../03-scale-growth/management-account/modules/identity_center/main.tf:48
- ../../04-scale-enterprise/management-account-module/modules/identity_center/main.tf:22
- ../../04-scale-enterprise/management-account-module/modules/identity_center/main.tf:96
- ../../04-scale-enterprise/management-account-module/modules/identity_center/main.tf:296
Medium Ensure that Security Groups are attached to another resource
Ensure that Security Groups are attached to another resource
Where
- ../../01-scale-hobby/modules/network/security_groups.tf:40
- ../../02-scale-startup/modules/network/security_groups.tf:36
- ../../02-scale-startup/modules/network/security_groups.tf:64
- ../../03-scale-growth/production-account/modules/network/security_groups.tf:49
- ../../03-scale-growth/production-account/modules/network/security_groups.tf:100
- ../../03-scale-growth/production-account/modules/network/security_groups.tf:121
Medium Ensure that an S3 bucket has a lifecycle configuration
Ensure that an S3 bucket has a lifecycle configuration
Where
Medium Ensure IAM policies does not allow credentials exposure
Ensure IAM policies does not allow credentials exposure
Where
- ../../02-scale-startup/modules/security/iam/main.tf:157
- ../../04-scale-enterprise/logging-module/modules/security_findings/main.tf:189
- ../../04-scale-enterprise/management-account-module/modules/identity_center/main.tf:326
- ../../04-scale-enterprise/management-account-module/modules/identity_center/main.tf:393
- ../../04-scale-enterprise/management-account-module/modules/identity_center/main.tf:453
Medium Ensure no security groups allow egress from 0.0.0.0:0 to port -1
Ensure no security groups allow egress from 0.0.0.0:0 to port -1
Where
- ../../01-scale-hobby/modules/network/security_groups.tf:4
- ../../01-scale-hobby/modules/network/security_groups.tf:40
- ../../02-scale-startup/modules/network/security_groups.tf:8
- ../../02-scale-startup/modules/network/security_groups.tf:36
- ../../04-scale-enterprise/logging-module/modules/opensearch_siem/main.tf:31
Medium Ensure that S3 buckets are encrypted with KMS by default
Ensure that S3 buckets are encrypted with KMS by default
Where
Medium Ensure that Secrets Manager secret is encrypted using KMS CMK
Ensure that Secrets Manager secret is encrypted using KMS CMK
Where
Medium Ensure all data stored in the SNS topic is encrypted
Ensure all data stored in the SNS topic is encrypted
Where
Medium Ensure the default security group of every VPC restricts all traffic
Ensure the default security group of every VPC restricts all traffic
Where
Medium Ensure public facing ALB are protected by WAF
Ensure public facing ALB are protected by WAF
Where
Medium Ensure WAF2 has a Logging Configuration
Ensure WAF2 has a Logging Configuration
Where
Medium Ensure that AWS Lambda function is configured for function-level concurrent execution limit
Ensure that AWS Lambda function is configured for function-level concurrent execution limit
Where
Medium Ensure that AWS Lambda function is configured for a Dead Letter Queue(DLQ)
Ensure that AWS Lambda function is configured for a Dead Letter Queue(DLQ)
Where
Medium Ensure that AWS Lambda function is configured inside a VPC
Ensure that AWS Lambda function is configured inside a VPC
Where
Medium Check encryption settings for Lambda environmental variable
Check encryption settings for Lambda environmental variable
Where
Medium Ensure CloudTrail defines an SNS Topic
Medium Ensure AWS Lambda function is configured to validate code-signing
Ensure AWS Lambda function is configured to validate code-signing
Where
Medium Ensure access is controlled through SSO and not AWS IAM defined users
Ensure access is controlled through SSO and not AWS IAM defined users
Where
Medium Ensure IAM policies does not allow permissions management / resource exposure without constraints
Ensure IAM policies does not allow permissions management / resource exposure without constraints
Where
Medium Ensure IAM policies are attached only to groups or roles (Reducing access management complexity may in-turn reduce opportunity for a principal to inadvertently receive or retain excessive privileges.)
Ensure IAM policies are attached only to groups or roles (Reducing access management complexity may in-turn reduce opportunity for a principal to inadvertently receive or retain excessive privileges.)
Where
Medium X-Ray tracing is enabled for Lambda
Medium Load Balancer for Single Instance
Load balancer detected. Verify it's needed - load balancers cost $15-20/month even if unused.
How to fix
Consider if load balancer is necessary for single-instance deployments or low-traffic applications.
Where
Medium Ensure VPC flow logging is enabled in all VPCs
Ensure VPC flow logging is enabled in all VPCs
Where
Medium Ensure CloudFront distribution has a response headers policy attached
Ensure CloudFront distribution has a response headers policy attached
Where
Medium Ensure AWS CloudFront attached WAFv2 WebACL is configured with AMR for Log4j Vulnerability
Ensure AWS CloudFront attached WAFv2 WebACL is configured with AMR for Log4j Vulnerability
Where
Medium Ensure that enhanced monitoring is enabled for Amazon RDS instances
Ensure that enhanced monitoring is enabled for Amazon RDS instances
Where
Medium Ensure VPC subnets do not assign public IP by default
Ensure VPC subnets do not assign public IP by default
Where
Medium Ensure that Load Balancer has deletion protection enabled
Ensure that Load Balancer has deletion protection enabled
Where
Medium Ensure WAF prevents message lookup in Log4j2. See CVE-2021-44228 aka log4jshell
Ensure WAF prevents message lookup in Log4j2. See CVE-2021-44228 aka log4jshell
Where
Medium Ensure no NACL allow ingress from 0.0.0.0:0 to port 3389
Ensure no NACL allow ingress from 0.0.0.0:0 to port 3389
Where
Medium Ensure Kinesis Firehose delivery stream is encrypted
Ensure Kinesis Firehose delivery stream is encrypted
Where
and 37 more groups with 43 findings
Low 12
Low Missing AWS Budget
No AWS budget configured. Budgets help monitor and control spending with alerts.
How to fix
Create AWS budgets with alerts for forecasted and actual costs to avoid unexpected charges.
Where
- 04-scale-enterprise/logging-module/providers.tf:11
- 04-scale-enterprise/logging-module/examples/complete/main.tf:5
- 04-scale-enterprise/management-account-module/main.tf:11
- 03-scale-growth/log-archive-account/main.tf:1
- 03-scale-growth/production-account/main.tf:1
- 03-scale-growth/management-account/main.tf:1
- 03-scale-growth/security-account/main.tf:1
- 02-scale-startup/main.tf:1
- 01-scale-hobby/main.tf:10
- 01-scale-hobby/environments/dev/main.tf:10
- 01-scale-hobby/environments/prod/main.tf:10
Low Large Root Volume
Oversized root block device. Many workloads don't require large root volumes.
How to fix
Reduce root volume size to minimum required (typically 8-20 GB for most Linux instances).
Where
Grades use InfraScan Cloud's current formula, so they can differ from the ones first shown for this scan. Findings reflect the repository on 25 Jun 2026; it may have changed since.
Scan your own repository
InfraScan Cloud scans your repositories and AWS accounts, keeps the history and shows how to fix each finding.