The toilet-paper bug: how an OpenAI engineer was caught by his own tools

The toilet-paper bug: how an OpenAI engineer was caught by his own tools

15 October 2026

It sounds like a scene from a bad spy movie. An OpenAI engineer wraps a roughly $20 microcontroller board in toilet paper and plugs it into a USB port on the back of the TV in the executive conference room. Two days later, the company's own security team has found it.

On October 9, Abdulrahman Alfozan was arrested. He is 35, a Saudi national and US permanent resident, and since July 2025 he had been an engineering lead on OpenAI's product team. He is charged with using, or attempting to use, a device to intercept oral communications. He has not been convicted of anything, and the case is at an early stage.

The criminal complaint filed by the US Attorney's Office in San Francisco is still worth reading for anyone building AI products. It shows how almost every step of the alleged plan left a trail in the very tools he helped build.

How it happened, according to the complaint

  • The reconnaissance. Before the device was installed, Alfozan allegedly used an internal productivity tool to ask about OpenAI's buildings and meeting rooms: room capacities, calendars, and where leadership and outside partners usually meet.
  • The build. Between September 24 and 30, a ChatGPT account belonging to his wife sent prompts about building, installing, concealing and remotely accessing a recording device. The account shared identifiers with his own. Among other things, it asked how to "build a continuous audio recorder" and how to "encrypt the SD card".
  • The install. Around September 28, the device, wrapped in toilet paper, was plugged into a USB port behind the TV in a conference room where leadership discusses research, product plans and government engagements.
  • The discovery. On September 30, OpenAI's technical surveillance countermeasures (TSCM) team found the device during a routine sweep. Its contents were encrypted.
  • The trail. On September 27 and 28, the same ChatGPT account had asked about the exact device that was later found, including its unique MAC address. Security footage also showed Alfozan near the room on several occasions, although he was not authorized to be there.
  • The bag. On October 5, he allegedly entered the room and looked behind the TV. The same day, he left a bag at a printer. Security staff found his wallet, his ID and a second, similar recording device inside. When he collected the bag the next day, he reported his credit card, cash, AirPods and sunglasses stolen. He did not mention the device.

He was arrested four days later. If convicted, he faces up to five years in prison and a $250,000 fine.

The AI that caught him

OpenAI says on X that its employees used the company's own models to work out what the device was and where it came from, and then referred the matter to the FBI. That makes a good story for an AI company to tell, but the most revealing clue was far less sophisticated. The device's MAC address was already sitting in a chat log on an account that could be tied to him.

The company and its critics describe the device in different ways. OpenAI calls it sophisticated and designed to evade detection, with advanced encryption. In the photos in the complaint, it is essentially a cheap microcontroller with a small antenna. Both descriptions can be true. Building a working bug no longer takes specialist equipment. It takes a hobbyist board and a chatbot to explain the steps.

For comparison, consider "The Thing", the Soviet listening device Leon Theremin built in 1945. It had no battery and no active components, and it only came alive when someone pointed a radio beam at it from outside. It was hidden in a carved wooden seal that Soviet schoolchildren gave to the US ambassador in Moscow, and it listened for seven years before anyone found it. The toilet-paper version lasted two days.

Who was it for?

That is the big question, and the complaint doesn't answer it. The charge is wiretapping, which only requires prosecutors to show that he secretly recorded conversations. Espionage would require proof that he acted for a foreign government, and prosecutors have not alleged that. At the same time, the case is being handled by the office's National Security section. US Attorney Craig Missakian called it "a matter of national security", and FBI Director Kash Patel described protecting American AI as a top counterintelligence priority. That suggests the investigation is not over.

What it means if you're building a company

It's easy to laugh at the toilet paper, but there are three lessons that apply even to a ten-person startup.

  1. The insider threat is the most common threat. Firewalls and SSO protect against outside attackers. Someone who already has a badge and an account in your internal tools gets around most of that. Access to rooms, documents and channels should follow least privilege, even when you're small.
  2. Your AI tools are also a log. Someone who asks an internal agent for leadership's meeting schedule leaves a trace. Make sure you can actually search those traces, and that internal agents don't answer every question just because the data is available.
  3. The physical room counts. A USB port on the back of a TV is a way in. Most small companies will never hire a TSCM team, but a simple routine goes a long way: check what is plugged into the ports in rooms where the board and investors meet, and keep the guest network separate from the internal one.

Every link in this chain was an ordinary tool used for the wrong purpose: a chatbot, an internal search tool and a hobbyist board. The same tools gave him away. That may be the most important lesson: the traces your systems leave are only worth something if someone actually looks at them.

Sources: the criminal complaint from the U.S. Attorney's Office, Northern District of California, as reported by the San Francisco Standard, AP and CBS News, and OpenAI's statement on X.