Repository scan
cloud-platform-infrastructure
ministryofjustice/cloud-platform-infrastructure · branch main · scanned 10 Feb 2026 · 237 resources
High 20
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
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
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
Medium Ensure CloudWatch log groups retains logs for at least 1 year
Ensure CloudWatch log groups retains logs for at least 1 year
Where
Medium Ensure Secrets Manager secrets should have automatic rotation enabled
Ensure Secrets Manager secrets should have automatic rotation enabled
Where
Medium Ensure that Elasticsearch is configured inside a VPC
Ensure that Elasticsearch is configured inside a VPC
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 that Elasticsearch is not using the default Security Group
Ensure that Elasticsearch is not using the default Security Group
Where
Medium Ensure Elasticsearch Domain Audit Logging is enabled
Ensure Elasticsearch Domain Audit Logging is enabled
Where
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
Medium Ensure WAF2 has a Logging Configuration
Medium Ensure KMS key Policy is defined
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 SSM parameters are using KMS CMK
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
Medium Ensure rotation for customer created CMKs is enabled
Ensure rotation for customer created CMKs is enabled
Where
Medium Ensure Elasticsearch Domain Logging is enabled
Ensure Elasticsearch Domain Logging is enabled
Where
Medium Ensure that Security Groups are attached to another resource
Ensure that Security Groups are attached to another resource
Where
Medium Ensure IAM policies does not allow write access without constraints
Ensure IAM policies does not allow write access without constraints
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 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
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 Ensure that Auto Scaling is enabled on your DynamoDB tables
Ensure that Auto Scaling is enabled on your DynamoDB tables
Where
Medium Ensure AWS ElasticSearch/OpenSearch Fine-grained access control is enabled
Ensure AWS ElasticSearch/OpenSearch Fine-grained access control is enabled
Where
Medium Ensure access control lists for S3 buckets are disabled
Ensure access control lists for S3 buckets are disabled
Where
Medium Ensure IAM policies does not allow credentials exposure
Ensure IAM policies does not allow credentials exposure
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 does not allow privilege escalation
Ensure IAM policies does not allow privilege escalation
Where
Medium Ensure DynamoDB Tables are encrypted using a KMS Customer Managed CMK
Ensure DynamoDB Tables are encrypted using a KMS Customer Managed CMK
Where
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
Medium Verify Elasticsearch domain is using an up to date TLS policy
Verify Elasticsearch domain is using an up to date TLS policy
Where
Medium Ensure every security group and rule has a description
Ensure every security group and rule has a description
Where
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
Medium Ensure DynamoDB point in time recovery (backup) is enabled
Ensure DynamoDB point in time recovery (backup) is enabled
Where
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
and 9 more groups with 9 findings
Low 4
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 10 Feb 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.