Repository scan
Repository
branch main
High 19
High 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
- terraform/global-resources/main.tf:21
- terraform/aws-accounts/cloud-platform-ephemeral-test/vpc/main.tf:17
- terraform/aws-accounts/cloud-platform-ephemeral-test/vpc/eks/main.tf:24
- terraform/aws-accounts/cloud-platform-ephemeral-test/vpc/eks/components/main.tf:17
- terraform/aws-accounts/cloud-platform-ephemeral-test/account/main.tf:11
- terraform/aws-accounts/cloud-platform-aws/vpc/main.tf:16
- terraform/aws-accounts/cloud-platform-aws/vpc/eks/main.tf:16
- terraform/aws-accounts/cloud-platform-aws/vpc/eks/core/providers.tf:1
- terraform/aws-accounts/cloud-platform-aws/vpc/eks/core/components/main.tf:16
- terraform/aws-accounts/cloud-platform-aws/vpc/transit-gateway-routes/main.tf:25
- terraform/aws-accounts/cloud-platform-aws/account/main.tf:16
- terraform/aws-accounts/cloud-platform-aws/inspection/providers.tf:1
- terraform/aws-accounts/cloud-platform-aws/transit-gateway/providers.tf:1
- terraform/aws-accounts/cloud-platform-dsd/main.tf:13
High Unencrypted EBS Volume
EBS volume is not encrypted. This is a security risk and often indicates unmanaged infrastructure.
How to fix
Enable encryption for EBS volumes.
Where
- terraform/aws-accounts/cloud-platform-aws/vpc/eks/cluster.tf:116
- terraform/aws-accounts/cloud-platform-aws/vpc/eks/cluster.tf:161
- terraform/aws-accounts/cloud-platform-aws/vpc/eks/cluster.tf:211
High Provisioned IOPS (io1/io2)
Usage of Provisioned IOPS SSD (io1/io2). These are very expensive.
How to fix
Verify if gp3 can meet performance requirements at a lower cost.
Where
- terraform/aws-accounts/cloud-platform-ephemeral-test/vpc/eks/components/storage.tf:46
- terraform/aws-accounts/cloud-platform-aws/vpc/eks/core/components/storage.tf:30
Medium 225
Medium Ensure Terraform module sources use a commit hash
Ensure Terraform module sources use a commit hash
Where
- ../../terraform/aws-accounts/cloud-platform-aws/account/app-opensearch-snapshot-s3.tf:9
- ../../terraform/aws-accounts/cloud-platform-aws/account/app-opensearch.tf:106
- ../../terraform/aws-accounts/cloud-platform-aws/account/app-opensearch.tf:491
- ../../terraform/aws-accounts/cloud-platform-aws/account/ecr.tf:1
- ../../terraform/aws-accounts/cloud-platform-aws/account/ecr.tf:62
- ../../terraform/aws-accounts/cloud-platform-aws/account/firehose.tf:4
- ../../terraform/aws-accounts/cloud-platform-aws/account/firehose.tf:11
- ../../terraform/aws-accounts/cloud-platform-aws/account/live-2-opensearch.tf:103
- ../../terraform/aws-accounts/cloud-platform-aws/account/live-2-opensearch.tf:458
- ../../terraform/aws-accounts/cloud-platform-aws/account/main.tf:117
- ../../terraform/aws-accounts/cloud-platform-aws/account/main.tf:124
- ../../terraform/aws-accounts/cloud-platform-aws/account/main.tf:131
- ../../terraform/aws-accounts/cloud-platform-aws/account/main.tf:186
- ../../terraform/aws-accounts/cloud-platform-aws/account/main.tf:212
- ../../terraform/aws-accounts/cloud-platform-aws/account/main.tf:238
- ../../terraform/aws-accounts/cloud-platform-aws/account/main.tf:263
- ../../terraform/aws-accounts/cloud-platform-aws/account/main.tf:321
- ../../terraform/aws-accounts/cloud-platform-aws/account/modsec-opensearch.tf:92
- ../../terraform/aws-accounts/cloud-platform-aws/account/modsec-opensearch.tf:472
- ../../terraform/aws-accounts/cloud-platform-aws/account/s3.tf:2
- and 66 more
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
- terraform/global-resources/main.tf:21
- terraform/aws-accounts/cloud-platform-ephemeral-test/vpc/main.tf:17
- terraform/aws-accounts/cloud-platform-ephemeral-test/vpc/eks/main.tf:24
- terraform/aws-accounts/cloud-platform-ephemeral-test/vpc/eks/components/main.tf:17
- terraform/aws-accounts/cloud-platform-ephemeral-test/account/main.tf:11
- terraform/aws-accounts/cloud-platform-aws/vpc/main.tf:16
- terraform/aws-accounts/cloud-platform-aws/vpc/eks/main.tf:16
- terraform/aws-accounts/cloud-platform-aws/vpc/eks/core/providers.tf:1
- terraform/aws-accounts/cloud-platform-aws/vpc/eks/core/components/main.tf:16
- terraform/aws-accounts/cloud-platform-aws/vpc/transit-gateway-routes/main.tf:25
- terraform/aws-accounts/cloud-platform-aws/account/main.tf:16
- terraform/aws-accounts/cloud-platform-aws/inspection/providers.tf:1
- terraform/aws-accounts/cloud-platform-aws/transit-gateway/providers.tf:1
- terraform/aws-accounts/cloud-platform-dsd/main.tf:13
Medium Ensure Domain Name System Security Extensions (DNSSEC) signing is enabled for Amazon Route 53 public hosted zones
Ensure Domain Name System Security Extensions (DNSSEC) signing is enabled for Amazon Route 53 public hosted zones
Where
- ../../terraform/aws-accounts/cloud-platform-aws/account/main.tf:151
- ../../terraform/aws-accounts/cloud-platform-aws/vpc/eks/route53.tf:5
- ../../terraform/aws-accounts/cloud-platform-aws/vpc/eks/route53.tf:24
- ../../terraform/aws-accounts/cloud-platform-aws/vpc/eks/route53.tf:45
- ../../terraform/aws-accounts/cloud-platform-aws/vpc/eks/route53.tf:65
- ../../terraform/aws-accounts/cloud-platform-aws/vpc/eks/route53.tf:85
- ../../terraform/aws-accounts/cloud-platform-aws/vpc/eks/route53.tf:107
- ../../terraform/aws-accounts/cloud-platform-ephemeral-test/account/main.tf:67
- ../../terraform/aws-accounts/cloud-platform-ephemeral-test/vpc/eks/main.tf:104
- ../../terraform/modules/cluster_dns/dns.tf:1
Medium Ensure Domain Name System (DNS) query logging is enabled for Amazon Route 53 hosted zones
Ensure Domain Name System (DNS) query logging is enabled for Amazon Route 53 hosted zones
Where
- ../../terraform/aws-accounts/cloud-platform-aws/account/main.tf:151
- ../../terraform/aws-accounts/cloud-platform-aws/vpc/eks/route53.tf:5
- ../../terraform/aws-accounts/cloud-platform-aws/vpc/eks/route53.tf:24
- ../../terraform/aws-accounts/cloud-platform-aws/vpc/eks/route53.tf:45
- ../../terraform/aws-accounts/cloud-platform-aws/vpc/eks/route53.tf:65
- ../../terraform/aws-accounts/cloud-platform-aws/vpc/eks/route53.tf:85
- ../../terraform/aws-accounts/cloud-platform-aws/vpc/eks/route53.tf:107
- ../../terraform/aws-accounts/cloud-platform-ephemeral-test/account/main.tf:67
- ../../terraform/aws-accounts/cloud-platform-ephemeral-test/vpc/eks/main.tf:104
- ../../terraform/modules/cluster_dns/dns.tf:1
Medium AWS SSM Parameter should be Encrypted
AWS SSM Parameter should be Encrypted
Where
- ../../terraform/aws-accounts/cloud-platform-aws/account/cloudfront-waf.tf:12
- ../../terraform/aws-accounts/cloud-platform-aws/account/cloudfront-waf.tf:80
- ../../terraform/aws-accounts/cloud-platform-aws/account/cloudfront-waf.tf:12
- ../../terraform/aws-accounts/cloud-platform-aws/account/cloudfront-waf.tf:12
- ../../terraform/aws-accounts/cloud-platform-aws/account/cloudfront-waf.tf:80
- ../../terraform/aws-accounts/cloud-platform-aws/account/cloudfront-waf.tf:80
Medium Ensure no IAM policies documents allow ALL or any AWS principal permissions to the resource
Ensure no IAM policies documents allow ALL or any AWS principal permissions to the resource
Where
- ../../terraform/aws-accounts/cloud-platform-aws/account/app-opensearch.tf:38
- ../../terraform/aws-accounts/cloud-platform-aws/account/app-opensearch.tf:72
- ../../terraform/aws-accounts/cloud-platform-aws/account/live-2-opensearch.tf:37
- ../../terraform/aws-accounts/cloud-platform-aws/account/live-2-opensearch.tf:66
- ../../terraform/aws-accounts/cloud-platform-aws/account/modsec-opensearch.tf:25
- ../../terraform/aws-accounts/cloud-platform-aws/account/modsec-opensearch.tf:54
Medium Missing Spot Instance Usage
No spot instances detected. Spot instances can save 50-90% on compute costs for interruptible workloads.
How to fix
Use spot instances for batch jobs, data analysis, and optional tasks. Consider aws_spot_instance_request or spot_price in launch templates.
Where
- terraform/global-resources/elasticsearch.tf:173
- terraform/aws-accounts/cloud-platform-ephemeral-test/account/opensearch.tf:126
- terraform/aws-accounts/cloud-platform-ephemeral-test/account/elasticsearch.tf:95
- terraform/aws-accounts/cloud-platform-aws/account/app-opensearch.tf:141
- terraform/aws-accounts/cloud-platform-aws/account/live-2-opensearch.tf:138
- terraform/aws-accounts/cloud-platform-aws/account/modsec-opensearch.tf:128
Medium Ensure that CloudWatch Log Group is encrypted by KMS
Ensure that CloudWatch Log Group is encrypted by KMS
Where
- ../../terraform/aws-accounts/cloud-platform-aws/inspection/firewall.tf:99
- ../../terraform/aws-accounts/cloud-platform-aws/vpc/firewall.tf:110
- ../../terraform/global-resources/elasticsearch.tf:96
- ../../terraform/global-resources/elasticsearch.tf:110
- ../../terraform/global-resources/elasticsearch.tf:125
Medium Ensure CloudWatch log groups retains logs for at least 1 year
Ensure CloudWatch log groups retains logs for at least 1 year
Where
- ../../terraform/aws-accounts/cloud-platform-aws/inspection/firewall.tf:99
- ../../terraform/aws-accounts/cloud-platform-aws/vpc/firewall.tf:110
- ../../terraform/global-resources/elasticsearch.tf:96
- ../../terraform/global-resources/elasticsearch.tf:110
- ../../terraform/global-resources/elasticsearch.tf:125
Medium Ensure Secrets Manager secrets should have automatic rotation enabled
Ensure Secrets Manager secrets should have automatic rotation enabled
Where
- ../../terraform/aws-accounts/cloud-platform-aws/account/secrets.tf:6
- ../../terraform/aws-accounts/cloud-platform-aws/account/secrets.tf:28
- ../../terraform/aws-accounts/cloud-platform-ephemeral-test/account/secrets.tf:6
- ../../terraform/global-resources/secrets.tf:6
Medium Ensure that Elasticsearch is configured inside a VPC
Ensure that Elasticsearch is configured inside a VPC
Where
- ../../terraform/aws-accounts/cloud-platform-aws/account/app-opensearch.tf:121
- ../../terraform/aws-accounts/cloud-platform-aws/account/live-2-opensearch.tf:118
- ../../terraform/aws-accounts/cloud-platform-aws/account/modsec-opensearch.tf:108
- ../../terraform/global-resources/elasticsearch.tf:164
Medium Ensure that Secrets Manager secret is encrypted using KMS CMK
Ensure that Secrets Manager secret is encrypted using KMS CMK
Where
- ../../terraform/aws-accounts/cloud-platform-aws/account/secrets.tf:6
- ../../terraform/aws-accounts/cloud-platform-aws/account/secrets.tf:28
- ../../terraform/aws-accounts/cloud-platform-ephemeral-test/account/secrets.tf:6
- ../../terraform/global-resources/secrets.tf:6
Medium Ensure that Elasticsearch is not using the default Security Group
Ensure that Elasticsearch is not using the default Security Group
Where
- ../../terraform/aws-accounts/cloud-platform-aws/account/app-opensearch.tf:121
- ../../terraform/aws-accounts/cloud-platform-aws/account/live-2-opensearch.tf:118
- ../../terraform/aws-accounts/cloud-platform-aws/account/modsec-opensearch.tf:108
- ../../terraform/global-resources/elasticsearch.tf:164
Medium Ensure Elasticsearch Domain Audit Logging is enabled
Ensure Elasticsearch Domain Audit Logging is enabled
Where
- ../../terraform/aws-accounts/cloud-platform-aws/account/app-opensearch.tf:121
- ../../terraform/aws-accounts/cloud-platform-aws/account/live-2-opensearch.tf:118
- ../../terraform/aws-accounts/cloud-platform-aws/account/modsec-opensearch.tf:108
- ../../terraform/global-resources/elasticsearch.tf:164
Medium Ensure Elasticsearch domains are configured with at least three dedicated master nodes for HA
Ensure Elasticsearch domains are configured with at least three dedicated master nodes for HA
Where
- ../../terraform/aws-accounts/cloud-platform-aws/account/app-opensearch.tf:121
- ../../terraform/aws-accounts/cloud-platform-aws/account/live-2-opensearch.tf:118
- ../../terraform/aws-accounts/cloud-platform-aws/account/modsec-opensearch.tf:108
- ../../terraform/global-resources/elasticsearch.tf:164
Medium Ensure WAF2 has a Logging Configuration
Ensure WAF2 has a Logging Configuration
Where
- ../../terraform/aws-accounts/cloud-platform-aws/account/cloudfront-waf.tf:37
- ../../terraform/aws-accounts/cloud-platform-aws/account/cloudfront-waf.tf:37
- ../../terraform/aws-accounts/cloud-platform-aws/account/cloudfront-waf.tf:37
Medium Ensure KMS key Policy is defined
Ensure KMS key Policy is defined
Where
- ../../terraform/aws-accounts/cloud-platform-aws/account/app-opensearch.tf:95
- ../../terraform/aws-accounts/cloud-platform-aws/account/live-2-opensearch.tf:88
- ../../terraform/aws-accounts/cloud-platform-aws/account/modsec-opensearch.tf:77
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
- ../../terraform/aws-accounts/cloud-platform-aws/account/cloudfront-waf.tf:37
- ../../terraform/aws-accounts/cloud-platform-aws/account/cloudfront-waf.tf:37
- ../../terraform/aws-accounts/cloud-platform-aws/account/cloudfront-waf.tf:37
Medium Ensure SSM parameters are using KMS CMK
Ensure SSM parameters are using KMS CMK
Where
- ../../terraform/aws-accounts/cloud-platform-aws/account/cortex-xsiam-role.tf:5
- ../../terraform/aws-accounts/cloud-platform-aws/account/ssm.tf:12
- ../../terraform/aws-accounts/cloud-platform-aws/vpc/eks/core/components/ssm.tf:41
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
- ../../terraform/aws-accounts/cloud-platform-aws/vpc/eks/security-group.tf:23
- ../../terraform/aws-accounts/cloud-platform-aws/vpc/eks/security-group.tf:75
- ../../terraform/aws-accounts/cloud-platform-aws/vpc/vpc-endpoints.tf:3
Medium Ensure rotation for customer created CMKs is enabled
Ensure rotation for customer created CMKs is enabled
Where
- ../../terraform/aws-accounts/cloud-platform-aws/account/app-opensearch.tf:95
- ../../terraform/aws-accounts/cloud-platform-aws/account/live-2-opensearch.tf:88
- ../../terraform/aws-accounts/cloud-platform-aws/account/modsec-opensearch.tf:77
Medium Ensure Elasticsearch Domain Logging is enabled
Ensure Elasticsearch Domain Logging is enabled
Where
- ../../terraform/aws-accounts/cloud-platform-aws/account/app-opensearch.tf:121
- ../../terraform/aws-accounts/cloud-platform-aws/account/live-2-opensearch.tf:118
- ../../terraform/aws-accounts/cloud-platform-aws/account/modsec-opensearch.tf:108
Medium Ensure that Security Groups are attached to another resource
Ensure that Security Groups are attached to another resource
Where
- ../../terraform/aws-accounts/cloud-platform-aws/vpc/eks/security-group.tf:10
- ../../terraform/aws-accounts/cloud-platform-aws/vpc/vpc-endpoints.tf:3
Medium Ensure IAM policies does not allow write access without constraints
Ensure IAM policies does not allow write access without constraints
Where
- ../../terraform/aws-accounts/cloud-platform-aws/account/cortex-xsiam-role.tf:21
- ../../terraform/aws-accounts/cloud-platform-ephemeral-test/account/modules/automated-tests/main.tf:15
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
- ../../terraform/aws-accounts/cloud-platform-aws/account/sqs.tf:400
- ../../terraform/aws-accounts/cloud-platform-ephemeral-test/account/modules/automated-tests/main.tf:7
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
- ../../terraform/aws-accounts/cloud-platform-aws/account/cortex-xsiam-role.tf:21
- ../../terraform/aws-accounts/cloud-platform-ephemeral-test/account/modules/automated-tests/main.tf:15
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
- ../../terraform/aws-accounts/cloud-platform-aws/account/sqs.tf:405
- ../../terraform/aws-accounts/cloud-platform-ephemeral-test/account/modules/automated-tests/main.tf:479
Medium Ensure that Auto Scaling is enabled on your DynamoDB tables
Ensure that Auto Scaling is enabled on your DynamoDB tables
Where
- ../../terraform/aws-accounts/cloud-platform-aws/account/main.tf:292
Medium Ensure AWS ElasticSearch/OpenSearch Fine-grained access control is enabled
Ensure AWS ElasticSearch/OpenSearch Fine-grained access control is enabled
Where
- ../../terraform/global-resources/elasticsearch.tf:164
Medium Ensure access control lists for S3 buckets are disabled
Ensure access control lists for S3 buckets are disabled
Where
- ../../terraform/aws-accounts/cloud-platform-aws/account/s3.tf:16
Medium Ensure IAM policies does not allow credentials exposure
Ensure IAM policies does not allow credentials exposure
Where
- ../../terraform/aws-accounts/cloud-platform-ephemeral-test/account/modules/automated-tests/main.tf:15
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
- ../../terraform/aws-accounts/cloud-platform-ephemeral-test/account/modules/automated-tests/main.tf:15
Medium Ensure IAM policies does not allow privilege escalation
Ensure IAM policies does not allow privilege escalation
Where
- ../../terraform/aws-accounts/cloud-platform-ephemeral-test/account/modules/automated-tests/main.tf:15
Medium Ensure DynamoDB Tables are encrypted using a KMS Customer Managed CMK
Ensure DynamoDB Tables are encrypted using a KMS Customer Managed CMK
Where
- ../../terraform/aws-accounts/cloud-platform-aws/account/main.tf:292
Medium Ensure S3 bucket Object is encrypted by KMS using a customer managed Key (CMK)
Ensure S3 bucket Object is encrypted by KMS using a customer managed Key (CMK)
Where
- ../../terraform/aws-accounts/cloud-platform-aws/account/main.tf:311
Medium Verify Elasticsearch domain is using an up to date TLS policy
Verify Elasticsearch domain is using an up to date TLS policy
Where
- ../../terraform/global-resources/elasticsearch.tf:164
Medium Ensure every security group and rule has a description
Ensure every security group and rule has a description
Where
- ../../terraform/aws-accounts/cloud-platform-aws/vpc/vpc-endpoints.tf:3
Medium Ensure all data stored in the Elasticsearch is encrypted with a CMK
Ensure all data stored in the Elasticsearch is encrypted with a CMK
Where
- ../../terraform/global-resources/elasticsearch.tf:164
Medium Ensure DynamoDB point in time recovery (backup) is enabled
Ensure DynamoDB point in time recovery (backup) is enabled
Where
- ../../terraform/aws-accounts/cloud-platform-aws/account/main.tf:292
Medium Ensure all data stored in the Elasticsearch is securely encrypted at rest
Ensure all data stored in the Elasticsearch is securely encrypted at rest
Where
- ../../terraform/global-resources/elasticsearch.tf:164
and 9 more groups with 9 findings
Low 3
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
- terraform/aws-accounts/cloud-platform-aws/vpc/eks/cluster.tf:113
- terraform/aws-accounts/cloud-platform-aws/vpc/eks/cluster.tf:158
- terraform/aws-accounts/cloud-platform-aws/vpc/eks/cluster.tf:207
Grades use InfraScan Cloud's current formula, so they can differ from the ones first shown for this scan. Findings reflect the repository; 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.