Automated packet-less network reachability analysis

By generating network configuration data expressed in a rule-based query language and combined with proxy software analysis, the open ports and listening processes of the host computer are directly determined, which solves the existing problems of time-consuming, resource-intensive and high network bandwidth of port scanning, and achieves rapid , effective network security analysis.

CN118656832APending Publication Date: 2024-09-17AMAZON TECH INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410814063.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2018-06-27
Filing Date
2019-06-26
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

Existing port scanning technology is time-consuming and resource-intensive, and cannot effectively and quickly analyze network security. Conventional port scanning requires sending packets to a large number of computer ports, resulting in high network bandwidth usage.

Method used

By generating network configuration data expressed in a rule-based query language, the open ports and listening processes on the host computer are determined. Combined with agent software analysis, automated reports are generated to avoid sending packets to ports and directly determine reachable ports and routes.

Benefits of technology

It improves the speed and security of network reachability analysis, reduces network bandwidth requirements, provides a more complete view of network security than conventional port scanning, and quickly analyzes network security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656832A
    Figure CN118656832A
Patent Text Reader

Abstract

Methods, systems, and computer readable media for automated packet-less network reachability analysis are disclosed. Network configuration data for a network including a host computer is analyzed. Based at least in part on the analysis, one or more ports on the host computer accessible from another computer are determined. Based at least in part on the analysis, one or more routes to the one or more ports are determined. A report describing one or more ports and one or more routes is generated.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the invention patent application with the application date of June 26, 2019, named "Automated Packet-Free Network Reachability Analysis" and application number 201980043063.6. Technical Field

[0002] The present disclosure relates to automated packet-free network reachability analysis. Background Art

[0003] Many companies and other organizations operate computer networks that interconnect many computing systems to support their operations, such as where the computing systems are co-located (e.g., as part of a local network) or alternatively located in multiple different geographic locations (e.g., connected via one or more private or public intermediate networks). For example, data centers that house large numbers of interconnected computing systems have become commonplace, such as private data centers operated by and on behalf of a single organization, and public data centers operated by entities that are businesses to provide computing resources to customers. Some public data center operators provide network access, power, and secure installation facilities for various customer-owned hardware, while other public data center operators provide "full service" facilities that also include hardware resources available for use by the operator's customers. Summary of the invention

[0004] The present disclosure provides a system, which includes: one or more computing devices configured to implement a network security evaluator, wherein the network security evaluator is configured to: generate one or more queries for network configuration data of a network including a host computer, wherein the one or more queries are expressed in a query language, and wherein the one or more queries are generated at least in part based on a set of rules; determine one or more ports on the host computer that are open and reachable from outside the network, wherein the one or more ports are determined at least in part based on results of the one or more queries; determine one or more processes listening on the one or more ports, wherein the one or more processes are determined using an agent installed on the host computer; and generate a report describing the one or more ports and the one or more processes.

[0005] The present disclosure also provides a computer-implemented method performed by one or more computing devices, comprising: performing an analysis of network configuration data on a network including a computing device; determining one or more ports on the computing device that are reachable from another computing device, wherein the one or more ports are determined at least in part based on the analysis; determining one or more routes to the one or more ports, wherein the one or more routes are determined at least in part based on the analysis; and generating a report describing the one or more ports and the one or more routes.

[0006] The present disclosure also provides a computer-readable storage medium storing program instructions that can be executed by a computer to: perform an analysis of network configuration data on a network including a host computer; determine one or more ports on the host computer that are open and reachable from another computing device, wherein the one or more ports are determined at least in part based on the results of the analysis; determine one or more processes listening on the one or more ports, wherein the one or more processes are determined using an agent installed on the host computer; and generate a report describing the one or more ports and the one or more processes. BRIEF DESCRIPTION OF THE DRAWINGS

[0007] Figure 1 An example system environment for automatic packet-free network reachability analysis in accordance with some embodiments is shown.

[0008] Figure 2 Further aspects of an exemplary system environment for automated packet-free network reachability analysis are shown, including interaction with a virtual network verification service to assist in the analysis, in accordance with some embodiments.

[0009] Figure 3 Further aspects of an example system environment for automated packet-free network reachability analysis are shown, including the use of an agent on a computer undergoing analysis, in accordance with some embodiments.

[0010] Figure 4 Further aspects of an exemplary system environment for automated packet-free network reachability analysis, including recommendation and / or execution of corrective actions, are shown in accordance with some embodiments.

[0011] Figure 5 An example of a report generated using automatic packet-free network reachability analysis is shown in accordance with some embodiments.

[0012] Figure 6 An example of using automated packet-free network reachability analysis and generating a report using an agent on a computer undergoing the analysis is shown in accordance with some embodiments.

[0013] Figure 7 is a flow chart illustrating a method for automatic packet-free network reachability analysis according to some embodiments.

[0014] Figure 8 A virtual network authentication service in a provider network environment is illustrated according to some embodiments.

[0015] Fig. 9 Components and operations of an example virtual network authentication service are shown in accordance with some embodiments.

[0016] Fig.10 is a flow chart of a method for providing information about a virtual network to a client of a provider network according to some embodiments.

[0017] Fig.11 is a flow chart of a method for providing information about a virtual network to a client of a provider network, wherein the client provides descriptive information and queries to a virtual network validation service, according to some embodiments.

[0018] Fig.12 is a flow chart of a method for providing information about a virtual network to a client of a provider network, wherein the client provides descriptive information and permission to access the virtual network to a virtual network authentication service, according to some embodiments.

[0019] Fig.13 A virtual network implementation for a client in a provider network environment including two or more peered virtual networks is shown in accordance with some embodiments.

[0020] Fig.14 Illustrated are subnets and security groups in an example virtual network on a provider network, according to some embodiments.

[0021] Fig.15 An example computing device is shown that may be used in some embodiments.

[0022] Although embodiments are described herein for several embodiments and illustrative drawings by way of example, it will be appreciated by those skilled in the art that embodiments are not limited to the described embodiments or drawings. It should be understood that the drawings and their detailed description are not intended to limit the embodiments to the disclosed specific forms, but on the contrary, are intended to cover all modifications, equivalents and alternatives falling within the spirit and scope defined by the appended claims. The titles used herein are only used for organizational purposes and are not meant to limit the scope of the specification or claims. As used throughout this application, the word "may" be used in an allowed sense (i.e., meaning "possible") rather than a mandatory sense (i.e., meaning "must"). Similarly, the words "include", "included", and "included" mean "including, but not limited to this". DETAILED DESCRIPTION

[0023] Various embodiments of methods, systems, and computer-readable media for automatic packet-free network reachability analysis are described. In some embodiments, network reachability analysis is performed without having to perform conventional port scanning. In existing methods of port scanning, packets will be sent from an external entity (e.g., over a public network) to various ports on one or more computers, and responses will be awaited; such port scans may take days, for example, and use excessive network bandwidth. Without sending packets to the ports, the network reachability analysis described herein can determine which ports (if any) on a computer are reachable, for example, to the public Internet or another computer on the same network. The network reachability analysis can also determine one or more routes from the external entity to these ports. The network reachability analysis can combine data from different sources to draw conclusions. In one embodiment, the network reachability analysis can query a set of network configuration data for a network to which the computer belongs. In one embodiment, the network reachability analysis can obtain data from agent software installed on the computer, for example, to determine which processes are listening on open ports. The network reachability analysis may generate a report describing various aspects of its findings, such as any open and accessible ports, routes to those ports, processes listening on those ports, configuration settings associated with those open and accessible ports, any security issues associated with the open and accessible ports, any corrective actions (e.g., changing configuration settings) that will remedy the security issues, and / or any other suitable information. The network reachability analysis may be performed in an automated manner, such as on a schedule or triggered by an event, and not necessarily initiated directly by an end user. Using the techniques described herein, the security of a network may be analyzed quickly and efficiently, compared to the time-consuming and resource-intensive nature of conventional port scanning.

[0024] As will be appreciated by those skilled in the art based on the present disclosure, embodiments may be able to achieve certain technical advantages, including some or all of the following: (1) improving the speed of network reachability analysis by eliminating the need to send packets to a large number of ports on many computers and wait for responses; (2) reducing network bandwidth requirements for network reachability analysis by eliminating the need to send packets to a large number of ports on many computers; (3) improving the security of the network by providing insight into the routes of reachable ports; (4) improving the security of the network by providing insight into the processes that are listening on open and reachable ports; (5) improving the security of the network by reporting configuration settings that make ports reachable and reporting changes to those settings that would remedy security issues; (6) improving the security of the network by providing a more complete view than conventional port scans that only check reachability from the location of the scanner; and so on.

[0025] Figure 1 An example system environment for automatic packet-free network reachability analysis according to some embodiments is shown. In some embodiments, network security assessor 100 can analyze the security of one or more computing devices on a network, for example to determine which ports (if any) on those computers are open and reachable. The devices undergoing analysis may also be referred to as computers, host computers, hosts, servers, instances, or computing resources. Figure 1 As shown, a group of computing devices, such as hosts 170A to 170N, can be configured within a private network 180. Although two hosts 170A and 170N are shown for purposes of illustration and example, the network security assessor 100 can analyze any suitable number and configuration of hosts. The hosts 170A-170N can be the same or different in terms of their hardware resources, software resources, network configuration, etc.

[0026] Hosts 170A-170N may be configured to communicate with each other using network resources of private network 180. Each of hosts 170A-170N may provide a network port, such as port 171A for host 170A and port 171N for host 170N. Ports 171A-171N may represent endpoints of network communications and may be identified by port numbers. Network protocols or transport layer protocols such as Transmission Control Protocol (TCP) and User Datagram Protocol (UDP) may use ports. By convention, certain port numbers may be reserved for certain services. Applications that implement common services may use reserved port numbers to receive service requests from clients by "listening" to ports and establishing a one-to-one server-client dialog box in response to requests. For example, applications that implement Simple Mail Transfer Protocol (SMTP) typically listen for incoming requests on TCP port 25, while applications that implement Post Office Protocol (POP) typically listen for incoming requests on TCP port 110.

[0027] The private network 180 may include computers owned and / or operated by a particular business entity or other organization. In one embodiment, the owner or operator of the private network 180 may expect that the hosts 170A-170N should generally be inaccessible or have a certain degree of isolation relative to external entities (e.g., computers connected via one or more public networks 190 such as the public Internet). However, one or more ports on the hosts 170A-170N can indeed reach the public network 190 in a manner that may cause security issues. For example, a specific process listening on a specific open port may be vulnerable to malicious attacks from external entities, for example, to collect sensitive data from the hosts 170A-170N or to control the hosts. Using the techniques described herein, any reachable port on the hosts 170A-170N can be found and may be remedied to resolve security issues.

[0028] Without having to send packets to ports 171A-171N, the network security assessor 100 can determine which ports, if any, are reachable. In one embodiment, the reachability analysis can determine whether a port is reachable via the public network 190. In one embodiment, the reachability analysis can determine whether a port is reachable, for example, from another of the hosts 170A-170N, via (one or more) private networks 190. In one embodiment, the reachability analysis can confirm that no ports on the host are reachable. For a particular host or hosts, the analysis can be performed by the network security assessor 100 in an automated manner, for example, according to a schedule or triggered by an event, without having to be directly initiated by an end user. For example, the analysis can be triggered by an event associated with a change in the network configuration of the host. The event can be published by a service or system of the private network 180 that monitors such changes.

