<?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: Use Cortex XDR to find host with ports 80,443 open in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/use-cortex-xdr-to-find-host-with-ports-80-443-open/m-p/452849#M1359</link>
    <description>&lt;P&gt;Dear Jonathon,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You cannot query active network state of hosts. Best way is doing this, as&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/192661"&gt;@bbarmanroy&lt;/a&gt;&amp;nbsp;mentioned, Action Center.&amp;nbsp;&lt;BR /&gt;You can write python script or you can execute command (netstat, ss etc) for the check current state of ports.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;with XQL, you can only query historical data. that might be either process data or firewall data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for process, you can use&lt;/P&gt;&lt;P&gt;dataset = xdr_data | field&amp;nbsp;action_local_port = "80" or&amp;nbsp;field&amp;nbsp;action_local_port = "443"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;for windows firewall, (if enabled)&lt;/P&gt;&lt;P&gt;dataset = host_firewall_events&lt;BR /&gt;| filter local_port = 443 or local_port = 80&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in case of a made a connection towards to ports, you should have telemetry data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Dec 2021 15:34:30 GMT</pubDate>
    <dc:creator>etugriceri</dc:creator>
    <dc:date>2021-12-13T15:34:30Z</dc:date>
    <item>
      <title>Use Cortex XDR to find host with ports 80,443 open</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/use-cortex-xdr-to-find-host-with-ports-80-443-open/m-p/452730#M1353</link>
      <description>&lt;P&gt;Hello -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm totally new to Cortex XDR and its XQL - though I need to find machines in our environment that have ports 80/433 open. Is this possible via XQL?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I started with these lines to see which column/s I could use for what I want to accomplish and I think it did not have it:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;dataset = xdr_data 
| limit 10&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help! Thank you&lt;/P&gt;&lt;P&gt;&lt;LI-PRODUCT title="Cortex XDR" id="Cortex_XDR"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;LI-PRODUCT title="Cortex Data Lake" id="Cortex_Data_Lake"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Dec 2021 22:10:28 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/use-cortex-xdr-to-find-host-with-ports-80-443-open/m-p/452730#M1353</guid>
      <dc:creator>JonathanYang_RX</dc:creator>
      <dc:date>2021-12-12T22:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Use Cortex XDR to find host with ports 80,443 open</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/use-cortex-xdr-to-find-host-with-ports-80-443-open/m-p/452800#M1355</link>
      <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/202673"&gt;@JonathanYang_RX&lt;/a&gt;&amp;nbsp;the data is not available, IIRC.&lt;BR /&gt;If your intention is to leverage XDR, you can write a Python script and execute it via Action Center, and parse the data for your needs.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 10:21:13 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/use-cortex-xdr-to-find-host-with-ports-80-443-open/m-p/452800#M1355</guid>
      <dc:creator>bbarmanroy</dc:creator>
      <dc:date>2021-12-13T10:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Use Cortex XDR to find host with ports 80,443 open</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/use-cortex-xdr-to-find-host-with-ports-80-443-open/m-p/452849#M1359</link>
      <description>&lt;P&gt;Dear Jonathon,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You cannot query active network state of hosts. Best way is doing this, as&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/192661"&gt;@bbarmanroy&lt;/a&gt;&amp;nbsp;mentioned, Action Center.&amp;nbsp;&lt;BR /&gt;You can write python script or you can execute command (netstat, ss etc) for the check current state of ports.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;with XQL, you can only query historical data. that might be either process data or firewall data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for process, you can use&lt;/P&gt;&lt;P&gt;dataset = xdr_data | field&amp;nbsp;action_local_port = "80" or&amp;nbsp;field&amp;nbsp;action_local_port = "443"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;for windows firewall, (if enabled)&lt;/P&gt;&lt;P&gt;dataset = host_firewall_events&lt;BR /&gt;| filter local_port = 443 or local_port = 80&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in case of a made a connection towards to ports, you should have telemetry data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 15:34:30 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/use-cortex-xdr-to-find-host-with-ports-80-443-open/m-p/452849#M1359</guid>
      <dc:creator>etugriceri</dc:creator>
      <dc:date>2021-12-13T15:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Use Cortex XDR to find host with ports 80,443 open</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/use-cortex-xdr-to-find-host-with-ports-80-443-open/m-p/452951#M1361</link>
      <description>&lt;P&gt;Dears,&amp;nbsp;&lt;/P&gt;&lt;P&gt;contributing with my 5 cents.&amp;nbsp;&lt;/P&gt;&lt;P&gt;for the command to run&lt;/P&gt;&lt;P&gt;nmap -p 80,443 192.168.1.0/24&amp;nbsp;&lt;/P&gt;&lt;P&gt;or also&lt;/P&gt;&lt;P&gt;nmap&amp;nbsp;-p 80,443 192.168.1.*&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Will scan your 80,443 ports on the whole 192.168.1.X network with /24 network mask, you will be able to see which ones are open from the output of that command and if on top of that you can see the traffic on the defender fw&amp;nbsp; as &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/179256"&gt;@etugriceri&lt;/a&gt; shown on his XQL query, you could check also which ones had traffic (even due to your nmap) on the mentioned ports.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Take into account that with this commands you will see if the ports are open (not if there was traffic previous to the nmap command)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KR,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Luis&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 22:09:35 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/use-cortex-xdr-to-find-host-with-ports-80-443-open/m-p/452951#M1361</guid>
      <dc:creator>eluis</dc:creator>
      <dc:date>2021-12-13T22:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Use Cortex XDR to find host with ports 80,443 open</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/use-cortex-xdr-to-find-host-with-ports-80-443-open/m-p/455219#M1401</link>
      <description>&lt;P&gt;Hello -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies for late response. Once the script runs, will the result be available in xdr_data dataset or it will be locally available on each target machine?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 10:50:43 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/use-cortex-xdr-to-find-host-with-ports-80-443-open/m-p/455219#M1401</guid>
      <dc:creator>JonathanYang_RX</dc:creator>
      <dc:date>2021-12-23T10:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Use Cortex XDR to find host with ports 80,443 open</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/use-cortex-xdr-to-find-host-with-ports-80-443-open/m-p/455220#M1402</link>
      <description>&lt;P&gt;Hello Emre -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for these suggestions, though I could not see&amp;nbsp;&lt;SPAN&gt;action_local_port = "80" or&amp;nbsp;field&amp;nbsp;action_local_port = "443".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried using Firewall data and I think it's easier, though unfortunately we haven't deployed/enabled the firewall feature across our estate.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 10:53:03 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/use-cortex-xdr-to-find-host-with-ports-80-443-open/m-p/455220#M1402</guid>
      <dc:creator>JonathanYang_RX</dc:creator>
      <dc:date>2021-12-23T10:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Use Cortex XDR to find host with ports 80,443 open</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/use-cortex-xdr-to-find-host-with-ports-80-443-open/m-p/455384#M1404</link>
      <description>&lt;P&gt;Dear Jonathan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Scripts which is located in Action Center is not updating xdr_data. You can only search data from that dataset, if an application establish TCP connection via that ports. (not listen).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thats why you can use execute_command script with "netstat -a"&lt;/P&gt;&lt;P&gt;or you can develop your own python script for getting that information from remote systems.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Dec 2021 14:04:23 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/use-cortex-xdr-to-find-host-with-ports-80-443-open/m-p/455384#M1404</guid>
      <dc:creator>etugriceri</dc:creator>
      <dc:date>2021-12-24T14:04:23Z</dc:date>
    </item>
  </channel>
</rss>

