OpenAI · Filed Oct 21, 2025 · Published Nov 5, 2026

OpenAI Files Patent for AI That Hunts Security Holes in Finished Software

OpenAI's patent application describes an AI that reads the compiled code inside a finished app, flags the pieces that look dangerous, and writes up how an attacker could break in through each one.

A screen showing an AI security report that details a software flaw, how hackers could exploit it, and ways to fix it. Drawing from patent filing US 2026/0352690 A1.
A screen showing an AI security report that details a software flaw, how hackers could exploit it, and ways to fix it.
See all 13 drawings from this filing ↓
Publication number US 2026/0352690 A1 US20260352690A1
Applicant OpenAI OpCo, LLC
Filing date Oct 21, 2025
Publication date Nov 5, 2026
Inventors David Aitel, Akshay Bhat, Matthew Knight
US classification 726/25
Status when we published Waiting for an examiner (Nov 8, 2025)
Parent application Claims priority from a provisional application 63798122 (filed 2025-05-01)
Document 20 claims

What OpenAI's code-checking AI actually does

Ever tried to proofread a library with millions of pages, hunting for the one typo that could cause a disaster? That is roughly the job facing security teams checking finished software, where the code has already been converted into the machine-readable form your phone or laptop actually runs. Nobody can read all of it.

OpenAI's patent application describes a way to hand that job to AI. First, a standard code-analysis tool quickly scores each chunk by how risky it looks and sets aside the boring bits. Then an AI writes a short briefing on what attackers would likely go after in this particular app. Finally, AI reviewers read the riskiest chunks with that briefing in hand and report what they find.

Each report includes a plain-language attack story showing how someone could actually get in, plus a suggested fix. A separate check can then try to reproduce the problem to confirm it is real.

From the filing · CLAIM 1
… determining, utilizing a reverse-engineering platform to perform an initial threat analysis of the binary function, a threat ranking for the binary function; generating, utilizing a large language model of the generative AI system, a threat model comprising a structured data object defining threat parameters corresponding to the computer application; …

Translation: The system uses reverse engineering and AI to rank software risks and build a structured threat model.

How the system ranks risky code, then digs in

The system starts with a binary repository, the collection of compiled program pieces (called binary functions) that make up an app. A reverse-engineering platform (the filing names Ghidra, a code-analysis toolkit) lists every function, drops trivial ones like tiny wrapper stubs, and builds a call graph, a map of which functions call which.

Next it computes a fast first-pass score, the threat ranking, from cheap signals such as risky memory-copy calls. Only the top slice (the filing's example is 500 functions) gets expensive treatment. Separately, an AI agent writes a threat model, a structured data file listing likely attack surfaces (network ports, file inputs), vulnerability classes (such as buffer overflows) and how to weigh them. Users can edit it.

Then an AI agent reads the high-ranked functions, 5 to 20 at a time in one example, together with the threat model. It produces a threat object: a summary, a severity, an exploitation narrative tracing user input to the weak spot, and a recommended fix.

  • Every stage runs in a short-lived isolated container with no access to the orchestration software, to block hostile code from tampering with the AI's instructions.
  • Results are saved in a content-addressable store (storage keyed by a fingerprint of the content), so jobs can pause and resume without redoing work.
From the filing · THE ABSTRACT
The present disclosure relates to systems, non-transitory computer-readable media, and methods for improving the security analysis of computer code. In particular, the disclosed systems can retrieve a binary function from a binary repository of a computer application.

Translation: This patent describes methods for making automated code security analysis much better by pulling compiled functions from software.

Why security teams may care about this filing

If software gets checked faster, holes get fixed sooner, and the apps and services you use are harder to break into. The filing's pitch is that existing scanners either rescan everything on every run or struggle when code mixes languages and chip types. A tool that works on finished code and picks its targets could save security teams real time.

The filing names no product, and it describes a pipeline for security teams rather than something you would use directly. Results can be posted to a chat channel or a web page with a recommended fix attached. People can also edit the threat model, so a team can tell the AI what matters most for their own app.

OpenAI's seventh filing we've tracked in our AI guardrails race watchlist since September adds to a run that includes one letting replies start early and one blocking voice mimicry.

Editorial take

Finding security holes in finished software is a huge and costly chore. A single app can hold millions of functions, and the filing says older tools rescan everything on each run, burning time and computing power. One missed hole can be all an attacker needs.

The approach fits the size of that problem. Ranking first and spending the expensive AI time on the riskiest slice mirrors how a human expert sorts a mountain of work. Saving progress and running each step in a sandbox deal with the practical headaches of long jobs and untrusted code.

The open question is accuracy, and the filing offers no numbers on how often the AI is right. Its best answer is the validation step that tries to reproduce each bug and mutes the ones it cannot confirm. On paper, it is a sensible plan for a problem this big.

Get our take in your Top Stories

Liked this breakdown? Add Patentlyze as a preferred source on Google, and our plain-English take shows up more often in your Top Stories the next time OpenAI patent news breaks.

There are more where this came from

We read every patent application Big Tech publishes and send you the ones worth knowing. Plain English, free, every week.

The drawings

13 drawing sheets from US 2026/0352690 A1 · click any drawing to enlarge

How the AI learns and sends answers to your phone, drawing sheet 1 from US 2026/0352690 A1
Sheet 1 How the AI learns and sends answers to your phone
Connecting security servers to user computers across a network, drawing sheet 2 from US 2026/0352690 A1
Sheet 2 Connecting security servers to user computers across a network
Steps the AI follows to spot flaws in finished programs, drawing sheet 3 from US 2026/0352690 A1
Sheet 3 Steps the AI follows to spot flaws in finished programs
Sifting out harmless code pieces to find the risky ones, drawing sheet 4 from US 2026/0352690 A1
Sheet 4 Sifting out harmless code pieces to find the risky ones
Tracking how different parts of an app share data, drawing sheet 5 from US 2026/0352690 A1
Sheet 5 Tracking how different parts of an app share data
Teaching the AI which software weaknesses matter most, drawing sheet 6 from US 2026/0352690 A1
Sheet 6 Teaching the AI which software weaknesses matter most
Scoring pieces of code to prioritize the biggest dangers, drawing sheet 7 from US 2026/0352690 A1
Sheet 7 Scoring pieces of code to prioritize the biggest dangers
Running suspect software safely in an isolated digital box, drawing sheet 8 from US 2026/0352690 A1
Sheet 8 Running suspect software safely in an isolated digital box
Show the other 5 sheets
Testing a suspected security flaw safely inside an isolated sandbox, drawing sheet 9 from US 2026/0352690 A1
Sheet 9 Testing a suspected security flaw safely inside an isolated sandbox
An alert that explains a software bug and its fix, drawing sheet 10 from US 2026/0352690 A1
Sheet 10 An alert that explains a software bug and its fix
How the AI spots and ranks software flaws, drawing sheet 11 from US 2026/0352690 A1
Sheet 11 How the AI spots and ranks software flaws
Hardware parts inside a server that powers the detection system, drawing sheet 12 from US 2026/0352690 A1
Sheet 12 Hardware parts inside a server that powers the detection system
Phones, computers, and headsets connecting to the security service, drawing sheet 13 from US 2026/0352690 A1
Sheet 13 Phones, computers, and headsets connecting to the security service
Browse all the drawings 13 drawing sheets
Patent filing page

Source. Full patent text and figures from the official USPTO publication PDF.
Reader comments

Be the first to weigh in

Start the discussion

Real name or a handle, either is fine. Comments are read by a person before they appear, so allow a little time. Keep it about the filing.