Skip to content

Corpus: add a Go SSRF detection test case #29

Description

@bkd-dotcom

Add a corpus case exercising SSRF detection in Go.

Where: signetry_eval/detection/corpus/ — add a case with a cited provenance (link/CWE), plus a SAFE decoy that must stay 0 false positives.

Acceptance criteria:

  • One vulnerable Go snippet (http.Get(r.URL.Query().Get("u"))-style) that the engine flags as ssrf / CWE-918.
  • One safe Go snippet (constant URL) that is NOT flagged.
  • Corpus-integrity test passes: uv run pytest -q.

See existing cases in the corpus for the exact format. Depends on signetry-core@v0.6.0 (installed automatically).

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions