<?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: XQL query to add a widget to know the Protection Paused more than 30 days. in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-to-add-a-widget-to-know-the-protection-paused-more/m-p/588917#M6797</link>
    <description>&lt;P&gt;Sorry to jump in here, I tried this query, but it seems I am not able to get any results. I reproduced this by pausing an agent manually in the Endpoints view and then waited for 10 Minutes. If I understood your query it should display paused agents within the last 30 Minutes so it should pop up. So is it possible to read out the corresponding description given? Whenever you pause an agent, you can enter a comment, and it would be nice to see who paused it and what comment was entered.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jun 2024 08:08:40 GMT</pubDate>
    <dc:creator>N.Ernst</dc:creator>
    <dc:date>2024-06-06T08:08:40Z</dc:date>
    <item>
      <title>XQL query to add a widget to know the Protection Paused more than 30 days.</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-to-add-a-widget-to-know-the-protection-paused-more/m-p/534800#M3854</link>
      <description>&lt;P&gt;Dear Team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to write an XQL query to add a widget to know the&amp;nbsp;&lt;SPAN&gt;Protection Paused more than 30 days. The Query is as follows, can someone help me to get the accurate results.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;config timeframe = 30d&lt;BR /&gt;| dataset = endpoints&lt;BR /&gt;| filter manual_protection_pause != "PROTECTION_ACTIVE"&lt;BR /&gt;| join type = left (dataset = management_auditing | filter description contains "Protection Pause action initiated"| fields description) as mgmt mgmt.description contains endpoint_name&lt;BR /&gt;| comp count(endpoint_id) as Tally by endpoint_name&lt;BR /&gt;| filter Tally &amp;lt; 2&lt;BR /&gt;| view graph type = single subtype = standard yaxis = Tally&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 05:08:58 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-to-add-a-widget-to-know-the-protection-paused-more/m-p/534800#M3854</guid>
      <dc:creator>VenuK</dc:creator>
      <dc:date>2023-03-17T05:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: XQL query to add a widget to know the Protection Paused more than 30 days.</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-to-add-a-widget-to-know-the-protection-paused-more/m-p/534821#M3859</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/239161"&gt;@VenuK&lt;/a&gt;&amp;nbsp;Unfortunately, I don't think there's a way to get this done accurately as the description field may contain text like "Protection Pause action initiated on laptop001 and 1 other endpoint". If the endpoint name is not specifically listed in the description, it won't accurately identify the endpoint in the description.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd recommend you to create some automation with XDR API's to retrieve the data of endpoints on a daily/weekly basis and compare historically how long an endpoint has remained in an unprotected status.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 08:42:05 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-to-add-a-widget-to-know-the-protection-paused-more/m-p/534821#M3859</guid>
      <dc:creator>bbarmanroy</dc:creator>
      <dc:date>2023-03-17T08:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: XQL query to add a widget to know the Protection Paused more than 30 days.</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-to-add-a-widget-to-know-the-protection-paused-more/m-p/534830#M3861</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/192661"&gt;@bbarmanroy&lt;/a&gt;&amp;nbsp;, Thank you for the valuable time and reply, can you help me with tuning the query, as I am still a rookie in XQL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 10:28:57 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-to-add-a-widget-to-know-the-protection-paused-more/m-p/534830#M3861</guid>
      <dc:creator>VenuK</dc:creator>
      <dc:date>2023-03-17T10:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: XQL query to add a widget to know the Protection Paused more than 30 days.</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-to-add-a-widget-to-know-the-protection-paused-more/m-p/534944#M3873</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/239161"&gt;@VenuK&lt;/a&gt;.,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I came up with this XQL query, see if it is something you could use,&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;dataset=endpoints &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| fields endpoint_id, endpoint_name, manual_protection_pause as all_endpoints_protection_pause, endpoint_status &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| filter all_endpoints_protection_pause = "PROTECTION_PAUSED" and endpoint_status in (ENUM.CONNECTED, ENUM.DISCONNECTED) // You could remove ENUM.DISCONNECTED&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| join type=left(dataset = agent_auditing | filter agent_auditing_subtype = ENUM.AGENT_AUDIT_MANUAL_PROTECTION_STATUS | fields description, agent_auditing_subtype, endpoint_id, received_time ) as aal aal.endpoint_id = endpoint_id &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| filter timestamp_diff(current_time(), received_time , "MINUTE") &amp;gt; 30 // You can change MINUTE by HOUR or DAY. In this example, I added a MINUTE to showcase the result&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would not recommend to look for machines with Protectection paused for &amp;gt;= 30 days. It would be better to know about this as soon as possible. Therefore, I would recommend adding this XQL query to a &lt;STRONG&gt;correlation rule&lt;/STRONG&gt; to generate alerts whenever timestamp_diff is &amp;gt;= 30 minutes or so.&amp;nbsp; You can then create notifications filtering on the correlation alert.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Mar 2023 15:32:43 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-to-add-a-widget-to-know-the-protection-paused-more/m-p/534944#M3873</guid>
      <dc:creator>fmoixsante</dc:creator>
      <dc:date>2023-03-18T15:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: XQL query to add a widget to know the Protection Paused more than 30 days.</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-to-add-a-widget-to-know-the-protection-paused-more/m-p/534987#M3881</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/64736"&gt;@fmoixsante&lt;/a&gt;&amp;nbsp;for the query, I used it, but it did not give me any results, so I tired the blow. Kindly suggest.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider vw b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"&gt;config timeframe = 30D // The query cannot be created for more than 30 days hence limited to 30 days as per requirement&lt;BR /&gt;|dataset=endpoints&lt;BR /&gt;| join type = left (dataset = management_auditing | filter description contains "Paused "| fields description) as mgmt mgmt.description contains endpoint_status&amp;nbsp;&lt;BR /&gt;| fields endpoint_id, endpoint_name, manual_protection_pause as all_endpoints_protection_pause, endpoint_status&lt;BR /&gt;| filter all_endpoints_protection_pause = "PROTECTION_PAUSED" and endpoint_status in (ENUM.CONNECTED )&amp;nbsp;&lt;BR /&gt;|comp count(endpoint_name) as tally by endpoint_name&lt;BR /&gt;|filter tally &amp;lt;2&lt;BR /&gt;| view graph type = single subtype = standard yaxis = Tally&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 03:52:16 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-to-add-a-widget-to-know-the-protection-paused-more/m-p/534987#M3881</guid>
      <dc:creator>VenuK</dc:creator>
      <dc:date>2023-03-20T03:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: XQL query to add a widget to know the Protection Paused more than 30 days.</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-to-add-a-widget-to-know-the-protection-paused-more/m-p/535041#M3889</link>
      <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/239161"&gt;@VenuK&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The XQL query I provided to you, will look for endpoints with endpoint "&lt;STRONG&gt;manual_protection_pause&lt;/STRONG&gt;" = "&lt;STRONG&gt;PROTECTION_PAUSED&lt;/STRONG&gt;". If the query does not bring out any results, then that means that, at that moment, any of your enpoints are &lt;STRONG&gt;NOT&lt;/STRONG&gt; on "&lt;STRONG&gt;PROTECTION_PAUSED&lt;/STRONG&gt;".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The purpose of my query is that as soon as any of your endpoints are on "&lt;STRONG&gt;PROTECTION_PAUSED&lt;/STRONG&gt;" and they have been in that state for more than 30 minutes based on the agent_audit_log dataset, and you add this query to a&lt;STRONG&gt; correlation rule&lt;/STRONG&gt;, you will get an alert.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not really understand the 30D timeframe, if a machine is on "&lt;STRONG&gt;PROTECTION_PAUSED&lt;/STRONG&gt;" for that long, that is a huge issue as a security risk. I would recommend checking all of your endpoints at this time, and if there are any that are on "&lt;STRONG&gt;PROTECTION_PAUSED&lt;/STRONG&gt;", investigate why, and make sure to activate protections as soon as possible.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Moving forward, use the provided XQL query to get alert notifications, via &lt;STRONG&gt;correlation rule&lt;/STRONG&gt;, whenever an endpoint is&amp;nbsp;on "&lt;STRONG&gt;PROTECTION_PAUSED&lt;/STRONG&gt;" for too long.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 10:45:54 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-to-add-a-widget-to-know-the-protection-paused-more/m-p/535041#M3889</guid>
      <dc:creator>fmoixsante</dc:creator>
      <dc:date>2023-03-20T10:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: XQL query to add a widget to know the Protection Paused more than 30 days.</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-to-add-a-widget-to-know-the-protection-paused-more/m-p/588917#M6797</link>
      <description>&lt;P&gt;Sorry to jump in here, I tried this query, but it seems I am not able to get any results. I reproduced this by pausing an agent manually in the Endpoints view and then waited for 10 Minutes. If I understood your query it should display paused agents within the last 30 Minutes so it should pop up. So is it possible to read out the corresponding description given? Whenever you pause an agent, you can enter a comment, and it would be nice to see who paused it and what comment was entered.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 08:08:40 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-to-add-a-widget-to-know-the-protection-paused-more/m-p/588917#M6797</guid>
      <dc:creator>N.Ernst</dc:creator>
      <dc:date>2024-06-06T08:08:40Z</dc:date>
    </item>
  </channel>
</rss>

