Repository scan
spot-checker
ddps-lab/spot-checker · branch main · scanned 25 Jun 2026 · 184 resources
Medium 221
Medium Ensure that CloudWatch Log Group is encrypted by KMS
Ensure that CloudWatch Log Group is encrypted by KMS
Where
- ../../multinode_ondemand_checker/IaC-cloudwatchlogs/main.tf:1
- ../../multinode_ondemand_checker/IaC/get-ondemand-status-change/lambda.tf:1
- ../../multinode_spot_checker/aws/IaC-cloudwatchlogs/main.tf:1
- ../../multinode_spot_checker/aws/IaC/get-spot-interruption/lambda.tf:1
- ../../multinode_spot_checker/aws/IaC/get-spot-rebalance/lambda.tf:1
- ../../multinode_spot_checker/aws/IaC/get-spot-status-change/lambda.tf:1
- ../../multinode_spot_checker/aws/IaC/log-instance-count/lambda.tf:1
- ../../multinode_spot_checker/aws/IaC/restart-closed-request/lambda.tf:1
- ../../multinode_spot_checker/azure/IaC/monitor-vm-status/lambda.tf:49
- ../../spot-availability-tester/aws/IaC-cloudwatchlogs/main.tf:1
- ../../spot-availability-tester/aws/IaC/dispatcher/lambda.tf:22
- ../../spot-availability-tester/aws/IaC/spot-availability-tester/lambda.tf:1
- ../../spot-availability-tester/aws/IaC/terminate-no-name-instance/lambda.tf:1
- ../../spot-availability-tester/aws/IaC/terminate-pending-instance/lambda.tf:1
- ../../spot-availability-tester/azure/IaC-cloudwatchlogs/main.tf:1
- ../../spot-availability-tester/azure/IaC/dispatcher/lambda.tf:20
- ../../spot-availability-tester/azure/IaC/spot-availability-tester/lambda.tf:1
- ../../spot-availability-tester/azure/IaC/terminate-failed-vms/lambda.tf:1
- ../../spot-availability-tester/azure/IaC/terminate-orphan-disk/lambda.tf:1
- ../../spot-quota-checker/aws/IaC-cloudwatchlogs/main.tf:1
Medium Ensure CloudWatch log groups retains logs for at least 1 year
Ensure CloudWatch log groups retains logs for at least 1 year
Where
- ../../multinode_ondemand_checker/IaC-cloudwatchlogs/main.tf:1
- ../../multinode_ondemand_checker/IaC/get-ondemand-status-change/lambda.tf:1
- ../../multinode_spot_checker/aws/IaC-cloudwatchlogs/main.tf:1
- ../../multinode_spot_checker/aws/IaC/get-spot-interruption/lambda.tf:1
- ../../multinode_spot_checker/aws/IaC/get-spot-rebalance/lambda.tf:1
- ../../multinode_spot_checker/aws/IaC/get-spot-status-change/lambda.tf:1
- ../../multinode_spot_checker/aws/IaC/log-instance-count/lambda.tf:1
- ../../multinode_spot_checker/aws/IaC/restart-closed-request/lambda.tf:1
- ../../multinode_spot_checker/azure/IaC/monitor-vm-status/lambda.tf:49
- ../../spot-availability-tester/aws/IaC-cloudwatchlogs/main.tf:1
- ../../spot-availability-tester/aws/IaC/dispatcher/lambda.tf:22
- ../../spot-availability-tester/aws/IaC/spot-availability-tester/lambda.tf:1
- ../../spot-availability-tester/aws/IaC/terminate-no-name-instance/lambda.tf:1
- ../../spot-availability-tester/aws/IaC/terminate-pending-instance/lambda.tf:1
- ../../spot-availability-tester/azure/IaC-cloudwatchlogs/main.tf:1
- ../../spot-availability-tester/azure/IaC/dispatcher/lambda.tf:20
- ../../spot-availability-tester/azure/IaC/spot-availability-tester/lambda.tf:1
- ../../spot-availability-tester/azure/IaC/terminate-failed-vms/lambda.tf:1
- ../../spot-availability-tester/azure/IaC/terminate-orphan-disk/lambda.tf:1
- ../../spot-quota-checker/aws/IaC-cloudwatchlogs/main.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
- ../../multinode_ondemand_checker/IaC/get-ondemand-status-change/lambda.tf:7
- ../../multinode_spot_checker/aws/IaC/get-spot-interruption/lambda.tf:9
- ../../multinode_spot_checker/aws/IaC/get-spot-rebalance/lambda.tf:9
- ../../multinode_spot_checker/aws/IaC/get-spot-status-change/lambda.tf:9
- ../../multinode_spot_checker/aws/IaC/log-instance-count/lambda.tf:9
- ../../multinode_spot_checker/aws/IaC/restart-closed-request/lambda.tf:9
- ../../multinode_spot_checker/azure/IaC/monitor-vm-status/lambda.tf:2
- ../../spot-availability-tester/aws/IaC/dispatcher/lambda.tf:2
- ../../spot-availability-tester/aws/IaC/spot-availability-tester/lambda.tf:11
- ../../spot-availability-tester/aws/IaC/terminate-no-name-instance/lambda.tf:10
- ../../spot-availability-tester/aws/IaC/terminate-pending-instance/lambda.tf:12
- ../../spot-availability-tester/azure/IaC/dispatcher/lambda.tf:1
- ../../spot-availability-tester/azure/IaC/spot-availability-tester/lambda.tf:11
- ../../spot-availability-tester/azure/IaC/terminate-failed-vms/lambda.tf:6
- ../../spot-availability-tester/azure/IaC/terminate-orphan-disk/lambda.tf:6
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
- ../../multinode_ondemand_checker/IaC/get-ondemand-status-change/lambda.tf:7
- ../../multinode_spot_checker/aws/IaC/get-spot-interruption/lambda.tf:9
- ../../multinode_spot_checker/aws/IaC/get-spot-rebalance/lambda.tf:9
- ../../multinode_spot_checker/aws/IaC/get-spot-status-change/lambda.tf:9
- ../../multinode_spot_checker/aws/IaC/log-instance-count/lambda.tf:9
- ../../multinode_spot_checker/aws/IaC/restart-closed-request/lambda.tf:9
- ../../multinode_spot_checker/azure/IaC/monitor-vm-status/lambda.tf:2
- ../../spot-availability-tester/aws/IaC/dispatcher/lambda.tf:2
- ../../spot-availability-tester/aws/IaC/spot-availability-tester/lambda.tf:11
- ../../spot-availability-tester/aws/IaC/terminate-no-name-instance/lambda.tf:10
- ../../spot-availability-tester/aws/IaC/terminate-pending-instance/lambda.tf:12
- ../../spot-availability-tester/azure/IaC/dispatcher/lambda.tf:1
- ../../spot-availability-tester/azure/IaC/spot-availability-tester/lambda.tf:11
- ../../spot-availability-tester/azure/IaC/terminate-failed-vms/lambda.tf:6
- ../../spot-availability-tester/azure/IaC/terminate-orphan-disk/lambda.tf:6
Medium Ensure that AWS Lambda function is configured inside a VPC
Ensure that AWS Lambda function is configured inside a VPC
Where
- ../../multinode_ondemand_checker/IaC/get-ondemand-status-change/lambda.tf:7
- ../../multinode_spot_checker/aws/IaC/get-spot-interruption/lambda.tf:9
- ../../multinode_spot_checker/aws/IaC/get-spot-rebalance/lambda.tf:9
- ../../multinode_spot_checker/aws/IaC/get-spot-status-change/lambda.tf:9
- ../../multinode_spot_checker/aws/IaC/log-instance-count/lambda.tf:9
- ../../multinode_spot_checker/aws/IaC/restart-closed-request/lambda.tf:9
- ../../multinode_spot_checker/azure/IaC/monitor-vm-status/lambda.tf:2
- ../../spot-availability-tester/aws/IaC/dispatcher/lambda.tf:2
- ../../spot-availability-tester/aws/IaC/spot-availability-tester/lambda.tf:11
- ../../spot-availability-tester/aws/IaC/terminate-no-name-instance/lambda.tf:10
- ../../spot-availability-tester/aws/IaC/terminate-pending-instance/lambda.tf:12
- ../../spot-availability-tester/azure/IaC/dispatcher/lambda.tf:1
- ../../spot-availability-tester/azure/IaC/spot-availability-tester/lambda.tf:11
- ../../spot-availability-tester/azure/IaC/terminate-failed-vms/lambda.tf:6
- ../../spot-availability-tester/azure/IaC/terminate-orphan-disk/lambda.tf:6
Medium Check encryption settings for Lambda environmental variable
Check encryption settings for Lambda environmental variable
Where
- ../../multinode_ondemand_checker/IaC/get-ondemand-status-change/lambda.tf:7
- ../../multinode_spot_checker/aws/IaC/get-spot-interruption/lambda.tf:9
- ../../multinode_spot_checker/aws/IaC/get-spot-rebalance/lambda.tf:9
- ../../multinode_spot_checker/aws/IaC/get-spot-status-change/lambda.tf:9
- ../../multinode_spot_checker/aws/IaC/log-instance-count/lambda.tf:9
- ../../multinode_spot_checker/aws/IaC/restart-closed-request/lambda.tf:9
- ../../multinode_spot_checker/azure/IaC/monitor-vm-status/lambda.tf:2
- ../../spot-availability-tester/aws/IaC/dispatcher/lambda.tf:2
- ../../spot-availability-tester/aws/IaC/spot-availability-tester/lambda.tf:11
- ../../spot-availability-tester/aws/IaC/terminate-no-name-instance/lambda.tf:10
- ../../spot-availability-tester/aws/IaC/terminate-pending-instance/lambda.tf:12
- ../../spot-availability-tester/azure/IaC/dispatcher/lambda.tf:1
- ../../spot-availability-tester/azure/IaC/spot-availability-tester/lambda.tf:11
- ../../spot-availability-tester/azure/IaC/terminate-failed-vms/lambda.tf:6
- ../../spot-availability-tester/azure/IaC/terminate-orphan-disk/lambda.tf:6
Medium Ensure AWS Lambda function is configured to validate code-signing
Ensure AWS Lambda function is configured to validate code-signing
Where
- ../../multinode_ondemand_checker/IaC/get-ondemand-status-change/lambda.tf:7
- ../../multinode_spot_checker/aws/IaC/get-spot-interruption/lambda.tf:9
- ../../multinode_spot_checker/aws/IaC/get-spot-rebalance/lambda.tf:9
- ../../multinode_spot_checker/aws/IaC/get-spot-status-change/lambda.tf:9
- ../../multinode_spot_checker/aws/IaC/log-instance-count/lambda.tf:9
- ../../multinode_spot_checker/aws/IaC/restart-closed-request/lambda.tf:9
- ../../multinode_spot_checker/azure/IaC/monitor-vm-status/lambda.tf:2
- ../../spot-availability-tester/aws/IaC/dispatcher/lambda.tf:2
- ../../spot-availability-tester/aws/IaC/spot-availability-tester/lambda.tf:11
- ../../spot-availability-tester/aws/IaC/terminate-no-name-instance/lambda.tf:10
- ../../spot-availability-tester/aws/IaC/terminate-pending-instance/lambda.tf:12
- ../../spot-availability-tester/azure/IaC/dispatcher/lambda.tf:1
- ../../spot-availability-tester/azure/IaC/spot-availability-tester/lambda.tf:11
- ../../spot-availability-tester/azure/IaC/terminate-failed-vms/lambda.tf:6
- ../../spot-availability-tester/azure/IaC/terminate-orphan-disk/lambda.tf:6
Medium X-Ray tracing is enabled for Lambda
X-Ray tracing is enabled for Lambda
Where
- ../../multinode_ondemand_checker/IaC/get-ondemand-status-change/lambda.tf:7
- ../../multinode_spot_checker/aws/IaC/get-spot-interruption/lambda.tf:9
- ../../multinode_spot_checker/aws/IaC/get-spot-rebalance/lambda.tf:9
- ../../multinode_spot_checker/aws/IaC/get-spot-status-change/lambda.tf:9
- ../../multinode_spot_checker/aws/IaC/log-instance-count/lambda.tf:9
- ../../multinode_spot_checker/aws/IaC/restart-closed-request/lambda.tf:9
- ../../multinode_spot_checker/azure/IaC/monitor-vm-status/lambda.tf:2
- ../../spot-availability-tester/aws/IaC/dispatcher/lambda.tf:2
- ../../spot-availability-tester/aws/IaC/spot-availability-tester/lambda.tf:11
- ../../spot-availability-tester/aws/IaC/terminate-no-name-instance/lambda.tf:10
- ../../spot-availability-tester/aws/IaC/terminate-pending-instance/lambda.tf:12
- ../../spot-availability-tester/azure/IaC/dispatcher/lambda.tf:1
- ../../spot-availability-tester/azure/IaC/spot-availability-tester/lambda.tf:11
- ../../spot-availability-tester/azure/IaC/terminate-failed-vms/lambda.tf:6
- ../../spot-availability-tester/azure/IaC/terminate-orphan-disk/lambda.tf:6
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
- multinode_ondemand_checker/IaC-cloudwatchlogs/provider.tf:1
- multinode_ondemand_checker/IaC/provider.tf:1
- multinode_spot_checker/azure/IaC/provider.tf:12
- multinode_spot_checker/aws/IaC-cloudwatchlogs/provider.tf:1
- multinode_spot_checker/aws/IaC/provider.tf:1
- spot-quota-checker/aws/IaC-cloudwatchlogs/provider.tf:1
- spot-availability-tester/azure/IaC-cloudwatchlogs/provider.tf:1
- spot-availability-tester/azure/IaC/provider.tf:1
- spot-availability-tester/aws/IaC-cloudwatchlogs/provider.tf:1
- spot-availability-tester/aws/IaC/provider.tf:1
Medium Ensure that S3 bucket has a Public Access block
Ensure that S3 bucket has a Public Access block
Where
- ../../multinode_ondemand_checker/IaC-cloudwatchlogs/main.tf:6
- ../../multinode_spot_checker/aws/IaC-cloudwatchlogs/main.tf:6
- ../../multinode_spot_checker/azure/IaC/s3.tf:2
- ../../spot-availability-tester/aws/IaC-cloudwatchlogs/main.tf:6
- ../../spot-availability-tester/azure/IaC-cloudwatchlogs/main.tf:6
- ../../spot-quota-checker/aws/IaC-cloudwatchlogs/main.tf:6
Medium Ensure S3 buckets should have event notifications enabled
Ensure S3 buckets should have event notifications enabled
Where
- ../../multinode_ondemand_checker/IaC-cloudwatchlogs/main.tf:6
- ../../multinode_spot_checker/aws/IaC-cloudwatchlogs/main.tf:6
- ../../multinode_spot_checker/azure/IaC/s3.tf:2
- ../../spot-availability-tester/aws/IaC-cloudwatchlogs/main.tf:6
- ../../spot-availability-tester/azure/IaC-cloudwatchlogs/main.tf:6
- ../../spot-quota-checker/aws/IaC-cloudwatchlogs/main.tf:6
Medium Ensure that S3 bucket has cross-region replication enabled
Ensure that S3 bucket has cross-region replication enabled
Where
- ../../multinode_ondemand_checker/IaC-cloudwatchlogs/main.tf:6
- ../../multinode_spot_checker/aws/IaC-cloudwatchlogs/main.tf:6
- ../../multinode_spot_checker/azure/IaC/s3.tf:2
- ../../spot-availability-tester/aws/IaC-cloudwatchlogs/main.tf:6
- ../../spot-availability-tester/azure/IaC-cloudwatchlogs/main.tf:6
- ../../spot-quota-checker/aws/IaC-cloudwatchlogs/main.tf:6
Medium Ensure that S3 buckets are encrypted with KMS by default
Ensure that S3 buckets are encrypted with KMS by default
Where
- ../../multinode_ondemand_checker/IaC-cloudwatchlogs/main.tf:6
- ../../multinode_spot_checker/aws/IaC-cloudwatchlogs/main.tf:6
- ../../multinode_spot_checker/azure/IaC/s3.tf:2
- ../../spot-availability-tester/aws/IaC-cloudwatchlogs/main.tf:6
- ../../spot-availability-tester/azure/IaC-cloudwatchlogs/main.tf:6
- ../../spot-quota-checker/aws/IaC-cloudwatchlogs/main.tf:6
Medium Ensure the S3 bucket has access logging enabled
Ensure the S3 bucket has access logging enabled
Where
- ../../multinode_ondemand_checker/IaC-cloudwatchlogs/main.tf:6
- ../../multinode_spot_checker/aws/IaC-cloudwatchlogs/main.tf:6
- ../../multinode_spot_checker/azure/IaC/s3.tf:2
- ../../spot-availability-tester/aws/IaC-cloudwatchlogs/main.tf:6
- ../../spot-availability-tester/azure/IaC-cloudwatchlogs/main.tf:6
- ../../spot-quota-checker/aws/IaC-cloudwatchlogs/main.tf:6
Medium Ensure all data stored in the S3 bucket have versioning enabled
Ensure all data stored in the S3 bucket have versioning enabled
Where
- ../../multinode_ondemand_checker/IaC-cloudwatchlogs/main.tf:6
- ../../multinode_spot_checker/aws/IaC-cloudwatchlogs/main.tf:6
- ../../multinode_spot_checker/azure/IaC/s3.tf:2
- ../../spot-availability-tester/aws/IaC-cloudwatchlogs/main.tf:6
- ../../spot-availability-tester/azure/IaC-cloudwatchlogs/main.tf:6
- ../../spot-quota-checker/aws/IaC-cloudwatchlogs/main.tf:6
Medium Ensure that an S3 bucket has a lifecycle configuration
Ensure that an S3 bucket has a lifecycle configuration
Where
- ../../multinode_ondemand_checker/IaC-cloudwatchlogs/main.tf:6
- ../../multinode_spot_checker/aws/IaC-cloudwatchlogs/main.tf:6
- ../../spot-availability-tester/aws/IaC-cloudwatchlogs/main.tf:6
- ../../spot-availability-tester/azure/IaC-cloudwatchlogs/main.tf:6
- ../../spot-quota-checker/aws/IaC-cloudwatchlogs/main.tf:6
Medium Ensure every security group and rule has a description
Ensure every security group and rule has a description
Where
Medium Ensure no security groups allow ingress from 0.0.0.0:0 to port 22
Ensure no security groups allow ingress from 0.0.0.0:0 to port 22
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 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 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 Security Groups are attached to another resource
Ensure that Security Groups are attached to another resource
Where
Medium Ensure no open CORS policy
Medium Ensure that detailed monitoring is enabled for EC2 instances
Ensure that detailed monitoring is enabled for EC2 instances
Where
Medium Ensure VPC subnets do not assign public IP by default
Ensure VPC subnets do not assign public IP by default
Where
Medium Ensure that EC2 is EBS optimized
Ensure that EC2 is EBS optimized
Where
Medium Ensure that Lambda function URLs AuthType is not None
Ensure that Lambda function URLs AuthType is not None
Where
Medium Disallow IAM roles, users, and groups from using the AWS AdministratorAccess policy
Disallow IAM roles, users, and groups from using the AWS AdministratorAccess policy
Where
Medium Ensure Instance Metadata Service Version 1 is not enabled
Ensure Instance Metadata Service Version 1 is not enabled
Where
Medium Lambda Over-Provisioned Memory
Lambda function with memory >= 3008 MB (the old Lambda maximum, a common cargo-cult setting). Lambda pricing scales linearly with memory; over-provisioning directly inflates costs.
How to fix
Profile the function with AWS Lambda Power Tuning and reduce memory to the minimum needed. Most functions run fine at 256–1024 MB.
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 'Block Project-wide SSH keys' is enabled for VM instances
Ensure 'Block Project-wide SSH keys' is enabled for VM instances
Where
Medium Ensure Compute instances are launched with Shielded VM enabled
Ensure Compute instances are launched with Shielded VM enabled
Where
Medium Ensure that Compute instances do not have public IP addresses
Ensure that Compute instances do not have public IP addresses
Where
Low 12
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
- multinode_ondemand_checker/IaC-cloudwatchlogs/provider.tf:1
- multinode_ondemand_checker/IaC/provider.tf:1
- multinode_spot_checker/azure/IaC/provider.tf:12
- multinode_spot_checker/aws/IaC-cloudwatchlogs/provider.tf:1
- multinode_spot_checker/aws/IaC/provider.tf:1
- spot-quota-checker/aws/IaC-cloudwatchlogs/provider.tf:1
- spot-availability-tester/azure/IaC-cloudwatchlogs/provider.tf:1
- spot-availability-tester/azure/IaC/provider.tf:1
- spot-availability-tester/aws/IaC-cloudwatchlogs/provider.tf:1
- spot-availability-tester/aws/IaC/provider.tf:1
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 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.