Search tools can feed coding agents malicious pages
All eight web search services that security researchers tested returned known harmful pages at least once, even for ordinary searches. AI coding helpers use these services to look things up online. An AI that reads such a page could be tricked into doing something unsafe.
AIR Research published the WebSec benchmark on November 23, 2026. Coding agents often search the web when they hit an error, then act on the top results.
AIR sent 4,719 ordinary searches, none mentioning anything malicious, to eight search APIs built for agents and checked more than 282,000 results. No provider came back clean. Agents received malicious or risky results 1,026 times. The safest and riskiest engines differed by more than four times. Firecrawl, Tavily and Perplexity ranked highest, and Brave and You ranked lowest.
The risks include fake documentation, abandoned web domains that someone can re-register, and install commands that download and run code. One example was a fake Solana starter kit that ranked first on GitHub and installed a remote access tool on Windows.
One caution: the benchmark comes from a security company, and reports give slightly different counts.
New to this? The key idea
Prompt injection means hiding instructions inside content an AI reads, so the AI obeys the page instead of its owner. A coding agent that searches the web is like an assistant who follows the top Google result without checking who wrote it. If that result is a fake guide with a harmful install command, the assistant may run it.
Use it at work
Use it for: developers and security teams who let coding agents search the web, and anyone choosing a search service for an agent.
Try it: open https://websec.air.security/ to compare the eight search providers' rankings. Then apply the defenses listed in The Hacker News write-up of the study: treat search results and READMEs as untrusted input, block download-and-execute commands unless a person reviews them, verify packages before installing them, check domain age and registration history, and log what your agents read.
Before you roll it out: the benchmark comes from a security company and reports give slightly different counts. The article does not detail its scoring method, so use the benchmark site for that, and results may change over time. Cost and licence of the benchmark are not stated. Any search provider you pick sees the queries your agent sends.
Summaries are written by AI from the linked source. Always check the original.