NETWORK INFRASTRUCTURE AND CODE FILE MAPPING UTILIZING ARTIFICIAL INTELLIGENCE AGENTS

Systems, methods, devices, and computer readable storage media described herein provide techniques for mapping network infrastructure to code files. In an aspect, a code file corresponding to a resource is received. A format type of the code file is determined and an artificial intelligence (AI) agent is selected from a plurality of AI agents based on the format type. The AI agent is used to identify a location of resource information corresponding to the resource in the code file. A resource map comprising a first mapping of the resource to the first location is generated. The resource map is used to mitigate a security vulnerability with respect to the resource. In a further aspect, different AI agents are used to parse code files of different types. In a further aspect, an AI agent is used to locate an identifier determined at runtime of a resource.

Skip to: Description  ·  Claims  · Patent History  ·  Patent History
Description
BACKGROUND

A network computing system is a set of computing devices that share resources located on or provided by devices of the system. Resources of the network computing system can be hosted or executed on behalf of users or tenants of the system. A software development process is a process for planning, building, testing, deploying, and maintaining software. A software development process may be used to deploy and/or configure resources, such as by enabling a user or tenant to write program code of resources. Software development processes typically include many lines of code separated throughout multiple code files.

SUMMARY

This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.

Network infrastructure and code file mapping are disclosed herein that utilize artificial intelligence (AI) agents. In an aspect, a first code file is received that corresponds to an account associated with a resource. A first format type is determined based on the first code file. An AI agent is selected from multiple AI agents based on the first format type. The selected AI agent is configured to parse code of the first format type to locate resource information, and to identify a location of first resource information corresponding to the resource in the first code file. A resource map comprising a first mapping of the resource to the first location is generated. The resource map is utilized to identify code mapped to the resource in mitigation of a security vulnerability of the resource.

In further aspects, a second location of second resource information is identified in a second code file. The second code file can be the same format as the first code file or a different format type. If the format type is different, a second AI agent is selected from the plurality of AI agents based on the second format type. In another aspect, the second code file is referenced in the first code file.

Further features and advantages of the embodiments, as well as the structure and operation of various embodiments, are described in detail below with reference to the accompanying drawings. It is noted that the claimed subject matter is not limited to the specific embodiments described herein. Such embodiments are presented herein for illustrative purposes only. Additional embodiments will be apparent to persons skilled in the relevant art(s) based on the teachings contained herein.

BRIEF DESCRIPTION OF THE DRAWINGS/FIGURES

The accompanying drawings, which are incorporated herein and form a part of the specification, illustrate embodiments and, together with the description, further serve to explain the principles of the embodiments and to enable a person skilled in the pertinent art to make and use the embodiments.

FIG. 1 shows a block diagram of a system for mitigating security vulnerabilities of resources utilizing a resource map, in accordance with an example embodiment.

FIG. 2 shows a block diagram of an infrastructure-to-code mapping system comprising the mapping system of FIG. 1, in accordance with another example embodiment.

FIG. 3 shows a flowchart of a process for mapping network infrastructure to code files, in accordance with an example embodiment.

FIG. 4 shows a code excerpt, in accordance with an example embodiment.

FIG. 5 shows a flowchart of a process for generating a resource map, in accordance with an example embodiment.

FIG. 6 shows a flowchart of a process for determining a validity of a mapping, in accordance with an example embodiment.

FIG. 7 shows a flowchart of a process for performing a mitigation action, in accordance with an example embodiment.

FIG. 8 shows a flowchart of a process for generating a resource map where a resource is mapped to multiple code files of different format types, in accordance with another example embodiment.

FIG. 9 shows a plurality of code excerpts including code excerpts of different format types, in accordance with an example embodiment.

FIG. 10 shows a flowchart of a process for generating a resource map where a resource is mapped to a code file referenced in another code file, in accordance with another example embodiment.

FIG. 11 shows a block diagram of a system for accessing code files from multiple data repositories, in accordance with another example embodiment.

FIG. 12 shows a plurality of code excerpts stored in different data repositories, in accordance with an example embodiment.

FIG. 13 shows a flowchart of a process for accessing a code file from a different data repository, in accordance with an example embodiment.

FIG. 14 shows a code excerpt including resource information generated at runtime, in accordance with an example embodiment.

FIG. 15 shows a flowchart of a process for identifying a location a resource identifier, in accordance with an example embodiment.

FIG. 16 shows a flowchart of a process for determining a resource identifier is a result of an execution of a function, in accordance with an example embodiment.

FIG. 17 shows a block diagram of an example computing environment in which embodiments may be implemented.

The subject matter of the present application will now be described with reference to the accompanying drawings. In the drawings, like reference numbers indicate identical or functionally similar elements. Additionally, the left-most digit(s) of a reference number identifies the drawing in which the reference number first appears.

DETAILED DESCRIPTION I. Introduction

The following detailed description discloses numerous example embodiments. The scope of the present patent application is not limited to the disclosed embodiments, but also encompasses combinations of the disclosed embodiments, as well as modifications to the disclosed embodiments. It is noted that any section/subsection headings provided herein are not intended to be limiting. Embodiments are described throughout this document, and any type of embodiment may be included under any section/subsection. Furthermore, embodiments disclosed in any section/subsection may be combined with any other embodiments described in the same section/subsection and/or a different section/subsection in any manner.

II. Embodiments for Mapping Network Resources to Code Files

A computing network system hosts resources, such as applications and servers, on behalf of users of the system. The computing network system enables user accounts of the users to access and utilize the hosted resources. For instance, a user can utilize resources of a computing network system to implement software development processes. Software development processes as processes that facilitate the development of applications or other software, the writing of program code, the analysis of data, and/or other functions related the to development of software. One example type of software development process is a continuous integration and continuous delivery process (also referred to as a “CI/CD process” herein). A CI/CD process is a software development process that automates building, testing, and deployment of code changes. The “continuous integration” enabled by a CI/CD process refers to the frequent and/or periodic merging of code into a shared repository, while “continuous delivery” refers to the automated delivery of code for testing, staging, and/or deployment to a production environment.

A software development process can utilize multiple code files to build resources or configurations thereof, test resources or configurations thereof, and deploy resources or configurations thereof to a production environment. A software development process can be implemented through code files of different types, and the different code files can be spread throughout multiple different repositories. As the number of resources in a production environment increases, the complexity of the code files and software development processes also increases. Furthermore, network computing devices and other resources can be subject to security vulnerabilities. Malicious entities, such as hackers, exploit security vulnerabilities to gain access to sensitive data and/or leverage accessed accounts and/or resources in a cyberattack.

Various mitigation techniques can be utilized in order to address security vulnerabilities. In existing techniques, a misconfiguration is remedied by reconfiguring the resource in its runtime environment. However, when new code is deployed, such as in a CI/CD process, the vulnerability may be reintroduced if the new code re-defines the misconfiguration. A security administrator can manually fix issues in code files, though this may be laborious due to the high number of code files often used to define parameters and impact a resource. As the number of resources and users increases, the number of code files correspondingly increases. Further, as mentioned, newly deployed code can undo efforts made by the security administrator. As threats made by cyber-attacks and malicious entities grow more complex and frequent, existing techniques are put under increased stress to quickly remedy these vulnerabilities. Implementing these existing techniques can be exasperating due to the fact an account often accesses multiple features, types of repositories, and/or types of services offered by a provider. Each of these features, repositories, services, etc., may require their own teams to handle security measures with respect to their services. Coordinating mitigation efforts amongst multiple entities and differently-located resources can be burdensome and time consuming. The longer it takes to resolve a security vulnerability, the more time a malicious entity has to exploit the vulnerability for malicious operations.

Aspects of the present disclosure provide techniques for the mapping of code files to corresponding resources using artificial intelligence (AI) agents. An “agent” in this context is a program that performs tasks autonomously or semi-autonomously on behalf of a user or a system. An AI agent is a type of agent that leverages artificial intelligence to adapt and/or learn based on its experience to perform tasks autonomously or semi-autonomously. For instance, in a non-limiting example, an AI agent utilizes a machine learning model to perform tasks in an automated fashion without human intervention. The techniques disclosed herein leverage AI agents to identify locations in code files corresponding to resources. These identified locations are mapped to the resources in a resource map, which is a collection of associations between resources and lines of code in code files. A mitigation system identifies in the resource map locations of code pertaining to the resource, enabling the located code to be modified to remedy an associated security vulnerability. The resource map enables efficient search techniques to be used to find problem code locations, rather than searching entire code files that may or may not relate to the resource. By reducing the quantity of evaluated information, the techniques described herein increase the accuracy in identifying a security vulnerability while also reducing the time needed to mitigate a security vulnerability from its identification. The exposure of resources to potential attacks by malicious entities is thereby reduced.

Systems for mapping network infrastructure to code files and utilizing the map to mitigate security vulnerabilities can be configured in various ways in embodiments. For instance, FIG. 1 shows a block diagram of a system 100 for mitigating security vulnerabilities of resources utilizing a resource map, in accordance with an example embodiment. System 100 is a computing network system, such as an enterprise network system, a cloud computing system, or the like. As shown in FIG. 1, system 100 comprises a server infrastructure 102, a security detection system 104, a mapping system 106, a model server 108, a mitigation system 110, a computing device 112, and a data store 114. In an embodiment, server infrastructure 102, security detection system 104, mapping server 106, model server 108, mitigation system 110, computing device 112, and/or data store 114 are interconnected via a network 140. In examples, network 140 comprises one or more networks such as local area networks (LANs), wide area networks (WANs), enterprise networks, the Internet, etc. In examples, network 140 comprises one or more wired and/or wireless portions. The features of system 100 are described in detail as follows.

Data store 114 is any type of physical storage device, including but not limited to, storage disks, solid-state drives (SSDs), random access memory (RAM) devices, flash memory, digital video disks, and/or other types of physical/tangible hardware storage media. Data store 114 stores data generated by and/or obtained by server infrastructure 102, security detection system 104, mapping system 106, model server 108, mitigation system 110, and/or computing device 112. As shown in FIG. 1, data store 114 stores one or more code files 128 (“code files 128” herein) and a resource map 130. A “code file”, as used herein, is a file comprising program instructions written in a programming language and can include instructions on how to deploy and/or configure a resource. Code files 128 comprise source code, deployment code, infrastructure as code (IaC) files, and/or other code files corresponding to resources of system 100. As shown in FIG. 1, code files 128 comprise at least a code file 136A and a code file 136n. Resource map 130 comprises mappings that associate code files (e.g., code files 136A-136n) with resources. Resource map 130 can include mappings of code files and resources for an account. An “account” as described herein is a unique identity associated with an entity (e.g., a user or group) that enables the entity to access one or more resources. Examples of accounts include individual accounts (e.g., user accounts), group accounts (e.g., for groups of users, for an organization, for a tenant), and/or other types identities a user or users can interact with resources. Additional details regarding resource maps, generation of resource maps, and utilization of resource maps are described elsewhere herein.

Server infrastructure 102 is a network-accessible set of one or more servers and/or other types of computing devices 142 (also referred to as “servers 142” herein). Examples of server infrastructure 102 include, but are not limited to, cloud-based server sets, enterprise network server set, and/or the like. Servers 142 can include one server, more than one server, tens of servers, hundreds of servers, and/or even greater numbers of servers. Servers 142 can be implemented in a single location, such as a server rack, a room of a building, a data center, and/or the like. Alternatively, servers 142 are distributed across multiple locations, such as in different collocated buildings, distributed servers, across separate data centers, and/or the like. Servers 142 are configured to host resources. For instance, as shown in FIG. 1, servers 142 host resources 116A-116n. Resources 116A-116n are physical or virtual items accessible to computing devices of system 100. Examples of physical hardware resources include, but are not limited to, a server of servers 142, an accelerator device, a processor, a memory device, a peripheral device, and/or other hardware-implemented resources. Examples of software resources include, but are not limited to, virtual machines, virtual machine scale sets, virtual accelerators, applications, virtual trusted platform modules, software secure enclaves, virtual routers, firewalls, virtualized storage, software, and/or other virtualized resources.

Model server 108 is any type of server and/or other type of computing device. In an embodiment, model server 108 is included in servers 142 of server infrastructure 102. While a single model server 108 is shown in FIG. 1, in some implementations, multiple model servers are used. As shown in model server 114 hosts generative AI model 124. A “generative AI model” is a machine learning model trained to generate content that is complex, coherent, and/or original. For instance, a generative AI model can create sophisticated sentences, lists, ranges, tables of data, images, essays, and/or the like. Examples of generative AI models include, but are not limited to, language models (e.g., large language models (LLMs), small language models (SLMs), etc.), graphic models, multi-modal models, and/or other types of models utilized to generate complex, coherent, and/or original content. In an example embodiment, generative AI model 124 is a language model. A language model is configured to estimate the probability of a token or sequence of tokens occurring in a longer sequence of tokens. In this context, a “token” is an atomic unit that the model is training on and making predictions on. In examples, a token is a word, a character (e.g., an alphanumeric character, a blank space, a symbol, etc.), or a sub-word (e.g., a root word, a prefix, or a suffix). In other types of models (e.g., image based models) a token represents another kind of atomic unit (e.g., a subset of an image). Some implementations of LLMs are transformer-based LLMs (e.g., the family of generative pre-trained transformer (GPT) models). A transformer is a neural network architecture that relies on self-attention mechanisms to transform a sequence of input embeddings into a sequence of output embeddings (e.g., without relying on convolutions or recurrent neural networks).