[0029] In one embodiment, the network security assessor 100 may use a set of network configuration data 110 to perform a network reachability analysis for one or more hosts 170A-170N. The network configuration data 110 may be associated with a network (e.g., a private network 180) to which the analyzed host belongs. The network configuration data may represent a snapshot of the network configuration or other properties of the hosts 170A-170N and network devices (routers, switches, etc.). For example, the data 110 may include information about a virtual private cloud (VPC), subnets, instances, security groups, access control lists (ACLs), load balancers, etc. The data 110 may be used to model how networking works in the network 180, for example, according to a set of virtual networking rules. In one embodiment, elements of the network configuration data 110 may be provided by a service of the private network 180. For example, the network 180 may include a computing virtualization service that provides (e.g., via an API) network configuration data about a virtual computing instance, and the network may include various types of storage virtualization services that provide (e.g., via an API) network configuration data about a virtual storage instance. Data 110 may, for example, identify instances of networking primitives implemented in network 180, include descriptions of the instances (e.g., roles assigned to computing instances, permissions granted or denied to resource instances, IP addresses assigned to instances, etc.), describe relationships between instances (e.g., paths between instances on the network), and describe interfaces or access points to external entities (e.g., computing instances accessible by entities external to the network). Other aspects of network configuration data 110 and its acquisition are described below with respect to Figures 8 to 15 discuss.

[0030] Back to Figure 1In one embodiment, the network security assessor 100 may include a query processing component 120 that may query the network configuration data 110. The network security assessor 100 may also include a query aggregation and analysis component 130 that may generate queries 125, provide the queries to the query processing component 120, receive query results 126, and analyze the results to determine which ports (if any) are reachable. The query 125 may be expressed according to a query language. In one embodiment, the query language may represent a declarative logic programming language that allows the network security assessor 100 to express queries about the network as constraint problems, including recursive queries, and provide results for the queries by parsing the queries using a constraint solver (e.g., a satisfiability modulo theory (SMT) solver) engine. An example of a query may be "VNVS query -i list: can-ssh(A,B)", which requests the Virtual Network Verification Service (VNVS) to provide a list of all instance pairs such that instance A can SSH to instance B. The network security assessor 100 may dynamically build the query 125 or select a pre-built query as needed for analysis. In one embodiment, the query need not be written by an end user of the network security assessor 100, such as a network administrator seeking to analyze the network security of one or more hosts under his or her management. Further aspects of the query 125 are described below with respect to Figures 8 to 15 discuss.

[0031] Back to Figure 1 In one embodiment, the network security assessor 100 may operate according to a set of rules 135 related to network reachability. In one embodiment, the query 125 may be generated according to the rules 135. For example, the rules 135 may define a set of port numbers for public services to be checked for reachability, and the network security assessor 100 may generate a query to evaluate whether those port numbers are reachable for the hosts being analyzed. The query 125 may be generated to obtain configuration data that affects network access for one or more hosts under analysis. The rule package 135 may analyze networking components, such as security groups, virtual private clouds (VPCs), subnets, access control lists, elastic load balancers, internet gateways, egress-only internet gateways, network address translation, routing tables, peer VPCs, virtual private networks (VPNs), direct connections (DXs), etc. In one embodiment, the query results 126 may be analyzed according to the rules 135, for example, to determine which ports are reachable by using an understanding of how various types of networking components operate.

[0032] If any ports are deemed reachable, the network security assessor 100 may also determine one or more routes from external entities to those ports. In one embodiment, the routes may be determined based on rules 135 and / or using a query language. For example, using one or more queries, the network security assessor 100 may determine that a path or route on a network exists (i.e., network connectivity exists) between hosts or between a host and an external entity (e.g., a path from a resource to an HTTPS gateway via which an external entity can access resources on a virtual network). The path may be a direct path on the network that provides network connectivity between endpoints, or alternatively may be a transitive path that passes through one or more hops on a route and provides network connectivity between endpoints. By applying a set of predefined rules 135 to assess the network reachability of a host, the query aggregation and analysis component 130 may represent an automated solution that eliminates the guesswork and complexity of manual analysis (e.g., by a network administrator).

[0033] In one embodiment, for example, the query aggregation and analysis component 130 can use rule 135 to check whether the instance allows Internet Control Message Protocol (ICMP) access from the Internet or from any trusted location externally (if so configured). In one embodiment, as another example, the query aggregation and analysis component 130 can use rule 135 to check whether the instance has any TCP / UDP port that is open and reachable from the Internet or from any trusted location externally (if so configured). Rule 135 can specifically check unsecured ports, management ports, database ports, intranet ports, and other types of ports. In one embodiment, the query aggregation and analysis component 130 can use rule 135 to check whether the instance is not accessible from anywhere on any port. In one embodiment, the query aggregation and analysis component 130 can use rule 135 to check whether the subnet allows ICMP or TCP / UDP port access from an external trusted location for each security group. In one embodiment, the query aggregation and analysis component 130 can use rule 135 to check whether the subnet has an instance that is not accessible from anywhere, or whether all inbound traffic is blocked, or there is no elastic network interface (ENI).

[0034] In one embodiment, the evaluator 100 can find any reachable port without performing a conventional port scan. In one embodiment, the evaluator 100 can confirm packet-free discovery by, for example, performing a limited range of port scans only on the affected ports. For example, if it is found that TCP port 22 on host 170A is reachable, the network security evaluator 100 can cause an external entity (e.g., another server connected to host 170A via public network 190) to send one or more packets to TCP port 22 on host 170A, wait for the host's response, and then report back to the network security evaluator 100. If such a response is not received, the network security evaluator 100 can determine that the port is actually unreachable. For example, the port may be shielded by a firewall. If a response is received, the network security evaluator 100 can confirm that the port is open and reachable. By limiting such port scans to ports that have been estimated to be reachable, the network security evaluator 100 can significantly reduce the time and network bandwidth required for a full port scan.

[0035] The network security assessor 100 can generate findings regarding network reachability and / or network security for one or more hosts 170A-170N being analyzed. Figure 3 As discussed above, network security assessor 100 can combine data from different sources (possibly including data collected by agents on a host) to generate such findings. Figure 1 Using the reporting component 140, the network security assessor 100 can generate reports describing aspects of its findings. In one embodiment, the reporting component 140 can indicate or describe one or more ports 141 that are reachable by a particular host. In one embodiment, the reporting component 140 can indicate or describe one or more ports 141 that are not reachable by a particular host. In one embodiment, the reporting component 140 can indicate or describe one or more routes 142 to the reachable ports. In one embodiment, the reporting component 140 can alternatively disclose that no ports are reachable by a particular host. Figure 5 Examples of such reports are discussed.

[0036] In one embodiment, a whitelist may indicate a trusted location, and if a particular port or port range is found to be reachable from a trusted location, it may be excluded from the report 140. In various embodiments, a whitelist may be generated using various data sources, such as industry standard knowledge, customer input, machine learning based on multiple customers, and / or other suitable sources. The content of a whitelist may vary from customer to customer. The content of a whitelist may change over time.

[0037] Back to Figure 1, reporting component 140 can present the findings in any suitable manner. In one embodiment, reporting component 140 can present the findings to a network administrator in the form of, for example, a graphical user interface (GUI). In one embodiment, the GUI can include an interactive portion so that it can receive user input associated with the findings, for example, as described below with respect to Figure 4 discussed. Back Figure 1 In one embodiment, the reporting component 140 can store the findings persistently in a file or other data object, and the file or data object can be read by a network administrator or other suitable entity. In one embodiment, the reporting component 140 can use email or another messaging system to send the findings to an account accessible to, for example, a network administrator.

[0038] The network security assessor 100 and hosts 170A-170N may be implemented using any suitable number and configuration of computing devices, any of which may be implemented by Fig.15 1500 is implemented. The computing device can be located in any appropriate number of data centers or geographical locations. In various embodiments, at least some of the functions of the network security assessor 100 can be provided by the same computing device or by different computing devices. If different computing devices are used to implement any component of the network security assessor 100, then these components and their corresponding computing devices can be communicatively coupled (e.g., via one or more networks). Each component of the network security assessor 100 can represent any combination of software and hardware that can be used to perform their corresponding functions, as described below. The operations implemented by the network security assessor 100 can be automatically executed (e.g., without user initiation or user intervention after the initial configuration phase, and programmatically (e.g., by executing program instructions on at least one computing device)). It is conceivable that the threat modeling platform network security assessor 100 and the network 180 may include additional components not shown, fewer components than the components shown, or different combinations, configurations, or quantities of the components shown.

[0039] The network security evaluator 100 may be implemented in a service-oriented system, where multiple services collaborate according to a service-oriented system architecture. In such an environment, the network security evaluator 100 may provide its functionality as a service to multiple clients. The services may be implemented using multiple different instances distributed in one or more networks, and each instance may provide access to the functionality of the corresponding service to various clients. It is contemplated that any suitable number and configuration of clients may interact with the network security evaluator 100. To enable clients to invoke its functionality, the network security evaluator 100 may expose any suitable interface(s) (e.g., one or more APIs or other programming interfaces and / or graphical user interfaces (GUIs)). In one embodiment, the functionality of the network security evaluator 100 may be provided to clients in exchange for a fee.

[0040] The network security assessor 100 can be coupled to the host 170A-170N, the service client, other services or other entities via one or more networks. In various embodiments, the network can include any suitable combination of networking hardware and protocols necessary to establish network-based communications between the network security assessor 100 and the host 170A-170N. For example, (multiple) networks can generally include various telecommunications networks and service providers that jointly implement the Internet. (Multiple) networks can also include private networks, such as local area networks (LANs) or wide area networks (WANs) and public or private wireless networks. For example, the network security assessor 100 and the host 170A-170N can be respectively set up in an enterprise with its own internal network. In such an embodiment, the network can include hardware (e.g., modems, routers, switches, load balancers, proxy servers, etc.) and software (e.g., protocol stacks, accounting software, firewall / security software, etc.) necessary to establish a networking link between the network security assessor 100 and the Internet and between the Internet and the host 170A-170N. Note that in some embodiments, the network security evaluator 100 may communicate with the hosts 170A- 170N using a private network rather than the public Internet.

[0041] In some embodiments, aspects of the network security assessor 100 and / or hosts 170A-170N may be implemented using computing resources of a provider network. A provider network may represent a network established by an entity (such as a commercial or public sector organization) to provide one or more services (such as various types of networks that can access computing or storage) to a group of distributed clients that are accessible via the Internet and / or other networks. A provider network may include numerous data centers that host various resource pools (such as a collection of physical and / or virtualized computer servers, storage devices, networking devices, etc.) that are used to implement and distribute the infrastructure and services provided by the provider. In some embodiments, computing resources may be provided to clients in units such as virtual or physical computing instances that are referred to as "instances." For example, a virtual computing instance may include one or more servers with specified computing power (which may be specified by indicating the type and number of CPUs, the size of main memory, etc.) and a specified software stack (e.g., a specific version of an operating system that can run on top of a hypervisor). Many different types of computing devices may be used individually or in combination to implement the resources of a provider network in different embodiments (including general-purpose or special-purpose computer servers, storage devices, network devices, etc.). Because the resources of a provider network can be under the control of multiple clients (or tenants) simultaneously, the provider network can be said to provide multi-tenancy and can be referred to as a multi-tenant provider network.

