> 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](https://docs.prismacloud.io/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="https://3990409212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyqPwsbMSaogAot23rTIu%2Fuploads%2Fgit-blob-bb5e0314eda4dac5e07a5dd09b908871e03fa36f%2Fcna-1.png?alt=media" 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="https://3990409212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyqPwsbMSaogAot23rTIu%2Fuploads%2Fgit-blob-d34584fa68314cbf3aefa9eb95144bef33545872%2Fcna-2.png?alt=media" 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="https://3990409212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyqPwsbMSaogAot23rTIu%2Fuploads%2Fgit-blob-4ffc6963cea5f2c6af58de9745d93e4d23da91b9%2Fcna-3.png?alt=media" 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="https://3990409212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyqPwsbMSaogAot23rTIu%2Fuploads%2Fgit-blob-b7678bffe7777ae19ea002748dd9343e5618054a%2Fcna-5.png?alt=media" 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="https://3990409212-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyqPwsbMSaogAot23rTIu%2Fuploads%2Fgit-blob-524d0bc6306c7012291c02558274728e57ef0b6a%2Fcna-4.png?alt=media" alt="cna 4"><figcaption></figcaption></figure>

Learn how to [create a network exposure policy](https://docs.prismacloud.io/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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
