{
  "id": "variantfind",
  "name": "variantfind",
  "summary": "variantfind builds a small signature from a known vulnerability's fix diff, then reports whether that vulnerable form is still present, patched or unpatched, in a local tree, a vendored copy, or a file at a public GitHub ref.",
  "category": "scanner",
  "language": "go",
  "license": "MIT",
  "repository": "https://github.com/ucsurf/variantfind",
  "version": "0.1.0",
  "released_at": "2026-12-04T15:36:36+03:00",
  "published_at": "2026-12-04T15:36:36+03:00",
  "release_url": "https://github.com/ucsurf/variantfind/releases/tag/v0.1.0",
  "distribution": "binaries",
  "platforms": [
    "darwin/amd64",
    "darwin/arm64",
    "linux/amd64",
    "linux/arm64",
    "windows/amd64",
    "windows/arm64"
  ],
  "install": [
    "go build -mod=vendor -trimpath -o variantfind ./cmd/variantfind"
  ],
  "usage": [
    {
      "label": "Build a signature from a patch or a git fix",
      "command": "variantfind signature --patch FILE [--out SIG.yaml] [--path FILE] [--desc TEXT]\nvariantfind signature --git-repo DIR --fix SHA [--path FILE] [--out SIG.yaml]",
      "lang": "sh",
      "note": "The README says this parses a unified diff, from a file or git show, and writes YAML. Removed lines become vulnerable snippets. Added lines become fixed snippets. Whitespace-only lines are dropped."
    },
    {
      "label": "Check a local tree or a public GitHub file",
      "command": "variantfind check --signature SIG.yaml --local PATH [--json]\nvariantfind check --signature SIG.yaml --raw OWNER/REPO@REF:PATH [--json]",
      "lang": "sh",
      "note": "The README says --local walks a file or directory. Signature paths are tried under the root, then by basename, which covers a vendored copy. --raw fetches one blob from raw.githubusercontent.com only. The cap is 32 requests per process and 2 MiB per file."
    },
    {
      "label": "Report several targets",
      "command": "variantfind report --signature /tmp/sig.yaml --local testdata/fixtures/vuln --local testdata/fixtures/fixed --local testdata/fixtures/partial",
      "lang": "sh",
      "note": "The README demo uses these paths, which it says are made up. report takes the same match as check, with repeatable --local and --raw flags. Exit 0 means no unpatched hit, 1 means at least one, and 2 is a usage or runtime error."
    }
  ],
  "links": [
    {
      "label": "README at v0.1.0",
      "url": "https://github.com/ucsurf/variantfind/blob/v0.1.0/README.md"
    }
  ],
  "updated_at": "2026-12-04T17:30:00+03:00",
  "public": true
}