[0042] In some embodiments, the operator of the provider network can implement a set of flexible resource reservation, control and access interfaces for its clients. For example, a resource manager can implement a program resource reservation interface (e.g., via a website or a set of web pages) that allows (possibly including other components within the provider network) to understand, select, purchase access and / or reserve computing instances supplied by the provider network. Such an interface can include the ability to allow browsing of a resource catalog and provide details and specifications of supported resources of different types or sizes, supported different reservation types or modes, pricing models, etc.

[0043] Figure 2 Further aspects of an exemplary system environment for automated packet-free network reachability analysis according to some embodiments are shown, including interaction with a virtual network verification service to assist in the analysis. In one embodiment, network configuration data 110 may be acquired and maintained by a virtual network verification service 230. The virtual network verification service 230 may also include a query processing component 120 capable of receiving queries 125, answering the queries using the network configuration data 110, and responding with query results 126. The virtual network verification service 230 may provide its services to one or more clients, including the network security assessor 100. Other aspects of the virtual network verification service are described below with respect to FIG. Figures 8 to 14 Have a discussion.

[0044] Figure 3 Further aspects of an example system environment for automatic packet-free network reachability analysis according to some embodiments are shown, which include the use of an agent on a computer undergoing analysis. In one embodiment, the network security assessor 100 can combine data from different sources to draw conclusions. In one embodiment, the network security assessor 100 can obtain data from agent software installed on a computer, for example, to determine which processes are listening on open ports. If a process is listening on a port, the port can be considered an "open" port. Processes can include services, applications, service daemons, and other forms of executable program code. As shown in Figure 3 As shown in the example of FIG. 1 , agent 175A may be installed on host 170A, agent 175N may be installed on host 170N, and so on. Figure 3 As shown in the example of FIG. 1 , process 176A may reside on host 170A (and potentially listen on port 171A), and process 176N may reside on host 170N (and potentially listen on port 171N). In some embodiments, for example, if hosts 170A-170N represent the same or different configurations of hardware and operating system software, agents 175A-175N may represent the same binary or different binaries.

[0045] The agents 175A-175N may be able to gather insights into the configuration of the hosts 170A-170N. In one embodiment, the agents 175A-175N may monitor the operation of the respective hosts, for example to determine when a port is open and which process is associated with the port. In one embodiment, the agents 175A-175N may interact with the operating system of the respective hosts, for example to inquire which ports are open and / or which processes 176A-176N are listening on those ports. In one embodiment, the agents 175A-175N may be under the control of the network security assessor 100 such that the network reachability analyzer may instruct the agents to find processes listening on specific ports that the analyzer has deemed reachable. The agents 175A-175N may be configured to report their findings to the query aggregation and analysis component 130.

[0046] In one embodiment, based on information relayed from agents 175A-175N, query aggregation and analysis component 130 can use rules 135 to check if a process has a port open on an atypical port number. In one embodiment, based on information relayed from agents 175A-175N, query aggregation and analysis component 130 can use rules 135 to check if an instance has an open port that is not reachable from anywhere. Using analysis of data collected by agents 175A-175N, such as knowledge of which processes are listening on which ports, reporting component 140 can generate a report that indicates or describes processes 143 that are listening on open and reachable ports 141. In one embodiment, reporting component 140 can indicate or describe processes that are using unusual or unexpected ports and therefore may pose a security threat.

[0047] Figure 4 Further aspects of an exemplary system environment for automatic packet-free network reachability analysis according to some embodiments are shown, including suggestions and / or execution of corrective actions. In one embodiment, query aggregation and analysis 130 can determine the reason why a port is reachable. For example, one or more configuration settings may be the reason why a port is accessible. By applying rules 135 to data collected from one or more sources (e.g., network configuration data 110 and agents 175A-175N), a network configuration analyzer can determine one or more configuration settings responsible for a reachable port. Reporting component 140 can then report such findings.

[0048] In one embodiment, the network security assessor 100 may also recommend corrective actions 144 that, if taken, would be expected to resolve or remedy a security problem associated with a reachable port. For example, if a port is reachable due to a host's membership in a particular security group, the recommendation may include changing a configuration setting for that security group so that the port is inaccessible to an external computer. In one embodiment, such corrective actions 144 may be indicated or described by the reporting component 140. In one embodiment, the corrective actions may be presented in a GUI with an interface element that, if selected by a user, may automatically correct the problem. For example, the reporting component 140 may generate a screen in a user interface that describes the recommended fix and includes a button (or other GUI element) that, if pressed by a user, implements a change to the appropriate configuration setting.

[0049] Figure 5An example of a report generated using automated packet-free network reachability analysis according to some embodiments is shown. Network security assessor 100 can generate a report describing various aspects of its findings, such as any reachable ports, routes to those ports, processes listening on those ports, configuration settings associated with those reachable ports, any security issues associated with the reachable ports, any corrective actions (e.g., changing configuration settings) that would remedy the security issues, and / or any other suitable information. Figure 5 An example of a network reachability report 500 is shown for a particular host (referred to as an instance ID) and a particular port on that host. Report 500 may include high-level findings 510 that indicate, for example, the instance ID of the instance being analyzed, the affected TCP port number, and the service typically associated with that port. In this example, the TCP port number is 22, which is typically used for Secure Shell (SSH) purposes. Report 500 may also include an indication of the severity 520 of the problem (e.g., high, medium, or low). Report 500 may include a more detailed description 530 of the findings. As shown in Figure 5 As shown in the example of , description 530 can indicate the route by which the port is reachable from the public internet: in this case, via a particular internet gateway. In one embodiment, description 530 can indicate the reason why access is allowed, for example, due to the configuration of a security group, access control list, routing table, internet gateway, and the like. Description 530 can also indicate the particular virtual private cloud (VPC) to which the instance belongs, the ID of the network interface of the instance, the ID of the security group of the instance, and the like. In addition, description 530 can describe potential security issues caused by the reachable port. Finally, report 500 can include recommendation 540 for corrective actions to remedy the security issue. In this example, the recommendation is to edit the security group to remove access to the particular port via the public internet. As described above with respect to Figure 4 As discussed, in one embodiment, report 500 may include a user interface element that, if activated by user input, automatically implements recommendation 540. In one embodiment, report 500 may include a visualization showing the network topology of the analysis target. The visualization may include highlighted findings, color coding of threat severity, and user interaction.

[0050] Figure 6 An example of a report generated using automatic packet-free network reachability analysis and using an agent on the computer undergoing the analysis is shown in accordance with some embodiments. In one embodiment, the report 500 discussed above may be generated without using an agent on the host being analyzed. Figure 6As shown in the example of , the use of such an agent can allow for a more detailed reachability report 600. As described above, the report 600 can include a high-level finding 610, an indication of severity 620, a detailed description 630, and suggestions for correcting the problem 640. By relying on the data collected by the agent, the report 600 can indicate a specific process that is listening on an open and reachable port. In this example, the process is the SSH daemon "sshd". The report 600 can also indicate the path to a specific binary file corresponding to the sshd process. Adding such process information to the network reachability report can help diagnose and correct security issues.

[0051] Figure 7 710 is a flow chart illustrating a method for automatic packet-free network reachability analysis according to some embodiments. As shown in 710, an automatic analysis of network configuration data can be performed. The network configuration data can relate to a network (e.g., a private network) having a host computer and potentially other devices (including other computers and networking devices (routers, switches, etc.)). In one embodiment, the analysis may include querying the network configuration data using one or more queries. The queries can be expressed according to a query language. The network reachability analysis can dynamically establish queries or select pre-established queries based on the needs of the analysis. In one embodiment, the queries do not have to be written by an end user of the network security assessor 100, such as a network administrator who is attempting to analyze the network security of one or more hosts under his or her management.

[0052] As shown in 720, based on the analysis, the method can determine one or more ports on the host computer that can be accessed from another computer. The reachability can be through the public Internet or a private network to which the host belongs. Based on the analysis, the method can also determine one or more routes by which the port is reachable. For example, the route can indicate that the component can be reached from the Internet through an Internet gateway, from a virtual private network (VPN) through an Internet gateway, from a peer virtual private cloud (VPC), etc.

[0053] As shown at 730, the method can determine whether an agent is installed on the host being analyzed. The agent can be configured to monitor various aspects of the operation of the host computer, for example, to determine processes that are listening to open ports. If the agent does not exist, then as shown at 740, the method can generate a report indicating or describing the reachable ports and the routes by which the ports are reachable. In one embodiment, the report can also indicate or describe the reason why the port is reachable, such as one or more configuration settings related to a security group or access control list (ACL). In one embodiment, the report can also indicate or describe one or more suggestions for corrective actions, such as changing one or more configuration settings.

[0054] If there is a proxy, the method can use the data provided by the proxy to determine any processes that are listening on the port, as shown at 750. As shown at 760, the method can generate a report indicating or describing the open and reachable ports, the routes that the ports are reachable from, and any processes that are listening on the ports. In one embodiment, the report can also indicate or describe the reason why the port is open and reachable, such as one or more configuration settings. In one embodiment, the report can also indicate or describe one or more suggestions for corrective actions, such as changing one or more configuration settings.

[0055] Prescriptive Rules for Network Reachability

[0056] As described above, the network security evaluator 100 can operate according to a set of rules 135 related to network reachability. Although examples of such rules are discussed below, the following list of rules is not intended to be comprehensive. The network security evaluator 100 may implement only a portion of the following rules and / or may implement other rules to evaluate the reachability of a computing device.

[0057] In one embodiment, a first rule may analyze an instance with an agent to determine if the instance has an unsecured protocol listening on a port that is allowed to be accessed from somewhere outside a trusted location. The severity of this finding is high. This finding may be reported along with the port number, the TCP or UDP association of the port, the application (and version) listening on the port, the address range that can access the port, and any security groups, access control lists, internet gateways, virtual gateways, and other channels that allow access. For the first rule, recommendations for corrective actions may include editing the access control configuration to restrict access (if access is not required from outside a trusted location) and stopping the application (if the operation is not required).

[0058] In one embodiment, a second rule may utilize an agent to analyze an instance to determine if the instance has an SSH server listening on a port accessible from somewhere outside a trusted location. The severity of this finding is medium. This finding may be reported along with the port number, the TCP or UDP association of the port, the application (and version) listening on the port, the address range that can access the port, and any security groups, access control lists, internet gateways, virtual gateways, and other channels that allow access. For the second rule, recommendations for corrective actions may include editing the access control configuration to restrict access (if access is not required from outside the trusted location) and stopping the application (if the operation is not required).

[0059] In one embodiment, a third rule may utilize an agent to analyze an instance to determine if the instance has an RDP server listening on a port accessible from somewhere outside a trusted location. The severity of this finding is medium. This finding may be reported along with the port number, the TCP or UDP association of the port, the application (and version) listening on the port, the address range that can access the port, and any security groups, access control lists, internet gateways, virtual gateways, and other channels that allow access. For the third rule, recommendations for corrective actions may include editing the access control configuration to restrict access (if access is not required from outside the trusted location) and stopping the application (if the operation is not required).

[0060] In one embodiment, a fourth rule may utilize an agent to analyze an instance to determine if the instance has a database server listening on a port accessible from somewhere outside a trusted location. The severity of this finding is medium. This finding may be reported along with the port number, the TCP or UDP association of the port, the application (and version) listening on the port, the address range that can access the port, and any security groups, access control lists, internet gateways, virtual gateways, and other channels that allow access. For the fourth rule, recommendations for corrective actions may include editing the access control configuration to restrict access (if access is not required from outside the trusted location) and stopping the application (if the operation is not required).

