InfraScan Cloud

Repository scan

Repository

branch main

FOverall
FSecurity
–Reliability · N/A
DCost
91findings · 0 critical, 3 high
—no cost findings with a savings estimate

High 3

High Missing AWS Budget Cost · 3 places

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

  • infrastructure/staging/terraform.tf:10
  • infrastructure/core/terraform.tf:10
  • infrastructure/production/terraform.tf:10

Medium 88

Medium Ensure every security group and rule has a description Security · 14 places

Ensure every security group and rule has a description

Documentation

Where

  • ../../infrastructure/modules/container_instances/sg.tf:1
  • ../../infrastructure/modules/container_instances/sg.tf:6
  • ../../infrastructure/modules/somleng/anycable_rpc_server.tf:3
  • ../../infrastructure/modules/somleng/anycable_rpc_server.tf:8
  • ../../infrastructure/modules/somleng/anycable_rpc_server.tf:17
  • ../../infrastructure/modules/somleng/appserver.tf:3
  • ../../infrastructure/modules/somleng/appserver.tf:8
  • ../../infrastructure/modules/somleng/appserver.tf:17
  • ../../infrastructure/modules/somleng/elasticache.tf:1
  • ../../infrastructure/modules/somleng/websockets_server.tf:3
  • ../../infrastructure/modules/somleng/websockets_server.tf:8
  • ../../infrastructure/modules/somleng/websockets_server.tf:17
  • ../../infrastructure/modules/somleng/worker.tf:26
  • ../../infrastructure/modules/somleng/worker.tf:31
Medium Ensure all data stored in the SQS queue is encrypted Security · 8 places

Ensure all data stored in the SQS queue is encrypted

Documentation

Where

  • ../../infrastructure/modules/somleng/sqs.tf:5
  • ../../infrastructure/modules/somleng/sqs.tf:11
  • ../../infrastructure/modules/somleng/sqs.tf:17
  • ../../infrastructure/modules/somleng/sqs.tf:23
  • ../../infrastructure/modules/somleng/sqs.tf:29
  • ../../infrastructure/modules/somleng/sqs.tf:35
  • ../../infrastructure/modules/somleng/sqs.tf:41
  • ../../infrastructure/modules/somleng/sqs.tf:68
Medium Ensure AWS Load Balancer doesn't use HTTP protocol Security · 5 places

Ensure AWS Load Balancer doesn't use HTTP protocol

Documentation

Where

  • ../../infrastructure/modules/somleng/anycable_rpc_server.tf:139
  • ../../infrastructure/modules/somleng/appserver.tf:224
  • ../../infrastructure/modules/somleng/appserver.tf:262
  • ../../infrastructure/modules/somleng/websockets_server.tf:190
  • ../../infrastructure/modules/somleng/websockets_server.tf:206
Medium Ensure no security groups allow egress from 0.0.0.0:0 to port -1 Security · 5 places

Ensure no security groups allow egress from 0.0.0.0:0 to port -1

Documentation

Where

  • ../../infrastructure/modules/container_instances/sg.tf:6
  • ../../infrastructure/modules/somleng/anycable_rpc_server.tf:17
  • ../../infrastructure/modules/somleng/appserver.tf:17
  • ../../infrastructure/modules/somleng/websockets_server.tf:17
  • ../../infrastructure/modules/somleng/worker.tf:31
Medium Ensure SSM parameters are using KMS CMK Security · 3 places

Ensure SSM parameters are using KMS CMK

Documentation

Where

  • ../../infrastructure/modules/somleng/ssm.tf:13
  • ../../infrastructure/modules/somleng/ssm.tf:23
  • ../../infrastructure/modules/somleng/ssm.tf:33
Medium Missing Cost and Usage Report Cost · 3 places

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

  • infrastructure/staging/terraform.tf:10
  • infrastructure/core/terraform.tf:10
  • infrastructure/production/terraform.tf:10
Medium Ensure AWS CloudFront attached WAFv2 WebACL is configured with AMR for Log4j Vulnerability Security · 2 places

Ensure AWS CloudFront attached WAFv2 WebACL is configured with AMR for Log4j Vulnerability

Documentation

Where

  • ../../infrastructure/core/audio.tf:80
  • ../../infrastructure/modules/somleng/cloudfront.tf:32
Medium Ensure that S3 bucket has a Public Access block Security · 2 places

Ensure that S3 bucket has a Public Access block

Documentation

Where

  • ../../infrastructure/core/audio.tf:3
  • ../../infrastructure/modules/somleng/s3.tf:1
Medium Ensure that an S3 bucket has a lifecycle configuration Security · 2 places

Ensure that an S3 bucket has a lifecycle configuration

Documentation

Where

  • ../../infrastructure/core/audio.tf:3
  • ../../infrastructure/modules/somleng/s3.tf:1
Medium Ensure S3 buckets should have event notifications enabled Security · 2 places

Ensure S3 buckets should have event notifications enabled

Documentation

Where

  • ../../infrastructure/core/audio.tf:3
  • ../../infrastructure/modules/somleng/s3.tf:1
Medium Ensure that ECR repositories are encrypted using KMS Security · 2 places

Ensure that ECR repositories are encrypted using KMS

Documentation

Where

  • ../../infrastructure/core/ecr.tf:1
  • ../../infrastructure/core/ecr.tf:10
Medium Ensure that S3 bucket has cross-region replication enabled Security · 2 places

Ensure that S3 bucket has cross-region replication enabled

Documentation

Where

  • ../../infrastructure/core/audio.tf:3
  • ../../infrastructure/modules/somleng/s3.tf:1
Medium Ensure that S3 buckets are encrypted with KMS by default Security · 2 places

Ensure that S3 buckets are encrypted with KMS by default

Documentation

Where

  • ../../infrastructure/core/audio.tf:3
  • ../../infrastructure/modules/somleng/s3.tf:1
Medium Ensure the S3 bucket has access logging enabled Security · 2 places

Ensure the S3 bucket has access logging enabled

Documentation

Where

  • ../../infrastructure/core/audio.tf:3
  • ../../infrastructure/modules/somleng/s3.tf:1
Medium Ensure CloudFront distribution has a default root object configured Security · 2 places

Ensure CloudFront distribution has a default root object configured

Documentation

Where

  • ../../infrastructure/core/audio.tf:80
  • ../../infrastructure/modules/somleng/cloudfront.tf:32
Medium Ensure CloudFront distributions should have origin failover configured Security · 2 places

Ensure CloudFront distributions should have origin failover configured

Documentation

Where

  • ../../infrastructure/core/audio.tf:80
  • ../../infrastructure/modules/somleng/cloudfront.tf:32
Medium Ensure ECS containers are limited to read-only access to root filesystems Security · 2 places

Ensure ECS containers are limited to read-only access to root filesystems

Documentation

Where

  • ../../infrastructure/modules/somleng/worker.tf:42
  • ../../infrastructure/modules/somleng/worker.tf:52
Medium Ensure AWS CloudFront web distribution has geo restriction enabled Security · 2 places

Ensure AWS CloudFront web distribution has geo restriction enabled

Documentation

Where

  • ../../infrastructure/core/audio.tf:80
  • ../../infrastructure/modules/somleng/cloudfront.tf:32
Medium Ensure ECR Image Tags are immutable Security · 2 places

Ensure ECR Image Tags are immutable

Documentation

Where

  • ../../infrastructure/core/ecr.tf:1
  • ../../infrastructure/core/ecr.tf:10
Medium CloudFront Distribution should have WAF enabled Security · 2 places

CloudFront Distribution should have WAF enabled

Documentation

Where

  • ../../infrastructure/core/audio.tf:80
  • ../../infrastructure/modules/somleng/cloudfront.tf:32
Medium Ensure CloudFront distribution has Access Logging enabled Security · 2 places

Ensure CloudFront distribution has Access Logging enabled

Documentation

Where

  • ../../infrastructure/core/audio.tf:80
  • ../../infrastructure/modules/somleng/cloudfront.tf:32
Medium Missing S3 Lifecycle Policy Cost · 2 places

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

  • infrastructure/modules/somleng/s3.tf:1
  • infrastructure/core/audio.tf:3
