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.

- 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.
… 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.
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.
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

No comments yet