Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions infra.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ resource "aws_s3_bucket_public_access_block" "backups" {
restrict_public_buckets = false
}

# VULN 2: Security group open to the entire internet on every port (incl. SSH).
# Security group scoped to HTTPS from within the private network only.
resource "aws_security_group" "open" {
name = "allow-all"
name = "restricted-ingress"

ingress {
from_port = 0
to_port = 65535
protocol = "-1"
cidr_blocks = ["0.0.0.0/0"]
from_port = 443
to_port = 443
protocol = "tcp"
cidr_blocks = ["10.0.0.0/8"]
}
}

Expand Down