Repository scan
somleng-switch
somleng/somleng-switch · branch main · scanned 25 Jun 2026 · 180 resources
Medium 201
Medium Ensure every security group and rule has a description
Ensure every security group and rule has a description
Where
- ../../infrastructure/modules/client_gateway/sg.tf:1
- ../../infrastructure/modules/client_gateway/sg.tf:10
- ../../infrastructure/modules/client_gateway/sg.tf:19
- ../../infrastructure/modules/container_instances/sg.tf:1
- ../../infrastructure/modules/container_instances/sg.tf:6
- ../../infrastructure/modules/container_instances/sg.tf:1
- ../../infrastructure/modules/container_instances/sg.tf:6
- ../../infrastructure/modules/container_instances/sg.tf:1
- ../../infrastructure/modules/container_instances/sg.tf:6
- ../../infrastructure/modules/container_instances/sg.tf:1
- ../../infrastructure/modules/container_instances/sg.tf:6
- ../../infrastructure/modules/container_instances/sg.tf:1
- ../../infrastructure/modules/container_instances/sg.tf:6
- ../../infrastructure/modules/container_instances/sg.tf:1
- ../../infrastructure/modules/container_instances/sg.tf:6
- ../../infrastructure/modules/efs/mount_targets.tf:13
- ../../infrastructure/modules/efs/mount_targets.tf:22
- ../../infrastructure/modules/efs/mount_targets.tf:13
- ../../infrastructure/modules/efs/mount_targets.tf:22
- ../../infrastructure/modules/media_proxy/sg.tf:1
- and 32 more
Medium Ensure that CloudWatch Log Group is encrypted by KMS
Ensure that CloudWatch Log Group is encrypted by KMS
Where
- ../../infrastructure/modules/client_gateway/cloudwatch.tf:1
- ../../infrastructure/modules/media_proxy/cloudwatch.tf:1
- ../../infrastructure/modules/public_gateway/cloudwatch.tf:1
- ../../infrastructure/modules/rating_engine/cloudwatch.tf:1
- ../../infrastructure/modules/redis/cloudwatch.tf:1
- ../../infrastructure/modules/s3_mpeg/cloudwatch.tf:1
- ../../infrastructure/modules/services/cloudwatch.tf:1
- ../../infrastructure/modules/switch/cloudwatch.tf:1
- ../../infrastructure/modules/switch/cloudwatch.tf:6
- ../../infrastructure/modules/switch/cloudwatch.tf:11
- ../../infrastructure/modules/switch/cloudwatch.tf:1
- ../../infrastructure/modules/switch/cloudwatch.tf:6
- ../../infrastructure/modules/switch/cloudwatch.tf:11
Medium Ensure CloudWatch log groups retains logs for at least 1 year
Ensure CloudWatch log groups retains logs for at least 1 year
Where
- ../../infrastructure/modules/client_gateway/cloudwatch.tf:1
- ../../infrastructure/modules/media_proxy/cloudwatch.tf:1
- ../../infrastructure/modules/public_gateway/cloudwatch.tf:1
- ../../infrastructure/modules/rating_engine/cloudwatch.tf:1
- ../../infrastructure/modules/redis/cloudwatch.tf:1
- ../../infrastructure/modules/s3_mpeg/cloudwatch.tf:1
- ../../infrastructure/modules/services/cloudwatch.tf:1
- ../../infrastructure/modules/switch/cloudwatch.tf:1
- ../../infrastructure/modules/switch/cloudwatch.tf:6
- ../../infrastructure/modules/switch/cloudwatch.tf:11
- ../../infrastructure/modules/switch/cloudwatch.tf:1
- ../../infrastructure/modules/switch/cloudwatch.tf:6
- ../../infrastructure/modules/switch/cloudwatch.tf:11
Medium Ensure that ECR repositories are encrypted using KMS
Ensure that ECR repositories are encrypted using KMS
Where
- ../../infrastructure/modules/ecr_repository/ecr.tf:1
- ../../infrastructure/modules/ecr_repository/ecr.tf:1
- ../../infrastructure/modules/ecr_repository/ecr.tf:1
- ../../infrastructure/modules/ecr_repository/ecr.tf:1
- ../../infrastructure/modules/ecr_repository/ecr.tf:1
- ../../infrastructure/modules/ecr_repository/ecr.tf:1
- ../../infrastructure/modules/ecr_repository/ecr.tf:1
- ../../infrastructure/modules/ecr_repository/ecr.tf:1
- ../../infrastructure/modules/ecr_repository/ecr.tf:1
- ../../infrastructure/modules/ecr_repository/ecr.tf:1
- ../../infrastructure/modules/ecr_repository/ecr.tf:1
- ../../infrastructure/modules/ecr_repository/ecr.tf:1
Medium Ensure ECR Image Tags are immutable
Ensure ECR Image Tags are immutable
Where
- ../../infrastructure/modules/ecr_repository/ecr.tf:1
- ../../infrastructure/modules/ecr_repository/ecr.tf:1
- ../../infrastructure/modules/ecr_repository/ecr.tf:1
- ../../infrastructure/modules/ecr_repository/ecr.tf:1
- ../../infrastructure/modules/ecr_repository/ecr.tf:1
- ../../infrastructure/modules/ecr_repository/ecr.tf:1
- ../../infrastructure/modules/ecr_repository/ecr.tf:1
- ../../infrastructure/modules/ecr_repository/ecr.tf:1
- ../../infrastructure/modules/ecr_repository/ecr.tf:1
- ../../infrastructure/modules/ecr_repository/ecr.tf:1
- ../../infrastructure/modules/ecr_repository/ecr.tf:1
- ../../infrastructure/modules/ecr_repository/ecr.tf:1
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
- ../../infrastructure/modules/container_instances/sg.tf:6
- ../../infrastructure/modules/container_instances/sg.tf:6
- ../../infrastructure/modules/container_instances/sg.tf:6
- ../../infrastructure/modules/container_instances/sg.tf:6
- ../../infrastructure/modules/container_instances/sg.tf:6
- ../../infrastructure/modules/container_instances/sg.tf:6
- ../../infrastructure/modules/public_gateway/sg.tf:33
- ../../infrastructure/modules/rating_engine/sg.tf:19
- ../../infrastructure/modules/services/sg.tf:10
- ../../infrastructure/modules/switch/sg.tf:55
- ../../infrastructure/modules/switch/sg.tf:55
Medium Ensure SSM parameters are using KMS CMK
Ensure SSM parameters are using KMS CMK
Where
- ../../infrastructure/modules/rating_engine_configuration/ssm.tf:1
- ../../infrastructure/modules/s3_bucket/ssm.tf:1
- ../../infrastructure/modules/s3_bucket/ssm.tf:7
- ../../infrastructure/modules/s3_bucket/ssm.tf:1
- ../../infrastructure/modules/s3_bucket/ssm.tf:7
- ../../infrastructure/modules/s3_mpeg/ssm.tf:1
- ../../infrastructure/modules/services/ssm.tf:9
Medium Ensure Instance Metadata Service Version 1 is not enabled
Ensure Instance Metadata Service Version 1 is not enabled
Where
- ../../infrastructure/modules/container_instances/launch_template.tf:30
- ../../infrastructure/modules/container_instances/launch_template.tf:30
- ../../infrastructure/modules/container_instances/launch_template.tf:30
- ../../infrastructure/modules/container_instances/launch_template.tf:30
- ../../infrastructure/modules/container_instances/launch_template.tf:30
- ../../infrastructure/modules/container_instances/launch_template.tf:30
Medium Ensure that all EIP addresses allocated to a VPC are attached to EC2 instances
Ensure that all EIP addresses allocated to a VPC are attached to EC2 instances
Where
Medium ECS Task Definition Without CPU/Memory Limits
aws_ecs_task_definition without explicit cpu and memory limits. This leads to unpredictable cluster over-provisioning as the scheduler cannot bin-pack tasks efficiently.
How to fix
Set cpu and memory at the task level. Start with the minimum viable values and scale up based on CloudWatch Container Insights metrics.
Where
Medium Ensure no security groups allow ingress from 0.0.0.0:0 to port -1
Ensure no security groups allow ingress from 0.0.0.0:0 to port -1
Where
Medium Ensure container insights are enabled on ECS cluster
Ensure container insights are enabled on ECS cluster
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 AWS Load Balancer doesn't use HTTP protocol
Ensure AWS Load Balancer doesn't use HTTP protocol
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 that S3 bucket has a Public Access block
Ensure that S3 bucket has a Public Access block
Where
Medium Ensure S3 buckets should have event notifications enabled
Ensure S3 buckets should have event notifications enabled
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 S3 bucket has cross-region replication enabled
Ensure that S3 bucket has cross-region replication enabled
Where
Medium Check encryption settings for Lambda environmental variable
Check encryption settings for Lambda environmental variable
Where
Medium Ensure the S3 bucket has access logging enabled
Ensure the S3 bucket has access logging enabled
Where
Medium Ensure resource is encrypted by KMS using a customer managed Key (CMK)
Ensure resource 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 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 all data stored in the SQS queue is encrypted
Ensure all data stored in the SQS queue is encrypted
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 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 IAM policies does not allow write access without constraints
Ensure IAM policies does not allow write access without constraints
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 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 X-Ray tracing is enabled for Lambda
X-Ray tracing is enabled for Lambda
Where
Medium EC2 instance should not have public IP.
EC2 instance should not have public IP.
Where
Medium 1 known vulnerability in busybox@1.37.0-r30 (public.ecr.aws/docker/library/redis:alpine)
How to fix
No fixed version of busybox is available yet. Check whether public.ecr.aws/docker/library/redis:alpine needs busybox at all (a slimmer or distroless base image often drops it), watch the advisory for a fix, or accept the risk with a review date if it isn't reachable in your setup.
Vulnerabilities
- Medium CVE-2025-60876 fixed in no fix yet
Medium Route53 A Record has Attached Resource
Route53 A Record has Attached Resource
Where
Medium Ensure AWS ElastiCache Redis cluster with Multi-AZ Automatic Failover feature set to enabled
Ensure AWS ElastiCache Redis cluster with Multi-AZ Automatic Failover feature set to enabled
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 Load Balancer has deletion protection enabled
Ensure that Load Balancer has deletion protection 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
and 4 more groups with 4 findings
Low 7
Low Unassociated Elastic IP
Elastic IPs are charged if not attached to a running instance or if you have more than one per instance.
How to fix
Release unattached Elastic IPs.
Where
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.