AI coding agents act on whatever web search hands them, and no person checks first. In AIR's tests, all eight search APIs handed them known-malicious content.

A coding agent hits an error it doesn't know how to fix, so it searches the web. Unlike a developer, it doesn't stop to judge the results. It acts on the top hits: it installs the package a forum post recommends, or runs the command a README suggests. AIR Research Lab has caught both sides of what can go wrong: a malicious page built to rank first, and a trusted page whose domain has lapsed.

Malware in the wild steals crypto wallets from web-browsing AI agents

Say 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. The 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.

The repository, known as SolanaCry, and its payload are real. The researchers recovered the payload from the Web Archive after its download link went dead and tied it to known NetSupport Manager campaigns (details). The scenario above follows the attack path they traced from the README and the recovered payload. 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.

Hijackable websites in top search results

An attacker doesn't always have to build a page that ranks. Sometimes the page already ranks and the domain behind it is up for sale. A site's place in a search index can outlive the site itself.

In an earlier study called Web Hole, 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.

WebSec Benchmark: How often it happens

To measure how common this is, AIR Research Lab built the WebSec Benchmark, released in November 2026. The team took 4,719 searches drawn from real coding-agent tasks and sent each one to eight widely used search APIs: Firecrawl, Tavily, Perplexity, Parallel, Exa, Nimble, Brave and You.com. Then they checked all 282,000+ results that came back.

Every one of the eight served known-malicious content at least once. Across about 37,700 searches, 534 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%, one bad search in every 45 to 125. Rates were highest on install and package searches, where an agent is about to run code. At 1%, 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 benchmark also gives each API a safety score, the WebSec Index, where higher is safer. Firecrawl (21.59) and Tavily (18.59) scored highest, and You.com (5.02) scored lowest.

Six ways the web is poisoned for agents

The researchers group what they found into six attack types.

  1. Prompt injection. Instructions written for the agent, not for 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.
  2. Typosquatting. A name one character off from the one the agent meant: lookalike vendor domains, packages one letter away from a popular library, repositories impersonating well-known projects. An agent rarely notices the difference.
  3. Hallucination attacks. AI models sometimes invent package names and domains that don't exist. Those inventions get repeated online and 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 found install steps for packages that were never published.
  4. SEO and AEO (answer engine optimization) manipulation. Pages and repositories built to rank first for the queries agents send, from repositories with inflated stars to brand-new domains that start ranking within days. SolanaCry, described above, is one.
  5. Web search hijacking. Taking over a page that already ranks, like the unregistered domains Web Hole found. The attacker skips the work of ranking and inherits the agents' visits.
  6. Manipulative content. Pages that steer the agent toward a harmful action: recommending known-malicious packages, pipe-to-shell installs from unknown hosts, direct executable downloads or unvetted MCP servers.

Why agents are an easy mark

Automated traffic now makes up 57% of requests for web pages on Cloudflare's network, the company said in June 2026. Much of it is crawlers, and some of it is agents that read a page and then act on it, with no person in the loop.

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.

Attackers are already there. Google scanned Common Crawl snapshots of the public web and measured a 32% relative increase in malicious prompt injections, text written to hijack AI models, 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.

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, and 1,499 searches about installing and choosing packages brought the total to 4,719. No query names 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. The research team reviewed every finding.

What security teams can do

  • Treat everything an agent reads as untrusted input, including search results and READMEs, and check it before it reaches the agent.
  • Don't let agents run download-and-execute commands, such as curl piped to sh or iwr piped to iex, without review. Turn off auto-approval for installs from unchecked sources.
  • Check packages before installing them: 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.
  • Check domain age and registration history instead of assuming a top-ranked domain has been vetted. That catches the unregistered and re-registered domains the researchers found.
  • 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.

Web search is part of the software supply chain now

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.

The full methodology and the complete results are in AIR's WebSec Benchmark.

About the Authors: This article is a collaborative contribution from the security experts at AIR, bringing together the technical leadership and research expertise of Niv Hoffman, Co-founder & CTO; Shay Lempert, Security Researcher; and Shahar Levy, Security Researcher.

Shahar Levy — Security Researcher at AIR https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaUu1pDRsy8mWLH9yHrs8UaSuQC9kvxQCnD48VIJwf9pbstzpVqIecZTKTi9EajzjE4tnUvX-WFkB6qL7GarqBaZxpBZS7v2kIwlaS8Z-R2pezlq99YP6z1B3MQjEgl9uXZmM4bgyywPnOLJrlHlRjRnPsBCSfAQ1VR8r8KYTn7rDnMMa2puHKgMj-0zI/s1700-nu-rw-lo-l85-e365/Shahar.png
Found this article interesting? This article is a contributed piece from one of our valued partners. Follow us on Twitter and LinkedIn to read more exclusive content we post.