Skip to content

Add Terraform unrestricted SSH benchmark - #119

Open
Mudassarahmad21 wants to merge 1 commit into
prooflinedev:mainfrom
Mudassarahmad21:add-terraform-benchmark
Open

Mudassarahmad21 wants to merge 1 commit into
prooflinedev:mainfrom
Mudassarahmad21:add-terraform-benchmark

Conversation

@Mudassarahmad21

Copy link
Copy Markdown

Summary

This PR adds a new infrastructure-as-code benchmark to verify Proofline's ability to detect overly permissive security group rules in Terraform.

Context

The benchmark introduces a main.tf file containing an aws_security_group resource that allows inbound SSH (port 22) from 0.0.0.0/0 (all IPv4 addresses). This is a high-risk security misconfiguration.

Evidence & Testing

I ran this benchmark through a real Proofline review to confirm the detection works as expected. Proofline successfully flagged the issue:

Warning · SSH ingress allows every IPv4 source: aws_security_group.web in main.tf permits inbound SSH from every IPv4 address rather than only trusted sources.

Review Evidence Links:

Changes

  • Added benchmarks/terraform-ssh-ingress/main.tf (The buggy Terraform code)
  • Added benchmarks/terraform-ssh-ingress/expected.json (The expected finding schema)
  • Added benchmarks/terraform-ssh-ingress/README.md (Documentation explaining the benchmark and linking to the evidence)

(Note: Because Proofline's AGENTS.md requires AI prompts to be included in the PR, I am adding a hidden comment at the bottom of this description with my prompts per the repository guidelines.)

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-03T07:09:02.942544Z c80b7f5 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant