<?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: Visualize Running processes through XQL and send alert? in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/visualize-running-processes-through-xql-and-send-alert/m-p/522050#M3173</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/190671"&gt;@RFeyertag&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can utilize the "extract_time" function on top of the query mentioned to achieve your desired alert outside of working hours. Working with the previous query:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;dataset = xdr_data&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;| event_type = ENUM.PROCESS //or ENUM.PROCESS.START for instances where the process is started&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;| filter action_process_image_name ~= “openssl” //openssl filter&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;| alter timeOfDay = extract_time(_time, "HOUR") //Extract the "Hour" unit value&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;| filter timeOfDay &amp;lt; 9 or timeOfDay &amp;gt; 17 //Example filter for process usage/start outside of example working hours.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;| fields timeOfDay //You can add any additional fields to this section to visualize your output&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can further use the resources above to pivot toward a potential BIOC or Correlation rule.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Nov 2022 14:42:34 GMT</pubDate>
    <dc:creator>mfakhouri</dc:creator>
    <dc:date>2022-11-22T14:42:34Z</dc:date>
    <item>
      <title>Visualize Running processes through XQL and send alert?</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/visualize-running-processes-through-xql-and-send-alert/m-p/520387#M3105</link>
      <description>&lt;P&gt;Hello dear community!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is it possible to visualize through XQL a prozess which was not terminated and is still running?&lt;/P&gt;
&lt;P&gt;In the causality view it is visualized, but I would need it to create a alert.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If a special process is still running, get a mail through correlation rule or bioc rule.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What do you say? Is that possible?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rob&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 20:23:03 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/visualize-running-processes-through-xql-and-send-alert/m-p/520387#M3105</guid>
      <dc:creator>RFeyertag</dc:creator>
      <dc:date>2022-11-04T20:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Visualize Running processes through XQL and send alert?</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/visualize-running-processes-through-xql-and-send-alert/m-p/520648#M3122</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Rob,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This workflow is possible utilizing several components in Cortex XDR.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The ENUM.PROCESS event type is able to reveal information about process usage through XQL. This can be accessed in the Query Builder with:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;dataset = xdr_data&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;| event_type = ENUM.PROCESS&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can then add on to this preset to gather additional information depending on which process you would like to access. For example, to search for instances of OpenSSL process usage, you can add on to the query:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;| filter action_process_image_name ~= “openssl”&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;A Correlation Rule or BIOC can then be defined with the newly created XQL query. This can be performed for either under Detection Rules -&amp;gt; Correlations/BIOC -&amp;gt; +Add Correlation/BIOC.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;By navigating to the Notification Configuration, (Configurations -&amp;gt; General -&amp;gt; Notifications) a new Notification Forwarding Configuration can be made to be notified of these specific alerts via email. Once you select “Add Forwarding Configuration” and add a name and log type (which would be alert in your case), an alert scope can be defined. With filters, you can define the scope to include alerts that fall under your Correlation Rule or BIOC created.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope that helps!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;References:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Create a Correlation Rule&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://docs.paloaltonetworks.com/cortex/cortex-xdr/cortex-xdr-pro-admin/investigation-and-response/cortex-xdr-indicators/working-with-correlation-rules/create-a-correlation-rule" target="_blank"&gt;https://docs.paloaltonetworks.com/cortex/cortex-xdr/cortex-xdr-pro-admin/investigation-and-response/cortex-xdr-indicators/working-with-correlation-rules/create-a-correlation-rule&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Create a BIOC Rule&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://docs.paloaltonetworks.com/cortex/cortex-xdr/cortex-xdr-pro-admin/investigation-and-response/cortex-xdr-indicators/working-with-biocs/create-a-bioc-rule" target="_blank"&gt;https://docs.paloaltonetworks.com/cortex/cortex-xdr/cortex-xdr-pro-admin/investigation-and-response/cortex-xdr-indicators/working-with-biocs/create-a-bioc-rule&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Create a Notification Forwarding Configuration&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://docs.paloaltonetworks.com/cortex/cortex-xdr/cortex-xdr-pro-admin/logs/create-notifications" target="_blank"&gt;https://docs.paloaltonetworks.com/cortex/cortex-xdr/cortex-xdr-pro-admin/logs/create-notifications&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 14:25:50 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/visualize-running-processes-through-xql-and-send-alert/m-p/520648#M3122</guid>
      <dc:creator>mfakhouri</dc:creator>
      <dc:date>2022-11-08T14:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Visualize Running processes through XQL and send alert?</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/visualize-running-processes-through-xql-and-send-alert/m-p/521790#M3167</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/223246"&gt;@mfakhouri&lt;/a&gt;,&amp;nbsp;no&amp;nbsp; it doens't help! I just wan't the actual running processes between time a and time b.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Like somebody in the office forgot to close the TeamViewer QS.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alert: Process still running, after workhours, pc still on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rob&lt;/P&gt;</description>
      <pubDate>Sat, 19 Nov 2022 00:37:34 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/visualize-running-processes-through-xql-and-send-alert/m-p/521790#M3167</guid>
      <dc:creator>RFeyertag</dc:creator>
      <dc:date>2022-11-19T00:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Visualize Running processes through XQL and send alert?</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/visualize-running-processes-through-xql-and-send-alert/m-p/522050#M3173</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/190671"&gt;@RFeyertag&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can utilize the "extract_time" function on top of the query mentioned to achieve your desired alert outside of working hours. Working with the previous query:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;dataset = xdr_data&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;| event_type = ENUM.PROCESS //or ENUM.PROCESS.START for instances where the process is started&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;| filter action_process_image_name ~= “openssl” //openssl filter&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;| alter timeOfDay = extract_time(_time, "HOUR") //Extract the "Hour" unit value&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;| filter timeOfDay &amp;lt; 9 or timeOfDay &amp;gt; 17 //Example filter for process usage/start outside of example working hours.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;| fields timeOfDay //You can add any additional fields to this section to visualize your output&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can further use the resources above to pivot toward a potential BIOC or Correlation rule.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 14:42:34 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/visualize-running-processes-through-xql-and-send-alert/m-p/522050#M3173</guid>
      <dc:creator>mfakhouri</dc:creator>
      <dc:date>2022-11-22T14:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Visualize Running processes through XQL and send alert?</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/visualize-running-processes-through-xql-and-send-alert/m-p/523218#M3216</link>
      <description>&lt;P&gt;so as I understand, you get these informations only when the process does something?&lt;/P&gt;
