Cybersecurity researchers have uncovered a jailbreak for OpenAI Codex that modifies the AI coding assistant's core instructions to display advertisements for a third-party AI gateway service. The bundle, called Haiou (Chinese for Seagull), represents what Check Point Research has labeled "prompt adware" — a technique that exploits AI agents to serve unwanted promotions. The jailbreak alters Codex's configuration files so that common greetings like "hello," "hi," or the word "Seagull" itself trigger ads for the author's LLM gateway website, zz.aiapi2025[.]top.

The Haiou bundle was released on GitHub on July 10, 2026, and has been forked 77 times and starred 403 times as of this writing. It's advertised as a "local enhancement configuration package" that adds Chinese technical personality and security research tools to Codex. The jailbreak uses role-playing and reframing techniques to bypass the model's safety guardrails, including recasting cybersecurity requests as Capture The Flag scenarios. It installs skills focused on penetration testing, cracking, and reverse engineering, while simultaneously injecting persistent advertisements into the agent's global instruction file. The bundle has also been incorporated into Codex-X, an open-source Chinese visualization tool that lets users configure Codex through a graphical interface.

"The advertised service is an opaque, OpenAI-compatible LLM gateway, a middleware between an application and an LLM provider," Check Point Research stated in their technical report. The likely business model, according to the researchers, is using the free jailbreak as a customer acquisition channel for a paid gateway service. Pedro Drimel Neto, malware analysis team leader at Check Point, explained that "the behavior is introduced through natural-language instructions and configuration, rather than a traditional executable payload that users and security teams may more readily recognize as software behavior." Check Point researchers told The Hacker News they lack strong evidence but suspect these gateway resellers may be involved in laundering stolen LLM tokens.

The technique works by persistently modifying the agent's global instructions through natural language, influencing all future responses. Unlike traditional adware that displays pop-ups or banners on computers and mobile devices, prompt adware exploits the AI agent's instruction layer — the trusted commands that guide its behavior. Since Codex isn't officially available in mainland China, the service likely targets individuals or organizations seeking access to Western AI coding tools. While displaying an ad might seem relatively harmless, the findings illustrate how malicious actors could introduce undesirable behavior through third-party skills or configurations, creating supply chain vulnerabilities.

The researchers warn that as AI agents become embedded in enterprise environments, the prompts, skills, and third-party components influencing their behavior become part of the trust chain. Neto emphasized that these instruction-level modifications represent a new attack surface that security teams may not readily recognize as malicious software behavior. The report's bottom line is clear: organizations deploying AI agents must treat configuration files and natural-language instructions with the same scrutiny they'd apply to executable code. The emergence of prompt adware signals that monetization schemes will follow AI adoption into whatever channels open up, and that defensive strategies built for traditional software may miss threats disguised as conversational configuration. Enterprises integrating autonomous agents into workflows will need to rethink how they audit trust and provenance when the payload is prose rather than binary.