WebSec Benchmark: All 8 Major Search APIs Served Malware to AI Agents
AIR Research Lab's WebSec Benchmark tested 4,719 queries across 8 search APIs: every provider returned known-malicious results (0.8%–2.2%) to AI coding agents.
AI coding agents routinely search the live web when debugging errors or picking packages—and unlike human developers, they execute top results immediately. According to AIR Research Lab's WebSec Benchmark (published November 23–24, 2026), every one of eight major search APIs served known-malicious content to coding agents, turning search indexes into an unguarded software supply-chain vector.
What Happened
Researchers at AIR (Niv Hoffman, Shay Lempert, and Shahar Levy) built 4,719 realistic coding-agent search queries derived from 8,684 open-source agent sessions fixing real GitHub issues, plus 1,499 package-selection and installation queries. They sent those queries to eight widely used search APIs—Firecrawl, Tavily, Perplexity, Parallel, Exa, Nimble, Brave, and You.com—and audited over 282,000 returned results both as an agent and as a normal browser.
Key Numbers and Attack Vectors
- Every API failed at least once: Across roughly 37,700 total searches, 534 returned known-malicious content, exposing agents to malicious or risky results 1,026 times.
- Per-API hit rate: Between 0.8% and 2.2% of searches per API returned dangerous results—one bad search in every 45 to 125 queries—with the highest rates on package-install queries right before shell execution. At a 1% rate, an organization running 5,000 agent searches daily puts known-malicious content in front of an agent roughly 50 times a day.
- WebSec Index scores: Firecrawl (21.59) and Tavily (18.59) scored highest on safety, while You.com (5.02) scored lowest.
- Real-world wallet stealer: AIR traced a 286-star GitHub starter kit (
SolanaCry) ranking first for Solana setup queries whose README instructed a PowerShell command dropping a persistent NetSupport Manager RAT. - Six poisoning patterns: Prompt injection (including pages serving agents different content than browsers), typosquatting, hallucination-squatting (registering package names invented by LLMs), SEO/AEO manipulation, expired-domain hijacking (an earlier Web Hole study found 36 lapsed domains in 2,000 dev queries), and pipe-to-shell/unvetted MCP server steering.
Why This Matters Now
Automated traffic reached 57% of web page requests on Cloudflare's network by June 2026, and Google measured a 32% relative rise in malicious prompt injections across Common Crawl between November 2025 and February 2026. Human developers pause when a top link points to a strange domain or curl | sh; an autonomous agent reads and executes in one loop with shell and local credentials attached.
Macro and Micro Consequences
At the industry level, search APIs now sit inside the software supply chain alongside PyPI, npm, and container registries—yet lack package signing, provenance, or OSV-style malware blocking.
At the engineering and SecOps level, teams must treat every search result and README as untrusted input. Practical controls include blocking curl | sh or iwr | iex auto-execution, disabling auto-approved installs, verifying package age and OSV records before pip/npm runs, checking domain registration age to catch lapsed-domain hijacks, and logging what pages agents read, not just what commands they run.
Winners and Losers
- Winners: Agent-sandboxing, egress-filtering, and supply-chain verification tools (OSV/Sigstore checks before execution), plus higher-scoring search APIs like Firecrawl and Tavily that differentiate on safety filtering.
- Losers: Teams running coding agents with unrestricted shell access and auto-approve permissions, and search APIs lagging in malware and lapsed-domain filtering.
What to Watch Next
- Search-API safety gates: Whether providers integrate OSV, VirusTotal, and domain-age filters directly into search-for-agents endpoints.
- IDE and CLI sandboxing: Whether popular coding agents ship built-in quarantine for newly registered domains and pipe-to-shell commands by default.
- Agent-targeted cloaking: Growth in pages serving clean HTML to browsers while injecting shell payloads to known agent User-Agents.
// comments (0)