&lt;P&gt;But, what if, a person forgets to close TV QS? How can I see the running process?&lt;/P&gt;
&lt;P&gt;In case of an incident, there you have the (still running) symbol. Is it possible to get this into the xql query?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rob&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2022 22:44:37 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/visualize-running-processes-through-xql-and-send-alert/m-p/523218#M3216</guid>
      <dc:creator>RFeyertag</dc:creator>
      <dc:date>2022-12-03T22:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Visualize Running processes through XQL and send alert?</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/visualize-running-processes-through-xql-and-send-alert/m-p/523722#M3245</link>
      <description>&lt;P&gt;Hi RFeyertag,&lt;BR /&gt;&lt;BR /&gt;As it relates to process events collected, XDR logs the start and stop actions. So building off of what&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/223246"&gt;@mfakhouri&lt;/a&gt;&amp;nbsp;provided, you could add filtering to remove any process start event that also has an existing process stop event for the same time period, based off of the process ID (see example query below), so in theory, the remaining logs are process instances that have been started but not stopped for the given time window.&lt;BR /&gt;&lt;BR /&gt;One other thing to keep in mind is the &lt;EM&gt;extract_time&lt;/EM&gt; function is going to return a value in UTC, so when adding your filtering conditions you would want to keep that in mind to make sure the values you define match up to your organizations work hours.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;dataset = xdr_data&lt;/P&gt;
&lt;P&gt;|filter event_type = ENUM.PROCESS and event_sub_type = ENUM.PROCESS_START&lt;/P&gt;
&lt;P&gt;| alter timeOfDay = extract_time(_time, "HOUR")&lt;/P&gt;
&lt;P&gt;| filter timeOfDay &amp;lt; 9 or timeOfDay &amp;gt; 17&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;//Using the "not in" operator, I have defined almost the exact same query as above, except changed the event_sub_type to "stop". So this filter will only return events for process ID's that don't have a corresponding process stop event.&lt;BR /&gt;|filter action_process_os_pid not in(dataset = xdr_data|filter event_type = ENUM.PROCESS and event_sub_type = ENUM.PROCESS_STOP| alter timeOfDay = extract_time(_time, "HOUR")| filter timeOfDay &amp;lt; 9 or timeOfDay &amp;gt; 17 |fields action_process_os_pid)&lt;/P&gt;
&lt;P&gt;| fields agent_hostname, agent_ip_addresses, action_process_image_path&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Ben&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 16:55:03 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/visualize-running-processes-through-xql-and-send-alert/m-p/523722#M3245</guid>
      <dc:creator>bbucao</dc:creator>
      <dc:date>2022-12-09T16:55:03Z</dc:date>
    </item>
  </channel>
</rss>

