Skip to content
NewsIncident

Prosecutors say an ex-OpenAI engineer used Codex to tune a hidden office recorder

· by

The short version

A federal filing says Abdulrahman Alfozan prompted OpenAI's Codex to add voice detection to a bugged device, and that the recordings captured a meeting between OpenAI and a foreign government.

Prosecutors say an ex-OpenAI engineer used Codex to tune a hidden office recorder

A federal case built partly on a defendant's own coding-agent prompts turns "what your AI assistant logs" from a compliance footnote into courtroom evidence. Prosecutors told a San Francisco court this week that Abdulrahman Alfozan, a 35-year-old former OpenAI engineer, used his wife's account to prompt the company's own Codex to add a voice-detection skill to a hidden recording device and to organize the resulting files in Dropbox, according to a court filing reported by The New York Times.

What the filing says

Investigators allege the device, wrapped in toilet paper and installed behind a television in an executive conference room at OpenAI's San Francisco headquarters around Sept. 28, recovered more than 160 hours of audio from Alfozan's computer, along with a photo of a document marked "CONFIDENTIAL" describing a strategic partnership. Prosecutors say the voice-detection prompt was meant to limit the device to capturing speech, and that Alfozan separately asked Codex about Saudi shipping options and the cost of flying five suitcases to Riyadh. The filing also states that some of the September recordings involved a meeting between OpenAI and a foreign government and what appears likely to be confidential trade-secret material; the Financial Times separately reported the engineer possessed recordings from dozens of meetings. Alfozan faces one count of intercepting oral communications, which carries up to five years in prison. He has not been charged with espionage, trade-secret theft, or acting as a foreign agent, a distinction his defense has stressed in court filings. OpenAI fired him Oct. 9, the day FBI agents arrested him, and the company has said it found "no indications" he improperly accessed model weights, source code, or customer data.

A prosecutor can now subpoena what your agent remembers

OpenAI says it used its own AI models to trace the hidden device back to Alfozan in the first place, so the same prompt-logging infrastructure that helped build the case against him also helped unwind it. For any team running coding agents against sensitive internal work, the practical signal is narrower than the espionage headlines: agent prompt histories are discoverable, retained, and attributable to an account, and in at least one instance they described the exact steps of building a bugging device inside a company's own offices. Security teams evaluating Codex, Claude Code, or similar tools for internal projects should treat prompt logs as an audit trail that can surface in a legal proceeding, not a private scratchpad.

Context

Alfozan pleaded not guilty on Nov. 6, and a trial has been set for January. Court filings from the Oct. 19 detention hearing describe prosecutors arguing he posed a flight risk given what they called Saudi government backing, including a $1 million bond the Saudi government offered to guarantee and a one-way flight booked for his wife and child days after his arrest. A federal judge ordered him held without bail. OpenAI has not been named as a target of the investigation.

What to watch next

The January trial is the most likely venue for Codex prompt logs and OpenAI's internal device-tracing method to become public record, which could set an early reference point for how prosecutors subpoena AI-agent prompt data in future insider cases.

Sources