Get the newsletter
Microsoft · Security · Filed May 21, 2025 · USPTO published Nov 26, 2026 · This week's release

Microsoft Patents AI That Traces Cloud Security Flaws to the Exact Line of Code

When a cloud server has a security flaw, the fix often hides in one line of code among thousands. Microsoft's new patent has AI agents build a map to that line before anyone needs it.

An automated network links company software files to an AI that tracks down the exact source of online security flaws. Drawing from patent filing US 2026/0377173 A1.
An automated network links company software files to an AI that tracks down the exact source of online security flaws.All 8 drawings ↓
Publication number
US 2026/0377173 A1(US20260377173A1)
USPTO patent title:
Network Infrastructure and Code File Mapping Utilizing Artificial Intelligence Agents
Applicant
Microsoft Technology Licensing, LLC
Filed · Published
May 21, 2025 · Nov 26, 2026
Inventors
Amritaputra BHATTACHARYA, Moshe ISRAEL, Fady COPTY
Status when we published
Waiting for an examiner
Document
20 claims
US classification
717/120

What Microsoft's code-to-cloud mapping AI does

Every time a security alert flags a weak spot in a cloud server, somebody has to dig through piles of setup files to find the exact line that created the problem. Those files come in different formats, sit in different storage locations, and point to each other like a chain of footnotes.

Microsoft's patent describes a team of AI helpers that does the digging ahead of time. One helper looks at a file, works out what format it's written in, and hands it to a specialist that knows that format. The specialist finds where a given server, database or storage account is named, and follows any links to other files. The result is a lookup table: a map from each resource to the lines of code that define it.

When a flaw is reported, the map shows where to look. The filing says the system can then rewrite the offending lines, for example to make something less open to the internet.

From the filing · CLAIM 1
… cause a first artificial intelligence (AI) agent of a plurality of AI agents to select a second AI agent based on the first format type, the second AI agent configured to parse code of the first format type to locate identifiers of resources …

Translation: One AI agent chooses a specialist AI agent based on the programming language to find specific resource names.

How one AI agent hands a file to a specialist

The system starts by receiving a code file, the written instructions that set up a cloud resource such as a server, database or storage account. It works out the file's format type (the language or structure it's written in). In claim 1, one AI agent then picks a second, specialist agent built to read that format.

The specialist asks a generative AI model (a language model that produces text answers) to find where the resource's name, called a resource identifier, appears. The findings go into a resource map, which can be a table, a graph or a plain sentence like "this storage account is deployed from line 883 of this file."

The filing describes several extras:

  • Following references: when one file calls another, even one in a different code repository (a storage location for code), the agents chase the link and add that file to the map.
  • Names made on the fly: some resource names are partly random, like a fixed prefix plus a five-digit number. The AI matches the fixed part and the number pattern.
  • A checker: a validator confirms each mapping against the live environment, to catch made-up answers from the AI.

When a flaw is reported, the map points straight to the right line. The filing says nearby lines, for example within ten lines, can be rewritten, such as cutting a resource's network exposure.

From the filing · THE ABSTRACT
Systems, methods, devices, and computer readable storage media described herein provide techniques for mapping network infrastructure to code files.

Translation: This technology connects cloud infrastructure directly back to the underlying source code files.

Why faster fixes matter for cloud security teams

If you rely on a company's cloud services, the speed of a security fix matters to you. The longer a flaw sits open, the longer attackers have to find it. The filing says today's fixes are often made on the live system, then undone when new code goes out carrying the same mistake. Tracing a problem back to the source code is meant to stop that cycle.

The idea is aimed at organizations running lots of cloud resources across many files and repositories, where hand-searching gets slow. Whether any of this ships is unknown, since a patent describes an idea and not a product. The problem it targets is real, though: more resources mean more files, and more files mean more places for a mistake to hide.

Microsoft's 58th filing since May in our AI models working in teams adds to others we've tracked, including one on diagnosing cloud failures and a hub routing AI helpers.

Source: US 2026/0377173 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 · 8 sheets

8 drawing sheets from US 2026/0377173 A1 · click any drawing to enlarge

Connecting cloud servers, AI models, and code to pinpoint flaws, drawing sheet 1 from US 2026/0377173 A1
Sheet 1 Connecting cloud servers, AI models, and code to pinpoint flaws
Specialized AI agents analyze code files to match running resources, drawing sheet 2 from US 2026/0377173 A1
Sheet 2 Specialized AI agents analyze code files to match running resources
Finding the code that sets up a cloud resource, drawing sheet 3 from US 2026/0377173 A1
Sheet 3 Finding the code that sets up a cloud resource
Verifying and rewriting vulnerable code across different file types, drawing sheet 4 from US 2026/0377173 A1
Sheet 4 Verifying and rewriting vulnerable code across different file types
Tracking cloud assets across multiple linked configuration files, drawing sheet 5 from US 2026/0377173 A1
Sheet 5 Tracking cloud assets across multiple linked configuration files
Pulling referenced setup files stored across separate project folders, drawing sheet 6 from US 2026/0377173 A1
Sheet 6 Pulling referenced setup files stored across separate project folders
Identifying cloud names that are generated only during deployment, drawing sheet 7 from US 2026/0377173 A1
Sheet 7 Identifying cloud names that are generated only during deployment
Computer hardware that runs the security scanning network, drawing sheet 8 from US 2026/0377173 A1
Sheet 8 Computer hardware that runs the security scanning network
Patent filing page

Watchlists this filing belongs to

All watchlists →
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.