{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lazaretto-dev/json-schema/lazaretto-dev-known-bad-schema.json",
  "title": "KnownBad",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lazaretto-dev-openapi.yml#/components/schemas/KnownBad",
  "type": "object",
  "properties": {
    "matched": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "true=known-bad; false=checked clean; null=could not check (fail-closed)."
    },
    "match_type": {
      "type": "string",
      "enum": [
        "exact_hash",
        "fuzzy_hash",
        "embedded_ioc",
        "known_publisher",
        "malicious_package"
      ],
      "description": "How the known-bad match was made. `malicious_package` means the package identity (name + version) is listed as malware in the OSV/OpenSSF corpus, which is scoped to the affected versions: a project compromised in one release is not condemned in its later clean ones."
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}