All vulnerabilities
HIGHAI/LLMexploited in the wild

AI-AGENTSMITH-2025

LangSmith · LangSmith Prompt Hub

Summary

Noma Security discovered AgentSmith, a flaw in the public LangSmith Prompt Hub where an attacker uploads a malicious AI agent with a pre-configured proxy server baked into its settings. When a victim adopts and runs the shared agent, all traffic including OpenAI API keys, prompts, uploaded documents, images and voice inputs is silently routed through the attacker's proxy, enabling exfiltration of API keys, theft of data and man-in-the-middle manipulation of downstream LLM responses. LangChain confirmed and fixed the issue in November 2024; scope was limited to the public Prompt Hub sharing feature and there was no evidence of in-the-wild exploitation.

How to avoid it in your code

  • Apply LangChain's November 2024 fix and keep LangSmith updated.
  • Never adopt shared agents from public hubs without reviewing their proxy/network settings.
  • Vet and pin agent configurations; block agent-defined proxies that route traffic externally.
  • Keep API keys out of agent context; use a secrets manager and rotate any exposed keys.
  • Restrict agent egress to an allow-list to prevent MITM and exfiltration.

References

Related vulnerabilities

All AI/LLM →