> For the complete documentation index, see [llms.txt](https://docs.prismacloud.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.prismacloud.io/content-collections/administration/network-security/investigate-network-exposure-on-prisma-cloud.md).

# Investigate Network Exposure on Prisma Cloud

Prisma Cloud ingests the relevant network security components when you onboard your cloud account and enables you to investigate the assets in your cloud environment for net effective reachability. You do not need any new IAM permissions because they are ingested when you onboard your cloud account.

To build network exposure queries, navigate to the **Investigate** page and run a [query](/content-collections/search-and-investigate/network-queries/network-config-query-examples.md) using `config from network where`. For example, to get a list of AWS instances that are reachable from any untrust Internet IP, enter the following query:

```
`config from network where source.network = UNTRUST_INTERNET and dest.resource.type = 'Instance' and dest.cloud.type = 'AWS' and protocol.ports in ('tcp/0:79','tcp/81:442','tcp/444:65535') and effective.action = 'Allow'`
```

<figure><img src="/files/ILSM5unoGmZPkgpJbT4a" alt="cna 1"><figcaption></figcaption></figure>

The results table displays the metadata related to each of the assets. Click the **i** icon (**Network Path**) under the **Actions** column to view the detailed **Network Path Analysis**, which shows the path that the network traffic would take if traffic were to be initiated from Source A to Destination B. Every hop with a green bubble indicates that the traffic can move forward (**Allow** traffic) from one point to the next. A hop with a red bubble indicates that the traffic cannot move forward (**Deny** traffic).

<figure><img src="/files/xi34lGYkQS1d3WkxFC0X" alt="cna 2"><figcaption></figcaption></figure>

A **View Details** icon is displayed wherever there is a routing or security policy associated with the hop. Click the icon to get more information about the routing-table configuration or the security policy that is either allowing or denying the traffic.

<figure><img src="/files/TGzRmNNZd7Gd2NhmLopV" alt="cna 3"><figcaption></figcaption></figure>

Here are examples for Azure and GCP:

* To get a list of Azure VMs that are reachable from the Internet:

  ```
  config from network where source.network = '0.0.0.0/0' and address.match.criteria = 'full_match' and dest.resource.type = 'Instance' and dest.cloud.type = 'Azure' and dest.resource.state = 'Active'
  ```

  <figure><img src="/files/L893Q8nCl2Bc86x658rB" alt="cna 5"><figcaption></figcaption></figure>
* To get a list of GCP instances that are reachable from the Internet:

  ```
  config from network where source.network = '0.0.0.0/0' and address.match.criteria = 'full_match' and dest.resource.type = 'Instance' and dest.cloud.type = 'GCP' and dest.resource.state = 'Active'
  ```

  <figure><img src="/files/xzQWJmILP1Yg9rhdJTlB" alt="cna 4"><figcaption></figcaption></figure>

Learn how to [create a network exposure policy](/content-collections/governance/create-a-network-policy.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.prismacloud.io/content-collections/administration/network-security/investigate-network-exposure-on-prisma-cloud.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
