Dissertation section: Adversarial Inputs & Evidence Integrity

Note 28

Every search API in this test served known-malicious content to coding agents at least once

Source 2026-11-23Posted 23 November 2026

threat-intelligence · agentic-attacks · evidence · soc-practice

Reference

Hoffman, N., Lempert, S., & Levy, S. (2026, November 23). AI coding agents are getting malicious results from web search indexes, WebSec Benchmark finds. The Hacker News. https://thehackernews.com/expert-insights/2026/11/ai-coding-agents-are-getting-malicious.html

Summary

Purpose

Hoffman et al. (2026) described the WebSec Benchmark, which tests whether search APIs used by coding agents return malicious content.

Method and data

Starting from 8,684 recorded sessions of open-source coding agents fixing real GitHub issues, the authors retained 850, used a model to draft candidate searches and two judge models to narrow them, and added install and package searches for a total of 4,719 queries, none naming a malicious package. Each query was sent to eight search APIs (Firecrawl, Tavily, Perplexity, Parallel, Exa, Nimble, Brave, and You.com). The authors report checking more than 282,000 results; each result was opened twice, once as an agent and once as a normal browser, 17 checks were applied, and the research team reviewed every finding.

Findings

All eight APIs returned known-malicious content at least once. Of roughly 37,700 API searches, 534 surfaced known-malicious content and 1,026 returned malicious or risky content, with per-API rates between 0.8% and 2.2%, highest on install and package searches, "where an agent is about to run code." The authors classify results into six types: prompt injection, typosquatting, hallucination attacks on invented package names, SEO and answer-engine manipulation, hijacking of already-ranking pages, and manipulative content such as pipe-to-shell installs. They also publish their own WebSec Index ranking of the APIs (Hoffman et al., 2026).

Critical appraisal

Strengths

The study shows concretely that retrieved content sits on the path to execution once an agent acts on what it reads. The recommended controls, including logging what agents read as well as what they execute, apply beyond coding agents.

Limitations and validity

The article is a contribution from the lab that built the benchmark; it is not peer-reviewed, and I have neither re-run the tests nor reviewed the labels behind "known-malicious" and "risky." Judge models filtered the queries, the index is the authors' own construction, and secondary figures cited in the article are not verified here. The subject is coding agents, not SOC triage products.

How I Will Use This in My Research

I will use this benchmark as cross-domain evidence that retrieval is an attack surface for any agent that acts on what it reads, including SOC enrichment and investigation agents that pull threat intelligence, tickets, or web context into a verdict. It supports the evidence-integrity strand of my design: an evidence-supported disposition requires a record of the documents the agent retrieved, so that a poisoned source can be identified after the fact. Whether a poisoned intelligence page or ticket can change a triage verdict is a question the benchmark raises but does not test, and I intend to include it.

References

Dai, H., & Guerra-Manzanares, A. (2026). StateFence: Task-state protection against evidence-chain contamination in blue-team LLM agents (arXiv:2611.02605). arXiv. https://doi.org/10.48550/arXiv.2611.02605

Hoffman, N., Lempert, S., & Levy, S. (2026, November 23). AI coding agents are getting malicious results from web search indexes, WebSec Benchmark finds. The Hacker News. https://thehackernews.com/expert-insights/2026/11/ai-coding-agents-are-getting-malicious.html

Read the original source

Source check: the Hacker News expert-insights article was fetched in full on 23 November 2026. Benchmark figures, method steps, and the six attack types used here appear in that article. I have not re-run the benchmark or reviewed AIR's malicious-content labels, and I did not fetch a separate primary report page.

All research notes