[0061] In one embodiment, the fifth rule may utilize an agent to analyze an instance to determine if the instance has an intranet service listening on a port accessible from somewhere outside a trusted location. The severity of this finding is medium. This finding may be reported along with the port number, the TCP or UDP association of the port, the application (and version) listening on the port, the address range that can access the port, and any security groups, access control lists, internet gateways, virtual gateways, and other channels that allow access. For the fifth rule, recommendations for corrective actions may include editing the access control configuration to restrict access (if access is not required from outside the trusted location) and stopping the application (if the operation is not required).

[0062] In one embodiment, a sixth rule may analyze an instance in conjunction with an agent to determine if the instance has a connection open on a port that is allowed to be accessed from somewhere outside a trusted location. The severity of this finding is low. This finding may be reported along with the port number, the TCP or UDP association of the port, the application (and version) listening on the port, the address range that can access the port, and any security groups, access control lists, internet gateways, virtual gateways, and other channels that allow access. For the sixth rule, recommendations for corrective actions may include editing the access control configuration to restrict access (if access is not required from outside a trusted location) and stopping the application (if the operation is not required).

[0063] In one embodiment, the seventh rule may use an agent to analyze an instance to determine if the instance has an application that has a connection open on an atypical port. The severity of this finding is low and may be considered an informational threat rather than a specific threat. This finding may be reported along with the port number, the TCP or UDP association of the port, the application (and version) listening on the port, the common port used for the application, the address range that can access the port, and any security groups, access control lists, internet gateways, virtual gateways, and other channels that allow access. For the seventh rule, recommendations for corrective actions may include checking whether the application is behaving as expected.

[0064] In one embodiment, an eighth rule may analyze an instance without an agent to determine if the instance allows ICMP access from somewhere outside a trusted location. The severity of this finding is medium. This finding may be reported along with the address range that can access the port and any security groups, access control lists, internet gateways, virtual gateways, and other channels that allow access. For the eighth rule, recommendations for corrective actions may include editing the access control configuration to restrict access if access from outside a trusted location is not required.

[0065] In one embodiment, a ninth rule may analyze an instance without an agent to determine if the instance allows access to a typically unsecured port (e.g., port 20, 21, 23, etc.) from somewhere outside a trusted location. The severity of this finding is medium. This finding may be reported along with the port number, the TCP or UDP association of the port, the application that typically uses the port, the address range that can access the port, and any security groups, access control lists, internet gateways, virtual gateways, and other channels that allow access. For the ninth rule, recommendations for corrective actions may include editing the access control configuration to restrict access if access from outside a trusted location is not required.

[0066] In one embodiment, the tenth rule may analyze an instance without an agent to determine if the instance allows access to management port number 22 (typically used for SSH) from somewhere outside a trusted location. The severity of this finding is medium. This finding may be reported along with the port number, the TCP or UDP association of the port, the application that typically uses the port, the address range that can access the port, and any security groups, access control lists, internet gateways, virtual gateways, and other channels that allow access. For the tenth rule, recommendations for corrective actions may include editing the access control configuration to restrict access permissions (if management access from outside a trusted management location is not required).

[0067] In one embodiment, an eleventh rule may analyze an instance without an agent to determine if the instance allows access to management port number 3389 (typically used for RDP) from somewhere outside a trusted location. The severity of this finding is medium. This finding may be reported along with the port number, the TCP or UDP association of the port, the application that typically uses the port, the address range that can access the port, and any security groups, access control lists, internet gateways, virtual gateways, and other channels that allow access. For the eleventh rule, recommendations for corrective actions may include editing the access control configuration to restrict access permissions (if management access from outside a trusted management location is not required).

[0068] In one embodiment, a twelfth rule may analyze an instance without an agent to determine if the instance allows access to a database port (e.g., port 1433, 1434, 3306, etc.) from somewhere outside a trusted location. The severity of this finding is low. This finding may be reported along with the port number, the TCP or UDP association of the port, the application that typically uses the port, the address range that can access the port, and any security groups, access control lists, internet gateways, virtual gateways, and other channels that allow access. For the twelfth rule, recommendations for corrective actions may include editing the access control configuration to restrict access (if database access from the internet is not required).

[0069] In one embodiment, the thirteenth rule can analyze an instance without an agent to determine whether the instance allows access to an intranet port from somewhere outside a trusted location. The severity of this finding is low. This finding can be reported along with the port number, the TCP or UDP association of the port, the application that typically uses the port, the address range that can access the port, and any security groups, access control lists, Internet gateways, virtual gateways, and other channels that allow access. For the thirteenth rule, recommendations for corrective actions may include editing the access control configuration to restrict access (if intranet port access from the Internet is not required).

[0070] In one embodiment, rule fourteen may analyze an instance without an agent to determine whether the instance allows access to all other ports (e.g., ports not covered by rules eight through thirteen) from somewhere outside a trusted location. The severity of this finding is low. This finding may be reported along with the port number, the TCP or UDP association of the port, the application that typically uses the port, the address range that can access the port, and any security groups, access control lists, internet gateways, virtual gateways, and other channels that allow access. For rule fourteen, recommendations for corrective action may include editing the access control configuration to restrict access if access from outside a trusted location is not required.

[0071] In one embodiment, the fifteenth rule may use an agent to analyze an instance to determine if the instance has an open connection on a port that is not accessible from anywhere. The severity of this finding is low and may be considered informational. This finding may be reported along with a list of open ports, the application (and version) associated with each port, and any applicable access control lists and security groups. For the fifteenth rule, recommendations for corrective actions may include terminating inaccessible services if they are not needed.

[0072] In one embodiment, rule 16 may analyze an instance with or without a proxy to determine if all inbound traffic is blocked to the instance. The severity of this finding is low and may be considered informational. The finding may be reported along with any applicable access control lists and security groups. For rule 16, recommendations for corrective action may include checking whether isolation is appropriate.

[0073] Virtual Network Authentication Service

[0074] In some embodiments, a virtual network validation service may be used to implement network configuration analysis. In some embodiments, the virtual network validation service utilizes a declarative logic programming language to allow a network reachability analyzer to express queries (including recursive queries) about its virtual networks on a provider network as constraint problems, and provides results of the queries by parsing the queries using a constraint solver (e.g., a satisfiability modulo theories (SMT) solver) engine. An example declarative logic programming language that may be used in some embodiments is Datalog. It should be noted that other declarative logic programming languages ​​may be used.

[0075] Clients can use various provider network services to provision and configure networking primitives in their virtual networks; each service can provide its own application programming interface (API) and networking semantics. Conventionally, while code samples and documentation can be provided for each service, there is no formal description of the interactions between networking primitives in a virtual network. In some embodiments, virtual networking semantics and logic for networking primitives can be expressed and encoded as a set of virtual networking rules according to a logic programming language. Virtual networking rules can include rules that express common relationships and interactions between various networking primitives that can be implemented in a virtual network and provided by the services and APIs of the provider network. Therefore, an embodiment can provide virtual networking rules in one location or file, which describe the logic of how virtual networking works in a provider network environment.

[0076] In some embodiments, the virtual networking rules may incorporate rules that encode networking security standards, such as the Payment Card Industry Data Security Standard (PCIDSS), the Federal Risk and Authorization Management Program (FedRAMP), or the Health Insurance Portability and Accountability Act (HIPAA), or the client's internal security standards. In some embodiments, the virtual network verification service may provide two or more different sets of virtual networking rules, each of which encodes a different networking security standard, which may be selectively used to verify that the virtual network complies with a specific standard. In some embodiments, the virtual network verification service may allow a client (e.g., a network reachability analyzer) to define custom rules that encode the client's internal security standards, best practices, or other networking requirements, and thus may implement multiple sets of virtual networking rules that include custom rules defined by the client to apply to its specific virtual network.

[0077] In some embodiments, the virtual network verification service obtains descriptive information of a virtual network for a client. The descriptive information may, for example, identify instances of networking primitives implemented in the virtual network, include descriptions of the instances (e.g., roles assigned to computing instances, permissions granted or denied to resource instances, IP addresses assigned to instances, etc.), describe relationships between instances (e.g., paths between instances on a network), and describe interfaces or access points to external entities (e.g., computing instances accessible by entities outside the virtual network). In some embodiments, the client may obtain descriptive information from the virtual network and provide the descriptive information to the virtual network verification service. Alternatively, in some embodiments, the client may grant permission to the virtual network verification service to allow the virtual network verification service to obtain descriptive information directly from the virtual network. The virtual network verification service may encode the descriptive information into a logic program according to a declarative logic programming language.

[0078] Embodiments of the virtual network verification service can provide significant advantages when compared to conventional network analysis methods such as port scanning and syntax checking methods. Unlike these conventional methods, through the encoded virtual networking rules and virtual network descriptions, the virtual network verification service may understand all networking primitives and resource instances and their complex interrelationships. Unlike conventional methods that rely on devices to be enabled at the time of scanning and therefore may only identify paths that exist between devices on the network at the time of scanning, a client or service can obtain descriptive information using only a DESCRIBE call to the API of one or more provider network services that maintain metadata describing the virtual network, and thus can identify paths on the network even if the corresponding device or instance is not enabled and listening. In addition, port scanning methods can identify the presence of threats, but not the absence of threats. Syntax checking methods can check the shallow properties of individual network devices, but do not identify the presence or absence of attack vectors. In some embodiments, the virtual network verification service can find all possible deviations from the network policy expressed in the encoded virtual networking rules on the other hand, and can identify the presence and absence of threats and attack vectors. In addition, a client or service can obtain descriptive information using only a DESCRIBE call to one or more provider network services that maintain metadata describing the virtual network, and therefore differs from conventional methods such as port scanning methods that require substantial network and CPU bandwidth with little to no impact on the client's virtual network, and also does not require full network access to every device on the provider network like port scanning methods.

[0079] In some embodiments, the virtual network verification service receives a query from a client (such as a network reachability analyzer). In some embodiments, the query can be posed in an expressive query language similar to SQL but applicable to network configuration. A non-limiting example of this query may be "VNVS query -i list: can-ssh(A,B)", which requests the virtual network verification service (VNVS) to provide a list of all instance pairs so that instance A can SSH into instance B. Alternatively, in some embodiments, the query can be posed in a human-friendly manner. A non-limiting example of this query may be somewhat similar to "show me a list of all instance pairs so that instance A can SSH into instance B". In some embodiments, at least some queries may be predefined and provided to the user in a user interface element (e.g., a menu) via a graphical interface to the virtual network verification service.

[0080] The query may correspond to a theorem about the generated logic program and express a constraint problem. The virtual network verification service may use a constraint solver program (also referred to as a constraint solver engine) configured to parse constraint problems according to a declarative logic programming language to parse the constraint problem expressed by the query to the encoded description according to the encoding rules, and provide the result to the client. In some embodiments, the virtual network verification service may provide an API and interface for raising queries. In some embodiments, the virtual network verification service may provide a set of standard queries that the client may select via the API and interface. In some embodiments, the virtual network verification service may allow the client to write and submit custom queries via the API and interface.

[0081] In an embodiment, clients (e.g., network reachability analyzers) may use the virtual network verification service via a graphical interface to the service on a console or via a command line interface (CLI) to obtain answers to questions (posed as queries specifying constraints) about their virtual network on a provider network. Example questions that may be posed as queries include (but are not limited to):

[0082] Which instances in the virtual network are accessible from the Internet?

