By Hamza Faisal
AI coding agents trust whatever a web search hands them — and a new benchmark shows that trust is being exploited. Every one of the eight major search APIs tested served known-malicious content to coding agents, in some cases more than once in every 50 searches.
The findings come from the WebSec Benchmark, published on November 23 by AIR Research Lab, the research arm of AIR Security. The team sent 4,719 real coding-agent queries to eight widely used search APIs — Firecrawl, Tavily, Perplexity, Parallel, Exa, Nimble, Brave and You.com — and checked more than 282,000 results that came back.
Across those searches, agents were handed malicious or risky content 1,026 times. In 534 searches, the results included content already known to be malicious. None of the queries mentioned anything malicious: they were ordinary developer searches about debugging errors, installing packages and choosing libraries.
No API came back clean
The striking result is how universal the problem was. Every API served known-malicious content at least once, with per-API exposure rates running from 0.8% to 2.2% — roughly one bad search in every 45 to 125.
The benchmark also ranks the providers with a WebSec Index, where a higher score means safer results. Firecrawl scored highest at 21.59, followed by Tavily at 18.59, while You.com came last at 5.02 — a fourfold gap between the safest and the riskiest provider. The researchers say switching providers alone does not remove the risk: every service in the test returned something dangerous.
The queries were drawn from real work. The team started from 8,684 recorded sessions of open-source coding agents fixing genuine GitHub issues, picked the 850 sessions with the most searching, and wrote 50 plausible searches for each — the kind of thing a developer, or an agent acting for one, would type while debugging a build.
Six ways the web is poisoned for agents
AIR groups what it found into six attack patterns. They include prompt injection — hidden instructions written for the agent rather than the human reading the page — typosquatted package and documentation pages, and "web hole" attacks, in which an abandoned domain that still ranks in search results is re-registered and filled with malicious content.
One real-world case shows how deliberate the targeting is. The researchers found a malicious page built to rank first for cryptocurrency project queries, linked to a repository known as SolanaCry. Its payload was recovered from the Web Archive after the download link went dead, and tied to known NetSupport Manager malware campaigns.
The danger is structural. Coding agents act on the top results without a human checking first, so a poisoned result can turn into a bad install command or a compromised dependency before anyone notices. The researchers fetched each result page twice — once as an AI agent and once as a browser — to catch pages that serve agents different content than humans see.
What developers should do
AIR's advice is blunt: treat search results as untrusted input. Check what an agent reads before it acts, verify package names and download links against the official source, and do not assume a top-ranked result is safe just because it ranks well.
The benchmark is a first attempt at measuring a problem that is only growing as agents take on more of developers' searching. AIR says its query set and scanner are not yet public, and independent researchers have already begun testing the same idea with a public methodology. For now, the headline stands: across more than 282,000 results, no search API kept coding agents clean.