Generative AI model 124 is trained on a (e.g., very large) corpus of information to generate output based on prompted input. For instance, in an example, generative AI model 124 is trained on a dataset of publicly available internet text comprising books, articles, web pages, and other text sources. In some embodiments, generative AI model 124 is generated on a corpus of information related to a predetermined domain. For instance, an implementation of generative AI model 124 is trained on text related to a code format such as functions of the code format, libraries of the code format, syntax of the code format, tutorials for the code format, and/or other information related to the code format.

Computing device 112 is any type of stationary or mobile processing device, including, but not limited to, a desktop computer, a server, a mobile or handheld device (such as a tablet, a personal data assistant (PDA), a smart phone, a laptop, etc.), an Internet-of-Things (IoT) device, etc. In accordance with an embodiment, computing device 112 is associated with a user (such as an individual user, a group of users, an organization, a family user, a customer user, an employee user, an admin user (such as a service team user, a developer user, a management user, etc.), etc.). Computing device 112 is configured to execute an application 126. In an embodiment, application 126 is an application for resolving security vulnerabilities with respect to server infrastructure 102. In another embodiment, application 126 is an application for managing resources hosted by server infrastructure 102. In accordance with an embodiment, application 126 enables computing device 112 to interface with server infrastructure 102 (and/or resources thereof), security detection system 104, mapping system 106, model server 108 (and/or a model thereof), mitigation system 110, and/or data store 114, e.g., on behalf of a user.

Security detection system 104 is a computer-implemented system that detects security vulnerabilities with respect to resources of server infrastructure 102. A “security vulnerability”, as used herein, is a flaw or weakness in a computing device, a computer system. Examples of security vulnerabilities include, but are not limited to, a software bug, a misconfiguration of a firewall or other software, a misconfiguration in hardware, an outdated application, an exposed or stale credential, exposure of a network accessible resource to an external, and/or any other type of flaw or weakness a malicious entity could exploit. In embodiments, security detection system 104 detects security vulnerabilities based on a measure of anomalous activity with respect to a resource or user account accessing a resource, a listing of common vulnerabilities and exposures, a user-generated request indicating a potential vulnerability, an application-generated error code indicating a potential vulnerability or malfunction, and/or the another indicator that one or more resources of server infrastructure 102 is potentially exposed to a security vulnerability. In an embodiment, security detection system 104 detects a security vulnerability by determining if software resources of resources 116A-116n are up to date or are outdated versions. In another example, security detection system 104 detects a security vulnerability based on a detected breach and a likelihood the breach impacted resources 116A-116n satisfying a breach threshold. In other examples, security detection system 104 utilizes other techniques for detecting security vulnerabilities in servers, software, and/or server infrastructures.

Mapping system 106 is a computer-implemented system that generates mappings of resources to code files, such as resource map 130. In this context, a “mapping” is an association between a code file and a resource that describes how the code file refers to or otherwise corresponds to the resource. A mapping can show a relationship between the code file and the resource such as, but not limited to, a location of a resource identifier of the resource in the code file, a location in the code file where a parameter of the resource is defined, a location in the code file that links to another code file referring to the resource, and/or another type of relationship between the code file and the resource. A “resource identifier” is a value that uniquely identifies a resource. Examples of resource identifiers include, but are not limited to, names of resources, numeric identifiers assigned to a resource, alphanumeric identifiers assigned to a resource, and/or any other type of identifier that can be assigned to a resource to uniquely identify the resource from among other resources. As shown in FIG. 1, mapping system 106 comprises an orchestrator 118, a process analyzer 120, and one or more AI agents 122 (also referred to as “AI agents 122” herein). In an embodiment, orchestrator 118, process analyzer 120, and AI agents 122 are implemented by the same computing device of mapping system 106, e.g., as services executed thereby. Alternatively, one or more of orchestrator 118, process analyzer 120, and/or AI agents of AI agents 122 are implemented as a service executed by a separate computing device of mapping system 106.

Orchestrator 118 comprises logic to orchestrate analysis of code files and resources for mapping thereof. Orchestrator 118 can trigger automatically, such as based on a periodic schedule. Alternatively, or additionally, a requesting device or service can transmit a request to orchestrator 118, causing orchestrator 118 to orchestrate mapping of code files to resources. In another alternative, security detection system 104 causes orchestrator 118 to orchestrate generation of a resource map subsequent to detecting a security vulnerability impacting a resource. In an embodiment, orchestrator 118 accesses lists of software development processes associated with a user account or tenant and provides the software development processes to process analyzer 120 for analysis thereof.

In an implementation, a software development process can be utilized to configure physical hardware and/or virtual resources an account to which the user has access. In another implementation, the software development process can be utilized to deploy virtual resources. For example, a software development process can be used to build, test, and deploy a virtual machine in the network system. For instance, an example implementation of orchestrator 118 accesses a list of CI/CD processes associated with a user account of computing device 112. In a further example, orchestrator 118 obtains code files associated with the CI/CD processes in the list and provides the code files to process analyzer 120 for analysis thereof. In another implementation, orchestrator 118 decomposes the CI/CD process into separate stages. A stage of a CI/CD process can also be referred to as a “pipeline”. Pipelines can include one or more jobs or units of work. Jobs can include various steps such as tasks to be performed, scripts to be executed, references to templates, and/or the like. Orchestrator 118 provides the pipelines to process analyzer 120 for analysis thereof. In this context, orchestrator 118 can provide an individual pipeline, a subset of pipelines, or all of the pipelines to process analyzer 120. In an alternative embodiment, orchestrator 118 determines CI/CD processes associated with a user account or tenant account by querying repositories associated with the account and/or querying a user application associated with the account. In another alternative, a request to generate a resource map received by orchestrator 118 identifies the CI/CD processes associated with the user account.

Process analyzer 120 comprises logic for analyzing software development processes and mapping code files associated with the processes to resources associated with the processes. Depending on the implementation, process analyzer 120 selects an AI agent of AI agents 122 to utilize in identifying portions of code files that correspond to resources, validates output of the selected AI agent, and generates a resource map from the validated output. The resource map comprises mappings of code files and/or portions thereof to resources. The mappings can specify a location of a resource identifier corresponding to a resource, a location of where a parameter of the resource is specified or set, the value of the parameter, a location of a function that deploys the resource, and/or locations of other information related to the resource specified in the code files. Example locations include, the code file, a line of code within the code file, a function of the code file, a repository the code file is stored in, a segment within the code file, and/or the like. In some embodiments, the mappings specify a relationship between code files related to the resource. For instance, suppose a first code file calls a function of a second file to deploy the resource. In this example, the mapping can specify the resource is deployed from a line of the first code file utilizing a function from a line of the second code file.

As shown in FIG. 1, mapping system 106 includes AI agents 122. AI agents 122 are agents that utilize a machine learning model, such as generative AI model 124, to parse code to locate information related to resources. An AI agent of AI agents 122 can be a general purpose AI agent or a specialized AI agent in managing parsing of a single type or format of code or a subset of types. AI agents of AI agents 122 can act as an intermediary between generative AI model 124 and a service (e.g., an application executing on a computing device, pipeline analyzer 120, orchestrator 118, etc.) and/or user interface.

As shown in FIG. 1, AI agents 122 include a process definition agent 132 and one or more format agents 134A-134n (“format agents 134A-134n” herein). Process definition agent 132 comprises logic for facilitating the parsing of code files to identify location of information related to resources. For instance, process definition agent 132 comprises logic for parsing code files to identify resource identifiers corresponding to resources in the code files, identify code that specifies values of parameters of resources in the code files, identify a relationship between multiple code files that define parameters of the resources, locate code associated with deployment of the resources, and/or the like. In an embodiment, process definition agent 132 is able to identify a format type of a code file. A “format type”, as used herein, is the structure and organization of data within the file that determines how the file is utilized by other programs. Examples of format types include, but are not limited to, a data serialization language format type, a JSON format type, an Infrastructure-as-Code (IaC) tool-specific format type, a configuration file format type, a domain-specific language format type, and/or other types of file formats. Depending on the implementation, process definition agent 132 can parse code of a single file format type, a specific language of a file format type, and/or multiple file format types. If process definition agent 132 identifies a file format type it is unable to parse or that a different AI agent is better suited for parsing, it can place a call to the corresponding format agent of format agents 134A-134n for parsing of the file on behalf of process definition agent 132. In embodiments, each format agent of format agents 134A-134n is configured to parse files of a specified format type or language. By utilizing a specialized AI agent to parse a file of the corresponding format type, process definition agent 132 increases the accuracy at which information related to a resource is located within the code file.

As described herein, process definition agent 132 and format agents 134A-134n operate to parse code files to identify information related to resources and the location of the information within the code file. In some embodiments, process definition agent 132 and/or one or more of format agents 134A-134n utilize a generative AI model, such as generative AI model 124, to parse the code file and identify information. In this context, process definition agent 132 and format agents 134A-134n provide prompts to generative AI model 124 to cause generative AI model 124 to parse code and identify information. The prompt can specify the format type of the code file, the format type corresponding to the AI agent providing the prompt (also referred to as the “requesting AI agent” in this context), instructions to call another AI agent if a code file of another format type is identified, syntax of the format type, the code file to analyze, a location of the code file in a repository, and/or any other information related to the code file and/or resources to be mapped to the code file. In an embodiment, process definition agent 132 and format agents 134A-134n utilize separate generative AI models (e.g., small language models). In this alternative embodiment, the separate models are trained on respective training data to parse code of a corresponding format type. By utilizing separate models in this manner, the likelihood of a model generating an incorrect response (also referred to as a “model hallucination”) is decreased.

Mitigation system 110 is a computer-implemented system that mitigates security vulnerabilities utilizing a resource map generated by mapping system 106. In an embodiment, mitigation system 110 determines a mitigation action to perform with respect to a resource responsive to security detection system 104 detecting a security vulnerability that potentially impacts the resource. A mitigation action is an action to be performed to reduce or eliminate a potential impact of an exploitation of a security vulnerability on a resource. Examples of mitigation actions include, but are not limited to, automatically rewriting code in a code file, applying a firewall with respect to the resource, applying an authentication protocol with respect to the resource (e.g., multi-factor authentication, password protection, PIN protection, and/or the like), isolating the resource from another resource, removing access permissions of an account with respect to the resource, restricting access to a resource to internal network access, elevating privileges required to access the resource, applying an update or patch to the resource, and/or performing another step or steps to reduce or eliminate a potential impact of an exploitation of a security vulnerability on a resource. Depending on the implementation, a mitigation action can comprise one step or multiple sub-actions. In some implementations, mitigation actions are performed automatically by mitigation system 110 and/or another component of system 100. In some implementations, one or more steps are performed manually by a user. For instance, in an example, mitigation system 110 transmits a message to a developer account requesting a developer user to authorize a mitigation action.

Embodiments of mapping system 106 can be configured in various ways to map network infrastructure to code files. For instance, FIG. 2 shows a block diagram of an infrastructure-to-code mapping system 200 (also referred to as “system 200” herein) comprising mapping system 106 of FIG. 1, in accordance with an example embodiment. As also shown in FIG. 2, mapping system 106 comprises orchestrator 118, process analyzer 120, process definition agent 132, and format agents 134A-134n and system 200 comprises generative AI model 124 and code files 128, as described with respect to FIG. 1. System 200 also comprises a runtime environment 258. As shown in FIG. 2, process analyzer 120 comprises an agent interface 202, a map generator 206, and a validator 260, each of which are implemented as subcomponents and/or subservices thereof, and process definition agent 132 comprises a file analyzer 208 and an agent selector 210, each of which are implemented as subcomponents and/or subservices thereof. Runtime environment 258 comprises software and/or hardware components for hosting and/or executing resources. As shown in FIG. 2, runtime environment 258 hosts and/or executes resources 116A-116n, as described with respect to FIG. 1.

To better understand the operation of system 200, FIG. 2 is described with respect to FIG. 3. FIG. 3 shows a flowchart 300 of a process for mapping network infrastructure to code files, in accordance with an example embodiment. In an embodiment, process analyzer 120 of FIG. 2 operates according to one or more steps of flowchart 300. Note that not all steps of flowchart 300 need be performed in all embodiments. Further structural and operational embodiments will be apparent to persons skilled in the relevant art(s) based on the following descriptions of FIGS. 2 and 3.

Flowchart 300 begins with step 302. In step 302, a first code file corresponding to a resource is received. For example, agent interface 202 receives a process signal 216 comprising a code file of code files 128. Suppose, for example, process signal 216 comprises at least code file 136A. In an embodiment, orchestrator 118 obtains code file 136A and/or other code files of code files 128 associated with a user account, a tenant account, a project, a resource, and/or the like. Orchestrator 118 can obtain the files based on a periodic basis, a user request 212, or a security alert 214. For instance, in an embodiment, orchestrator 118 obtains files every hour, in a set number of hours, on a daily basis, a weekly basis, a monthly basis, or on another type of predetermined amount time. In another example, a user, such as a developer user, transmits a user request 212 to orchestrator 118 by interacting with a computing device. In this context, user request 212 causes orchestrator 118 to obtain files of code files 128. In another example, security detection system 104 transmits a security alert 214 subsequent to detecting a security event or other anomaly. In this context, security alert 214 causes orchestrator 118 to obtain files of code files 128. Orchestrator 118 processes and/or chunks code files into separate files or based on pipelines. Orchestrator 118 provides the code files in one or more process signals 216 to agent interface 202.

Code file 136A received by agent interface 202 can be in the context of a tenant or user account with respect to a service provider, a resource associated with an account, a project associated with an account, and/or the like. For example, suppose mapping system 106 is generating a resource map for resources of an account of a network computing service. In this example, accessed files of code files 128 are code files corresponding to resources of the account. As described herein, a code file “corresponds to a resource” if it comprises a reference to the resource (e.g., a resource identifier of the resource, an import of the resource, a name of the resource, and/or the like) or comprises a link to a second code file (e.g., code file 136n) that comprises a reference to the resource. A code file can reference no resources, one resource, or multiple resources. In another example, code file 136A is in the context of a project or a subset of resources. In an embodiment, code file 136A is a code file defining operations of a process or pipeline of a process. In an embodiment where multiple pipelines are processed, process analyzer 120 iterates over each pipeline, e.g., by receiving corresponding code files and continuing with flowchart 300 for each pipeline. Pipelines can be iterated over sequentially and/or in parallel. In an embodiment, pipeline analyzer 120 receives a list of different pipelines associated with a tenant or user account, the different pipelines including the pipeline corresponding to code file 136A.

In step 304, a first format type is determined based on the first code file. In an embodiment, agent interface 202 parses code file 136A into chunks and determines the format type based on the chunk. Agent interface 202 can determine the format type based on a language of code in the code file, an extension of the code file, or by another indication of its format type.

In step 306, a first AI agent from a plurality of AI agents is selected based on the first format type, the first AI agent is configured to parse code of the first format type to locate identifiers of resources. Depending on the implementation, agent interface 202 selects the AI agent or causes file analyzer 208 to select the AI agent. For instance, as shown in FIG. 2, agent interface 202 provides file information 218 comprising code file 136A and the determined format type to file analyzer 208. File analyzer 208 determines whether process definition agent 132 is able to process code file 136A or if another AI agent is to be used. If file analyzer 208 is able to process code file 136A, it selects itself and flow continues to step 308. If file analyzer 208 is unable to process code file 136A, it transmits file information 224 to agent selector 210, causing agent selector 210 to select a corresponding format agent of format agents 134A-134n for processing code file 136A.

In step 308, the first AI agent is utilized to identify a first location of a first resource identifier corresponding to the resource in the first code file. For example, if process definition agent 132 is able to process code file 136A, file analyzer 208 transmits a prompt 220 to generative AI model 124, causing generative AI model 124 to identify a location of a resource identifier corresponding to a resource of the user or tenant account in code file 136A. In an embodiment, file analyzer 208 receives a response 222 from generative AI model 124 and provides the response to map generator 206 via a response 248.

In an embodiment, process analyzer 120 utilizes a representational state transfer (REST) application programming interface (API) to transmit a request to the selected AI agent. For instance, in an embodiment, agent interface 202 provides file information 218 using a REST API of process definition agent 132 that causes process definition agent 132 to provide prompt 220 to generative AI model 124.

To better understand performance of step 308 using process definition agent 132, FIG. 3 is further described with respect to FIG. 4. FIG. 4 shows a code excerpt 400, in accordance with an example embodiment. In a non-limiting example, code excerpt 400 is an excerpt of code file 136A and code file 136A is a file entitled “DeployStorage.formatA” that deploys storage accounts. Further suppose, in this example, resource 116A is a storage account named “Prefix-StorageAcc-Loc-Suffix” and file analyzer 208 is configured to analyze files of a format type matching the format type of code file 136A. For instance, in this example, DeployStorage.formatA is a in a “Format A” format and file analyzer 208 is configured to analyze Format A files. In this example, file analyzer 208 generates prompt 220 comprising instructions to parse code file 136A including code excerpt 400 and provides prompt 220 to generative AI model 124. Generative AI model 124 parses code file 136A and identifies the resource identifier of “Prefix-StorageAcc-Loc-Suffix” in line 0883 of code excerpt 400 and corresponding to a deployment function in line 0883 of code excerpt 400. Generative AI model 124 provides response 222 indicating that Prefix-StorageAcc-Loc-Suffix is deployed from line 0883 of DeployStorage.formatA.

In step 310, a resource map comprising a first mapping of the resource to the first location is generated. For example, map generator 206 receives response 248 and generates one or more mappings 250 including a first mapping of resource 116A to the identified location in code file 116A. In an embodiment, map generator 206 generates mappings 250 as a table of results indicating the resource, the located resource identifier, the code file, the location in the code file, and/or any other information related to the identified location. In another embodiment, map generator 206 generates a graph that illustrates relationships between code files and resources. In another embodiment, map generator 206 generates a natural language statement describing the mapping. The statement can include information describing where the code file is located. For instance, with continued reference to the non-limiting example described with respect to step 308 and code excerpt 400, map generator 206 generates a statement stating:

    • “Storage account ‘Prefix-StorageAcc-Loc-Suffix’ is deployed from line 0012 in file ‘DeployStorage.formatA’ which is in repository ‘MyDeploymentsRepo’.”

In step 312, performance of a mitigation action with respect to a security vulnerability of the resource is caused based on the resource map. For example, in an embodiment, orchestrator 118 receives mappings 250 from map generator 206 and causes a mitigation action to be performed with respect to a security vulnerability of resource 116A based on mappings 250. In an embodiment, orchestrator 118 generates a map signal 256 comprising mappings 250 that mitigation system 110 can utilize to perform a mitigation action. In another embodiment, orchestrator 118 stores mappings 250 as resource map 130 in data store 114 for later use in mitigating security vulnerabilities. By utilizing resource map 130 in this manner, embodiments of the present disclosure efficiently identify code that can be rewritten, removed, or otherwise modified to mitigate a security vulnerability. For instance, mitigation system 110 can refer to the resource map 130 with reduced information in comparison to evaluating each code file related to a user account, tenant account, or project. An increased efficiency in security vulnerability mitigation reduces the amount of time taken to mitigate a security vulnerability from when it identified, thereby reducing exposure of resources to potential attacks by malicious entities. Furthermore, in implementations where resource map 130 is generated offline or otherwise separate from security vulnerability detection and mitigation, mapping system 106 can perform a detailed review of code files of a user account, tenant account, or project can be evaluated. This reduces the likelihood of code being overlooked and leads to a more accurate representation of code files mapped to a resource. By generating a more complete map, mapping system 106 reduces misconfiguration mistakes in redeployment of resources and/or their configurations.

Thus, flowchart 300 has been described with respect to utilizing process definition agent 132 to identify a first location of a first resource identifier corresponding to the resource in the first code file. In some embodiments, code file 136A is in a different format type than the format type file analyzer 208 is configured to parse. In this context, file analyzer 208 provides file information 224 to agent selector 210. Agent selector 210 determines the format type of code file 136A and selects a format agent from among format agents 134A-134n based on the determined format type. For instance, as another non-limiting example, suppose code file 136A is an IaC file that deploys storage accounts, resource 116A is a storage account, and file analyzer 208 is not configured to analyze IaC files. In this context, file analyzer 208 provides instructions 224 to agent selector 210 and agent selector 210 determines which of format agents 134A-134n are configured to analyze IaC files. Further suppose format agent 134A is configured to analyze IaC files. In this context, agent selector 210 selects format agent 134A for analyzing code file 136A and transmits instructions 226 to format agent 134A, causing format agent 134A to identify a first location of a first resource identifier corresponding to resource 116A in code file 136A. As shown in FIG. 2, format agent 134A utilizes generative AI model 124 to parse code. In this example, format agent 134A generates a prompt 228 comprising instructions to parse code file 136A and indicating that code file 136A is an IaC file, as well as any other instructions associated with parsing IaC files on behalf of format agent 134A. Prompt 228 causes generative AI model 124 to parse code file 136A and provide a response 230 to format agent 134A. Format agent 134A provides a response 232 indictive of response 230 to agent selector 210, which provides a corresponding response 234 to file analyzer 208. File analyzer 208 provides response 248 to map generator 206 in a similar manner as described with respect to step 308 of flowchart 300 of FIG. 3.

Mapping system 106 of FIG. 1 can operate in various ways to generate a resource map. For instance, mapping system 106 can generate a resource map comprising additional information associated with the resource. For instance, FIG. 5 shows a flowchart 500 of a process for generating a resource map, in accordance with an example embodiment. In an embodiment, process analyzer 120 of FIG. 2 operates according to one or more steps of flowchart 500. Further structural and operational embodiments will be apparent to persons skilled in the relevant art(s) based on the following description of FIG. 5 with respect to FIG. 2.

Flowchart 500 begins with step 502. In an embodiment, step 502 is a further example of step 308 of flowchart 300 of FIG. 3. In step 402, the first AI agent is utilized to identify additional information associated with the resource. For example, generative AI model 124 is utilized by file analyzer 208 and/or a format agent of format agents 134A-134n to identify additional information associated with the resource. Examples of additional information include, but are not limited to, deployment location, administrative access permissions, configuration information, values of variables, associated functions, network access configurations, and/or other information associated with the resource. For instance, in an embodiment, generative AI model 124 identifies configuration information of the resource and indicates where in code file 116A the configurations are set.

Flowchart 500 continues with step 504. In an embodiment, step 504 is a further example of step 310 of flowchart 300 of FIG. 3. In step 404, the resource map is generated comprising the first mapping and the additional information. For example, map generator 206 generates mappings 250 comprising the first mapping generated in step 310 of flowchart 300 and the additional information identified in step 502. In an embodiment, map generator 206 includes the additional information in a table of mappings. In another embodiment, map generator 206 generates a natural language statement indicating the additional information. For instance, with respect to the running example described with respect to flowchart 300 and code excerpt 400, suppose code file 136A comprises network access defining information in lines 0962-0970, not shown in FIG. 4. Further suppose line 0966 sets network access of Prefix-StorageAcc-Loc-Suffix as publicly available. In this context, map generator 206 can generate a statement stating:

    • “Storage account ‘Prefix-StorageAcc-Loc-Suffix’ is deployed from line 0012 in file ‘DeployStorage.formatA’ which is in repository ‘MyDeploymentsRepo’. Network access of Prefix-StorageAcc-Loc-Suffix is set to ‘public’ in line 0966 of file ‘DeployStorage.formatA’.”

In some embodiments, process analyzer 120 determines whether or not mappings 250 generated from response 248 are valid. For instance, as shown in FIG. 2, process analyzer 120 comprises validator 260 for validating mappings. Validator 260 operates in various ways. For example, FIG. 6 shows a flowchart 600 of a process for determining a validity of a mapping, in accordance with an example embodiment. In an embodiment, validator 260 of FIG. 2 operates according to one or more steps of flowchart 600. Note that not all steps of flowchart 600 need be performed in all embodiments. Further structural and operational embodiments will be apparent to persons skilled in the relevant art(s) based on the following description of FIG. 6 with respect to FIG. 2.

Flowchart 600 begins with step 602. In step 602, a runtime environment corresponding to the resource is accessed. For example, validator 260 of FIG. 2 accesses runtime environment 258 via access signal 252. In an embodiment, validator 260 identifies runtime environment 258 based on mapping 250. In this context, mapping 250 indicates the runtime environment that resources of mapping 250 are deployed to. In an embodiment, access signal 252 comprises a list of resources hosted and/or executed in runtime environment 258, e.g., resources 116A-116n. In another example, access signal 252 comprises a subset of the list, e.g., a list of resources of the same resource type as the resource in mapping 250. In another example, validator 260 transmits a request to runtime environment 258 specifying the resource indicated in mapping 250. For instance, with reference to the non-limiting running example described with respect to flowchart 300 of FIG. 3 and code excerpt 400 of FIG. 4, validator 260 transmits a request to runtime environment 258 specifying resource 116A. In this context, runtime environment 258 returns a response to validator 260 indicating whether or not resource 116A is in runtime environment 258. In some embodiments, validator 260 also confirms configurations of the resource indicated in mapping 250. For instance, validator 260 can access runtime environment 258 to determine if a network accessibility configuration of resource 116A indicated in mapping 250, a permission setting of resource 116A indicated in mapping 250, and/or any other type of configuration indicated in mapping 250.

In step 604, a determination of whether or not the first mapping is valid is made based at least on a property of the resource in the runtime environment. For example, validator 250 of FIG. 2 determines whether or not mappings 250 are valid based at least on properties and/or configurations of resources in runtime environment 258. For instance, validator 250 determines from access signal 252 whether or not runtime 116A is hosted and/or executed by runtime environment 258 as indicated in mappings 250. By validating mappings in this manner, validator 250 mitigates model hallucinations of generative AI model 124 before the mappings are used to update and/or generate a resource map. If the mappings are valid, validator 260 provides validated mappings 254 to orchestrator 118 so that orchestrator 118 can generate resource map 130 from mappings 250, update resource map 130 from mappings 250, cause mappings 250 to be used to mitigate security vulnerabilities, and/or the like. If the mappings are not valid, validator 260 causes process definition agent 132 to determine new mappings. In this context, validator 260 can cause process definition agent 132 to determine new mappings based on the code file and an indication of which mappings of mappings 250 are invalid.

In an aspect, validator 260 utilizes a permissions model that specifies permissions of processes in validating mappings. For instance, validator 260 can utilize a permissions model that specifies a permission of the process comprising code file X to determine if the process has authorization to deploy resources to runtime environment XYZ. If validator determines the process does not have authorization, it determines the mapping is invalid. If it does have authorization, the likelihood that the mapping is valid is increased. For instance, suppose validator 260 determines a degree of confidence in whether or not a mapping is valid. In this context, if the process is authorized to deploy the resource to the runtime environment, the degree of confidence in whether or not the mapping is valid is higher than if the process is not authorized to deploy the resource.

As described herein, embodiments of mapping system 106 enable mitigation actions to be performed utilizing resource maps. By generating resource maps in this manner, mapping system 106 improves the effectiveness of a mitigation action, as the mitigation action can be performed with respect to code files that deploy resources. Furthermore, the code associated with a resource is identified throughout (e.g., all) files of a user account, tenant account, and/or project. In this manner, the resource map provides an accessible overview of a resource and its configurations, thereby allowing mitigation systems such as mitigation system 110 to mitigate security vulnerabilities in a manner that reduces the time at which a resource is exposed, thereby improving security of the computing system. Mitigation system 110 or mapping system 106 can operate in various ways to perform or cause performance of mitigation actions. For example, FIG. 7 shows a flowchart 700 of a process for performing a mitigation action, in accordance with an example embodiment. In an embodiment, mapping system 106 or mitigation system 110 of FIG. 1 operates according to one or more steps of flowchart 700. Further structural and operational embodiments will be apparent to persons skilled in the relevant art(s) based on the following description of FIG. 7 with respect to FIG. 1.

Flowchart 700 begins with step 702. In step 702, the resource map is utilized to locate the first location in the first code file. For example, mitigation system 110 of FIG. 1 utilizes resource map 130 to determine resource 116A is deployed at line 0883 of the file of code excerpt 400.

In step 704, code in proximity to the first location is rewritten, the rewritten code mitigating the security vulnerability. Proximity, as used herein, refers to code lines being positioned in program code within a predetermined number of lines of each other. For example, mitigation system 110 of FIG. 1 rewrites code of code excerpt 400 in proximity to the first location. As a non-limiting example, suppose the security vulnerability was deployment of resource 136A to an incorrect resource group named in line 0883 of code excerpt 400. In this context, mitigation system 110 rewrites line 0883 to correct the resource group. In another example, mitigation system 110 identifies a piece of code excerpt 400 that defines a configuration of resource 136A and rewrites the code to change the configuration. In a further embodiment, mitigation system 110 identifies the line of code of code excerpt 400 indicated in resource map 130, e.g., line 0883, and evaluates lines in a predetermined proximity to the line (e.g., within one or more lines, within ten lines of code, and/or the like). For instance, suppose line 0884 (not shown in FIG. 4) specifies a network accessibility of resource 136A and the security vulnerability is a misconfiguration in network accessibility of resource 136A. In this context, mitigation system 110 identifies the parameter that sets network accessibility and rewrites the code to change the network accessibility.

As described herein, mapping system 106 generates a resource map 130. In some embodiments, mapping system 106 generates resource map 130 from multiple code files. Furthermore, the code files can be of different types. Mapping system 106 comprising process analyzer 120 operates in various ways to generate a resource map from multiple types of code files. For example, FIG. 8 shows a flowchart 800 of a process for generating a resource map where a resource is mapped to multiple code files of different format types, in accordance with another example embodiment. In an embodiment, process analyzer 120 of FIG. 2 operates according to one or more steps of flowchart 800. Note that not all steps of flowchart 800 need be performed in all embodiments. Further structural and operational embodiments will be apparent to persons skilled in the relevant art(s) based on the following description of FIG. 8 with respect to FIG. 2.

Flowchart 800 begins with step 802. In step 802, a second code file corresponding to the account is received. For instance, suppose agent interface 202 of FIG. 2 receives a second code file, not shown in FIG. 2. For instance, suppose agent interface 202 receives code file 136n of FIG. 1. Agent interface 202 can receive code file 136n in a similar manner as receiving code file 136A, as described with respect to step 302 of flowchart 300 of FIG. 3.

In step 804, a second format type is determined based on the second code file, the second format type is different from the first format type. For example, agent interface 202 parses code file 136n into chunks and determines the format type based on the chunk. Agent interface 202 determines the format type in a similar manner as described with respect to step 304 of flowchart 300 of FIG. 3. In an example, and as described further with respect to the steps of flowchart 800, the format type of code file 136n is different than the format type of code file 136A.

In step 806, a second AI agent is selected from the plurality of AI agents based on the second format type, the second AI agent configured to parse code of the second format type to locate identifiers of resources. For example, agent interface 202 of FIG. 2 selects the AI agent or causes file analyzer 208 to select the AI agent. For instance, with respect to FIG. 2, suppose agent interface 202 causes file analyzer 208 to select the AI agent to parse code of code file 136n based on the format type determined in step 804. In this example, file analyzer determines it is unable to parse code of the format type, or is otherwise not specialized for parsing code of the format type. File analyzer 208 provides file information 236 to agent selector 210, file information 236 comprising code file 136n and the determined format type. Agent selector 210 selects a format agent from among format agents 134A-134n based on the determined format type. For instance, suppose format agent 134n is configured to parse code of the determined format type. In this example, agent selector 210 selects format agent 134n.

In step 808, the second AI agent is utilized to identify a second location of a second resource identifier corresponding to the resource in the second code file. For example, agent selector 210 utilizes format agent 134n to identify a second location of a second resource identifier corresponding to resource 116A in code file 136n. Format agent 134n is used to identify the second location in a similar manner as described with respect to file analyzer 208 of FIG. 2, step 308 of flowchart 300 of FIG. 3, and code excerpt 400 of FIG. 4, and/or as described with respect to format agent 134A. For instance, format agent 134n provides a prompt 240 to generative AI model 124 that causes generative AI model 124 to locate a location of a resource identifier corresponding to resource 116n in code file 136n. In this context, generative AI model 124 provides a response 242 to format agent 134n, which provides a response 244 to agent selector 210, which provides a response 246 to file analyzer 208.

Flowchart 800 continues with step 810. In an embodiment, step 810 is a further example of step 310 of flowchart 300 of FIG. 3. In step 810, the resource map is generated comprising the first mapping and a second mapping of the resource to the second location. In an embodiment, map generator 206 receives the location from file analyzer 208 and generates mappings 250 based on the mapping. In some embodiments, map generator 206 generates mappings 250 based on the first and second mappings. Alternatively, map generator 206 sequentially updates a map based on the first and second mappings.

III. Further Examples of Mapping Network Resources A. Mapping Network Resources in Multiple Code Files

As described herein, process analyzer 120 generates resource map that map resources of a network computing system to code in code files of user accounts, tenant accounts, and/or projects. In some embodiments, resources are mapped to code in multiple code files. Embodiments of mapping systems, such as mapping system 106 of FIG. 1, can operate in various ways to map resources to multiple code files. Furthermore, code files can be represented in various manners. The code files can be in the same format (e.g., the same file type, the same coding language, and/or the like). Alternatively, one or more of the code files is of a different format type. To better understand code files of different format types, FIG. 9 is described. FIG. 9 shows a plurality of code excerpts 900 (“code excerpts 900” herein) including code excerpts of different format types, in accordance with an example embodiment. As shown in FIG. 9, code excerpts 900 comprise a code excerpt 902, a code excerpt 904, a code excerpt 906, and a code excerpt 908. In an embodiment, code excerpts 902-908 are located in separate code files of code files 136A-136n. In an embodiment, code excerpts 902 and 904 are of a first format type and code excerpts 906 and 908 are of a second format type.

To better understand implementations of process analyzer 120 generating a resource map based on multiple code excerpts, FIG. 9 is described with respect to FIG. 10. FIG. 10 shows a flowchart 1000 of a process for generating a resource map where a resource is mapped to a code file referenced in another code file, in accordance with another example embodiment. In an embodiment, process analyzer 120 of FIG. 2 operates according to one or more steps of flowchart 1000. Note that not all steps of flowchart 1000 need be performed in all embodiments. Further structural and operational embodiments will be apparent to persons skilled in the relevant art(s) based on the following description of FIG. 10 with respect to FIGS. 2 and 9.

Flowchart 1000 begins with step 1002. In an embodiment, step 1002 is a further example of step 308 of flowchart 300 of FIG. 3. In step 1002, a reference to a second code file is identified in the first code file. For example, suppose code excerpt 902 is an excerpt of code file 116A. Further suppose that file analyzer 208 or one of format agents 134A-134n of FIG. 2 utilizes generative AI model 124 to identify a reference to a second code file, e.g., code excerpt 904. For instance, generative AI model 124 in an embodiment identifies line 0579 of code excerpt 904 as pertaining to a resource that is being deployed, e.g., resource 116n of FIG. 2. In this context, generative AI model 124 identifies the location of a name corresponding to resource 116n in line 0619, “vmComputerName”, and determines lines 0579 and 0619 are part of the body of a template function called in line 0074 of code excerpt 902. Generative AI model 124 further determines line 0074 references a file labeled “secondfile.formatB”. In this context, generative AI model 124 identifies the second code file and returns the response to its corresponding AI agent.

Flowchart 1000 continues with step 1004. In an embodiment, step 1004 is a further embodiment of step 802 of flowchart 800 of FIG. 8. In step 1004, the second code file is accessed. For example, in accordance with an embodiment, process analyzer 120 (or orchestrator 118 on behalf of process analyzer 120) accesses the code file “secondfile.formatB” from code files 128. In an embodiment, suppose code excerpt 904 is an excerpt of secondfile.formatB.

Flowchart 1000 continues with step 1006. In an embodiment, step 1006 is a further embodiment of one or more of steps 804-808 of flowchart 800 of FIG. 8. In step 1006, a second location of a second resource identifier corresponding to the resource is identified in the second code file. For example, process analyzer 120 utilizes process definition agent 132 and/or one or more of format agents 134A-134n to identify a location of a second resource identifier corresponding to resource 116n in secondfile.formatB. For instance, with reference to code excerpts 900, process analyzer 120 utilizes file analyzer 208 to determine if process definition agent 132 can analyze secondfile.formatB. In this running example, secondfile.formatB is the same format as the code file corresponding to excerpt 902, so file analyzer 208 is able to analyze it if it also analyzed the code file corresponding to excerpt 902, otherwise the corresponding format agent of format agents 134A-134n is selected. In either case, the corresponding AI agent utilizes generative AI model 124 to analyze secondfile.formatB and identify a location of an identifier “vmComputerName” in line 0012 of code excerpt 904. In a further embodiment, generative AI model 124 also identifies a location of the parameter setting the value of “vmComputerName” to “VM001” in line 0013 of code excerpt 904. In an embodiment, the results of this analysis are provided to map generator 206, e.g., in a similar manner as described with respect to step 308 of flowchart 300 of FIG. 3 and/or step 808 of flowchart 800 of FIG. 8.

Flowchart 1000 continues with step 1008. In an embodiment, step 1008 is a further example of step 810 of flowchart 800 of FIG. 8. In step 1008, the resource map is generated comprising the first mapping and a second mapping of the resource to the second location. For example, map generator 206 generates mappings 250 comprising a first mapping of resource 116n to line 0619 of code excerpt 902 and a second mapping of resource 116n to line 0012 of code excerpt 904. In an example, mappings 250 specify where respective code files are stored, e.g., in data store 114. In another example, mappings 250 specify parameters of resource 116n that are set in the code files and in which lines these parameters are set.

Thus, an example of mapping a resource to two code files has been described with respect to system 200 of FIG. 2, code excerpts 900 of FIG. 9, and flowchart 1000 of FIG. 10. It is further contemplated herein that mapping system 106 and/or components thereof can be utilized to map a resource to any number of code files. For instance, with continued reference to the running example described with respect to resource 116n, code excerpts 900, and flowchart 1000, process analyzer 120 or an AI agent utilized to parse code excerpt 902 identifies a reference to a third code file, “thirdfile.formatC”, in line 0579 of code excerpt 902. In this context, thirdfile.formatC is accessed in a similar manner as described with respect to step 1004 of flowchart 1000 and a third location of a third resource identifier corresponding to the resource is identified in thirdfile.formatC. In an example embodiment, Format C is a different format than Format A and Format B. In this context, file analyzer 208 is utilized to determine a different AI agent is to be used to parse thirdfile.formatC. As a non-limiting example, suppose format agent 134n is selected by agent selector 210 to parse thirdfile.formatC. Further suppose code excerpt 906 corresponds to thirdfile.formatC. In this context, format agent 134n utilizes generative AI model 124 to identify a third resource identifier “vmComputerName” in the setting of variable “vmName” in line 0097 of code excerpt 906. Generative AI model 124 also identifies utilizing “vmName” as the virtual machine name parameter in line 1512 of code excerpt 906 within the VM deployment at line 1506 of code excerpt 906. Map generator 206 can generate mappings that include this third location in addition to the locations of resource identifiers identified within code excerpts 902 and 904. By generating mappings across multiple files in this manner, mapping system 106 generates an accurate resource map that can be utilized for mitigating security vulnerabilities with respect to the mapped resource.

In embodiments, multiple nested code files across multiple layers of nesting can be identified and utilized to generate a resource map. For instance, with continued reference to the running example described with respect to system 200 of FIG. 2, code excerpts 900 of FIG. 9, and flowchart 1000 of FIG. 10, format agent 134n utilizing generative AI model 124 identifies a reference to fourth code file, “fourthfile.formatD”, in line 1506 of code excerpt 906. In this context, fourthfile.formatD is accessed in a similar manner as described with respect to step 1004 of flowchart 1000 and a fourth location of a fourth resource identifier corresponding to the resource is identified in fourthfile.formatD. In an example embodiment, Format D is the same format as Format C, though other implementations are not so limited. In this context, agent selector 210 selects format agent 134n to parse fourthfile.formatD. Further suppose code excerpt 908 corresponds to fourthfile.formatD. In this context, format agent 134n utilizes generative AI model 124 to identify a fourth resource identifier “vmName” as the name of the virtual machine resource of in line 0021 code excerpt 908. In an embodiment, generative AI model 124 also identifies additional information related to the fourth resource identifier, e.g., the location set in line 0023, tags set in lines 0024-0027, and/or other additional information related to the fourth resource identifier. The map generator 206 utilizes the output of generative AI model 124 to generate mappings that include the fourth location (e.g., and the previously identified first, second, and/or third locations). By generating mappings across multiple nested files in this manner, mapping system 106 generates a resource map with an increased level of accuracy and detail that can be utilized for mitigating security vulnerabilities with respect to the mapped resource.

B. Mapping Network Resources Across Different Repositories

Depending on the implementations, code files can be stored in the same or different repositories. In situations where code files are stored in different repositories, locating each of the code files and potential vulnerabilities within each can be difficult. Some embodiments of mapping system 106 are able to access multiple repositories. Such embodiments can be configured in various ways. For instance, FIG. 11 shows a block diagram of a system 1100 for accessing code files from multiple data repositories, in accordance with another example embodiment. As shown in FIG. 11, system 1100 comprises data store 114 (storing code file 136A), process analyzer 120, and process definition agent 132, as described with respect to FIG. 1, as well as a data store 1102. Data store 1102 is any type of physical storage device, including but not limited to, storage disks, solid-state drives (SSDs), random access memory (RAM) devices, flash memory, digital video disks, and/or other types of physical/tangible hardware storage media. As shown in FIG. 11, data store 1102 is separate from data store 114. Data store 1102 can be collocated with data store 114 (e.g., as storage servers on the same storage rack, as storage devices in the same room or computer system, and/or the like) or remotely located from data store 114 (e.g., as a storage server in a different data center, as a storage device of a remotely located computing device, as part of a different computing system, as a storage device of a third party storage service, and/or the like).

To better illustrate how process analyzer 120 accesses code files from multiple data repositories, FIG. 11 is described with respect to FIGS. 12 and 13. FIG. 12 shows a plurality of code excerpts 1200 (“code excerpts 1200” herein) stored in different data repositories, in accordance with an example embodiment, and FIG. 13 shows a flowchart 1300 of a process for accessing a code file from a different data repository, in accordance with an example embodiment. As shown in FIG. 12, code excerpts 1200 comprises a first code excerpt 1202 and a second code excerpt 1204. In an embodiment, first code excerpt 1202 is an excerpt of code file 136A and second code excerpt 1204 is an excerpt of code file 136n. Code excerpts 1202 and 1204 can be the same or different types. In an embodiment, process analyzer 120 of FIG. 11 operates according to one or more steps of flowchart 1300. In an embodiment, one or more steps of flowchart 1300 are further examples of step 802 of flowchart 800 of FIG. 8 and/or steps 1002 and/or 1004 of flowchart 1000 of FIG. 10. Further structural and operational embodiments will be apparent to persons skilled in the relevant art(s) based on the following description of FIG. 13 with respect to FIGS. 11 and 12.

Flowchart 1300 begins with step 1302. In step 1302, the second code file is determined to be stored in a different data repository than the first code file. For example, process analyzer 120 receives a response 1104 from process definition agent 132. In an example, response 1104 is a result of process definition agent 132 (or another AI agent on behalf of process definition agent 132) identifying a location of resource identifiers and/or other information pertaining to a resource, e.g., resource 116A, in code file 136A corresponding to code excerpt 1202. In a further embodiment, response 1104 indicates a second code file, “secondfile.formatB”, that was identified in line 0060 of code excerpt 1202. Response 1104 can also indicate a location of a repository, “RepoR”, identified in line 0040 of code excerpt 1202.

In step 1304, the second code file is obtained from the different data repository. For example, process analyzer 120 of FIG. 11 accesses data store 1102 to obtain code file 136n. In an embodiment, process analyzer 120 determines to access data store 1102 based on the import of RepoR to code excerpt 1202 identified in line 0040. In another alternative, process analyzer 120 determines to search RepoR based on the file path of secondfile.formatB in line 0060 of code excerpt 1202. In either case, process analyzer 120 obtains code file 136n and utilizes an AI agent to locate identifiers and/or other information in code file 136n, e.g., corresponding to code excerpt 1204.

FIGS. 11-13 have been described with respect to code files beings stored in different physical data repositories (e.g., data store 114 and data store 1102). It is also contemplated herein that one or more steps of flowchart 1300 can be performed in order to access code files stored in different virtual data repositories. For instance, suppose code file 136A is stored in a first virtual data repository and code file 136n is stored in a second, different virtual data repository. In this context, the different virtual data repositories can be physically stored on the same or different devices.

C. Mapping Network Resource Information Created in Build Time

Embodiments of the present disclosure have been described with respect to identifiers that are set based on configurations and/or lines of code. In some implementations, a resource name and/or other configurations are generated when the resource is built and/or deployed. This can present a difficulty in searching for corresponding code files as a resource identifier of a deployed resource is not explicitly recited within code. Some embodiments of mapping system 106 operate in a manner intended to identify resources with information created in build time. For example, FIG. 14 shows a code excerpt 1400 including resource information generated at runtime, in accordance with an example embodiment. In an embodiment, code excerpt 1400 is an excerpt of a code file of code files 136A-136n. Code excerpt 1400 is described herein with respect to examples for identifying resource information created in build time or otherwise created as a result of execution of a function. To better understand identifying such resource information, code excerpt 1400 is described with respect to FIG. 15. FIG. 15 shows a flowchart 1500 of a process for identifying a location a resource identifier, in accordance with an example embodiment. In an embodiment, process analyzer 120 of FIG. 2 operates according to one or more steps of flowchart 1500. In an embodiment, one or more steps of flowchart 1500 are further examples of step 308 of flowchart 300 of FIG. 3. Further structural and operational embodiments will be apparent to persons skilled in the relevant art(s) based on the following description of FIG. 15 with respect to FIGS. 2 and 14.

Flowchart 1500 begins with step 1502. In step 1502, a function in the first code file is identified, where upon execution of the function, a variable resource identifier is defined. For example, suppose file analyzer 208 of FIG. 2 is utilized to locate resource identifiers and/or other resource information in code excerpt 1400. In this example, file analyzer 208 utilizes generative AI model 124 to locate resource identifiers and/or other resource information. Further suppose generative AI model 124 identifies the name “webAppName” in line 0951 as the name of an unidentified resource of a runtime environment. Generative AI model 124 further identifies in line 0952 the value of webAppName is set at deployment as an output of a webAppName task of resource deployment of the “RDeploy” job of stage “RDeployment”. Generative AI model 124 further identifies the task set in line 0650 of code excerpt 1400.

In step 1504, the first resource identifier is determined to be a result of an execution of the function. For example, file analyzer 208 of FIG. 2 utilizes generative AI model 124 to determine a resource identifier of resource 116A is a result of execution of the webAppName task in line 0650 of code excerpt 1400. Generative AI model 124 can determine the resource identifier of a resource is a result of execution of the task in various ways. For instance, if a portion of the output of the task matches an identifier of the resource, generative AI model 124 can mark the resource as possibly mapped to the identifier. Generative AI model 124 can further identify varying outputs of the task (e.g., random number generators, random alphanumeric generators, and/or other varying outputs) that match a pattern of an identifier of the resource. In an embodiment, generative AI model 124 can list multiple possible mappings to the value of webAppName set in line 0952. In this context, validator 260 can access runtime environment 258 to determine which, if any, of the possible mappings are valid.

As described herein, step 1504 of flowchart 1500 can be performed in various ways. For example, FIG. 16 shows a flowchart 1600 of a process for determining a resource identifier is a result of an execution of a function, in accordance with an example embodiment. In an embodiment, process analyzer 120 of FIG. 2 operates according to one or more steps of flowchart 1600. Note that not all steps of flowchart 1600 need be performed in all embodiments. In an embodiment, one or more steps of flowchart 1600 are further examples of step 1504 of flowchart 1500 of FIG. 15. Further structural and operational embodiments will be apparent to persons skilled in the relevant art(s) based on the following description of FIG. 16 with respect to FIGS. 2 and 14.

Flowchart 1600 begins with step 1602. In step 1602, a non-variable portion and a variable portion of the variable resource identifier are identified. For example, file analyzer 208 of FIG. 2 utilizes generative AI model 124 to determine the value of webAppName set in line 0952 has a non-variable portion and a variable portion. For instance, suppose executing the task in line 0650 generates a resource name that has a non-variable portion “WebApplication-” and a variable portion based on the output of a five digit random number generator. In this context, the resource name generated by the task is “WebApplication-ABCDE” where “ABCDE” is a five digit random number generated in the build phase of webAppName. While this example is described with respect to a five digit random number generator, any type of varying output generator can be used (e.g., alphanumeric generators, pseudo random generators, and/or the like). Furthermore, the variable portion of the variable resource identifier can be in lengths other than five digits, letters, and/or symbols (e.g., ones, tens, hundreds, etc.). Furthermore, while this non-limiting example has a non-variable prefix and a variable suffix, implementations of the present embodiments are not so limited. For instance, a variable resource identifier can have a variable prefix, a non-variable suffix, multiple non-variable portions, multiple variable portions, intervening variable portions, intervening non-variable portions, and/or the like.

In step 1604, a first portion of the first resource identifier is determined to match the non-variable portion of the variable resource identifier. For example, file analyzer 208 of FIG. 2 utilizes generative AI model 124 to determine a first portion of the first resource identifier matches the non-variable portion of the variable resource identifier. In this context, generative AI model 124 accesses a list of resources associated with an account and determines if at least a portion of the resource identifier matches the non-variable portion of the variable resource identifier. For instance, suppose the resource identifier of resource 136n is “WebApplication-15782”. In this non-limiting example, generative AI model 124 obtains the resource identifier of resource 136n and determines that the first portion of the identifier, “WebApplication-”, matches the non-variable portion of the variable resource identifier.

In step 1606, a pattern of the second portion of the first resource identifier matches a pattern of the variable portion of the variable resource identifier. For example, file analyzer 208 of FIG. 2 utilizes generative AI mode 124 to determine a second portion of the first resource identifier matches a pattern of the variable portion of the variable resource identifier. For instance, in the non-limiting example described with respect to steps 1602 and 1604, generative AI model 124 determines the second portion of the identifier, “15782”, matches the variable portion of the variable resource identifier. In this context, generative AI model 124 determines the second portion is a potential output of the variable portion, e.g., a potential output of a five digit random number generator.

Flowcharts 1500 and 1600 have been described with respect to generative AI model 124 determining if the patterns and non-variable portions match. However, in some embodiments, generative AI model 124 may not have access to a list of all resources. For instance, if WebApplication-15782 is generated in runtime of the corresponding project, generative AI model 124 could be denied access to the runtime environment. In this context, a separate component determines whether or not the variable resource identifier matches a resource. For instance, generative AI model 124 can generate a response indicating locations of the variable resource identifier and/or resource information corresponding to the variable resource. In this context, the variable resource identifier and/or corresponding resource information is associated with an “undefined resource.” Map generator 108 generates mappings that indicate lines of code mapped to the undefined resource. Validator 260 receives the mappings and determines which resource, if any, matches the undefined resource. For instance, validator 260 accesses runtime environment 258 and determines if any of the resources hosted and/or executed by runtime environment 258 match the resource identifier of the undefined resource. By having validator 260 determine if the variable resource identifier matches an executing or hosted resource, unauthorized access to runtime environment 258 is prevented, thereby increasing security with respect to a user account, tenant account, or project.

IV. Example Computer System Implementation

Systems, devices, components, and/or techniques described herein are implemented in hardware, or hardware combined with one or both of software and/or firmware. For example, resource 116A, resource 116n, orchestrator 118, process analyzer 120, AI agents 122, generative AI model 124, application 126, code files 128, process definition agent 132, format agent 134A, format agent 134n, code file 136A, code file 136n, agent interface 202, map generator 206, file analyzer 208, agent selector 210, validator 210, code excerpt 400, code excerpt 902, code excerpt 904, code excerpt 906, code excerpt 908, code excerpt 1202, code excerpt 1204, code excerpt 1400, and/or each of the components described therein, and/or the steps of flowcharts 300, 500, 600, 700, 800, 1000, 1300, 1500, and/or 1600 are each implemented as computer program code/instructions configured to be executed in one or more processors and stored in a computer readable storage medium. Alternatively, security detection system 104, mapping system 106, mitigation system 110, resource 116A, resource 116n, orchestrator 118, process analyzer 120, AI agents 122, process definition agent 132, format agent 134A, format agent 134n, agent interface 202, map generator 206, file analyzer 208, agent selector 210, validator 210, and/or each of the components described therein, and/or the steps of flowcharts 300, 400, 500, 700, 800, 1300, 1500, 1700, 1900, and/or 2000 are each implemented in one or more SoCs (system on chip). An SoC includes an integrated circuit chip that includes one or more of a processor (e.g., a central processing unit (CPU), microcontroller, microprocessor, digital signal processor (DSP), etc.), memory, one or more communication interfaces, and/or further circuits, and optionally executes received program code and/or include embedded firmware to perform functions.

Embodiments disclosed herein can be implemented in one or more computing devices that are mobile (a mobile device) and/or stationary (a stationary device) and include any combination of the features of such mobile and stationary computing devices. Examples of computing devices in which embodiments are implementable are described as follows with respect to FIG. 17. FIG. 17 shows a block diagram of an exemplary computing environment 1700 that includes a computing device 1702. Computing device 1702 is an example of server infrastructure 102, security detection system 104, mapping system 106, model server 108, mitigation system 110, computing device 112, data store 114, and/or data store 1102, which each include one or more of the components of computing device 1702. In some embodiments, computing device 1702 is communicatively coupled with devices (not shown in FIG. 17) external to computing environment 1700 via network 1704. In accordance with an embodiment, network 1704 is an example of network 140 of FIG. 1. Network 1704 comprises one or more networks such as local area networks (LANs), wide area networks (WANs), enterprise networks, the Internet, etc. In examples, network 1704 includes one or more wired and/or wireless portions. In some examples, network 1704 additionally or alternatively includes a cellular network for cellular communications. Computing device 1702 is described in detail as follows.

Computing device 1702 can be any of a variety of types of computing devices. Examples of computing device 1702 include a mobile computing device such as a handheld computer (e.g., a personal digital assistant (PDA)), a laptop computer, a tablet computer, a hybrid device, a notebook computer, a netbook, a mobile phone (e.g., a cell phone, a smart phone, etc.), a wearable computing device (e.g., a head-mounted augmented reality and/or virtual reality device including smart glasses), or other type of mobile computing device. In an alternative example, computing device 1702 is a stationary computing device such as a desktop computer, a personal computer (PC), a stationary server device, a minicomputer, a mainframe, a supercomputer, etc.

As shown in FIG. 17, computing device 1702 includes a variety of hardware and software components, including a processor 1710, a storage 1720, a graphics processing unit (GPU) 1742, a neural processing unit (NPU) 1744, one or more input devices 1730, one or more output devices 1750, one or more wireless modems 1760, one or more wired interfaces 1780, a power supply 1782, a location information (LI) receiver 1784, and an accelerometer 1786. Storage 1720 includes memory 1756, which includes non-removable memory 1722 and removable memory 1724, and a storage device 1788. Storage 1720 also stores an operating system 1712, application programs 1714, and application data 1716. Wireless modem(s) 1760 include a Wi-Fi modem 1762, a Bluetooth modem 1764, and a cellular modem 1766. Output device(s) 1750 includes a speaker 1752 and a display 1754. Input device(s) 1730 includes a touch screen 1732, a microphone 1734, a camera 1736, a physical keyboard 1738, and a trackball 1740. Not all components of computing device 1702 shown in FIG. 17 are present in all embodiments, additional components not shown may be present, and in a particular embodiment any combination of the components are present. In examples, components of computing device 1702 are mounted to a circuit card (e.g., a motherboard) of computing device 1702, integrated in a housing of computing device 1702, or otherwise included in computing device 1702. The components of computing device 1702 are described as follows.

In embodiments, a single processor 1710 (e.g., central processing unit (CPU), microcontroller, a microprocessor, signal processor, ASIC (application specific integrated circuit), and/or other physical hardware processor circuit) or multiple processors 1710 are present in computing device 1702 for performing such tasks as program execution, signal coding, data processing, input/output processing, power control, and/or other functions. In examples, processor 1710 is a single-core or multi-core processor, and each processor core is single-threaded or multithreaded (to provide multiple threads of execution concurrently). Processor 1710 is configured to execute program code stored in a computer readable medium, such as program code of operating system 1712 and application programs 1714 stored in storage 1720. The program code is structured to cause processor 1710 to perform operations, including the processes/methods disclosed herein. Operating system 1712 controls the allocation and usage of the components of computing device 1702 and provides support for one or more application programs 1714 (also referred to as “applications” or “apps”). In examples, application programs 1714 include common computing applications (e.g., e-mail applications, calendars, contact managers, web browsers, messaging applications), further computing applications (e.g., word processing applications, mapping applications, media player applications, productivity suite applications), one or more machine learning (ML) models, as well as applications related to the embodiments disclosed elsewhere herein. In examples, processor(s) 1710 includes one or more general processors (e.g., CPUs) configured with or coupled to one or more hardware accelerators, such as one or more NPUs 1744 and/or one or more GPUs 1742.

Any component in computing device 1702 can communicate with any other component according to function, although not all connections are shown for ease of illustration. For instance, as shown in FIG. 17, bus 1706 is a multiple signal line communication medium (e.g., conductive traces in silicon, metal traces along a motherboard, wires, etc.) present to communicatively couple processor 1710 to various other components of computing device 1702, although in other embodiments, an alternative bus, further buses, and/or one or more individual signal lines is/are present to communicatively couple components. Bus 1706 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures.

Storage 1720 is physical storage that includes one or both of memory 1756 and storage device 1788, which store operating system 1712, application programs 1714, and application data 1716 according to any distribution. In an embodiment, storage 1720 is an example of data store 114 of FIG. 1 and/or data store 1102 of FIG. 11. Non-removable memory 1722 includes one or more of RAM (random access memory), ROM (read only memory), flash memory, a solid-state drive (SSD), a hard disk drive (e.g., a disk drive for reading from and writing to a hard disk), and/or other physical memory device type. In examples, non-removable memory 1722 includes main memory and is separate from or fabricated in a same integrated circuit as processor 1710. As shown in FIG. 17, non-removable memory 1722 stores firmware 1718 that is present to provide low-level control of hardware. Examples of firmware 1718 include BIOS (Basic Input/Output System, such as on personal computers) and boot firmware (e.g., on smart phones). In examples, removable memory 1724 is inserted into a receptacle of or is otherwise coupled to computing device 1702 and can be removed by a user from computing device 1702. Removable memory 1724 can include any suitable removable memory device type, including an SD (Secure Digital) card, a Subscriber Identity Module (SIM) card, which is well known in GSM (Global System for Mobile Communications) communication systems, and/or other removable physical memory device type. In examples, one or more of storage device 1788 are present that are internal and/or external to a housing of computing device 1702 and are or are not removable. Examples of storage device 1788 include a hard disk drive, an SSD, a thumb drive (e.g., a USB (Universal Serial Bus) flash drive), or other physical storage device.

One or more programs are stored in storage 1720. Such programs include operating system 1712, one or more application programs 1714, and other program modules and program data. Examples of such application programs include computer program logic (e.g., computer program code/instructions) for implementing resource 116A, resource 116n, orchestrator 118, process analyzer 120, AI agents 122, generative AI model 124, application 126, code files 128, process definition agent 132, format agent 134A, format agent 134n, code file 136A, code file 136n, agent interface 202, map generator 206, file analyzer 208, agent selector 210, validator 210, code excerpt 400, code excerpt 902, code excerpt 904, code excerpt 906, code excerpt 908, code excerpt 1202, code excerpt 1204, code excerpt 1400, and/or each of the components described therein, and/or the steps of flowcharts 300, 500, 600, 700, 800, 1000, 1300, 1500, and/or 1600, and/or any individual steps thereof.

Storage 1720 also stores data used and/or generated by operating system 1712 and application programs 1714 as application data 1716. Examples of application data 1716 include web pages, text, images, tables, sound files, video data, and other data. In examples, application data 1716 is sent to and/or received from one or more network servers or other devices via one or more wired or wireless networks. Storage 1720 can be used to store further data including a subscriber identifier, such as an International Mobile Subscriber Identity (IMSI), and an equipment identifier, such as an International Mobile Equipment Identifier (IMEI). Such identifiers can be transmitted to a network server to identify users and equipment.

In examples, a user enters commands and information into computing device 1702 through one or more input devices 1730 and receives information from computing device 1702 through one or more output devices 1750. Input device(s) 1730 includes one or more of touch screen 1732, microphone 1734, camera 1736, physical keyboard 1738 and/or trackball 1740 and output device(s) 1750 includes one or more of speaker 1752 and display 1754. Each of input device(s) 1730 and output device(s) 1750 are integral to computing device 1702 (e.g., built into a housing of computing device 1702) or are external to computing device 1702 (e.g., communicatively coupled wired or wirelessly to computing device 1702 via wired interface(s) 1780 and/or wireless modem(s) 1760). Further input devices 1730 (not shown) can include a Natural User Interface (NUI), a pointing device (computer mouse), a joystick, a video game controller, a scanner, a touch pad, a stylus pen, a voice recognition system to receive voice input, a gesture recognition system to receive gesture input, or the like. Other possible output devices (not shown) can include piezoelectric or other haptic output devices. Some devices can serve more than one input/output function. For instance, display 1754 displays information, as well as operating as touch screen 1732 by receiving user commands and/or other information (e.g., by touch, finger gestures, virtual keyboard, etc.) as a user interface. Any number of each type of input device(s) 1730 and output device(s) 1750 are present, including multiple microphones 1734, multiple cameras 1736, multiple speakers 1752, and/or multiple displays 1754.

In embodiments where GPU 1742 is present, GPU 1742 includes hardware (e.g., one or more integrated circuit chips that implement one or more of processing cores, multiprocessors, compute units, etc.) configured to accelerate computer graphics (two-dimensional (2D) and/or three-dimensional (3D)), perform image processing, and/or execute further parallel processing applications (e.g., training of neural networks, etc.). Examples of GPU 1742 perform calculations related to 3D computer graphics, include 2D acceleration and framebuffer capabilities, accelerate memory-intensive work of texture mapping and rendering polygons, accelerate geometric calculations such as the rotation and translation of vertices into different coordinate systems, support programmable shaders that manipulate vertices and textures, perform oversampling and interpolation techniques to reduce aliasing, and/or support very high-precision color spaces.

In examples, NPU 1744 (also referred to as an “artificial intelligence (AI) accelerator” or “deep learning processor (DLP)”) is a processor or processing unit configured to accelerate artificial intelligence and machine learning applications, such as execution of machine learning (ML) model (MLM) 1728. In an example, NPU 1744 is configured for a data-driven parallel computing and is highly efficient at processing massive multimedia data such as videos and images and processing data for neural networks. NPU 1744 is configured for efficient handling of AI-related tasks, such as speech recognition, background blurring in video calls, photo or video editing processes like object detection, etc.

In embodiments disclosed herein that implement ML models, NPU 1744 can be utilized to execute such ML models, of which MLM 1728 is an example. In an embodiment, MLM 1728 is an example of generative AI model 124 of FIG. 1. For instance, where applicable, MLM 1728 is a generative AI model that generates content that is complex, coherent, and/or original. For instance, a generative AI model can create sophisticated sentences, lists, ranges, tables of data, images, essays, and/or the like. An example of a generative AI model is a language model. A language model is a model that estimates the probability of a token or sequence of tokens occurring in a longer sequence of tokens. In this context, a “token” is an atomic unit that the model is training on and making predictions on. Examples of a token include, but are not limited to, a word, a character (e.g., an alphanumeric character, a blank space, a symbol, etc.), a sub-word (e.g., a root word, a prefix, or a suffix). In other types of models (e.g., image based models) a token may represent another kind of atomic unit (e.g., a subset of an image). Examples of language models applicable to embodiments herein include large language models (LLMs), text-to-image AI image generation systems, text-to-video AI generation systems, etc. A large language model (LLM) is a language model that has a high number of model parameters. In examples, an LLM has millions, billions, trillions, or even greater numbers of model parameters. Model parameters of an LLM are the weights and biases the model learns during training. Some implementations of LLMs are transformer-based LLMs (e.g., the family of generative pre-trained transformer (GPT) models). A transformer is a neural network architecture that relies on self-attention mechanisms to transform a sequence of input embeddings into a sequence of output embeddings (e.g., without relying on convolutions or recurrent neural networks).

In further examples, NPU 1744 is used to train MLM 1728. To train MLM 1728, training data that includes input features (attributes) and their corresponding output labels/target values (e.g., for supervised learning) is collected. A training algorithm is a computational procedure that is used so that MLM 1728 learns from the training data. Parameters/weights are internal settings of MLM 1728 that are adjusted during training by the training algorithm to reduce a difference between predictions by MLM 1728 and actual outcomes (e.g., output labels). In some examples, MLM 1728 is set with initial values for the parameters/weights. A loss function measures a dissimilarity between predictions by MLM 1728 and the target values, and the parameters/weights of MLM 1728 are adjusted to minimize the loss function. The parameters/weights are iteratively adjusted by an optimization technique, such as gradient descent. In this manner, MLM 1728 is generated through training by NPU 1744 to be used to generate inferences based on received input feature sets for particular applications. MLM 1728 is generated as a computer program or other type of algorithm configured to generate an output (e.g., a classification, a prediction/inference) based on received input features, and is stored in the form of a file or other data structure.

