Every Major Search API Fed Malicious Content to AI Coding Agents, WebSec Benchmark Finds
AIR Research Lab's new WebSec Benchmark tested eight search APIs used by AI coding agents and found every one returned known-malicious content. Across 4,719 real coding queries and more than 282,000 results, agents were handed malicious or risky content 1,026 times — with Firecrawl ranking safest and You.com last.
Every Major Search API Fed Malicious Content to AI Coding Agents, WebSec Benchmark Finds
A coding agent hits an error it cannot fix, so it searches the web. Unlike a developer, it does not pause to judge the results — it acts on the top hits, installs the package a forum post recommends, or runs the command a README suggests. A new benchmark from AIR Research Lab shows just how often that trust is misplaced: every one of the eight search APIs it tested handed known-malicious content to coding agents.
The WebSec Benchmark, published on 23 November 2026, is the first study to measure how safe the search APIs that feed AI agents actually are. The team, led by AIR co-founder and CTO Niv Hoffman with researchers Shay Lempert and Shahar Levy, sent 4,719 real coding-agent searches to eight widely used search APIs — Firecrawl, Tavily, Perplexity, Parallel, Exa, Nimble, Brave and You.com — and checked all 282,000-plus results that came back.
The results were blunt. Across the eight APIs, 534 searches surfaced content already known to be malicious, and agents were handed malicious or risky results 1,026 times. Per API, the rate ran from 0.8% to 2.2% — roughly one bad search in every 45 to 125. Rates were highest on install and package searches, the exact moment before an agent runs code. At a 1% rate, a company whose agents run 5,000 searches a day puts known-malicious content in front of an agent about 50 times a day.
The full ranking: Firecrawl safest, You.com last
AIR gives each API a safety score called the WebSec Index, where a higher number is safer. Firecrawl topped the ranking at 21.59, ahead of Tavily at 18.59. Only the top three earned AIR's "relatively safe" label; Parallel, Exa and Nimble were rated "unsafe", and Brave and You.com "highly unsafe".
| Rank | Search API | AIR verdict | WebSec Index | Risky URL | Malicious | Risky content |
|---|---|---|---|---|---|---|
| 1 | Firecrawl | Relatively safe | 21.59 | 11.22% | 0.82% | 0.38% |
| 2 | Tavily | Relatively safe | 18.59 | 12.20% | 1.16% | 0.49% |
| 3 | Perplexity | Relatively safe | 9.89 | 17.43% | 1.15% | 2.63% |
| 4 | Parallel | Unsafe | 9.26 | 21.72% | 1.25% | 0.87% |
| 5 | Exa | Unsafe | 8.70 | 22.74% | 1.25% | 1.38% |
| 6 | Nimble | Unsafe | 7.82 | 22.58% | 1.79% | 1.65% |
| 7 | Brave | Highly unsafe | 6.95 | 25.83% | 1.72% | 0.79% |
| 8 | You.com | Highly unsafe | 5.02 | 31.63% | 2.19% | 2.25% |
The three right-hand columns show the share of each API's searches that returned at least one finding of that kind; lower is better. Firecrawl had the lowest rate on all three measures. The gap is wide: 31.63% of You.com's searches returned at least one risky URL, against 11.22% for Firecrawl. AIR also notes that Brave powers Claude's web search, so the result reaches well beyond Brave's own users.
How a poisoned result becomes a compromise
The benchmark is not only about statistics. AIR's researchers traced a real attack from the wild, which they call SolanaCry. A developer asks a coding agent to set up a Solana crypto project. The agent searches for a starter kit and picks the first result: a GitHub repository with 286 stars and a convincing description. Its README says to install it with a single PowerShell command.
The agent runs it. On Windows, that command installs a remote access tool that restarts every time the user logs in. From that moment the attacker controls the machine — and every crypto wallet on it. Nobody clicked anything, and no person read the README before the agent acted on it. AIR researchers Eliad Mualem and Dor Granat published the SolanaCry case on 29 October, recovering the payload from the Web Archive after its download link went dead and tying it to known NetSupport Manager campaigns.
The malware itself is ordinary. The attacker only had to publish a page that ranks first for a query an agent was going to send anyway.
Six ways the web is poisoned for agents
The researchers group what they found into six attack types. Prompt injection leads the list: instructions written for the agent rather than the person reading the page — hidden text, HTML comments addressed to AI agents, pages that serve agents different content than browsers, and READMEs that tell the agent which command to run.
Typosquatting follows: a name one character off from the one the agent meant, from lookalike vendor domains to packages one letter away from a popular library. Agents rarely notice the difference. Hallucination attacks exploit the models themselves — AI models sometimes invent package names and domains that do not exist, and once those inventions are repeated online they can end up in the next model's training data, where they come back out as fact. An attacker only has to register the name. The benchmark even found install steps for packages that were never published.
The remaining three are SEO and answer-engine manipulation, where pages and repositories are built to rank first for the queries agents send; web search hijacking, where an attacker takes over a page that already ranks; and manipulative content, such as pages recommending known-malicious packages, pipe-to-shell installs from unknown hosts, direct executable downloads or unvetted MCP servers.
The other route in: domains that outlive their owners
An attacker does not always have to build a page that ranks. Sometimes the page already ranks and the domain behind it is up for sale. In an earlier study called Web Hole, published on 23 October, AIR ran about 2,000 everyday developer queries and found 36 results on domains that were no longer registered — open for anyone to buy. One came up for a Python import error, another for a basic AngularJS question. Whoever registers one of those domains can put anything on it, and agents that run the same search can land on it.
Why agents are an easy mark
The scale of the exposure is growing fast. Automated traffic now makes up 57% of requests for web pages on Cloudflare's network, the company said in June 2026 — much of it crawlers, and some of it agents that read a page and then act on it, with no person in the loop. Google, meanwhile, scanned Common Crawl snapshots of the public web and measured a 32% relative increase in malicious prompt injections between November 2025 and February 2026. Google's read was that attackers are still experimenting, and it expects the attacks to grow in scale and complexity.
When a person searches, there is a moment between reading and doing. A strange domain or an install line that pipes a download straight into a shell makes most people stop and think. An agent reads and acts in one step, often with a shell and the developer's credentials within reach.
How the benchmark worked
The researchers started from 8,684 recorded sessions of open-source coding agents fixing real GitHub issues, picked the 850 with the most to search for, and had a model write 50 searches a developer would plausibly run on each — debugging an error, installing a package, fixing a build, choosing a library. Two separate judge models kept the 3,220 most realistic of those 42,296 searches, and 1,499 searches about installing and choosing packages brought the total to 4,719. No query named a malicious package; whatever turned up, the search engine surfaced on its own.
Every result was opened twice, once posing as an agent and once as a normal browser, because some pages show agents something different from what a person sees. Seventeen checks looked at each result, from the domain behind it to the packages and install commands it recommended, and the research team reviewed every finding.
What security teams can do
AIR's advice starts with treating everything an agent reads as untrusted input — including search results and READMEs — and checking it before it reaches the agent. Teams should not let agents run download-and-execute commands, such as curl piped to sh or PowerShell's iwr piped to iex, without review, and should turn off auto-approval for installs from unchecked sources.
Packages should be checked before installing: does the package exist, how old is it, and is it listed in malware records such as the OSV database? A hallucinated or brand-new package name should block the install. Domain age and registration history should be checked instead of assuming a top-ranked domain has been vetted — that catches the unregistered and re-registered domains the researchers found. And teams should log what agents read, not only what they run: when something goes wrong, the page that started it is often the hardest evidence to recover.
The industry spent years locking down package registries and build pipelines, because code from those places ends up running in production. For every team running agents, search results now sit in the same position — and most agents act on them with no check in between.
Sources
- AIR Research Lab — WebSec Benchmark
- The Hacker News — AI Coding Agents Are Getting Malicious Results From Web Search Indexes, WebSec Benchmark Finds (23 November 2026)
- The Injection — WebSec: AIR scores eight search APIs that feed AI agents
- Sulat AI & Tech News — Firecrawl tops AIR's search API safety ranking (24 November 2026)
- AI Weekly — WebSec Benchmark: 8 Search APIs Fed Coding Agents Bad Content
What's Your Reaction?
Like
0
Dislike
0
Love
0
Funny
0
Angry
0
Sad
0
Wow
0