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.
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.
SUMMARYThis 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.
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.
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. IntroductionThe 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 FilesA 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,
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
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
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
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
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
As shown in
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,
To better understand the operation of system 200,
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
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,
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
Mapping system 106 of
Flowchart 500 begins with step 502. In an embodiment, step 502 is a further example of step 308 of flowchart 300 of
Flowchart 500 continues with step 504. In an embodiment, step 504 is a further example of step 310 of flowchart 300 of
-
- “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
Flowchart 600 begins with step 602. In step 602, a runtime environment corresponding to the resource is accessed. For example, validator 260 of
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
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,
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
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
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,
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
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
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
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
Flowchart 800 continues with step 810. In an embodiment, step 810 is a further example of step 310 of flowchart 300 of
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
To better understand implementations of process analyzer 120 generating a resource map based on multiple code excerpts,
Flowchart 1000 begins with step 1002. In an embodiment, step 1002 is a further example of step 308 of flowchart 300 of
Flowchart 1000 continues with step 1004. In an embodiment, step 1004 is a further embodiment of step 802 of flowchart 800 of
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
Flowchart 1000 continues with step 1008. In an embodiment, step 1008 is a further example of step 810 of flowchart 800 of
Thus, an example of mapping a resource to two code files has been described with respect to system 200 of
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
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,
To better illustrate how process analyzer 120 accesses code files from multiple data repositories,
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
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,
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
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
As described herein, step 1504 of flowchart 1500 can be performed in various ways. For example,
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
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
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
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 ImplementationSystems, 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
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
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
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
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
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
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
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 EmbodimentsA 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. CONCLUSIONReferences 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.
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