In examples, such training of MLM 1728 by NPU 1744 is supervised or unsupervised. According to supervised learning, input objects (e.g., a vector of predictor variables) and a desired output value (e.g., a human-labeled supervisory signal) train MLM 1728. The training data is processed, building a function that maps new data on expected output values. Example algorithms usable by NPU 1744 to perform supervised training of MLM 1728 in particular implementations include support-vector machines, linear regression, logistic regression, Naïve Bayes, linear discriminant analysis, decision trees, K-nearest neighbor algorithm, neural networks, and similarity learning.

In an example of supervised learning where MLM 1728 is an LLM, MLM 1728 can be trained by exposing the LLM to (e.g., large amounts of) text (e.g., predetermined datasets, books, articles, text-based conversations, webpages, transcriptions, forum entries, and/or any other form of text and/or combinations thereof). In examples, training data is provided from a database, from the Internet, from a system, and/or the like. Furthermore, an LLM can be fine-tuned using Reinforcement Learning with Human Feedback (RLHF), where the LLM is provided the same input twice and provides two different outputs and a user ranks which output is preferred. In this context, the ranking is utilized to improve the model. Further still, in example embodiments, an LLM is trained to perform in various styles, e.g., as a completion model (a model that is provided a few words or tokens and generates words or tokens to follow the input), as a conversation model (a model that provides an answer or other type of response to a conversation-style prompt), as a combination of a completion and conversation model, or as another type of LLM model.

According to unsupervised learning, MLM 1728 is trained to learn patterns from unlabeled data. For instance, in embodiments where MLM 1728 implements unsupervised learning techniques, MLM 1728 identifies one or more classifications or clusters to which an input belongs. During a training phase of MLM 1728 according to unsupervised learning, MLM 1728 tries to mimic the provided training data and uses the error in its mimicked output to correct itself (i.e., correct weights and biases). In further examples, NPU 1744 perform unsupervised training of MLM 1728 according to one or more alternative techniques, such as Hopfield learning rule, Boltzmann learning rule, Contrastive Divergence, Wake Sleep, Variational Inference, Maximum Likelihood, Maximum A Posteriori, Gibbs Sampling, and backpropagating reconstruction errors or hidden state reparameterizations.

Note that NPU 1744 need not necessarily be present in all ML model embodiments. In embodiments where ML models are present, any one or more of processor 1710, GPU 1742, and/or NPU 1744 can be present to train and/or execute MLM 1728.

One or more wireless modems 1760 can be coupled to antenna(s) (not shown) of computing device 1702 and can support two-way communications between processor 1710 and devices external to computing device 1702 through network 1704, as would be understood to persons skilled in the relevant art(s). Wireless modem 1760 is shown generically and can include a cellular modem 1766 for communicating with one or more cellular networks, such as a GSM network for data and voice communications within a single cellular network, between cellular networks, or between the mobile device and a public switched telephone network (PSTN). In examples, wireless modem 1760 also or alternatively includes other radio-based modem types, such as a Bluetooth modem 1764 (also referred to as a “Bluetooth device”) and/or Wi-Fi modem 1762 (also referred to as an “wireless adaptor”). Wi-Fi modem 1762 is configured to communicate with an access point or other remote Wi-Fi-capable device according to one or more of the wireless network protocols based on the IEEE (Institute of Electrical and Electronics Engineers) 802.11 family of standards, commonly used for local area networking of devices and Internet access. Bluetooth modem 1764 is configured to communicate with another Bluetooth-capable device according to the Bluetooth short-range wireless technology standard(s) such as IEEE 802.17.1 and/or managed by the Bluetooth Special Interest Group (SIG).

Computing device 1702 can further include power supply 1782, LI receiver 1784, accelerometer 1786, and/or one or more wired interfaces 1780. Example wired interfaces 1780 include a USB port, IEEE 1394 (FireWire) port, a RS-172 port, an HDMI (High-Definition Multimedia Interface) port (e.g., for connection to an external display), a DisplayPort port (e.g., for connection to an external display), an audio port, and/or an Ethernet port, the purposes and functions of each of which are well known to persons skilled in the relevant art(s). Wired interface(s) 1780 of computing device 1702 provide for wired connections between computing device 1702 and network 1704, or between computing device 1702 and one or more devices/peripherals when such devices/peripherals are external to computing device 1702 (e.g., a pointing device, display 1754, speaker 1752, camera 1736, physical keyboard 1738, etc.). Power supply 1782 is configured to supply power to each of the components of computing device 1702 and receives power from a battery internal to computing device 1702, and/or from a power cord plugged into a power port of computing device 1702 (e.g., a USB port, an A/C power port). LI receiver 1784 is useable for location determination of computing device 1702 and in examples includes a satellite navigation receiver such as a Global Positioning System (GPS) receiver and/or includes other type of location determiner configured to determine location of computing device 1702 based on received information (e.g., using cell tower triangulation, etc.). Accelerometer 1786, when present, is configured to determine an orientation of computing device 1702.

Note that the illustrated components of computing device 1702 are not required or all-inclusive, and fewer or greater numbers of components can be present as would be recognized by one skilled in the art. In examples, computing device 1702 includes one or more of a gyroscope, barometer, proximity sensor, ambient light sensor, digital compass, etc. In an example, processor 1710 and memory 1756 are co-located in a same semiconductor device package, such as being included together in an integrated circuit chip, FPGA, or system-on-chip (SOC), optionally along with further components of computing device 1702.

In embodiments, computing device 1702 is configured to implement any of the above-described features of flowcharts herein. Computer program logic for performing any of the operations, steps, and/or functions described herein is stored in storage 1720 and executed by processor 1710.

In some embodiments, server infrastructure 1770 is present in computing environment 1700 and is communicatively coupled with computing device 1702 via network 1704. Server infrastructure 1770, when present, is a network-accessible server set (e.g., a cloud-based environment or platform). As shown in FIG. 17, server infrastructure 1770 includes clusters 1772. Each of clusters 1772 comprises a group of one or more compute nodes and/or a group of one or more storage nodes. For example, as shown in FIG. 17, cluster 1772 includes nodes 1774. Each of nodes 1774 are accessible via network 1704 (e.g., in a “cloud-based” embodiment) to build, deploy, and manage applications and services. In examples, any of nodes 1774 is a storage node that comprises a plurality of physical storage disks, SSDs, and/or other physical storage devices that are accessible via network 1704 and are configured to store data associated with the applications and services managed by nodes 1774.

Each of nodes 1774, as a compute node, comprises one or more server computers, server systems, and/or computing devices. For instance, a node 1774 in accordance with an embodiment includes one or more of the components of computing device 1702 disclosed herein. Each of nodes 1774 is configured to execute one or more software applications (or “applications”) and/or services and/or manage hardware resources (e.g., processors, memory, etc.), which are utilized by users (e.g., customers) of the network-accessible server set. In examples, as shown in FIG. 17, nodes 1774 includes a node 1746 that includes storage 1748 and/or one or more of a processor 1758 (e.g., similar to processor 1710, GPU 1742, and/or NPU 1744 of computing device 1702). Storage 1748 stores application programs 1776 and application data 1778. Processor(s) 1758 operate application programs 1776 which access and/or generate related application data 1778. In an implementation, nodes such as node 1746 of nodes 1774 operate or comprise one or more virtual machines, with each virtual machine emulating a system architecture (e.g., an operating system), in an isolated manner, upon which applications such as application programs 1776 are executed.

In embodiments, one or more of clusters 1772 are located/co-located (e.g., housed in one or more nearby buildings with associated components such as backup power supplies, redundant data communications, environmental controls, etc.) to form a datacenter, or are arranged in other manners. Accordingly, in an embodiment, one or more of clusters 1772 are included in a datacenter in a distributed collection of datacenters. In embodiments, exemplary computing environment 1700 comprises part of a cloud-based platform.

In an embodiment, computing device 1702 accesses application programs 1776 for execution in any manner, such as by a client application and/or a browser at computing device 1702.

In an example, for purposes of network (e.g., cloud) backup and data security, computing device 1702 additionally and/or alternatively synchronizes copies of application programs 1714 and/or application data 1716 to be stored at network-based server infrastructure 1770 as application programs 1776 and/or application data 1778. In examples, operating system 1712 and/or application programs 1714 include a file hosting service client configured to synchronize applications and/or data stored in storage 1720 at network-based server infrastructure 1770.

In some embodiments, on-premises servers 1792 are present in computing environment 1700 and are communicatively coupled with computing device 1702 via network 1704. On-premises servers 1792, when present, are hosted within an organization's infrastructure and, in many cases, physically onsite of a facility of that organization. On-premises servers 1792 are controlled, administered, and maintained by IT (Information Technology) personnel of the organization or an IT partner to the organization. Application data 1798 can be shared by on-premises servers 1792 between computing devices of the organization, including computing device 1702 (when part of an organization) through a local network of the organization, and/or through further networks accessible to the organization (including the Internet). Furthermore, in examples, on-premises servers 1792 serve applications such as application programs 1796 to the computing devices of the organization, including computing device 1702. Accordingly, in examples, on-premises servers 1792 include storage 1794 (which includes one or more physical storage devices such as storage disks and/or SSDs) for storage of application programs 1796 and application data 1798 and include a processor 1790 (e.g., similar to processor 1710, GPU 1742, and/or NPU 1744 of computing device 1702) for execution of application programs 1796. In some embodiments, multiple processors 1790 are present for execution of application programs 1796 and/or for other purposes. In further examples, computing device 1702 is configured to synchronize copies of application programs 1714 and/or application data 1716 for backup storage at on-premises servers 1792 as application programs 1796 and/or application data 1798.

Embodiments described herein may be implemented in one or more of computing device 1702, network-based server infrastructure 1770, and on-premises servers 1792. For example, in some embodiments, computing device 1702 is used to implement systems, clients, or devices, or components/subcomponents thereof, disclosed elsewhere herein. In other embodiments, a combination of computing device 1702, network-based server infrastructure 1770, and/or on-premises servers 1792 is used to implement the systems, clients, or devices, or components/subcomponents thereof, disclosed elsewhere herein.

As used herein, the terms “computer program medium,” “computer-readable medium,” “computer-readable storage medium,” and “computer-readable storage device,” etc., are used to refer to physical hardware media. Examples of such physical hardware media include any hard disk, optical disk, SSD, other physical hardware media such as RAMs, ROMs, flash memory, digital video disks, zip disks, MEMs (microelectronic machine) memory, nanotechnology-based storage devices, and further types of physical/tangible hardware storage media of storage 1720. Such computer-readable media and/or storage media are distinguished from and non-overlapping with communication media, propagating signals, and signals per se. Stated differently, “computer program medium,” “computer-readable medium,” “computer-readable storage medium,” and “computer-readable storage device” do not encompass communication media, propagating signals, and signals per se. Communication media embodies computer-readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave. The term “modulated data signal” means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media includes wireless media such as acoustic, RF, infrared, and other wireless media, as well as wired media. Embodiments are also directed to such communication media that are separate and non-overlapping with embodiments directed to computer-readable storage media.

As noted above, computer programs and modules (including application programs 1714) are stored in storage 1720. Such computer programs can also be received via wired interface(s) 1760 and/or wireless modem(s) 1760 over network 1704. Such computer programs, when executed or loaded by an application, enable computing device 1702 to implement features of embodiments discussed herein. Accordingly, such computer programs represent controllers of the computing device 1702.

Embodiments are also directed to computer program products comprising computer code or instructions stored on any computer-readable medium or computer-readable storage medium. Such computer program products include the physical storage of storage 1720 as well as further physical storage types.

V. Additional Exemplary Embodiments

A method is described herein. The method comprises: receiving a first code file corresponding to an account associated with a resource; determining a first format type based on the first code file; selecting a first artificial intelligence (AI) agent from a plurality of AI agents based on the first format type, the first AI agent configured to parse code of the first format type to locate information of resources; utilizing the first AI agent to identify a first location of a first resource information corresponding to the resource in the first code file; and generating a resource map comprising a first mapping of the resource to the first location.

In a further implementation of the foregoing method, the resource information is a resource identifier.

In a further implementation of the foregoing method, the resource information is a configuration of a parameter of the resource.

In a further implementation of the foregoing method, the resource information is a deployment location of the resource.

In a further implementation of the foregoing method, the resource information is a definition of a variable of the resource.

In a further implementation of the foregoing method, the method further comprises: causing a mitigation action to be performed with respect to a security vulnerability of the resource based on the resource map.

In a further implementation of the foregoing method, said utilizing the first AI agent further comprises: causing the first AI agent to utilize a generative AI model to identify the first location of the first resource information in the first code file.

In a further implementation of the foregoing method, the mitigation action comprises: utilizing the resource map to locate the first location in the first code file; and rewriting code in proximity to the first location, the rewritten code mitigating the security vulnerability.

In a further implementation of the foregoing method, the method further comprises: receiving a second code file corresponding to the account; determining a second format type based on the second code file, the second format type different from the first format type; selecting a second AI agent from the plurality of AI agents based on the second format type, the second AI agent configured to parse code of the second format type to locate information of resources; and utilizing the second AI agent to identify a second location of second resource information corresponding to the resource in the second code file.

In a further implementation of the foregoing method, said generating the resource map comprises: generating the resource map comprising the first mapping and a second mapping of the resource to the second location.

In a further implementation of the foregoing method, the method further comprises: identifying, in the first code file, a reference to a second code file; accessing the second code file; and identifying a second location of second resource information corresponding to the resource in the second code file.

