# WebSec: AIR scores eight search APIs that feed AI agents

> WebSec is AIR Security's benchmark for how much malicious or risky content web search APIs serve to AI agents.

- **Severity:** Info: Research, tools, evals or lab claims with no direct exposure. Context, not an alert.
- **Category:** Benchmark, Research
- **Published by:** AIR Security
- **Disclosed:** 2026-11-23
- **Affects:** Firecrawl, Tavily, Perplexity, Brave, You.com
- **Research by:** Shahar Levy, Shay Lempert, Niv Hoffman
- **Primary source:** https://www.air.security/blog-posts/websec
- **Page:** https://theinjection.dev/items/air-websec-search-benchmark/

AIR Security tested eight web search APIs built for AI agents and reports that every one returned malicious or risky content to ordinary coding queries, 1,026 times across more than 282,000 results.

## What happened

AIR Security published WebSec on 23 November 2026, a benchmark by Shahar Levy, Shay Lempert and Niv Hoffman that AIR says is the first to measure how safe agent search APIs are. The team sent 4,719 real coding-agent queries to eight search APIs and scanned more than 282,000 results. Agents were served malicious or risky content 1,026 times.

## How it works

Each result page is fetched twice, once as an AI agent and once as a browser, so content shown only to agents is caught, and the pages then pass through risk detectors. Two scores come out of that: a Risk Index, the average severity served per query, and a WebSec Index, where a higher number is safer. AIR points to two attack patterns from its earlier work: Web Hole, where an abandoned domain that still ranks in search is re-registered and filled with instructions, and SolanaCry, a fake Solana starter kit that ranked first in search and installed a remote access trojan.

## Who is affected

Any agent that reads search results from one of these APIs is in scope. AIR reports that no query in the set mentioned anything malicious, and that no API returned clean results. Scores and the ranking gap are listed below, and AIR notes that Brave powers Claude's web search.

## What to do

Treat search results reaching an agent as untrusted input, and check which search API your agent stack uses against the rankings on AIR's benchmark site. AIR reports that 534 searches surfaced known-malicious content, at exposure rates from 0.8% to 2.2%, so changing provider alone does not remove the need to check what an agent reads before it acts.

## Quick facts

- **Tested:** Eight web search APIs built for AI agents
- **Scale:** 4,719 real coding-agent queries, more than 282,000 results scanned
- **Findings:** 1,026 instances of malicious or risky content served to agents
- **Highest score:** Firecrawl, WebSec Index 21.59, then Tavily at 18.59
- **Lowest score:** You.com, WebSec Index 5.02, a gap AIR calls more than fourfold
- **Found by:** Shahar Levy, Shay Lempert and Niv Hoffman, AIR Security
- **Published:** November 23, 2026

## Questions

### Which search API scored best on the WebSec benchmark?

Firecrawl scored highest on AIR Security's WebSec Index at 21.59, followed by Tavily at 18.59, with Perplexity also named among the top performers. You.com ranked last at 5.02. AIR describes the distance between the safest and riskiest provider as more than fourfold. A higher WebSec Index means safer, because it is derived from the average severity served per query.

### Does a good WebSec score mean an agent search API is safe?

No. AIR Security reports that none of the eight search APIs returned clean results, even though no benchmark query mentioned anything malicious. Malicious documentation, hijackable domains and dangerous commands appeared across all of them. The WebSec Index ranks relative exposure, so a top score means less risky content than rivals, not an absence of risky content.

### How did AIR Security test the search providers?

AIR Security generated 4,719 queries from 850 real coding-agent sessions, filtered them with two judge models, and sent them to eight search APIs. Each returned page was fetched twice, once as an AI agent and once as a browser, to catch content shown only to agents. Results then passed through risk detectors, covering more than 282,000 results in total.

## Sources

1. [AIR Research](https://www.air.security/blog-posts/websec)
2. [WebSec Benchmark](https://websec.air.security/)