[0083] Which instances can access a given resource on the virtual network (eg, a database, cache, storage endpoint, another instance, etc.)?

[0084] Do virtual networks comply with best practices for networking security standards?

[0085] Does the virtual network adhere to my company's best practices as codified in this set of rules?

[0086] More generally, a client (e.g., a network reachability analyzer) can use the virtual network verification service to verify that expected pipes between resources in a virtual network and other resources in the virtual network and to external entities are open and that the expected pipes are the only open pipes (e.g., external entities cannot reach resources in the virtual network that they should not be allowed to reach).

[0087] Verifying that a pipe between a resource and other resources in a virtual network or a pipe between a resource in a virtual network and an external entity is open may include verifying that there is a path or route on the network (i.e., network connectivity) between resources or between resources and external entities (e.g., a path from a resource to an HTTPS gateway, via which an external entity can access resources on a virtual network). The path may be a direct path on the network that provides network connectivity between endpoints, or alternatively may be a transitive path that passes through one or more hops on the route and provides network connectivity between endpoints. Descriptive information for a virtual network may be obtained using only a DESCRIBE call to an API of one or more provider network services that maintains metadata describing the virtual network, and thus the path may be verified even if the corresponding device or instance is not enabled and listening. In some embodiments, the descriptive information for a virtual network may include permissions granted or denied to a resource (e.g., permissions granted or denied to an endpoint on a virtual network to access a resource, permissions for a specified IP address range or specific port of a resource instance that may or may not access a given endpoint (e.g., a storage endpoint), etc.). In these embodiments, verifying that a path in a virtual network is open may include verifying that the required permissions for the path have been granted. Similarly, verifying that the intended path is the only open path may include determining that resources in the virtual network or external entities do not have permission to access resources that they should not be able to access.

[0088] An embodiment of a virtual network validation service with appropriate sets of virtual networking rules may be used, for example, by a client (e.g., a network reachability analyzer) to help customers verify that their virtual networks comply with networking security standards, such as the Payment Card Industry Data Security Standard (PCIDSS), the Federal Risk and Authorization Management Program (FedRAMP) standard, or the Health Insurance Portability and Accountability Act (HIPAA) standard, or to verify that their virtual networks comply with the client's internal security standards or other internal networking requirements.

[0089] Another example application of the virtual network verification service is to identify the possible impact of vulnerabilities such as network security issues or software errors in a virtual network. For example, if a vulnerability is found in a specific software program running on a specific instance in a virtual network, a client (such as a network reachability analyzer) can write and submit a query to determine all the ways in which this instance can communicate with other instances in the virtual network. The result can allow the client to identify the possible impact of the vulnerability and therefore make a decision on how to best handle this situation. For example, if there is no direct path from an instance with a vulnerability to an instance with a mission-critical database, the problem can be given a lower priority to be handled according to a normal maintenance schedule. If an instance with a vulnerability will affect an instance with a mission-critical database, a decision can be made to shut down at least part of the virtual network to immediately resolve the vulnerability.

[0090] Another example application of the virtual network validation service is in offline testing of changes to virtual networking for a provider network environment. For example, virtual networking rules that describe the logic of how virtual networking works in a provider network environment can be used in a test environment to test changes to virtual networking primitives before the changes are applied to the provider network to determine what impact the changes may have on the virtual network.

[0091] Another example application for the virtual network validation service is to automatically synthesize a virtual network for a client. For example, a client (e.g., a network reachability analyzer) may want to build a virtual network that complies with a specific networking security standard and contains a specified set of networking primitives. The virtual network validation service and virtual networking rules can be used to automatically synthesize and verify a virtual network that meets all constraints (client-specified primitives, networking security standards, virtual networking rules that describe the logic of how virtual networking works in the provider network environment, etc.), so that the client does not have to build and test the virtual network itself. For example, the constraints imposed by the standard can be posed as a query, and the query can be parsed to determine a virtual network configuration that meets the constraints, or alternatively determine whether the configuration of the virtual network meets the constraints. A virtual network that meets the constraints can then be synthesized, or alternatively the virtual network can be modified to meet the constraints.

[0092] Another example application for the virtual network validation service is to allow a client (e.g., a network reachability analyzer) to validate a new virtual network configuration or changes to an existing virtual network before implementing the configuration or changes on a provider network. For example, a virtual network configuration may be generated or modified by a client, and constraints for the configuration may be presented as a query; the query may be parsed to validate that the configuration complies with the client's constraints as presented in the query before implementing the configuration on the provider network.

[0093] Figure 8A virtual network authentication service in a provider network environment according to some embodiments is shown. A service provider providing a provider network 800 for a client may provide services and an application programming interface (API) 802 that allows a client to establish and manage resources in a virtual network 810 on the provider network 800. A virtual network 810 in a provider network 800 environment may be broadly defined as a network space (e.g., logically defined by an address range or address space) that contains a set of provider network resources for a corresponding client and acts as a logically isolated segment on the provider network 800 for resources of the client. The virtual network 810 may implement a dedicated or local Internet Protocol (IP) address space according to a network protocol, such as a 32-bit IP address within a fourth version of the Internet Protocol (IPv4) address range or subnet. A source on the virtual network 810 (e.g., an endpoint such as a computing resource, a storage resource, a server, a host device, etc.) may be assigned an IP address (e.g., a 32-bit IPv4 address) within the address space of the virtual network 810. The client's virtual network 810 on the provider network 800 includes resource instances of the client, such as virtual machines (VMs) on a host device, which are configured by the client as virtual computing resource instances. At least some of the resource instances on the provider network can be implemented according to hardware virtualization technology, which enables multiple operating systems to run simultaneously on a host computer, that is, to run simultaneously as VMs on a host device. A supervisor or virtual machine monitor (VMM) on the host device presents the VM on a corresponding host with a virtual platform and monitors the execution of the VM on the host device. One or more IP addresses can be provided for each VM; the VMM on the corresponding host can know the IP address of the VM on the host.

[0094] Various networking resources, structures, and functionality, referred to as networking primitives, may be provided to clients of provider network 800 via various provider network services 802. Clients may create, configure, populate, and modify their virtual networks 810 on provider network 800 using, at least in part, the various services and APIs 802. The following lists example networking primitives that may be provided by services 802 and are not intended to be limiting:

[0095] Virtual network.

[0096] Resource instances (e.g., VMs that are configured by client usage service 802 as virtual computing resource instances (e.g., application servers, network servers, database servers, access points, gateways, load balancers, instances of specific provider network services such as logging services, network monitoring and analysis services, code repository services, container management services, etc.)

[0097] Tags - In some embodiments, clients may be allowed to assign specific roles to specific resource instances (e.g., VMs) within their virtual network by tagging the resource instances. Tags may, for example, be text strings, such as PROD or DEV. Tags may be stored in metadata for the resource instances. Tags may include standard provider network defined tags and / or client defined tags. Example roles for resource instances include, but are not limited to, Secure Socket Shell (SSH) access instances, logging service instances, code repository instances, production resource instances, and development resource instances.

[0098] • Virtual network endpoints (e.g., endpoints such as computing resources, storage resources, servers, host devices, etc.).

[0099] Virtual network peering. In some embodiments, a client can establish two or more virtual networks on a provider network. Peer connections can be established between virtual networks, allowing the virtual networks to communicate securely on the provider network without having to traverse an external network such as the Internet.

[0100] • An Internet gateway that provides access to at least some of the resources of the virtual network from entities external to the virtual network.

[0101] • A load balancer, such as a virtualized load balancer instance that distributes network traffic among a group or cluster of resource instances on a virtual network.

[0102] Network Address Translation (NAT) example.

[0103] NAT gateway.

[0104] Network Access Control Lists (ACLs).

[0105] Network interface.

[0106] Routing table.

[0107] Subnets - A virtual network can, but need not, be subdivided into two or more subnets or subnetworks.

[0108] Security Groups - In some embodiments, the provider network may allow clients to establish and manage virtual security groups within the client's virtual network, within a subnet, or across subnets. A security group is a logical grouping of resource instances and acts as a virtual firewall that controls the traffic that is allowed to reach one or more resource instances within the security group according to the security group rules.

[0109] Zones - Provider network services and resources (e.g., virtual networks, VM instances, data stores, gateways, load balancers, etc.) may be supported in multiple geographic locations or regions. As used herein, a zone is a separate geographic area that supports provider network services and where clients can launch and configure resources. Services and APIs may allow clients to launch or replicate their resources in one or more zones.

[0110] Zones - Each zone may contain multiple isolated locations, referred to herein as zones. A client's resource instances may be distributed across multiple zones within a zone so that if a resource instance in one zone fails, an instance in another zone may handle the request.

[0111] In some embodiments, a client may establish a virtual network 810 on a provider network 800 using corresponding provider network services 802 , which includes instances of one or more of the above networking primitives. Figure 8 An example virtual network 810 on a provider network 800 is shown and is not intended to be limiting. The client's virtual network 810 may include resource instances 818 (e.g., VMs) that implement the functionality of the virtual network, such as application servers, web servers, database servers, and the like. Resource instances 818 may include groups or clusters of instances 818A and 818B; for example, instance 818A may represent a production environment, while instance 818B may represent a development environment. In some embodiments, instances 818A and 818B may be in different subnets and / or security groups.

[0112] The client's virtual network 810 may also include service instances 816 (e.g., VMs) that implement specific provider network services in the client's virtual network 810, such as application and operating system logging services, network monitoring and analysis services, code repository services, container management services, and the like.

[0113] The client's virtual network 810 may also include an access instance that enables a device 882 on the client network 880 and other external entities 890 to communicate with resources and endpoints within the virtual network 810 via an intermediate network 850 such as the Internet. The access instance may, for example, include a load balancer and a gateway (Internet gateway, NAT gateway, etc.). As shown in this example, in some embodiments, the access instance may include an HTTPS access instance 814 and an SSH access instance 812. The HTTPS access instance 814 may include instances 814A and 814B for accessing resource instances 818A and 818B from an external entity 890 using the HTTPS protocol, respectively, and an instance 814C for accessing a service instance 816 from a device 882 on the client network 880 using the HTTPS protocol. In some embodiments, the client may, for example, access a resource instance in the virtual network 810 from a device 882 (e.g., a console) on the client network 880 using SSH. In some embodiments, in order to access a resource instance using SSH, the client is given the IP address and key of the instance. The client may then directly SSH into the instance using the provided information. In some embodiments, SSH access instance 812 can act as a proxy that allows a client to access a client's resource instances on virtual network 810 from a device 882 (e.g., a console) on client network 880 using the SSH protocol. For example, SSH access instance 812 can be in a publicly accessible subnet of the client's virtual network. At least some of the client's resource instances can be in a subnet that is not publicly accessible. These resource instances can be in a security group that allows SSH access from the security group attached to SSH access instance 812. The client can connect to SSH access instance 112 to connect to the client's resource instances.

[0114] like Figure 8 As shown, the provider network 800 may include a virtual network authentication service 830 implemented by one or more computing devices on the provider network 800. In some embodiments, the virtual network authentication service 830 may be implemented by, for example, Figure 8 The SSH access instance 812 illustrated in the figure implements an instance of a virtual network verification service 830 on the client's virtual network 800. The virtual network verification service 830 can utilize a declarative logic programming language (e.g., Datalog) to allow the client to express queries (including recursive queries) about its virtual network on the provider network as constraint problems, and provide results of the queries by parsing the queries using a constraint solver engine.

[0115] In virtual network validation service 830, the virtual networking semantics and logic for networking primitives provided by service 802 may be expressed according to a logic programming language and encoded as a set of virtual networking rules. The virtual networking rules may include rules that express common relationships and interactions between various networking primitives implemented in virtual network 810. The virtual networking rules may also incorporate rules that encode networking security standards (e.g., PCI, FedRAMP, HIPAA, etc.) or a client's internal security standards or other networking requirements.

[0116] The virtual network verification service 830 obtains descriptive information for the virtual network 810 for the client. The descriptive information may, for example, identify instances of networking primitives implemented in the virtual network 810, include descriptions of various instances (e.g., roles assigned to instances, permissions granted or denied to instances, IP addresses assigned to instances, etc.), describe relationships between instances (e.g., paths between instances), and describe interfaces or access points to external entities 890. In some embodiments, the client may obtain the descriptive information from the virtual network 810 and provide the descriptive information to the virtual network verification service 830. Alternatively, in some embodiments, the client may grant permission to the virtual network verification service 830 to allow the virtual network verification service 830 to obtain the descriptive information directly from the virtual network 810. The virtual network verification service 830 may encode the descriptive information as a logic program according to a declarative logic programming language.

[0117] The virtual network verification service 830 can utilize a declarative logic programming language and allow the client to raise queries about its virtual network 810 on the provider network 800, for example, via a graphical interface or command line interface (CLI) of the service 830 on the client device 882 in the client network 880. An example logic programming language that can be used in some embodiments is Datalog. It should be noted that other declarative logic programming languages ​​can be used. In some embodiments, queries can be raised with an expression query language that is slightly similar to SQL but suitable for network configuration. Alternatively, in some embodiments, queries can be raised in a human-friendly manner. The query corresponds to a theorem about the generated logic program and expresses a constraint problem. The virtual network verification service 830 can use a constraint solver engine to parse the constraint problem expressed by the query according to the coding rules for the coding description, and provide the result to the client. In some embodiments, the virtual network verification service 830 can provide an API and interface for raising queries. In some embodiments, the virtual network verification service 830 can provide a set of standard queries that the client can select via the API and interface. In some embodiments, the virtual network verification service 830 can allow the client to write and submit custom queries via the API and interface.

[0118] The following describes Figure 8 The example virtual networks shown are example queries that may be posed by a client and are not intended to be limiting.

[0119] In some embodiments of virtual network 810, resources on virtual network 810 should only be accessible via SSH from a specified endpoint on client network 880 through SSH access instance 812. Therefore, the client may want to verify that no instance in virtual network 810 is accessible via SSH from an endpoint on intermediate network 850. An example query to verify this situation can be expressed as:

[0120] All instances:

[0121] ! internet-can-ssh-to-instance(Instance).

[0122] The client may also want to verify that from the client network 880, the SSH access instance 812 on the virtual network 810 can be accessed via SSH. As previously described, in some embodiments, instances of at least some clients in the virtual network 810 may be assigned specific roles; the roles may be indicated by tags stored in the metadata of the instances. Tags may be included in the descriptive information and may therefore be indicated in the coded description for the virtual network 810. Therefore, in some embodiments, tags may be used in queries to, for example, verify that instances assigned specific roles can actually perform those roles. An example query to verify that the SSH access instance 812 on the virtual network 810 can be accessed via SSH from the client network 880 may be expressed as:

[0123] All instances:

[0124] atom / instance-tag(Instance,tag-key / Name,tag-value / SSHAccessInstance)

[0125] <=>ClientNetwork-can-ssh-to-instance(Instance).

[0126] The above expression, when evaluated by the constraint solver, checks all instances on virtual network 810; for an instance labeled SSHAccessInstance, the constraint solver determines whether the instance is reachable from client network 880 via SSH, returning true if so and false if not.

[0127] The following lists some other examples of aspects of virtual network 810 that a client may verify by making appropriate queries to virtual network verification service 830 and are not intended to be limiting:

[0128] • SSH access only instance 812 is accessible from client network 880 via SSH.

[0129] • Resource instances 818A and 818B are reachable by external entities 890 via intermediate network 850B (eg, the Internet) through their respective HTTPS access instances 814A and 814B.

[0130] • Resource instances 818A and 818B may reach out to intermediate network 850B to authenticate the request.

[0131] Resource instances 818A and 818B can be written to a specified service instance 816 .

[0132] The designated service instance 816 can be reached from the client network 880 via the HTTPS access instance 814C.

[0133] The specified service instance 816 can reach the specified endpoint on the virtual network 810.

[0134] All instances are labeled with one of a set of specified labels.

[0135] Fig. 9 Components and operations of an example virtual network authentication service according to some embodiments are shown. The virtual network authentication service 930 may be implemented by one or more computing devices on a provider network. In some embodiments, the virtual network authentication service 930 may be implemented by, for example, Figure 8 The SSH access instance 812 shown in FIG. 1 implements an instance of a virtual network authentication service 930 on the client's virtual network. Fig. 9 As shown, in some embodiments, the virtual network verification service 930 may include a service engine 934, a constraint solver 936 engine, and an API 932. The service engine 934 may implement, but is not limited to, rule encoding 950 logic, query processing 960 logic, and description encoding 970 logic. The constraint solver 936 may represent a declarative logic programming language engine that is configured to parse queries about virtual networks represented by the encoded description 940 based on the encoded virtual networking rules 938, including recursive queries. The API 932 exposes the functionality of the service 910 to external entities, including but not limited to clients.

[0136] exist Fig. 9 At (1A) and (1B) of the service 930, the rule encoding 950 logic of the service 930 can obtain (1A) and encode (1B) virtual networking rules 938 to be applied to the virtual network. The rules to be encoded can be obtained from the service provider, obtained from the client, or obtained from other external entities or sources. Example encoded rules 938 are provided later in this document.

[0137] In an embodiment, the virtual networking semantics and logic of the networking primitives used in the virtual network may be obtained and encoded according to a logic programming language as a set of virtual networking rules 938. The virtual networking rules 938 may include rules that express the common relationships and interactions between the various networking primitives that may be implemented in the virtual network and provided by the services and APIs of the provider network. Thus, an embodiment may provide the virtual networking rules 938 in one location or file that describe the logic of how the virtual networking works in the provider network environment.

[0138] In some embodiments, the virtual network verification service 930 can obtain and encode rules for networking security standards, such as the Payment Card Industry Data Security Standard (PCIDSS), the Federal Risk and Authorization Management Program (FedRAMP) standard, or the Health Insurance Portability and Accountability Act (HIPAA) standard, and thus can implement multiple sets of virtual networking rules 938 containing rules for verifying networking security standards. In some embodiments, the virtual network verification service 930 can provide two or more different sets of virtual networking rules 938, each of which encodes a different networking security standard, which clients can selectively use to verify that their virtual networks comply with specific standards. In some embodiments, the virtual network verification service 930 can allow clients to define customized rules that encode the client's internal security standards, best practices, or other networking requirements, and thus can implement multiple sets of virtual networking rules 938, which contain customized rules defined by the client to apply to its specific virtual network.

[0139] exist Fig. 9 At (2) of FIG. 1 , query processing 960 logic of service 930 may receive a query from a client to parse against a virtual network according to virtual networking rules 938. In some embodiments, a client may provide a query about its virtual network on a provider network via a graphical interface or command line interface (CLI) to service API 932. In some embodiments, the query may be posed in an expression language similar to SQL but adapted for network configuration. Alternatively, in some embodiments, the query may be posed in a human-friendly manner. See above for more information. Figure 8 Describes the example query.

[0140] exist Fig. 9At (3A) and (3B) of service 930, description encoding 970 logic may obtain (3A) and encode (3B) a description of the virtual network. In some embodiments, description encoding 970 logic of service 930 obtains descriptive information (3A) for the virtual network and encodes (3B) the descriptive information into an encoded description 940 for each query it receives to ensure that description 940 is up to date when resolving queries. However, in some embodiments, description encoding 970 logic may obtain and encode descriptive information for the virtual network and use encoded description 940 to process two or more queries. Fig. 9 At (3A) of service 930, the description encoding 970 logic obtains descriptive information of the virtual network for the client. The descriptive information may, for example, identify instances of networking primitives implemented in the virtual network, include descriptions of various instances (e.g., roles assigned to instances, permissions granted or denied to instances, IP addresses assigned to instances, etc.), describe relationships between instances (e.g., paths between instances), and describe interfaces or access points to external entities. In some embodiments, the client may obtain descriptive information from the virtual network and provide the descriptive information to the virtual network verification service 930 with the query. Alternatively, in some embodiments, the client may grant permission to the virtual network verification service 930 to allow the virtual network verification service 230 to obtain descriptive information directly from the virtual network in response to the query. Fig. 9 At (3B), the description encoding 970 logic of the service 930 can encode the obtained descriptive information into a logic program according to a declarative logic programming language.

[0141] exist Fig. 9 At (4), the query processing 960 logic of the service 930 can provide the query to the constraint solver 936. The constraint solver 936 parses the constraint problem expressed by the query for the encoding description 940 according to the encoding rules 938, and provides the result (e.g., the answer to the question posed by the query) to the query processing 960 at (5A), which formats the result at (5B) and provides the formatted result to the client via the API 932. The formatted result can include a text result (e.g., a text expressing the answer to the constraint posed by the query, such as "yes", "no", "true" or "false", a list of instances that satisfy the constraint posed by the query, etc.) and / or a graphical result (e.g., a graphical representation of the relationship between two or more instances determined by parsing the query, a graphical representation of a virtual network identifying the instances identified by parsing the query, etc.).

[0142] Fig.101 is a flow chart of a method for providing information about a virtual network to a client of a provider network according to some embodiments. As indicated at 1000, networking rules can be obtained and encoded. The rules to be encoded can be obtained from a service provider, obtained from a client, or obtained from other external entities or sources. Virtual networking rules can express virtual networking semantics and logic for networking primitives used in a virtual network on a provider network. In some embodiments, virtual networking rules can express rules for networking security standards, such as the Payment Card Industry Data Security Standard (PCIDSS), the Federal Risk and Authorization Management Program (FedRAMP) standard, or the Health Insurance Portability and Accountability Act (HIPAA). In some embodiments, virtual networking rules may include client-defined rules that express the client's internal security standards or other networking requirements. Example encoding rules are provided later in this document.

[0143] As indicated at 1010, the virtual network verification service may receive queries about virtual networks from clients (e.g., network reachability analyzers). In embodiments, clients may use the virtual network verification service via a graphical interface to the service on a console or via a command line interface (CLI) to obtain answers to questions (posed as queries, including recursive queries) about their virtual networks on a provider network. In some embodiments, the queries may be posed in an expression language similar to SQL but applicable to network configuration. Alternatively, in some embodiments, the queries may be posed in a human-friendly manner. See above for more information. Figure 8 Describes the example query.

[0144] As indicated at 1020, the virtual network verification service may obtain and encode descriptive information about the virtual network. The descriptive information may, for example, identify instances of networking primitives implemented in the virtual network, include descriptions of the instances (e.g., roles assigned to computing instances, permissions granted or denied to resource instances, IP addresses assigned to instances, etc.), describe relationships between instances (e.g., paths between instances), and describe interfaces or access points to external entities (e.g., computing instances accessible by entities external to the virtual network). In some embodiments, the client may obtain the descriptive information from the virtual network and provide the descriptive information to the virtual network verification service. Alternatively, in some embodiments, the client may grant permission to the virtual network verification service to allow the virtual network verification service to obtain the descriptive information directly from the virtual network. The virtual network verification service may encode the descriptive information as a logic program according to a declarative logic programming language (e.g., Datalog).

[0145] As indicated at 1030, the virtual network validation service may parse the query for the encoded description according to the encoded virtual networking rules using a declarative logic programming language (e.g., Datalog) constraint solver engine. As indicated at 1040, the results of the query parsing (e.g., answers to the questions posed by the query) may be formatted and provided to the client. The formatted results may include textual results (e.g., text expressing answers to the constraints posed by the query, such as "yes", "no", "true", or "false", a list of instances that satisfy the constraints posed by the query, etc.) and / or graphical results (e.g., a graphical representation of a relationship between two or more instances determined by parsing the query, a graphical representation of a virtual network identifying the instances identified by parsing the query, etc.).

[0146] As indicated by the arrow from element 1040 back to element 1010, elements 1010-1040 may be iteratively executed to pose and resolve multiple queries about the client's virtual network. In some embodiments, for example, the client may write a script containing a series of queries and run the script to pose queries to the virtual network verification service and receive results from the virtual network verification service. Fig.10 As shown, in some embodiments, the virtual network validation service can obtain descriptive information for the virtual network and encode the descriptive information into an encoded description for each query it receives to ensure that the description is up to date when resolving queries. However, in some embodiments, the virtual network validation service can obtain and encode descriptive information for the virtual network and process two or more queries using the encoded description.

[0147] Fig.11 is a flow diagram of a method for providing information about a virtual network to a client of a provider network according to some embodiments, wherein the client provides descriptive information and a query to a virtual network validation service. As indicated at 1100, a client (e.g., a network reachability analyzer) obtains descriptive information from a virtual network, for example, using a DESCRIBE call provided by a provider network service API. As indicated at 1110, the client sends the query and the descriptive information to the virtual network validation service. As indicated at 1120, the validation service encodes the descriptive information about the virtual network. As indicated at 1130, the validation service parses the query for the encoded description using a constraint solver engine according to the encoded virtual network rules. As indicated at 1140, the virtual network validation service provides the results of the query parsing to the client.

[0148] Fig.12is a flow chart of a method for providing information about a virtual network to a client of a provider network according to some embodiments, wherein the client provides descriptive information and permission to access the virtual network to a virtual network verification service. As indicated at 1200, a client (e.g., a network reachability analyzer) grants permission to the virtual network verification service, thereby allowing the service to obtain descriptive information from the virtual network, such as using a DESCRIBE call to one or more provider network services that maintain metadata describing the virtual network to obtain permission for information of the virtual network. As indicated at 1210, the client sends a query to the virtual network verification service. As indicated at 1220, the virtual network verification service obtains descriptive information from the virtual network, such as using a DESCRIBE call to one or more provider network services that maintain metadata describing the virtual network. As indicated at 1230, the virtual network verification service encodes descriptive information about the virtual network. As indicated at 1240, the virtual network verification service uses a constraint solver engine to parse the query for the encoded description according to the rules. As indicated at 1250, the virtual network verification service provides the results of the query parsing to the client.

[0149] Fig.13 A virtual network implementation for a client in a provider network environment including two or more peer virtual networks according to some embodiments is shown. Fig.13 1300 as described herein. Fig.13 As shown, a client's virtual network implementation 1310 on a provider network 1300 may include two or more virtual networks 1320 . Fig.13 Two virtual networks 1320A and 1320B in a client's virtual network implementation 1310 are shown. In some embodiments, virtual networks 1320A and 1320B may each contain one or more subnets, and security groups may be established in virtual networks 1320A and 1320B. Network endpoints 1322A and 1322B represent network interfaces of various instances (e.g., resource instances) of networking primitives in respective virtual networks 1320A and 1320B. A peer connection 1324 may be established between virtual networks 1320A and 1320B on provider network 1300, which allows instances on virtual networks 1320A and 1320B to communicate securely on provider network 1300 without having to traverse an external network 1350, such as the Internet.

[0150] Example rules for "dedicated routing" are given below. These examples are not intended to be restrictive. "Routing" as used in these examples means whether an IP packet can flow from one endpoint to another endpoint without the presence of a firewall. The routing between two endpoints in a virtual network implementation scheme 1310 can be called "dedicated routing". The rules can be different depending on whether the two endpoints are in the same virtual network 1320 or in different virtual networks 1320 in the virtual network implementation scheme 1310. The following describes an example rule for determining whether a packet can flow between two endpoints in a virtual network implementation scheme 1310 according to a descriptive logic programming language:

[0151] routable-private:endpoint->endpoint->type

[0152] -:routable-private Endpoint1 Endpoint2

[0153] <-routable-private-one-way Endpoint1 Endpoint2

[0154] <-routable-private-one-way Endpoint2 Endpoint1

[0155] The first line defines the type of endpoint. Endpoint1 and Endpoint2 are variables. The rule (routable-private Endpoint1 Endpoint2) evaluates to true if both (routable-private-one-way Endpoint1 Endpoint2) and (routable-private-one-wayEndpoint2Endpoint1) are true (and false otherwise). For routing between endpoints within virtual network 1320, the rule routable-private-one-way can be defined as:

[0156] routable-private-one-way:endpoint->endpoint->type

[0157] -:routable-private-one-way Endpoint1 Endpoint2

[0158] <-endpoint-has-virtual-network Endpoint1 Vnetwork

[0159] <-endpoint-has-virtual-network Endpoint2 Vnetwork

[0160] Endpoint1 and Endpoint2 are variables. Vnetwork is the same variable (ie, indicates the same virtual network 1320). If both Endpoint1 and Endpoint2 are in the same virtual network 1320, then this rule evaluates to true (and false otherwise).

[0161] For routing between endpoints in different virtual networks 1320 via peer connections 1324, the rule routable-private-one-way may be defined as follows. Text preceded by " / / " is a comment:

[0162] -:routable-private-one-way Endpoint1 Endpoint2

[0163] / / Find the endpoint's IP

[0164] <-endpoint-has-private-ip Endpoint1 Ip1

[0165] <-endpoint-has-private-ip Endpoint1 Ip2

[0166] / / Find the virtual network of the endpoint

[0167] <-endpoint-has-virtual-network Endpoint1 Vnetwork1

[0168] <-endpoint-has-virtual-network Endpoint2 Vnetwork2

[0169] / / Find the equivalent classless inter-domain routing (CIDR)

[0170] <-peered-cidrsPcx Vnetwork1 Cidr1 Vnetwork2 Cidr2

[0171] / / Find the routing table for the source endpoint

[0172] <-endpoint-has-rtb Endpoint1 Rtb1

[0173] / / Find the CIDR of the route in the table and verify that the route is in effect

[0174] <-atom / pcx-route Rtb1 Pcx Cidr3 route-state / active

[0175] / / Make sure all three CIDRs match the corresponding IPs

[0176] <-cidr-matches-private-ip Cidr1 Ip1

[0177] <-cidr-matches-private-ip Cidr2 Ip2

[0178] <-cidr-matches-private-ip Cidr3 Ip2

[0179] Fig.14 Subnets and security groups in an example virtual network on a provider network according to some embodiments are shown. As described above, the network reachability analyzer can recommend and / or perform corrective actions to close ports and / or make ports unreachable, including making changes to security groups. In some embodiments, the provider network can allow a client to establish and manage virtual security groups 1416 within a client's virtual network 1410, within a subnet 1414, or across subnets 1414. In some embodiments, a security group 1416 is a logical grouping of resource instances 1418 and acts as a virtual firewall that controls the traffic allowed to reach one or more resource instances 1418 within a security group 1416 according to security group rules. A client can establish one or more security groups 1416 within a virtual network 1410, and can associate each resource instance 1418 in a virtual network 1410 with one or more of the security groups 1416. In some embodiments, a client can establish and / or modify rules for each security group 1416 that control inbound traffic allowed to reach a resource instance 1418 associated with a security group 1416.

[0180] exist Fig.14 In the example virtual network 1410 shown in FIG. 1 , the virtual network 1410 is subdivided into two subnets 1414A and 1414B. Access to the virtual network 1410 is controlled by a gateway 1430. Each subnet 1414 may include at least one router 1412 that is used to route traffic to (and from) resource instances 1418 on the corresponding subnet 1414. In some embodiments, a network access control list (ACL) may be used to control access to the subnet 1414 at the router 1412. Fig.14In the example shown in , resource instances 1418A to 1418E are on subnet 1414A, and resource instances 1418F to 1418J are on subnet 1414B. The client has established four security groups 1416A to 1416D. Fig.14 As shown in , a security group can extend across subnet 1414, such as security group 1416A including resource instances 1418A and 1418B on subnet 1414A and resource instance 1418F on subnet 1414B. In addition, resource instance 1418 can be included in two or more security groups 1416, such as resource instance 1418A included in security groups 1416A and 1416B.

[0181] Illustrative Computer System

[0182] In at least some embodiments, a computer system that implements part or all of one or more of the techniques described herein may include a computer system that includes or is configured to access one or more computer-readable media. Fig.15 Such a computing device 1500 is shown. In the illustrated embodiment, computing device 1500 includes one or more processors 1510A-1510N coupled to system memory 1520 via input / output (I / O) interface 1530. Computing device 1500 further includes a network interface 1540 coupled to I / O interface 1530.

[0183] In various embodiments, computing device 1500 may be a uniprocessor system including one processor or a multiprocessor system including several processors 1510A-1510N (e.g., two, four, eight, or another suitable number). Processors 1510A-1510N may include any suitable processor capable of executing instructions. For example, in various embodiments, processors 1510A-1510N may be processors implementing any of a variety of instruction set architectures (ISAs) such as x86, PowerPC, SPARC, or MIPS ISAs, or any other suitable ISAs. In a multiprocessor system, each processor 1510A-1510N may collectively, but not necessarily, implement the same ISA.

[0184] The system memory 1520 may be configured to store program instructions and data that may be accessed by the processors 1510A-1510N. In various embodiments, the system memory 1520 may be implemented using any suitable memory technology, such as static random access memory (SRAM), synchronous dynamic RAM (SDRAM), non-volatile / flash type memory, or any other type of memory. In the illustrated embodiment, program instructions and data that implement one or more desired functions, such as those methods, techniques, and data described above, are shown as being stored within the system memory 1520 as code (i.e., program instructions) 1525 and data 1526. In the illustrated embodiment, the system memory 1520 also stores program code and data that implement various aspects of the network security assessor 100 described above.

[0185] In one embodiment, the I / O interface 1530 may be configured to coordinate I / O traffic between the processors 1510A-1510N, the system memory 1520, and any peripheral devices in the device, including the network interface 1540 or other peripheral interfaces. In some embodiments, the I / O interface 1530 may perform any necessary protocol, timing, or other data conversion to convert data signals from one component (e.g., the system memory 1520) into a format suitable for use by another component (e.g., the processor 1510A-1510N). In some embodiments, for example, the I / O interface 1530 may include support for devices attached via various types of peripheral buses (e.g., variants of the Peripheral Component Interconnect (PCI) bus standard or the Universal Serial Bus (USB) standard). In some embodiments, the functionality of the I / O interface 1530 may be divided into two or more separate components, such as a north bridge and a south bridge. In addition, in some embodiments, some or all of the functionality of the I / O interface 1530 (e.g., an interface for the system memory 1520) may be directly incorporated into the processors 1510A-1510N.

[0186] The network interface 1540 may be configured to allow data to be exchanged between the computing device 1500 and other devices 1560 attached to one or more networks 1550. In various embodiments, the network interface 1540 may support communications over any suitable wired or wireless general purpose data network (e.g., an Ethernet type), for example. Additionally, the network interface 1540 may support communications over a telecommunications / telephone network (e.g., an analog voice network or a digital fiber optic communications network), over a storage area network (e.g., a Fiber Channel SAN), or over any other suitable type of network and / or protocol.

[0187] In some embodiments, the system memory 1520 may be an embodiment of a computer-readable (i.e., computer-accessible) medium configured to store program instructions and data for implementing the corresponding method and apparatus embodiments as described above. For example, the system memory 1520 may store program code and data associated with the network security assessor 100. In some embodiments, program instructions and / or data may be received, sent, or stored on different types of computer-readable media. In general, a computer-readable medium may include a non-transient storage medium or memory medium such as a magnetic or optical medium, such as a disk or DVD / CD, connected to the computing device 1500 via an I / O interface 1530. The non-transient computer-readable storage medium may also include any volatile or non-volatile medium that may be included as the system memory 1520 or another type of memory in some embodiments of the computing device 1500, such as RAM (e.g., SDRAM, DDRSDRAM, RDRAM, SRAM, etc.), ROM, etc. Furthermore, the computer-readable medium may include a transmission medium or a signal such as an electrical signal, an electromagnetic signal, or a digital signal, which is transmitted via a communication medium such as a network and / or a wireless link, such as may be implemented via the network interface 1540. Fig.15 Some or all of the computing devices described in the present disclosure may be used to implement the described functionality in various embodiments; for example, software components running on a variety of different devices and servers may cooperate to provide functionality. In some embodiments, storage devices, network devices, or various types of computer systems may be used to implement a portion of the described functionality. The term "computing device" as used herein refers to at least all of these types of devices and is not limited to these types of devices.

[0188] The various methods as shown in the drawings and described herein represent examples of embodiments of the methods. The methods may be implemented in software, hardware, or a combination thereof. In various methods of the methods, the order of the steps may be changed, and various elements may be added, reordered, combined, omitted, modified, etc. Each of the steps may be performed automatically (e.g., without direct prompting by user input) and / or programmatically (e.g., according to program instructions).

[0189] Embodiments of the present disclosure may be described in terms of the following:

[0190] 1. A system comprising:

[0191] One or more computing devices configured to implement a network security evaluator, wherein the network security evaluator is configured to:

[0192] generating one or more queries for network configuration data of a network including a host computer,

[0193] wherein the one or more queries are expressed in a query language, and wherein the one or more queries are generated based at least in part on a set of rules;

[0194] determining one or more ports on the host computer that are open and reachable from outside a network, wherein the one or more ports are determined based at least in part on results of the one or more queries;

[0195] determining one or more processes listening on the one or more ports, wherein the one or more processes are determined using an agent installed on the host computer; and

[0196] A report is generated describing the one or more ports and the one or more processes.

[0197] 2. The system of clause 1, wherein the network security assessor is further configured to:

[0198] One or more routes from outside the network to the one or more ports are determined and reported.

[0199] 3. A system according to any one of clauses 1 or 2, wherein the network security assessor is further configured to:

[0200] One or more configuration settings that cause the one or more ports to be open and reachable from outside the network are determined and reported.

[0201] 4. A system according to any one of clauses 1 to 3, wherein the network security assessor is further configured to:

[0202] One or more corrective actions are determined and reported, which if executed would close one or more of the ports or render one or more of the ports unreachable from outside the network.

[0203] 5. A computer-implemented method performed by one or more computing devices, comprising:

[0204] performing an analysis of network configuration data on a network including a computing device;

[0205] determining one or more ports on the computing device that are reachable from another computing device, wherein the one or more ports are determined based at least in part on the analyzing;

[0206] determining one or more routes to the one or more ports, wherein the one or more routes are determined based at least in part on the analyzing; and

[0207] A report is generated describing the one or more ports and the one or more routes.

[0208] 6. The method according to clause 5, further comprising:

[0209] One or more processes listening on the one or more ports are determined and reported, wherein the one or more processes are determined using agent software installed on the computing device.

[0210] 7. The method according to any one of clauses 5 or 6, further comprising:

[0211] One or more configuration settings that make the one or more ports reachable are determined and reported.

[0212] 8. The method according to any one of clauses 5 to 7, further comprising:

[0213] One or more corrective actions are determined and reported that, if taken, would render one or more of the ports unreachable.

[0214] 9. The method according to clause 8, further comprising:

[0215] One or more interface elements are displayed in a user interface that, if selected, result in execution of at least one of the corrective actions.

[0216] 10. A method according to any one of clauses 5 to 9, wherein the analysis is performed at least in part based on one or more queries of the network configuration data, wherein the one or more queries are expressed in a query language, and wherein the one or more queries are generated at least in part based on a set of rules.

[0217] 11. A method according to any of clauses 5 to 10, wherein the one or more ports are determined without sending packets to the one or more ports.

[0218] 12. The method according to any one of clauses 5 to 11, further comprising:

[0219] The one or more ports are verified to be reachable by sending one or more packets from another computing device to the one or more ports.

[0220] 13. A computer-readable storage medium storing program instructions, the program instructions being executable by a computer to perform:

[0221] performing an analysis of network configuration data on a network including a host computer;

[0222] determining one or more ports on the host computer that are open and reachable from another computing device, wherein the one or more ports are determined based at least in part on a result of the analyzing;

[0223] determining one or more processes listening on the one or more ports, wherein the one or more processes are determined using an agent installed on the host computer; and

[0224] A report is generated describing the one or more ports and the one or more processes.

[0225] 14. The computer-readable storage medium according to clause 13, wherein the program instructions are further executable by the computer to:

[0226] One or more processes listening on the one or more ports are determined and reported, wherein the one or more processes are determined using agent software installed on the host computer.

[0227] 15. The computer-readable storage medium according to any one of clauses 13 or 14, wherein the program instructions are further executable by a computer to:

[0228] One or more configuration settings that make the one or more ports open and reachable are determined and reported.

[0229] 16. The computer-readable storage medium according to any one of clauses 13 to 15, wherein the program instructions are further executable by a computer to:

[0230] One or more corrective actions are determined and reported, which if executed would close one or more of the ports, or render one or more of the ports unreachable.

[0231] 17. The computer-readable storage medium according to clause 16, wherein the program instructions are further executable by the computer to:

[0232] One or more interface elements are displayed in a user interface that, if selected, result in execution of at least one of the corrective actions.

[0233] 18. A computer-readable storage medium according to any one of clauses 13 to 17, wherein the analysis is performed at least in part based on one or more queries of the network configuration data, wherein the one or more queries are expressed in a query language, and wherein the one or more queries are generated at least in part based on a set of rules.

[0234] 19. The computer-readable storage medium of any of clauses 13 to 18, wherein the one or more ports are determined without sending packets to the one or more ports from another computer.

[0235] 20. The computer-readable storage medium of any of clauses 13 to 19, wherein additional one or more open and reachable ports are excluded from the report based at least in part on a whitelist of trusted locations.

[0236] The terms used in the description of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, the singular forms "one", "one" and "described" are intended to also include plural forms, unless the context clearly states otherwise. It should also be understood that the term "and / or" used herein refers to and encompasses any and all possible combinations of one or more associated listed items. It should be further understood that when used in this specification, the terms "include", "included", "comprising" and / or "comprising" specify the features, wholes, steps, operations, elements and / or components of the statement, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0237] As used herein, the term "if" may be interpreted to mean "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if [stated condition or event] is detected" may be interpreted to mean "upon determination" or "in response to determination" or "upon detecting [the condition or event]" or "in response to detecting [stated condition or event]," depending on the context.

[0238] It should be understood that although the terms first, second, etc. may be used herein to describe various components, these elements should not be limited by these terms. These terms are only used to distinguish one element from another element. For example, a first contact may be referred to as a second contact, and similarly, a second contact may be referred to as a first contact without departing from the scope of the present invention. Both the first contact and the second contact are contacts, but they are not the same contact.

[0239] Many specific details are set forth herein to provide a thorough understanding of the claimed subject matter. However, it will be appreciated by those skilled in the art that the claimed subject matter can be implemented without these specific details. In other examples, methods, devices or systems known to those skilled in the art will not be described in detail so as not to confuse the claimed subject matter. It is apparent to those skilled in the art who benefit from this disclosure that various modifications and changes may be made. The present invention is intended to include all these modifications and changes, and accordingly, the above description should be considered to be illustrative rather than restrictive.

Claims

1. A system comprising: One or more computing devices configured to implement an infrastructure provider network, the one or more computing devices configured to: creating a virtual network for the client, wherein the virtual network includes virtual machines hosted on a physical host of the infrastructure provider network; installing an agent on a physical host, wherein the agent is configured to collect data about each virtual machine; Based at least in part on the collected data, determining an open port on one of the virtual machines; and Generates a report that identifies virtual machines and port numbers of open ports.

