Skip to content

Scanner-runner registry: run external scanners (Snyk/Trivy/Grype/Semgrep/OSV) → merge into one local verdict #62

Closed

Description

@sandstream

Realizes the strategic anchor from #50: a local-first, zero-server, deterministic single binary that runs the scanners AND merges their output locally into one verdict. Builds on the #48 ingest adapter (SARIF/OSV → SecurityCheckResult).

kit scan — a data-driven registry of external scanners that emit SARIF/OSV:

  • registry of {id, bin, args, format: sarif|osv, needsToken?, detect?} rows — Snyk (snyk test --sarif, SNYK_TOKEN), Trivy (trivy fs --format sarif), Grype (grype -o sarif), Semgrep (semgrep --sarif), OSV-scanner (--format json)
  • resolve each bin mise-first (resolveToolBin); skip cleanly when not installed / token missing
  • run applicable scanners → ingest() each output → merge + dedup into one verdict (collapse the same CVE/GHSA reported by multiple scanners, keep max severity, list which scanners flagged it)
  • kit scan prints the merged verdict (--json for the raw list); per-scanner ran/skipped status

Socket + the native scanners (semgrep/trivy/osv/trufflehog/bumblebee) already run in kit check; this is the external-scanner consolidation layer. On-brand: deterministic, local-first, zero-LLM.

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

    backlogenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions