Repository scan
opg-modernising-lpa
ministryofjustice/opg-modernising-lpa · branch main · scanned 25 Jun 2026 · 369 resources
Medium 190
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/account/region/network.tf:53
- ../../terraform/account/region/network.tf:53
- ../../terraform/environment/region/modules/app/alb.tf:318
- ../../terraform/environment/region/modules/app/alb.tf:318
- ../../terraform/environment/region/modules/app/ecs.tf:74
- ../../terraform/environment/region/modules/app/ecs.tf:74
- ../../terraform/environment/region/modules/mainstream_content/alb.tf:188
- ../../terraform/environment/region/modules/mainstream_content/alb.tf:188
- ../../terraform/environment/region/modules/mainstream_content/ecs.tf:74
- ../../terraform/environment/region/modules/mainstream_content/ecs.tf:74
- ../../terraform/environment/region/modules/mock_onelogin/alb.tf:169
- ../../terraform/environment/region/modules/mock_onelogin/alb.tf:169
- ../../terraform/environment/region/modules/mock_onelogin/ecs.tf:103
- ../../terraform/environment/region/modules/mock_onelogin/ecs.tf:103
- ../../terraform/environment/region/modules/mock_pay/alb.tf:167
- ../../terraform/environment/region/modules/mock_pay/alb.tf:167
- ../../terraform/environment/region/modules/mock_pay/ecs.tf:99
- ../../terraform/environment/region/modules/mock_pay/ecs.tf:99
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/account/region/waf.tf:200
- ../../terraform/account/region/waf.tf:200
- ../../terraform/environment/opensearch_ingestion_pipeline.tf:183
- ../../terraform/environment/region/cloudwatch_events.tf:6
- ../../terraform/environment/region/cloudwatch_events.tf:6
- ../../terraform/environment/region/modules/event_bus/main.tf:169
- ../../terraform/environment/region/modules/event_bus/main.tf:169
- ../../terraform/environment/region/modules/fault_injection_simulator_experiments/main.tf:8
- ../../terraform/environment/region/modules/fault_injection_simulator_experiments/main.tf:8
- ../../terraform/environment/region/modules/lambda/main.tf:1
- ../../terraform/environment/region/modules/lambda/main.tf:1
- ../../terraform/environment/region/modules/lambda/main.tf:1
- ../../terraform/environment/region/modules/lambda/main.tf:1
- ../../terraform/environment/region/modules/lambda/main.tf:1
- ../../terraform/environment/region/modules/lambda/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
- ../../terraform/account/kms_key_athena_s3.tf:17
- ../../terraform/account/kms_key_cloudwatch.tf:25
- ../../terraform/account/kms_key_dynamodb.tf:25
- ../../terraform/account/kms_key_dynamodb_cloudtrail_log_group.tf:26
- ../../terraform/account/kms_key_dynamodb_exports_s3.tf:25
- ../../terraform/account/kms_key_event_received_sqs.tf:25
- ../../terraform/account/kms_key_reduced_fees_uploads_s3.tf:25
- ../../terraform/account/kms_key_secrets_manager.tf:25
- ../../terraform/environment/dynamodb.tf:109
- ../../terraform/environment/dynamodb.tf:291
- ../../terraform/environment/global/iam_ecs_execution_role.tf:27
- ../../terraform/environment/global/iam_fault_injection_simulator.tf:102
- ../../terraform/environment/region/modules/app/ecs.tf:610
- ../../terraform/environment/region/modules/app/ecs.tf:610
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/account/kms_key_athena_s3.tf:17
- ../../terraform/account/kms_key_cloudwatch.tf:25
- ../../terraform/account/kms_key_dynamodb.tf:25
- ../../terraform/account/kms_key_dynamodb_cloudtrail_log_group.tf:26
- ../../terraform/account/kms_key_dynamodb_exports_s3.tf:25
- ../../terraform/account/kms_key_event_received_sqs.tf:25
- ../../terraform/account/kms_key_reduced_fees_uploads_s3.tf:25
- ../../terraform/account/kms_key_secrets_manager.tf:25
- ../../terraform/environment/dynamodb.tf:109
- ../../terraform/environment/dynamodb.tf:291
- ../../terraform/environment/global/iam_ecs_execution_role.tf:27
- ../../terraform/environment/global/iam_fault_injection_simulator.tf:102
- ../../terraform/environment/region/modules/app/ecs.tf:610
- ../../terraform/environment/region/modules/app/ecs.tf:610
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/account/kms_key_athena_s3.tf:17
- ../../terraform/account/kms_key_cloudwatch.tf:25
- ../../terraform/account/kms_key_dynamodb.tf:25
- ../../terraform/account/kms_key_dynamodb_cloudtrail_log_group.tf:26
- ../../terraform/account/kms_key_dynamodb_exports_s3.tf:25
- ../../terraform/account/kms_key_event_received_sqs.tf:25
- ../../terraform/account/kms_key_reduced_fees_uploads_s3.tf:25
- ../../terraform/account/kms_key_secrets_manager.tf:25
- ../../terraform/environment/dynamodb.tf:109
- ../../terraform/environment/dynamodb.tf:291
- ../../terraform/environment/region/modules/app/ecs.tf:610
- ../../terraform/environment/region/modules/app/ecs.tf:610
Medium Ensure Secrets Manager secrets should have automatic rotation enabled
Ensure Secrets Manager secrets should have automatic rotation enabled
Where
- ../../terraform/account/region/rum_cognito_identity_pool.tf:48
- ../../terraform/account/region/rum_cognito_identity_pool.tf:48
- ../../terraform/account/secrets_manager_secret.tf:1
- ../../terraform/account/secrets_manager_secret.tf:11
- ../../terraform/account/secrets_manager_secret.tf:21
- ../../terraform/account/secrets_manager_secret.tf:31
- ../../terraform/account/secrets_manager_secret.tf:41
- ../../terraform/account/secrets_manager_secret.tf:61
- ../../terraform/account/secrets_manager_secret.tf:78
- ../../terraform/environment/region/rum_monitoring.tf:27
- ../../terraform/environment/region/rum_monitoring.tf:27
Medium Ensure S3 buckets should have event notifications enabled
Ensure S3 buckets should have event notifications enabled
Where
- ../../terraform/account/region/load_balancer_access_logs_athena.tf:1
- ../../terraform/account/region/load_balancer_access_logs_athena.tf:1
- ../../terraform/account/region/load_balancer_access_logs_s3.tf:1
- ../../terraform/account/region/load_balancer_access_logs_s3.tf:1
- ../../terraform/account/region/modules/dynamodb_exports_s3_bucket/main.tf:1
- ../../terraform/account/region/modules/dynamodb_exports_s3_bucket/main.tf:1
- ../../terraform/account/region/modules/s3_batch_manifests/s3.tf:1
- ../../terraform/account/region/modules/s3_batch_manifests/s3.tf:1
Medium Ensure AWS ALB attached WAFv2 WebACL is configured with AMR for Log4j Vulnerability
Ensure AWS ALB attached WAFv2 WebACL is configured with AMR for Log4j Vulnerability
How to fix
See Checkov documentation for remediation guidance.
Where
- ../../terraform/environment/region/modules/app/alb.tf:18
- ../../terraform/environment/region/modules/app/alb.tf:18
- ../../terraform/environment/region/modules/mainstream_content/alb.tf:20
- ../../terraform/environment/region/modules/mainstream_content/alb.tf:20
- ../../terraform/environment/region/modules/mock_onelogin/alb.tf:18
- ../../terraform/environment/region/modules/mock_onelogin/alb.tf:18
- ../../terraform/environment/region/modules/mock_pay/alb.tf:18
- ../../terraform/environment/region/modules/mock_pay/alb.tf:18
Medium Ensure that S3 bucket has cross-region replication enabled
Ensure that S3 bucket has cross-region replication enabled
Where
- ../../terraform/account/region/load_balancer_access_logs_athena.tf:1
- ../../terraform/account/region/load_balancer_access_logs_athena.tf:1
- ../../terraform/account/region/load_balancer_access_logs_s3.tf:1
- ../../terraform/account/region/load_balancer_access_logs_s3.tf:1
- ../../terraform/account/region/modules/dynamodb_exports_s3_bucket/main.tf:1
- ../../terraform/account/region/modules/dynamodb_exports_s3_bucket/main.tf:1
- ../../terraform/account/region/modules/s3_batch_manifests/s3.tf:1
- ../../terraform/account/region/modules/s3_batch_manifests/s3.tf:1
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
- ../../terraform/environment/region/modules/lambda/main.tf:18
- ../../terraform/environment/region/modules/lambda/main.tf:18
- ../../terraform/environment/region/modules/lambda/main.tf:18
- ../../terraform/environment/region/modules/lambda/main.tf:18
- ../../terraform/environment/region/modules/lambda/main.tf:18
- ../../terraform/environment/region/modules/lambda/main.tf:18
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
- ../../terraform/environment/region/modules/lambda/main.tf:18
- ../../terraform/environment/region/modules/lambda/main.tf:18
- ../../terraform/environment/region/modules/lambda/main.tf:18
- ../../terraform/environment/region/modules/lambda/main.tf:18
- ../../terraform/environment/region/modules/lambda/main.tf:18
- ../../terraform/environment/region/modules/lambda/main.tf:18
Medium Check encryption settings for Lambda environmental variable
Check encryption settings for Lambda environmental variable
Where
- ../../terraform/environment/region/modules/lambda/main.tf:18
- ../../terraform/environment/region/modules/lambda/main.tf:18
- ../../terraform/environment/region/modules/lambda/main.tf:18
- ../../terraform/environment/region/modules/lambda/main.tf:18
- ../../terraform/environment/region/modules/lambda/main.tf:18
- ../../terraform/environment/region/modules/lambda/main.tf:18
Medium Ensure AWS Lambda function is configured to validate code-signing
Ensure AWS Lambda function is configured to validate code-signing
Where
- ../../terraform/environment/region/modules/lambda/main.tf:18
- ../../terraform/environment/region/modules/lambda/main.tf:18
- ../../terraform/environment/region/modules/lambda/main.tf:18
- ../../terraform/environment/region/modules/lambda/main.tf:18
- ../../terraform/environment/region/modules/lambda/main.tf:18
- ../../terraform/environment/region/modules/lambda/main.tf:18
Medium Ensure that CloudWatch Log Group specifies retention days
Ensure that CloudWatch Log Group specifies retention days
Where
- ../../terraform/environment/region/modules/lambda/main.tf:1
- ../../terraform/environment/region/modules/lambda/main.tf:1
- ../../terraform/environment/region/modules/lambda/main.tf:1
- ../../terraform/environment/region/modules/lambda/main.tf:1
- ../../terraform/environment/region/modules/lambda/main.tf:1
- ../../terraform/environment/region/modules/lambda/main.tf:1
Medium AWS SSM Parameter should be Encrypted
AWS SSM Parameter should be Encrypted
Where
- ../../terraform/account/parameters.tf:1
- ../../terraform/environment/parameters.tf:1
- ../../terraform/environment/parameters.tf:8
- ../../terraform/environment/region/modules/uploads_s3_bucket/s3_object_replication.tf:169
- ../../terraform/environment/region/modules/uploads_s3_bucket/s3_object_replication.tf:169
Medium Ensure Create before destroy for ACM certificates
Ensure Create before destroy for ACM certificates
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 EventBridge Scheduler Schedule uses Customer Managed Key (CMK)
Ensure EventBridge Scheduler Schedule uses Customer Managed Key (CMK)
Where
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 Security Groups are attached to another resource
Ensure that Security Groups are attached to another resource
Where
Medium Ensure Terraform module sources use a commit hash
Ensure Terraform module sources use a commit hash
Where
Medium Ensure AWS IAM policy does not allow full IAM privileges
Ensure AWS IAM policy does not allow full IAM privileges
Where
Medium Ensure IAM policies that allow full "*-*" administrative privileges are not created
Ensure IAM policies that allow full "*-*" administrative privileges are not created
Where
Medium Ensure Backup Vault is encrypted at rest using KMS CMK
Ensure Backup Vault is encrypted at rest using KMS CMK
Where
Medium Ensure DynamoDB point in time recovery (backup) is enabled
Ensure DynamoDB point in time recovery (backup) is enabled
Where
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
Medium Ensure S3 lifecycle configuration sets period for aborting failed uploads
Ensure S3 lifecycle configuration sets period for aborting failed uploads
Where
Medium Ensure that Network firewall encryption is via a CMK
Ensure that Network firewall encryption is via a CMK
Where
Medium Ensure Network Firewall Policy defines an encryption configuration that uses a customer managed Key (CMK)
Ensure Network Firewall Policy defines an encryption configuration that uses a customer managed Key (CMK)
Where
Medium Ensure AWS Cognito identity pool does not allow unauthenticated guest access
Ensure AWS Cognito identity pool does not allow unauthenticated guest access
Where
Medium Ensure no IAM policies documents allow "*" as a statement's actions
Ensure no IAM policies documents allow "*" as a statement's actions
Where
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
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 CloudTrail defines an SNS Topic
Ensure CloudTrail defines an SNS Topic
Where
Medium CloudWatch Logs Without Retention
CloudWatch log group without retention_in_days. Logs are kept indefinitely by default, silently growing to hundreds $/month.
How to fix
Set appropriate retention periods for log groups (e.g., 7, 14, or 30 days).
Where
Low 4
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
Low Route53 Health Checks
Route53 health checks incur monthly costs. May not be necessary for all resources.
How to fix
Remove health checks for non-critical resources or personal projects.
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.