Repository scan
integration-adaptor-mhs
NHSDigital/integration-adaptor-mhs · branch main · scanned 25 Jun 2026 · 359 resources
High 1
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 210
Medium Ensure that HEALTHCHECK instructions have been added to container images
Ensure that HEALTHCHECK instructions have been added to container images
Where
- ../../integration-tests/fake_spineroutelookup/Dockerfile:1
- ../../integration-tests/fake_spine/Dockerfile:1
- ../../docker/common/dynamodb-local/Dockerfile:1
- ../../component-test.Dockerfile:1
- ../../docker/inbound/Dockerfile:1
- ../../common/local-env/rabbit/dockerfile:1
- ../../docker/common/rabbitmq/Dockerfile:1
- ../../pipeline/packer/jenkins-worker/Dockerfile:1
- ../../docker/spineroutelookup/Dockerfile:1
- ../../docker/sds-api-mock/Dockerfile:1
- ../../docker/outbound/Dockerfile:1
Medium Ensure that a user for the container has been created
Ensure that a user for the container has been created
Where
- ../../integration-tests/fake_spineroutelookup/Dockerfile:1
- ../../integration-tests/fake_spine/Dockerfile:1
- ../../component-test.Dockerfile:1
- ../../docker/inbound/Dockerfile:1
- ../../common/local-env/rabbit/dockerfile:1
- ../../docker/common/rabbitmq/Dockerfile:1
- ../../pipeline/packer/jenkins-worker/Dockerfile:1
- ../../docker/spineroutelookup/Dockerfile:1
- ../../docker/sds-api-mock/Dockerfile:1
- ../../docker/outbound/Dockerfile:1
Medium The default namespace should not be used
The default namespace should not be used
Where
- ../../pipeline/terraform/azure/mhs-kube-tf/secrets.tf:1
- ../../pipeline/terraform/azure/mhs-kube-tf/secrets.tf:12
- ../../pipeline/terraform/azure/mhs-kube-tf/secrets.tf:26
- ../../pipeline/terraform/azure/mhs-kube-tf/secrets.tf:37
- ../../pipeline/terraform/azure/mhs-kube-tf/secrets.tf:49
- ../../pipeline/terraform/azure/mhs-kube-yaml/outbound-service.yaml:1
- ../../pipeline/terraform/azure/mhs-kube-yaml/inbound-service.yaml:1
- ../../pipeline/terraform/azure/mhs-kube-yaml/route-service.yaml:1
- ../../pipeline/terraform/azure/mhs-kube-yaml/rabbitmq-deployment.yaml:1
- ../../pipeline/terraform/azure/mhs-kube-yaml/rabbitmq-service.yaml:1
Medium Ensure that Load Balancer has deletion protection enabled
Ensure that Load Balancer has deletion protection enabled
Where
- ../../pipeline/terraform/mhs-environment/lbs.tf:10
- ../../pipeline/terraform/mhs-environment/lbs.tf:84
- ../../pipeline/terraform/mhs-environment/lbs.tf:161
- ../../pipeline/terraform/mhs-vp-environment/lbs.tf:10
- ../../pipeline/terraform/mhs-vp-environment/lbs.tf:86
- ../../pipeline/terraform/mhs-vp-environment/lbs.tf:165
- ../../pipeline/terraform/mhs-vp-environment/lbs.tf:242
Medium Ensure that CloudWatch Log Group is encrypted by KMS
Ensure that CloudWatch Log Group is encrypted by KMS
Where
- ../../pipeline/terraform/mhs-environment/ecs.tf:16
- ../../pipeline/terraform/mhs-environment/ecs.tf:25
- ../../pipeline/terraform/mhs-environment/ecs.tf:34
- ../../pipeline/terraform/mhs-vp-environment/ecs.tf:20
- ../../pipeline/terraform/mhs-vp-environment/ecs.tf:29
- ../../pipeline/terraform/mhs-vp-environment/ecs.tf:38
- ../../pipeline/terraform/mhs-vp-environment/ecs.tf:47
Medium Ensure CloudWatch log groups retains logs for at least 1 year
Ensure CloudWatch log groups retains logs for at least 1 year
Where
- ../../pipeline/terraform/mhs-environment/ecs.tf:16
- ../../pipeline/terraform/mhs-environment/ecs.tf:25
- ../../pipeline/terraform/mhs-environment/ecs.tf:34
- ../../pipeline/terraform/mhs-vp-environment/ecs.tf:20
- ../../pipeline/terraform/mhs-vp-environment/ecs.tf:29
- ../../pipeline/terraform/mhs-vp-environment/ecs.tf:38
- ../../pipeline/terraform/mhs-vp-environment/ecs.tf:47
Medium Ensure that CloudWatch Log Group specifies retention days
Ensure that CloudWatch Log Group specifies retention days
Where
- ../../pipeline/terraform/mhs-environment/ecs.tf:16
- ../../pipeline/terraform/mhs-environment/ecs.tf:25
- ../../pipeline/terraform/mhs-environment/ecs.tf:34
- ../../pipeline/terraform/mhs-vp-environment/ecs.tf:20
- ../../pipeline/terraform/mhs-vp-environment/ecs.tf:29
- ../../pipeline/terraform/mhs-vp-environment/ecs.tf:38
- ../../pipeline/terraform/mhs-vp-environment/ecs.tf:47
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
- pipeline/terraform/mhs-environment/ecs.tf:16 $33.00 / mo
- pipeline/terraform/mhs-environment/ecs.tf:25 $33.00 / mo
- pipeline/terraform/mhs-environment/ecs.tf:34 $33.00 / mo
- pipeline/terraform/mhs-vp-environment/ecs.tf:20 $33.00 / mo
- pipeline/terraform/mhs-vp-environment/ecs.tf:29 $33.00 / mo
- pipeline/terraform/mhs-vp-environment/ecs.tf:38 $33.00 / mo
- pipeline/terraform/mhs-vp-environment/ecs.tf:47 $33.00 / mo
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
- pipeline/terraform/mhs-environment/lbs.tf:10
- pipeline/terraform/mhs-environment/lbs.tf:84
- pipeline/terraform/mhs-environment/lbs.tf:161
- pipeline/terraform/mhs-vp-environment/lbs.tf:10
- pipeline/terraform/mhs-vp-environment/lbs.tf:86
- pipeline/terraform/mhs-vp-environment/lbs.tf:165
- pipeline/terraform/mhs-vp-environment/lbs.tf:242
Medium Ensure that ALB drops HTTP headers
Ensure that ALB drops HTTP headers
Where
Medium Ensure that key vault secrets have "content_type" set
Ensure that key vault secrets have "content_type" set
Where
- ../../pipeline/terraform/azure/base-secrets/keyvault-secrets.tf:1
- ../../pipeline/terraform/azure/base-secrets/keyvault-secrets.tf:8
- ../../pipeline/terraform/azure/base-secrets/keyvault-secrets.tf:15
- ../../pipeline/terraform/azure/base-secrets/keyvault-secrets.tf:22
- ../../pipeline/terraform/azure/base-secrets/keyvault-secrets.tf:29
Medium Ensure that the expiration date is set on all secrets
Ensure that the expiration date is set on all secrets
Where
- ../../pipeline/terraform/azure/base-secrets/keyvault-secrets.tf:1
- ../../pipeline/terraform/azure/base-secrets/keyvault-secrets.tf:8
- ../../pipeline/terraform/azure/base-secrets/keyvault-secrets.tf:15
- ../../pipeline/terraform/azure/base-secrets/keyvault-secrets.tf:22
- ../../pipeline/terraform/azure/base-secrets/keyvault-secrets.tf:29
Medium Ensure that Auto Scaling is enabled on your DynamoDB tables
Ensure that Auto Scaling is enabled on your DynamoDB tables
Where
Medium Ensure VNET subnet is configured with a Network Security Group (NSG)
Ensure VNET subnet is configured with a Network Security Group (NSG)
Where
Medium Ensure top-level permissions are not set to write-all
Ensure top-level permissions are not set to write-all
How to fix
See Checkov documentation for remediation guidance.
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 DynamoDB point in time recovery (backup) is enabled
Ensure DynamoDB point in time recovery (backup) is enabled
Where
Medium Ensure ECS Fargate services run on the latest Fargate platform version
Ensure ECS Fargate services run on the latest Fargate platform version
Where
Medium Private Key
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 VPC flow logging is enabled in all VPCs
Ensure VPC flow logging is enabled in all VPCs
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 that an S3 bucket has a lifecycle configuration
Ensure that an S3 bucket has a lifecycle configuration
Where
Medium Ensure S3 buckets should have event notifications enabled
Ensure S3 buckets should have event notifications enabled
Where
Medium Ensure that S3 bucket has cross-region replication enabled
Ensure that S3 bucket has cross-region replication enabled
Where
Medium Ensure that S3 buckets are encrypted with KMS by default
Ensure that S3 buckets are encrypted with KMS by default
Where
Medium Ensure the S3 bucket has access logging enabled
Ensure the S3 bucket has access logging enabled
Where
Medium Ensure ElastiCache replication group is encrypted by KMS using a customer managed Key (CMK)
Ensure ElastiCache replication group is encrypted by KMS using a customer managed Key (CMK)
Where
Medium Ensure all data stored in the S3 bucket have versioning enabled
Ensure all data stored in the S3 bucket have versioning enabled
Where
Medium Ensure all data stored in the ElastiCache Replication Group is securely encrypted at transit and has auth token
Ensure all data stored in the ElastiCache Replication Group is securely encrypted at transit and has auth token
Where
Medium Ensure that Network Interfaces don't use public IPs
Ensure that Network Interfaces don't use public IPs
Where
Medium Ensure Virtual Machine Extensions are not Installed
Ensure Virtual Machine Extensions are not Installed
Where
Medium Ensure that the global security field has rules defined
Ensure that the global security field has rules defined
Where
Medium Ensure that security operations is not empty.
Ensure that security operations is not empty.
Where
Medium Missing S3 Lifecycle Policy
S3 bucket without lifecycle rules. Objects are retained indefinitely, increasing storage costs.
How to fix
Define lifecycle rules to transition objects to cheaper storage classes (e.g., Glacier) or delete them after a retention period.
Where
Medium Expensive Premium Storage
Using premium storage tiers (Premium_LRS, io1, io2) which are significantly more expensive.
How to fix
Evaluate if Standard storage or gp3 volumes meet performance requirements. Premium storage should only be used when necessary.
Where
Medium Ensure that ALB redirects HTTP requests into HTTPS ones
Ensure that ALB redirects HTTP requests into HTTPS ones
Where
Medium Ensure storage for critical data are encrypted with Customer Managed Key
Ensure storage for critical data are encrypted with Customer Managed Key
Where
Medium Ensure Storage logging is enabled for Blob service for read requests
Ensure Storage logging is enabled for Blob service for read requests
Where
Medium Ensure private endpoint is configured to key vault
Ensure private endpoint is configured to key vault
Where
and 57 more groups with 57 findings
Low 3
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
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.