<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: RQL -  Get if there is a ip other than certain ip in the rule and 22 port is open in Prisma Cloud Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/rql-get-if-there-is-a-ip-other-than-certain-ip-in-the-rule-and/m-p/540767#M935</link>
    <description>&lt;P&gt;Hi Everyone,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This query works for that case ;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;config from cloud.resource where cloud.type = 'gcp' AND api.name = 'gcloud-compute-firewall-rules-list' AND json.rule = disabled is false and direction equals INGRESS and (allowed[?any( (ports is member of (22) or ports contains _Port.inRange(22,22) or ports does not exist) and (IPProtocol contains tcp or IPProtocol contains "all" ))] exists) and (sourceRanges[&lt;/SPAN&gt;&lt;SPAN&gt;*&lt;/SPAN&gt;&lt;SPAN&gt;] size does not equal 5 or (sourceRanges[&lt;/SPAN&gt;&lt;SPAN&gt;*&lt;/SPAN&gt;&lt;SPAN&gt;] does not contain "MY IP1" or sourceRanges[&lt;/SPAN&gt;&lt;SPAN&gt;*&lt;/SPAN&gt;&lt;SPAN&gt;] does not contain "MY IP2" or sourceRanges[&lt;/SPAN&gt;&lt;SPAN&gt;*&lt;/SPAN&gt;&lt;SPAN&gt;] does not contain "MY IP3" or sourceRanges[&lt;/SPAN&gt;&lt;SPAN&gt;*&lt;/SPAN&gt;&lt;SPAN&gt;] does not contain "MY IP4" or sourceRanges[&lt;/SPAN&gt;&lt;SPAN&gt;*&lt;/SPAN&gt;&lt;SPAN&gt;] does not contain "MY IP5" ))&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Kind Regards&lt;/DIV&gt;
&lt;DIV&gt;Seyma Nur&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Tue, 02 May 2023 12:33:17 GMT</pubDate>
    <dc:creator>SMutlu</dc:creator>
    <dc:date>2023-05-02T12:33:17Z</dc:date>
    <item>
      <title>RQL -  Get if there is a ip other than certain ip in the rule and 22 port is open</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/rql-get-if-there-is-a-ip-other-than-certain-ip-in-the-rule-and/m-p/538587#M923</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am looking for some support for the RQL.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am trying to detect if any firewall rule on GCP allows SSH port 22 traffic from except the PSM IP addresses. I developed some queries but it's not able to catch every scenario. I am trying to develop a query that should check &lt;STRONG&gt;exact match&lt;/STRONG&gt; with the IP addresses that I've write. Need your comments for this use-case. Thank you !&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example Query :&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;config from cloud.resource where cloud.type = 'gcp' AND api.name = 'gcloud-compute-firewall-rules-list' AND json.rule = disabled is false and direction equals INGRESS and sourceRanges[*] is not member of (IP Addresses separeted with comma) and allowed[?any(ports is member of (22) or ports contains _Port.inRange(22,22) and (ports does not exist and (IPProtocol contains tcp)))] exists&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Kind Regards&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 Apr 2023 10:38:07 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/rql-get-if-there-is-a-ip-other-than-certain-ip-in-the-rule-and/m-p/538587#M923</guid>
      <dc:creator>SMutlu</dc:creator>
      <dc:date>2023-04-13T10:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: RQL -  Get if there is a ip other than certain ip in the rule and 22 port is open</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/rql-get-if-there-is-a-ip-other-than-certain-ip-in-the-rule-and/m-p/540767#M935</link>
      <description>&lt;P&gt;Hi Everyone,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This query works for that case ;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;config from cloud.resource where cloud.type = 'gcp' AND api.name = 'gcloud-compute-firewall-rules-list' AND json.rule = disabled is false and direction equals INGRESS and (allowed[?any( (ports is member of (22) or ports contains _Port.inRange(22,22) or ports does not exist) and (IPProtocol contains tcp or IPProtocol contains "all" ))] exists) and (sourceRanges[&lt;/SPAN&gt;&lt;SPAN&gt;*&lt;/SPAN&gt;&lt;SPAN&gt;] size does not equal 5 or (sourceRanges[&lt;/SPAN&gt;&lt;SPAN&gt;*&lt;/SPAN&gt;&lt;SPAN&gt;] does not contain "MY IP1" or sourceRanges[&lt;/SPAN&gt;&lt;SPAN&gt;*&lt;/SPAN&gt;&lt;SPAN&gt;] does not contain "MY IP2" or sourceRanges[&lt;/SPAN&gt;&lt;SPAN&gt;*&lt;/SPAN&gt;&lt;SPAN&gt;] does not contain "MY IP3" or sourceRanges[&lt;/SPAN&gt;&lt;SPAN&gt;*&lt;/SPAN&gt;&lt;SPAN&gt;] does not contain "MY IP4" or sourceRanges[&lt;/SPAN&gt;&lt;SPAN&gt;*&lt;/SPAN&gt;&lt;SPAN&gt;] does not contain "MY IP5" ))&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Kind Regards&lt;/DIV&gt;
&lt;DIV&gt;Seyma Nur&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 02 May 2023 12:33:17 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/rql-get-if-there-is-a-ip-other-than-certain-ip-in-the-rule-and/m-p/540767#M935</guid>
      <dc:creator>SMutlu</dc:creator>
      <dc:date>2023-05-02T12:33:17Z</dc:date>
    </item>
  </channel>
</rss>

