Skip to content

test(evals): add SSRF discovery and an allowlisted control - #1917

Merged
mldangelo-oai merged 1 commit into
mainfrom
mdangelo/codex/discovery-eval-ssrf
Oct 24, 2026
Merged

mldangelo-oai merged 1 commit into
mainfrom
mdangelo/codex/discovery-eval-ssrf

Conversation

@mldangelo-oai

Copy link
Copy Markdown
Collaborator

Summary

The discovery benchmark from #1679 could score a scan at full recall with no server-side request forgery (SSRF) coverage. Add a fifth case to the existing Standard corpus with a safe control.

Refs #763.

Changes

  • Add two authenticated partner-status routes to the synthetic Flask app. The account route sends a HEAD request to the caller’s URL. The billing route enforces an exact allowlist before sending the request. Both return the first upstream status, including redirects.
  • Record CWE-918 expectations at the two outbound calls. Test that the vulnerable sink earns credit, a control-only report goes to adjudication, and finding the original four now scores 4/5.
  • Document how to compare per-case results across recorded corpus revisions.

Testing

  • Reproduced the coverage gap on main. All 11 original grading tests passed, and a report with just the four existing families received 4/4. The new SSRF regression checks failed against that fixture.
  • Ran the generated Flask app against local HTTP and certificate-verified HTTPS servers. Both routes required a signed-in session. The account route reached an unlisted destination. The billing route rejected four URL variants before DNS lookup, accepted both approved destinations, and returned a 302 without following it.
  • Ran one live production Standard scan via the CLI with ChatGPT authentication. All nine source files matched the committed corpus. The grader credited 5/5, with zero duplicates, safe-control accusations, unmatched findings, or evidence errors.
  • Passed the plugin and eval builds, 137 deterministic discovery tests, formatting, and git diff --check.

Risk and rollout

This changes the developer evaluation corpus. Aggregate recall now uses five cases. For comparisons with earlier runs, the recorded fixture hash identifies the revision and the four shared case IDs provide a common denominator.

Public disclosure review

  • No customer, partner, prospect, or user identities, data, or identifying details are included.
  • No credentials, personal data, private source, scan findings, or nonpublic links or tickets are included.
  • I reviewed the branch name, title, description, commits, changes, comments, logs, screenshots, attachments, and links for public disclosure.

@github-actions github-actions Bot added the skip-release-notes Omit internal changes from generated release notes label Oct 24, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-24T07:36:44.163876Z a1c5db3 PR opened
🔒 Security Review ✅ Completed 2026-10-24T07:36:54.868645Z a1c5db3 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.

@alandelong-oai alandelong-oai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No substantive findings in this owner-level merge-safety review. Thanks for extending the existing corpus with a matching control and clear guidance for comparisons across revisions. The five-case recall denominator and adjudication behavior are consistent with the existing grader.

Validation: frozen dependency installs, plugin/SDK/eval builds, types, formatting, and static fixture syntax/location checks passed. The deterministic suite reported 27 passing tests; two mocked production integration cases were blocked by existing output-ancestor permissions in the test environment. Their runtime and test code are unchanged from the base. Generated application execution and live model scans were not run.

@mldangelo-oai
mldangelo-oai merged commit 0aeb39d into main Oct 24, 2026
71 checks passed
@mldangelo-oai
mldangelo-oai deleted the mdangelo/codex/discovery-eval-ssrf branch October 24, 2026 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-release-notes Omit internal changes from generated release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants