For the complete documentation index, see llms.txt. This page is also available as Markdown.
Cortex CloudApplication Security

AWS Load Balancer uses HTTP protocol misconfiguration detected in code

Rule Details

Cortex AppSec Rule ID

APPSEC_AWS_378

Category - Subcategory

Public Exposure - Encryption And Protocols

Provider

AWS

Severity

MEDIUM

Framework

Terraform, Terraform Plan

Impact

This rule detects whether AWS Load Balancer Target Groups or Listeners use the HTTP protocol. Using HTTP instead of HTTPS for load balancer communication can expose sensitive traffic to eavesdropping and compromise. It is a security best practice to always configure AWS Load Balancers to use HTTPS, which ensures data encryption in transit and prevents the exposure of sensitive information.

How to Fix

Resource: aws_lb_target_group, aws_alb_target_group, aws_lb_listener, aws_alb_listener

  • Arguments: protocol

To remediate this issue, update the protocol attribute to use HTTPS instead of HTTP for the following AWS Load Balancer components: aws_lb_target_group, aws_alb_target_group, aws_lb_listener, and aws_alb_listener.

Example: [source,go]

resource "aws_lb_target_group" "example" { ...

  • protocal = "HTTP"

  • protocol = "HTTPS" }


Last updated

Was this helpful?