2. The system of claim 1, wherein the infrastructure provider network is a multi-tenant provider network that hosts multiple private networks for multiple clients.

3. The system of claim 1, wherein the determination of the open ports is performed by a network security evaluator executing in the infrastructure provider network, wherein the network security evaluator is configured as a control agent.

4. The system of claim 3, wherein the network security evaluator is configured to determine the reachability of the open port from the Internet and indicate the reachability in the report.

5. The system of claim 3, wherein the network security evaluator is configured to determine a process listening on an open port based at least in part on the collected data.

6. The system of claim 3, wherein the network security evaluator is configured to determine a network protocol associated with the open port and indicate the network protocol on the report.

7. The system of claim 3, wherein the network security evaluator is configured to determine that the port number is atypical for a network protocol associated with the open port.

8. The system of claim 3, wherein the network security evaluator is configured to monitor connections to the open port and determine whether the connection represents a security threat.

9. The system of claim 3, wherein the network security evaluator is configured to determine open ports in the virtual network without providing network access to the respective virtual machines.

10. The system of claim 3, wherein the network security assessor is configured to determine one or more corrective actions regarding the open port and recommend the one or more corrective actions in the report.

11. The system of claim 10, wherein the one or more corrective actions include stopping an application associated with the open port, changing an access control list (ACL) associated with the virtual network, or changing a security group associated with the virtual network.

12. The system of claim 3, wherein the network security evaluator is configured to display the report via a graphical user interface (GUI).

13. The system of claim 12, wherein the network security evaluator is configured to service user queries regarding network configuration of the virtual network through a GUI.

14. A method comprising: Executed by one or more computing devices of the infrastructure provider network: creating a virtual network for the client, wherein the virtual network includes virtual machines hosted on a physical host of the infrastructure provider network; installing an agent on a physical host, wherein the agent is configured to collect data about each virtual machine; Based at least in part on the collected data, determining an open port on one of the virtual machines; and Generates a report that identifies virtual machines and port numbers of open ports.

15. A system comprising: One or more computing devices configured to implement a network security evaluator, wherein the network security evaluator is configured to: receiving a query from a client regarding the virtual network; Get description information about the virtual network; encoding the description information about the virtual network into an encoded description of the virtual network; parsing queries for the encoded description of the virtual network according to the virtual network rules using a constraint solver engine; and Provide the query parsing results to the client.