Medium Missing Spot Instance Usage Cost · 2 places

No spot instances detected. Spot instances can save 50-90% on compute costs for interruptible workloads.

How to fix

Use spot instances for batch jobs, data analysis, and optional tasks. Consider aws_spot_instance_request or spot_price in launch templates.

Where

  • infrastructure/modules/container_instances/asg.tf:5
  • infrastructure/modules/container_instances/launch_template.tf:23
Medium Ensure CloudFront distribution has a response headers policy attached Security · 1 place

Ensure CloudFront distribution has a response headers policy attached

Documentation

Where

  • ../../infrastructure/core/audio.tf:80
Medium Ensure access control lists for S3 buckets are disabled Security · 1 place

Ensure access control lists for S3 buckets are disabled

Documentation

Where

  • ../../infrastructure/core/audio.tf:15
Medium Ensure IAM policies does not allow write access without constraints Security · 1 place

Ensure IAM policies does not allow write access without constraints

Documentation

Where

  • ../../infrastructure/modules/somleng/iam.tf:21
Medium Ensure SQS queue policy is not public by only allowing specific services or principals to access it Security · 1 place

Ensure SQS queue policy is not public by only allowing specific services or principals to access it

Documentation

Where

  • ../../infrastructure/modules/somleng/sqs.tf:41
Medium S3 Bucket has an ACL defined which allows public READ access. Security · 1 place

S3 Bucket has an ACL defined which allows public READ access.

Documentation

Where

  • ../../infrastructure/core/audio.tf:3
Medium Ensure all data stored in the S3 bucket have versioning enabled Reliability · 1 place

Ensure all data stored in the S3 bucket have versioning enabled

Documentation

Where

  • ../../infrastructure/modules/somleng/s3.tf:1
Medium Ensure CloudFront response header policy enforces Strict Transport Security Security · 1 place

Ensure CloudFront response header policy enforces Strict Transport Security

Documentation

Where

  • ../../infrastructure/modules/somleng/cloudfront.tf:11
Medium Ensure no security groups allow ingress from 0.0.0.0:0 to port 80 Security · 1 place

Ensure no security groups allow ingress from 0.0.0.0:0 to port 80

Documentation

Where

  • ../../infrastructure/modules/somleng/appserver.tf:8
Medium Ensure no IAM policies documents allow "*" as a statement's resource for restrictable actions Security · 1 place

Ensure no IAM policies documents allow "*" as a statement's resource for restrictable actions

Documentation

Where

  • ../../infrastructure/modules/somleng/iam.tf:21
Medium Ensure S3 bucket has block public ACLS enabled Security · 1 place

Ensure S3 bucket has block public ACLS enabled

Documentation

Where

  • ../../infrastructure/core/audio.tf:23
Medium Ensure S3 bucket has block public policy enabled Security · 1 place

Ensure S3 bucket has block public policy enabled

Documentation

Where

  • ../../infrastructure/core/audio.tf:23
Medium Ensure S3 bucket has ignore public ACLs enabled Security · 1 place

Ensure S3 bucket has ignore public ACLs enabled

Documentation

Where

  • ../../infrastructure/core/audio.tf:23
Medium Ensure S3 bucket has 'restrict_public_buckets' enabled Security · 1 place

Ensure S3 bucket has 'restrict_public_buckets' enabled

Documentation

Where

  • ../../infrastructure/core/audio.tf:23
Medium Ensure container insights are enabled on ECS cluster Security · 1 place

Ensure container insights are enabled on ECS cluster

Documentation

Where

  • ../../infrastructure/modules/somleng/ecs.tf:136
Medium Ensure S3 bucket does not allow an action with any Principal Security · 1 place

Ensure S3 bucket does not allow an action with any Principal

Documentation

Where

  • ../../infrastructure/core/audio.tf:50
Medium Ensure Instance Metadata Service Version 1 is not enabled Security · 1 place

Ensure Instance Metadata Service Version 1 is not enabled

Documentation

Where

  • ../../infrastructure/modules/container_instances/launch_template.tf:26

Grades use InfraScan Cloud's current formula, so they can differ from the ones first shown for this scan. Findings reflect the repository; 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.