{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/phishunt-io/json-schema/phishunt-io-site-schema.json",
  "title": "Site",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/phishunt-io-openapi.yml#/components/schemas/Site",
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "description": "Full URL of the suspicious site."
    },
    "domain": {
      "type": "string",
      "description": "Domain name including subdomains."
    },
    "company": {
      "type": "string",
      "description": "Targeted brand identifier."
    },
    "date": {
      "type": "string",
      "format": "date-time",
      "description": "Last check timestamp (ISO 8601)."
    },
    "first_seen": {
      "type": "string",
      "format": "date-time",
      "description": "When the site was first detected (ISO 8601)."
    },
    "uuid": {
      "type": "string",
      "format": "uuid",
      "description": "Unique identifier for this entry (UUID v4)."
    },
    "ip": {
      "type": "string",
      "description": "Resolved IPv4 address."
    },
    "country": {
      "type": "string",
      "description": "Hosting country name."
    },
    "asn": {
      "type": "string",
      "description": "Autonomous System Number."
    },
    "org": {
      "type": "string",
      "description": "Hosting organization."
    },
    "cert": {
      "type": "string",
      "description": "TLS certificate issuer."
    },
    "malicious_google": {
      "type": "boolean",
      "description": "true if flagged by Google Safe Browsing. false is not a clean verdict: the source did not flag it when checked, or was never asked."
    },
    "malicious_openphish": {
      "type": "boolean",
      "description": "true if present in OpenPhish feed. false is not a clean verdict: the source did not flag it when checked, or was never asked."
    },
    "malicious_phishtank": {
      "type": "boolean",
      "description": "true if present in PhishTank feed. false is not a clean verdict: the source did not flag it when checked, or was never asked."
    },
    "malicious_tweetfeed": {
      "type": "boolean",
      "description": "true if present in TweetFeed. false is not a clean verdict: the source did not flag it when checked, or was never asked."
    },
    "malicious_urlscan": {
      "type": "boolean",
      "description": "true if flagged by urlscan.io. false is not a clean verdict: the source did not flag it when checked, or was never asked."
    },
    "score": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100,
      "description": "phishunt's own 0-100 detection score from its explainable 5-layer scoring engine (same number `known.record.phishunt_score` exposes on /api/v1/analyze). Same disclaimer as that endpoint's `risk_score`: \"risk_score is a heuristic risk score, not a calibrated probability\" - this field is that same heuristic score, not a probability of phishing."
    },
    "verdict": {
      "type": "string",
      "enum": [
        "critical",
        "high",
        "medium",
        "low",
        "noise"
      ],
      "description": "Calibrated verdict tier `score` falls into (backend `analysis/scoring/weights.py` VERDICT_THRESHOLDS). Falls back to `noise` for rows scored before the verdict field existed."
    },
    "top_signals": {
      "type": "array",
      "maxItems": 5,
      "description": "Up to 5 highest-weighted signals behind `score`, sorted by points contributed (descending). Empty when the row predates the detector version that records per-signal point breakdowns, or when stored signal data is missing/malformed - never omitted, never a source of a 500.",
      "items": {
        "type": "object",
        "properties": {
          "signal": {
            "type": "string",
            "description": "Stable feature identifier, e.g. `kw_score_norm`, `combosquat`."
          },
          "label": {
            "type": "string",
            "description": "Human-readable label for `signal`."
          },
          "points": {
            "type": "number",
            "description": "Points this signal contributed to `score`."
          }
        }
      }
    },
    "url_only": {
      "type": "boolean",
      "description": "true when the host is shared infrastructure where only the URL path identifies the phishing link (URL shorteners, file hosts); block the full URL, never the domain."
    },
    "sans_score": {
      "type": [
        "integer",
        "null"
      ],
      "description": "SANS ISC DShield heuristic score (0..N) for the apex domain at insertion time. Sourced from the SANS recent-domains feed (passive-DNS first-seen). Null when the apex was not in the SANS feed of the day of insertion. Data consumed under CC BY-NC-SA 4.0 with attribution to SANS Internet Storm Center / DShield."
    },
    "sans_scorereason": {
      "type": [
        "string",
        "null"
      ],
      "description": "Textual reason string from SANS explaining the score, e.g. \"Excessive hyphens: 5 (+4)|High entropy: 3.87 (+1.85)|Contains suspicious keyword: deal (+20)\". Pipe-separated signals."
    }
  }
}