{
  "schema_version": 1,
  "tool_version": "0.1.0",
  "coverage": {
    "files_scanned": 5,
    "files_considered": 5,
    "bytes_read": 782,
    "skipped": {},
    "partial": false
  },
  "findings": [
    {
      "rule_id": "NGINX-TLS-POLICY",
      "category": "transport",
      "algorithm": "TLSv1.2 / TLSv1.3",
      "confidence": "medium",
      "line": 4,
      "evidence": "Single-line NGINX ssl_protocols directive with explicit protocol versions.",
      "recommendation": "Record the listener owner, termination point and negotiated key exchange. Protocol versions alone do not identify a post-quantum group.",
      "verification": "Validate the NGINX configuration. In staging, test the supported client matrix and record the negotiated protocol and group at the actual termination point.",
      "reference": "https://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_protocols",
      "path": "edge.conf",
      "context": "source"
    },
    {
      "rule_id": "PY-LEGACY-DIGEST",
      "category": "legacy-digest",
      "algorithm": "MD5",
      "confidence": "high",
      "line": 6,
      "evidence": "Imported hashlib call explicitly selects a legacy digest. The caller declares usedforsecurity=False.",
      "recommendation": "Trace the generator and its consumers before assigning production impact. Trace how the digest is consumed. For collision resistance, version the format and dual-read while introducing SHA-256. For authenticity, use a supported MAC or signature. Coordinate external format requirements first.",
      "verification": "Compare old and new results on golden records. Test compatibility with old manifests and check the security control independently of any checksum.",
      "reference": "https://docs.python.org/3/library/hashlib.html",
      "path": "generated/checksums.py",
      "context": "generated"
    },
    {
      "rule_id": "PY-LEGACY-DIGEST",
      "category": "legacy-digest",
      "algorithm": "SHA-1",
      "confidence": "high",
      "line": 6,
      "evidence": "Imported hashlib call explicitly selects a legacy digest.",
      "recommendation": "Trace how the digest is consumed. For collision resistance, version the format and dual-read while introducing SHA-256. For authenticity, use a supported MAC or signature. Coordinate external format requirements first.",
      "verification": "Compare old and new results on golden records. Test compatibility with old manifests and check the security control independently of any checksum.",
      "reference": "https://docs.python.org/3/library/hashlib.html",
      "path": "manifest.py",
      "context": "source"
    },
    {
      "rule_id": "PY-AES-KEYWRAP",
      "category": "wrapping",
      "algorithm": "AES-KW",
      "confidence": "high",
      "line": 6,
      "evidence": "Imported symmetric key wrapping API: aes_key_wrap.",
      "recommendation": "Document wrapping-key custody, version identifiers and access to previous keys. Preserve the existing wrapping format during rotation unless every consumer supports a replacement.",
      "verification": "Wrap and unwrap a synthetic key with the configured provider. In staging, recover an older version and verify that an incorrect wrapping key fails.",
      "reference": "https://cryptography.io/en/latest/hazmat/primitives/keywrap/",
      "path": "storage.py",
      "context": "source"
    },
    {
      "rule_id": "PY-JWT-ENCODE",
      "category": "signing",
      "algorithm": "RS256",
      "confidence": "high",
      "line": 6,
      "evidence": "Imported jwt.encode call with a recognized literal signing algorithm.",
      "recommendation": "Record the issuer, key custody and verifier allowlists. Rehearse a key rotation in staging before retiring an old verification key. Confirm issuer and verifier support before selecting any new signature scheme.",
      "verification": "Using synthetic claims, verify current and rotated keys during overlap. Require rejection of an unexpected algorithm, a modified token and an expired token.",
      "reference": "https://pyjwt.readthedocs.io/en/stable/api.html",
      "path": "tokens.py",
      "context": "source"
    }
  ]
}
