{
  "schema": "aidefend-secureflow-metadata-v1",
  "flow_id": "aidefend-research-sf0088-litellm-azure-credential-override-secret-exposure",
  "title": "LiteLLM: Azure Credential Overrides Reflect Server Secrets",
  "subtitle": "A low-privilege inference request can cross into server-side credential resolution.",
  "summary": "A LiteLLM proxy flaw lets an authenticated caller override Azure Entra credential parameters in a normal inference request. A server-side environment reference can become an invalid Entra application identifier and return in the upstream error. Exposure requires an accessible azure/ or azure_ai/ model and the absence of the two Azure API-key environment variables named by the advisory. Master-key exposure can grant proxy administration; the source does not report an actual customer takeover.",
  "reviewed": true,
  "import_status": "curated-research",
  "ai_layers": [
    "ai-infrastructure"
  ],
  "risk_impact": [
    "credential-identity-theft",
    "data-exfiltration"
  ],
  "affected_components": [
    "LiteLLM proxy inference request parsing",
    "Azure Entra credential resolution",
    "Upstream authentication error returned to the caller"
  ],
  "source_research": {
    "provider": "BerriAI",
    "primary_url": "https://github.com/BerriAI/litellm/security/advisories/GHSA-2rwg-2wh4-7c4f",
    "published": "2026-11-12",
    "note": "The advisory documents a specific authenticated Azure credential path. Potential master-key takeover is conditional; subsequent token issuance or customer compromise is not asserted."
  },
  "attack_steps": [
    {
      "id": "request",
      "title": "Send a permitted Azure inference request",
      "zhTitle": "送出獲准使用的 Azure 推論請求",
      "summary": "A low-privilege authenticated caller uses an accessible Azure model on the affected configuration.",
      "zhSummary": "低權限但已通過驗證的呼叫者，在受影響設定上使用有權存取的 Azure 模型。",
      "tactic": null,
      "technique": null,
      "layout": {
        "x": 0,
        "y": 0
      }
    },
    {
      "id": "override",
      "title": "Override server credential parameters",
      "zhTitle": "覆寫伺服器憑證參數",
      "summary": "The request body supplies Azure Entra fields missing from the proxy’s blocklist.",
      "zhSummary": "請求本文提供 Proxy 封鎖清單漏掉的 Azure Entra 欄位。",
      "tactic": null,
      "technique": null,
      "layout": {
        "x": 650,
        "y": 0
      }
    },
    {
      "id": "resolve",
      "title": "Resolve a server-side secret reference",
      "zhTitle": "解析伺服器端秘密值參照",
      "summary": "A caller-supplied client_id reference resolves to an environment value or a file reached through an environment reference.",
      "zhSummary": "呼叫者提供的 client_id 參照，被解析為環境值，或透過環境參照取得的檔案內容。",
      "tactic": "AML.TA0013",
      "technique": "AML.T0055",
      "layout": {
        "x": 1300,
        "y": 0
      }
    },
    {
      "id": "entra-error",
      "title": "Return an invalid-application error",
      "zhTitle": "產生無效應用程式錯誤",
      "summary": "Entra rejects the resolved value as an unknown application and includes that value in its error.",
      "zhSummary": "Entra 把解析後的值視為未知應用程式，並在錯誤中包含該值。",
      "tactic": null,
      "technique": null,
      "layout": {
        "x": 1950,
        "y": 0
      }
    },
    {
      "id": "disclose",
      "title": "Relay the secret-bearing error to the caller",
      "zhTitle": "把含有秘密值的錯誤傳回呼叫者",
      "summary": "The proxy forwards the error. If the value is its master key, the disclosed credential can confer full proxy administration. No later administrative operation is demonstrated here.",
      "zhSummary": "Proxy 轉送錯誤；若該值是主金鑰，暴露的憑證就可能提供完整 Proxy 管理權。本圖不另宣稱已示範後續管理操作。",
      "tactic": null,
      "technique": null,
      "layout": {
        "x": 2600,
        "y": 0
      }
    }
  ],
  "threat_refs": [
    {
      "id": "AML.T0055",
      "name": "Unsecured Credentials"
    }
  ]
}
