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

AWS Security Group allows all traffic on all ports misconfiguration detected in code

Rule Details

Cortex AppSec Rule ID

APPSEC_AWS_277

Category - Subcategory

Public Exposure - Ingress Controls

Provider

AWS

Severity

MEDIUM

Framework

Terraform, Terraform Plan

Impact

By allowing all ingress traffic on all ports, AWS security group permits unrestricted internet access. Make sure that ports are defined properly

How to Fix

[source,go]

resource "aws_security_group" "example" { name = "allow-all-ingress"

ingress { cidr_blocks = ["0.0.0.0/0"]

  • from_port = -1

  • to_port = -1

  • from_port = 443

  • to_port = 443 protocol = "tcp" } }


Last updated

Was this helpful?