RQL query to detect external port exposure across AWS, GCP, Azure

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RQL query to detect external port exposure across AWS, GCP, Azure

L0 Member

Hello Everyone, 

 

Wanting to see if anyone has queries for each cloud provider in relation to checking for external exposure to ports such as 443, 22, 3389, etc..

 

We would like to be able to see what ports/endpoints we have open to the world from a  0.0.0.0/0 context. 

 

Many thanks in advance!

1 accepted solution

Accepted Solutions

L2 Linker

Hello @JVasquez5 

 

I think you can use this queries :

 

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' )

 

You can update the dest.cloud.type with the cloud account you want to test and also add new ports in protocol.ports parameter.

 

I hope this helps you,

 

Jean-Baptiste

JB

View solution in original post

2 REPLIES 2

L2 Linker

Hello @JVasquez5 

 

I think you can use this queries :

 

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' )

 

You can update the dest.cloud.type with the cloud account you want to test and also add new ports in protocol.ports parameter.

 

I hope this helps you,

 

Jean-Baptiste

JB

L4 Transporter

Q1: Wanting to see if anyone has queries for each cloud provider in relation to checking for external exposure to ports such as 443, 22, 3389, etc..
We would like to be able to see what ports/endpoints we have open to the world from a 0.0.0.0/0 context.
A1: Here is the link to the queries to review and build from there - https://docs.paloaltonetworks.com/prisma/prisma-cloud/prisma-cloud-rql-reference/rql-reference/rql-e...

None
  • 1 accepted solution
  • 2887 Views
  • 2 replies
  • 1 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!