In a further implementation of the foregoing method, said generating the resource map comprises: generating the resource map comprising the first mapping and a second mapping of the resource to the second location.

In a further implementation of the foregoing method, the method further comprises: determining a second format type based on the second code file, the second format type different from the first format type; and selecting a second AI agent from the plurality of AI agents based on the second format type, the second AI agent configured to parse code of the second format type to locate information of resources.

In a further implementation of the foregoing method, said identifying the second location comprises: utilizing the second AI agent to identify the second location.

In a further implementation of the foregoing method, the reference to the second code file is a call of a function in the second code file and said identifying the reference to the second code file comprises: determining the first resource information is an argument of the call.

In a further implementation of the foregoing method, the first location is a line of code in the first code file defining a parameter of a template defined by the second code file.

In a further implementation of the foregoing method, the first code file is stored in a first data repository and the second code file is stored in a second data repository. The reference to the second code file is an import operation with the second code file as an argument. Said utilizing the first AI agent to identify the first location further comprises identifying the first location in a file path corresponding to the second code file. Said accessing the second code file comprises obtaining the second code file from the second data repository.

In a further implementation of the foregoing method, wherein the first resource information is a first resource identifier. Said utilizing the first AI agent to identify the first location comprises: identifying a function in the first code file that, upon execution, defines a variable resource identifier; and determining the first resource identifier is a result of an execution of the function.

In a further implementation of the foregoing method, said determining the first resource identifier is the result of the execution of the function comprises: identifying a non-variable portion and a variable portion of the variable resource identifier; determining a first portion of the first resource identifier matches the non-variable portion of the variable resource identifier; and determining a pattern of the second portion of the first resource identifier matches a pattern of the variable portion of the variable resource identifier.

A second method is described herein. The second method for mitigating security vulnerabilities of a network computing system. The second method comprises: receiving an indication of a security vulnerability with respect to a resource of the network computing system; accessing a resource map corresponding to the resource, the resource map comprising a first mapping of the resource to a first code file of a first format type, the first mapping an output of a first artificial intelligence (AI) agent configured to parse code of the first format type to locate information of resources; determining, based on the security vulnerability and the first code file, a mitigation action to mitigate the security vulnerability by modifying the first code file; and applying the modification to the first code file.

In a further aspect of the foregoing second method, said determining the mitigation action comprises: determining a parameter of the resource to modify and utilizing the resource map to identify a line of code in the first code file that defines a value of the parameter. Said applying the modification to the first code file comprises rewriting the line of code to change the value of the parameter.

In a further aspect of the foregoing second method, the parameter specifies a level of network accessibility of the resource. Said determining the parameter of the resource to modify comprises determining to reduce the level of network accessibility of the resource. Said applying the modification to the first code file further comprises reducing the level of network accessibility of the resource.

In a further aspect of the foregoing second method, the resource map further comprises a second mapping of the resource to a second code file of a second format type. The second mapping is an output of a second AI agent configured to parse code of the second format type to locate information of resources. Said determining the mitigation action is based on the security vulnerability, the first code file, and the second code file.

A system comprising a processor and memory is described herein. The memory storing program code is structured to cause the processor to perform any of the foregoing methods.

A computer-readable storage medium encoded with program instructions that, when executed by a processor circuit, perform any of the foregoing methods described herein.

VI. CONCLUSION

References in the specification to “one embodiment,” “an embodiment,” “an example embodiment,” etc., indicate that the embodiment described may include a particular feature, structure, or characteristic, but every embodiment may not necessarily include the particular feature, structure, or characteristic. Moreover, such phrases are not necessarily referring to the same embodiment. Further, when a particular feature, structure, or characteristic is described in connection with an embodiment, it is submitted that it is within the knowledge of one skilled in the art to affect such feature, structure, or characteristic in connection with other embodiments whether or not explicitly described.

In the discussion, unless otherwise stated, adjectives modifying a condition or relationship characteristic of a feature or features of an implementation of the disclosure, should be understood to mean that the condition or characteristic is defined to within tolerances that are acceptable for operation of the implementation for an application for which it is intended. Furthermore, if the performance of an operation is described herein as being “in response to” one or more factors, it is to be understood that the one or more factors may be regarded as a sole contributing factor for causing the operation to occur or a contributing factor along with one or more additional factors for causing the operation to occur, and that the operation may occur at any time upon or after establishment of the one or more factors. Still further, where “based on” is used to indicate an effect being a result of an indicated cause, it is to be understood that the effect is not required to only result from the indicated cause, but that any number of possible additional causes may also contribute to the effect. Thus, as used herein, the term “based on” should be understood to be equivalent to the term “based at least on.”

Numerous example embodiments have been described above. Any section/subsection headings provided herein are not intended to be limiting. Embodiments are described throughout this document, and any type of embodiment may be included under any section/subsection. Furthermore, embodiments disclosed in any section/subsection may be combined with any other embodiments described in the same section/subsection and/or a different section/subsection in any manner.

Furthermore, example embodiments have been described above with respect to one or more running examples. Such running examples describe one or more particular implementations of the example embodiments; however, embodiments described herein are not limited to these particular implementations.

Moreover, according to the described embodiments and techniques, any components of systems, computing devices, security detection systems, mapping systems, generative AI models, mitigation systems, data stores, resources, and/or their functions may be caused to be activated for operation/performance thereof based on other operations, functions, actions, and/or the like, including initialization, completion, and/or performance of the operations, functions, actions, and/or the like.

In some example embodiments, one or more of the operations of the flowcharts described herein may not be performed. Moreover, operations in addition to or in lieu of the operations of the flowcharts described herein may be performed. Further, in some example embodiments, one or more of the operations of the flowcharts described herein may be performed out of order, in an alternate sequence, or partially (or completely) concurrently with each other or with other operations.

The embodiments described herein and/or any further systems, sub-systems, devices and/or components disclosed herein may be implemented in hardware (e.g., logic/electrical circuitry), or any combination of hardware with software (computer program code configured to be executed in one or more processors or processing devices) and/or firmware.

While various embodiments have been described above, it should be understood that they have been presented by way of example only, and not limitation. It will be apparent to persons skilled in the relevant art that various changes in form and detail can be made therein without departing from the spirit and scope of the embodiments. Thus, the breadth and scope of the embodiments should not be limited by any of the above-described example embodiments, but should be defined only in accordance with the following claims and their equivalents.

Claims

1. A system comprising:

a processor;
a memory device comprising programming instructions structured to cause the processor to: receive a first code file corresponding to a resource, determine a first format type based on the first code file; 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, utilize the second AI agent to identify a first location of a first resource identifier corresponding to the resource in the first code file, generate a resource map comprising a first mapping of the resource to the first location, and cause a mitigation action to be performed with respect to a security vulnerability of the resource based on the resource map.

2. The system of claim 1, wherein to cause the mitigation action to be performed, the programming instructions are further structured to cause the processor to:

cause the resource map to be utilized to locate the first location in the first code file; and
cause code in proximity to the first location to be rewritten, the rewritten code mitigating the security vulnerability.

3. The system of claim 1, wherein to utilize the second AI agent, the programming instructions are further structured to cause the processor to:

cause the second AI agent to utilize a generative AI model to identify the first location of the first resource identifier in the first code file.

4. The system of claim 1, wherein the first AI agent is configured to parse code of a second format type different from the first format type, and wherein the programming instructions are further structured to cause the processor to:

receive a second code file corresponding to an account associated with the resource;
determine the second code file is of the second format type;
utilize the first AI agent to identify a second location of a second resource identifier corresponding to the resource in the second code file; and
wherein to generate the resource map, the programming instructions are further structured to cause the processor to: generate the resource map comprising the first mapping and a second mapping of the resource to the second location.

5. The system of claim 1, wherein the programming instructions are further structured to cause the processor to:

identify, in the first code file, a reference to a second code file;
access the second code file;
identify a second location of a second resource identifier corresponding to the resource in the second code file; and
wherein to generate the resource map, the programming instructions are further structured to cause the processor to: generate the resource map comprising the first mapping and a second mapping of the resource to the second location.

6. The system of claim 5, wherein the programming instructions are further structured to cause the processor to:

determine a second format type based on the second code file, the second format type different from the first format type;
select a third AI agent from the plurality of AI agents based on the second format type, the third AI agent configured to parse code of the second format type to locate identifiers of resources; and
wherein to identify the second location, the programming instructions are further structured to cause the processor to: utilize the third AI agent to identify the second location.

7. The system of claim 5, wherein the reference to the second code file is a call of a function in the second code file and to identify the reference to the second code file, the programming instructions are further structured to cause the processor to:

determine the first resource identifier is an argument of the call.

8. The system of claim 5, wherein:

the first code file is stored in a first data repository and the second code file is stored in a second data repository;
the reference to the second code file is an import operation with the second code file as an argument;
said utilizing the second AI agent to identify the first location further comprises identifying the first location in a file path corresponding to the second code file; and
said accessing the second code file comprises obtaining the second code file from the second data repository based on the file path.

9. The system of claim 1, wherein to utilize the second agent to identify the first location comprises:

identify a function in the first code file that, upon execution, defines a variable resource identifier; and
determine the first resource identifier is a result of an execution of the function.

10. A computer-implemented method comprising:

receiving a first code file corresponding to a resource;
determining a first format type based on the first code file;
selecting a first artificial intelligence (AI) agent from a plurality of AI agents based on the first format type, the first AI agent configured to parse code of the first format type to locate identifiers of resources;
utilizing the first AI agent to identify a first location of a first resource identifier corresponding to the resource in the first code file;
generating a resource map comprising a first mapping of the resource to the first location; and
causing a mitigation action to be performed with respect to a security vulnerability of the resource based on the resource map.

11. The computer-implemented method of claim 10, wherein said utilizing the first AI agent to identify the first location further comprises:

causing the first AI agent to utilize a generative AI model to identify the first location of the first resource identifier in the first code file.

12. The computer-implemented method of claim 10, wherein the mitigation action comprises:

utilizing the resource map to locate the first location in the first code file; and
rewriting code in proximity to the first location, the rewritten code mitigating the security vulnerability.

13. The computer-implemented method of claim 10, further comprising:

receiving a second code file corresponding to an account associated with the reference;
determining a second format type based on the second code file, the second format type different from the first format type;
selecting a second AI agent from the plurality of AI agents based on the second format type, the second AI agent configured to parse code of the second format type to locate identifiers of resources;
utilizing the second AI agent to identify a second location of a second resource identifier corresponding to the resource in the second code file; and
wherein said generating the resource map comprises: generating the resource map comprising the first mapping and a second mapping of the resource to the second location.

14. The computer-implemented method of claim 10, further comprising:

identifying, in the first code file, a reference to a second code file;
accessing the second code file;
identifying a second location of a second resource identifier corresponding to the resource in the second code file; and
wherein said generating the resource map comprises: generating the resource map comprising the first mapping and a second mapping of the resource to the second location.

15. The computer-implemented method of claim 14, wherein:

the reference to the second code file is a call of a function in the second code file and the first resource identifier is an argument of the call; or
the first location is a line of code in the first code file defining a parameter of a template defined by the second code file.

16. The computer-implemented method of claim 10, wherein said utilizing the first AI agent to identify the first location comprises:

identifying a function in the first code file that, upon execution, defines a variable resource identifier, the variable resource identifier comprising a non-variable portion and a variable portion;
determining a first portion of the first resource identifier matches the non-variable portion of the variable resource identifier; and
determining a pattern of a second portion of the first resource identifier matches a pattern of the variable portion of the variable resource identifier.

17. A method for mitigating security vulnerabilities of a network computing system, the method comprising:

receiving an indication of a security vulnerability with respect to a resource of the network computing system;
accessing a resource map corresponding to the resource, the resource map comprising a first mapping of the resource to a first code file of a first format type, the first mapping an output of a first artificial intelligence (AI) agent configured to parse code of the first format type to locate information of resources;
determining, based on the security vulnerability and the first code file, a mitigation action to mitigate the security vulnerability by modifying the first code file; and
applying the modification to the first code file.

18. The method of claim 17, wherein:

said determining the mitigation action comprises: determining a parameter of the resource to modify, and utilizing the resource map to identify a line of code in the first code file that defines a value of the parameter; and
said applying the modification to the first code file comprises: rewriting the line of code to change the value of the parameter.

19. The method of claim 18, wherein:

the parameter specifies a level of network accessibility of the resource;
said determining the parameter of the resource to modify comprises determining to reduce the level of network accessibility of the resource; and
said applying the modification to the first code file further comprises reducing the level of network accessibility of the resource.

20. The method of claim 17, wherein the resource map further comprises a second mapping of the resource to a second code file of a second format type, the second mapping an output of a second AI agent configured to parse code of the second format type to locate information of resources, and wherein said determining the mitigation action is based on the security vulnerability, the first code file, and the second code file.

Patent History
Publication number: 20260377173
Type: Application
Filed: May 21, 2025
Publication Date: Nov 26, 2026
Inventors: Amritaputra BHATTACHARYA (Kirkland, WA), Moshe ISRAEL (Redmond, WA), Fady COPTY (San Jose, CA)
Application Number: 19/214,550
Classifications
International Classification: G06F 8/70 (20180101); G06F 8/41 (20180101); G06F 11/3604 (20250101);