{
 "public_id": "AIR-2025-0043",
 "incident_id": "2025-06-langchain-agentsmith",
 "date_disclosed": "2025-06-17",
 "date_occurred": null,
 "title": "AgentSmith: malicious LangChain Hub agent with a proxy provider silently exfiltrated OpenAI API keys and prompts",
 "class": "responsible_disclosure",
 "attack_surface": "agent_framework",
 "initial_vector": "malicious_shared_agent_in_public_prompt_hub",
 "agent_capability_abused": [
  "proxy_provider_configuration",
  "prompt_sharing",
  "model_routing",
  "proxy_configuration",
  "model_api_calls"
 ],
 "target_product": "LangSmith Prompt Hub / LangChain Hub",
 "target_vendor": "LangChain Inc.",
 "autonomy_level": "assistant",
 "impact_realized": false,
 "impact_type": [
  "credential_theft",
  "data_exfiltration",
  "response_manipulation"
 ],
 "blast_radius": "any LangSmith user who clicked Try It on a malicious public agent; LangChain found no evidence of abuse",
 "cve": [],
 "taxonomy": {
  "owasp_asi": [
   "ASI04",
   "ASI02"
  ],
  "mitre_atlas": [],
  "labels": [
   "supply_chain",
   "malicious_shared_artifact",
   "mitm",
   "credential_theft",
   "agent_registry",
   "malicious_proxy",
   "prompt_hub"
  ]
 },
 "defense_present": "none - the Proxy Provider field of a shared prompt was honoured without warning the consuming user",
 "defense_bypassed": true,
 "fix_shipped": "server-side fix deployed by LangChain on 2024-11-06, plus a warning banner for prompts with custom proxy configuration",
 "primary_sources": [
  "https://www.noma.security/blog/how-an-ai-agent-vulnerability-in-langsmith-could-lead-to-stolen-api-keys-and-hijacked-llm-responses"
 ],
 "verified_quote": "The malicious proxy discreetly intercepted all user communications – including sensitive data such as API keys (including OpenAI API Keys), user prompts, documents, images, and voice inputs.",
 "confidence": "high",
 "notes": "Codename AgentSmith, Noma Security. CVSS 8.8. Reported 2024-10-29, fixed 2024-11-06, publicly disclosed 2025-06-17 - the date_disclosed here is the public disclosure. No CVE assigned (hosted service). Neither Noma nor LangChain found evidence of active exploitation. Precursor to the later CVE-2026-45134 LangSmith SDK 'public prompt pull deserializes untrusted manifests' advisory. Also reported as: 'AgentSmith: malicious LangSmith Prompt Hub agents proxy and steal API keys and prompts'.",
 "risk_category": "security_fraud",
 "risk_secondary": [
  "privacy"
 ],
 "risk_subcategory": "Supply Chain Compromise",
 "risk_sub_secondary": [
  "Credential & Secret Theft"
 ],
 "ai_entity": "generative",
 "agency": "agent_acted",
 "agency_debatable": true,
 "agency_reason": "the shared agent routed model calls through the attacker's proxy",
 "vector_family": "malicious_component",
 "vector_detail": "malicious_shared_agent_in_public_prompt_hub",
 "guardrail_kind": [
  "none"
 ],
 "guardrail_outcome": "not_applicable",
 "xrefs": {
  "aiid": [],
  "atlas": [],
  "cve": [],
  "ghsa": []
 },
 "primary_asi": "ASI04",
 "agent_framework": "langchain",
 "model_provider": "openai",
 "model_name": "",
 "detection_mechanism": "external_researcher",
 "tool_access": "unknown",
 "financial_loss_band": "unknown",
 "eai_category": "supply_chain_vulnerabilities",
 "eai_domain": "tool_misuse",
 "eai_secondary": [
  "credential_theft",
  "data_exfiltration_channels"
 ],
 "eai_reason": "subcategory: Supply Chain Compromise",
 "asi_curated": [
  "ASI04"
 ],
 "asi_scope": "in_scope",
 "asi_provenance": "curated_plus_rule",
 "asi_reason": "curated: ASI04 | added ASI02 (impact=tool_misuse)",
 "submitted_by": "EAI Internal"
}