Repository scan
hmpps-delius-core-terraform
ministryofjustice/hmpps-delius-core-terraform · branch main · scanned 25 Jun 2026 · 380 resources
Medium 177
Medium Ensure that Security Groups are attached to another resource
Ensure that Security Groups are attached to another resource
Where
- ../../application/weblogic-SR28/security-groups.tf:89
- ../../application/weblogic-testdata-api/security-groups.tf:47
- ../../security-groups/common-out.tf:6
- ../../security-groups/community-api.tf:4
- ../../security-groups/community-api.tf:53
- ../../security-groups/community-api.tf:90
- ../../security-groups/delius-db-access.tf:2
- ../../security-groups/delius-db-in.tf:6
- ../../security-groups/delius-db-out.tf:6
- ../../security-groups/delius-dss.tf:3
- ../../security-groups/gdpr.tf:5
- ../../security-groups/gdpr.tf:60
- ../../security-groups/gdpr.tf:95
- ../../security-groups/ldap.tf:6
- ../../security-groups/ldap.tf:164
- ../../security-groups/ldap.tf:191
- ../../security-groups/ldap.tf:286
- ../../security-groups/loadrunner.tf:6
- ../../security-groups/management-server.tf:4
- ../../security-groups/merge.tf:5
- and 14 more
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
- ../../alerts/iam.tf:19
- ../../application/probation-integration-services/iam.tf:18
- ../../modules/ecs_service/iam.tf:18
- ../../modules/ecs_service/iam.tf:82
- ../../modules/ecs_service/iam.tf:18
- ../../modules/ecs_service/iam.tf:82
- ../../modules/ecs_service/iam.tf:18
- ../../modules/ecs_service/iam.tf:82
- ../../modules/ecs_service/iam.tf:18
- ../../modules/ecs_service/iam.tf:82
- ../../modules/rds_kms_policy_document/main.tf:1
Medium Ensure IAM policies does not allow write access without constraints
Ensure IAM policies does not allow write access without constraints
Where
Medium Ensure SSM parameters are using KMS CMK
Ensure SSM parameters are using KMS CMK
Where
- ../../application/gdpr/rds.tf:6
- ../../application/merge/rds.tf:6
- ../../application/probation-integration-services/parameters.tf:1
- ../../application/probation-integration-services/parameters.tf:7
- ../../application/weblogic-app/ssm.tf:1
- ../../database_failover/delius-audit-dms-pool-password.tf:20
- ../../database_failover/self-signed-ca.tf:46
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 that Load Balancer has deletion protection enabled
Ensure that Load Balancer has deletion protection enabled
Where
Medium Ensure public facing ALB are protected by WAF
Medium Ensure that ALB drops HTTP headers
Medium Ensure Terraform module sources use a commit hash
Ensure Terraform module sources use a commit hash
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 Ensure that CloudWatch Log Group is encrypted by KMS
Ensure that CloudWatch Log Group is encrypted by KMS
Where
Medium Check encryption settings for Lambda environmental variable
Check encryption settings for Lambda environmental variable
Where
Medium Ensure AWS Lambda function is configured to validate code-signing
Ensure AWS Lambda function is configured to validate code-signing
Where
Medium Ensure that CloudWatch alarm actions are enabled
Ensure that CloudWatch alarm actions are enabled
Where
Medium Ensure AWS Load Balancer doesn't use HTTP protocol
Ensure AWS Load Balancer doesn't use HTTP protocol
Where
Medium X-Ray tracing is enabled for Lambda
X-Ray tracing is enabled for Lambda
Where
Medium Ensure ECS containers are limited to read-only access to root filesystems
Ensure ECS containers are limited to read-only access to root filesystems
Where
Medium Ensure that auto Scaling groups that are associated with a load balancer are using Elastic Load Balancing health checks.
Ensure that auto Scaling groups that are associated with a load balancer are using Elastic Load Balancing health checks.
Where
Medium Ensure Postgres RDS as aws_db_instance has Query Logging enabled
Ensure Postgres RDS as aws_db_instance has Query Logging enabled
Where
Medium AWS SSM Parameter should be Encrypted
AWS SSM Parameter should be Encrypted
Where
Medium Ensure RDS instance with copy tags to snapshots is enabled
Ensure RDS instance with copy tags to snapshots is enabled
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 that respective logs of Amazon Relational Database Service (Amazon RDS) are enabled
Ensure that respective logs of Amazon Relational Database Service (Amazon RDS) are enabled
Where
Medium Ensure RDS database has IAM authentication enabled
Ensure RDS database has IAM authentication enabled
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 SNS topic is encrypted
Ensure all data stored in the SNS topic is encrypted
Where
Medium Ensure no security groups allow ingress from 0.0.0.0:0 to port 80
Ensure no security groups allow ingress from 0.0.0.0:0 to port 80
Where
Medium Ensure that AWS database instances have deletion protection enabled
Ensure that AWS database instances have deletion protection enabled
Where
Medium Ensure EC2 Auto Scaling groups use EC2 launch templates
Ensure EC2 Auto Scaling groups use EC2 launch templates
Where
Medium Ensure that RDS instances have performance insights enabled
Ensure that RDS instances have performance insights enabled
Where
Medium Ensure Lambda Runtime is not deprecated
Ensure Lambda Runtime is not deprecated
Where
Medium Ensure Instance Metadata Service Version 1 is not enabled
Ensure Instance Metadata Service Version 1 is not enabled
Where
Medium Old Generation Storage (gp2)
Using gp2 EBS volumes when gp3 provides better performance at lower cost.
How to fix
Migrate from gp2 to gp3 volumes. gp3 offers 20% cost savings and better baseline performance.
Where
- modules/nlb_to_alb/haproxy_asg.tf:16 $0.64 / mo
- batch/dss/dss-test-instance.tf:25 $0.40 / mo
Medium Ensure that ALB redirects HTTP requests into HTTPS ones
Ensure that ALB redirects HTTP requests into HTTPS ones
Where
Medium Ensure S3 buckets should have event notifications enabled
Ensure S3 buckets should have event notifications enabled
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 that Elastic Load Balancer(s) uses SSL certificates provided by AWS Certificate Manager
Ensure that Elastic Load Balancer(s) uses SSL certificates provided by AWS Certificate Manager
Where
Medium Ensure that S3 bucket has cross-region replication enabled
Ensure that S3 bucket has cross-region replication enabled
Where
and 14 more groups with 14 findings
Low 1
Low EC2 Detailed Monitoring
Detailed monitoring for EC2 instances incurs extra costs.
How to fix
Disable detailed monitoring if standard 5-minute metrics are sufficient.
Where
- application/ldap/asg.tf:51 $2.10 / mo
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.