Get the newsletter
Microsoft · Security · Filed Mar 25, 2025 · USPTO published Oct 1, 2026 · Oct 1 release

Microsoft Patents an Automated Way to Catch Bugs in Security-Scanning Code

Security tools that scan code for flaws can themselves have flaws. Microsoft has filed a patent for a system that automatically stress-tests those scanners before they ever touch real software.

A validation system compares abstract states from static analysis with concrete states from execution to find bugs. Drawing from patent filing US 2026/0300469 A1.
A validation system compares abstract states from static analysis with concrete states from execution to find bugs.All 12 drawings ↓
Publication number
US 2026/0300469 A1(US20260300469A1)
Applicant
MICROSOFT TECHNOLOGY LICENSING, LLC
Filed · Published
Mar 25, 2025 · Oct 1, 2026
Inventors
Alan Thomas Gavin JOWETT, Daniel Michael AGUN JR.
Status when we published
Examiner raised objections; the company can respond
Document
20 claims
US classification
726/23
Examiner
KHADKA, AMIT (Art Unit 2432)

What Microsoft's tool-testing tool actually does

Every time a developer ships code, automated scanners run through it looking for dangerous mistakes, like instructions that could crash a program or expose private data. Those scanners are supposed to be the last line of defense. But what happens when the scanner itself has a bug?

Microsoft's patent describes a system that generates test programs specifically designed to probe the scanner rather than the code it normally reviews. The system creates little instruction sequences that are either clearly safe or clearly unsafe, then watches how the scanner classifies them. If the scanner calls an unsafe program "safe" and then the system runs it and something bad actually happens, that mismatch is flagged as a bug in the scanner itself.

Think of it as a quality-control inspector who tests the inspectors. Instead of a human manually writing tricky edge-case tests, the whole process is automated, which means it can generate far more scenarios than any team could write by hand.

From the filing · CLAIM 1
generating, by an automated tool, a test program comprising a sequence of instructions wherein: the test program operates on an aspect of the static analysis tool; and the sequence of instructions performs an operation that is one of a safe operation or an unsafe operation; …

Translation: An automated system builds a test script made of instructions meant to check how a security scanner behaves.

How the test generator catches a flawed safety verdict

The patent describes a three-stage loop. First, an automated generator creates a test program made up of a sequence of instructions. Each instruction performs an operation that the patent categorizes as either safe (allowed, expected behavior) or unsafe (something that should never happen in a well-behaved program).

Second, the static analysis tool under test (a scanner that reads code without running it) classifies the generated program. Static analysis means the tool reads the instructions like a reader reads a book, drawing conclusions without actually executing anything. If the scanner labels the program safe, the system moves to step three.

Third, the program is handed to a concrete implementation, which the patent describes as something like a virtual machine, a controlled software environment that actually runs the instructions. If the virtual machine then encounters an unsafe operation that the scanner promised wasn't there, the system fires an alert pinpointing exactly which instruction caused the discrepancy.

The key insight is the gap between what the scanner predicted and what actually happened at runtime. That gap is the bug. The patent's claim covers the full pipeline: generation, classification, execution, discrepancy detection, and alert.

From the filing · THE ABSTRACT
If the static analysis tool classifies the test program as safe, the test program is then executed by a concrete implementation (e.g., virtual machine) to observe the actual behavior.

Translation: If the scanner thinks the code is safe, it runs in a virtual machine to see what it actually does.

What this means for software security pipelines

Static analysis tools underpin the security review process at virtually every software company. If one of those tools has a blind spot, it could wave through dangerous code for months or years before anyone catches it. An automated system that continuously generates new test cases and checks the scanner's reasoning against real execution gives security teams a way to find those blind spots without relying on manual review or waiting for a real-world incident.

For you as a software user, the benefit is indirect but real: the apps and services you rely on are typically guarded by layers of automated scanning. A more reliable scanner means fewer undetected vulnerabilities slip through to the product you actually use. Microsoft has been filing around developer-tooling security since at least the mid-2020s, and this patent fits that pattern of hardening the infrastructure that developers themselves depend on.

Microsoft's 488th filing we've tracked since May in our Microsoft coverage continues its AI safety work, joining flagging suspicious prompts and grouping cloud alerts.

Source: US 2026/0300469 A1 at the USPTO (PDF). Full patent text and figures are in the official publication.

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 Microsoft patent news breaks.

There are more where this came from

We read the new patents from Big Tech, carmakers and more and send you the ones worth knowing. Plain English, free, every week.

The drawings · 12 sheets

12 drawing sheets from US 2026/0300469 A1 · click any drawing to enlarge

Validation system for finding bugs., drawing sheet 1 from US 2026/0300469 A1
Sheet 1 Validation system for finding bugs.
Static analysis of a test program., drawing sheet 2 from US 2026/0300469 A1
Sheet 2 Static analysis of a test program.
Comparing abstract and concrete states., drawing sheet 3 from US 2026/0300469 A1
Sheet 3 Comparing abstract and concrete states.
Concrete implementation outputs for a test program., drawing sheet 4 from US 2026/0300469 A1
Sheet 4 Concrete implementation outputs for a test program.
Expected behavior versus actual execution., drawing sheet 5 from US 2026/0300469 A1
Sheet 5 Expected behavior versus actual execution.
Test program generation and validation., drawing sheet 6 from US 2026/0300469 A1
Sheet 6 Test program generation and validation.
Expanded test program validation., drawing sheet 7 from US 2026/0300469 A1
Sheet 7 Expanded test program validation.
Test program generator with machine learning., drawing sheet 8 from US 2026/0300469 A1
Sheet 8 Test program generator with machine learning.
Show the other 4 sheets
Microsoft Patents an Automated Way to Catch Bugs in Security-Scanning Code patent drawing, sheet 9
Sheet 9
Microsoft Patents an Automated Way to Catch Bugs in Security-Scanning Code patent drawing, sheet 10
Sheet 10
Microsoft Patents an Automated Way to Catch Bugs in Security-Scanning Code patent drawing, sheet 11
Sheet 11
Microsoft Patents an Automated Way to Catch Bugs in Security-Scanning Code patent drawing, sheet 12
Sheet 12
Patent filing page

Reader comments

No comments yet

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.