<?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: Children of Office processes that made more than 5 connections in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/children-of-office-processes-that-made-more-than-5-connections/m-p/515887#M2894</link>
    <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/142551"&gt;@neelrohit&lt;/a&gt;&amp;nbsp;!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tweaked the Rule.&amp;nbsp;&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, 24 Sep 2022 22:03:40 GMT</pubDate>
    <dc:creator>RFeyertag</dc:creator>
    <dc:date>2022-09-24T22:03:40Z</dc:date>
    <item>
      <title>Children of Office processes that made more than 5 connections</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/children-of-office-processes-that-made-more-than-5-connections/m-p/514342#M2785</link>
      <description>&lt;P&gt;Hello dear community members!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;with this correlation rule we get a lot of FPs. I have allready find a way to exclude the actor_process_command_line, but what about the FP IP-Adresses which are OK?&lt;/P&gt;
&lt;P&gt;Because in case of office updates we get the alerts, which communicate to legitime destinations.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How would you make this exclusions and will they make sense?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dataset = xdr_data // Using the xdr dataset&lt;BR /&gt;| filter event_type = ENUM.NETWORK and lowercase(causality_actor_process_image_name) in ("winword.exe", "excel.exe", "powerpnt.exe") and causality_actor_process_image_name != actor_process_image_name and actor_process_command_line not contains&lt;BR /&gt;" --single-argument &lt;A href="https://support" target="_blank"&gt;https://support&lt;/A&gt;" // Filtering for cases where the CGO is an office process and is not doing the network connections on its own&lt;BR /&gt;| fields agent_hostname as host_name, causality_actor_process_image_path as CGO_Path, causality_actor_process_command_line as CGO_CMD, causality_actor_primary_username as Username, actor_process_image_path as child_path, actor_process_command_line as child_cmd, actor_process_os_pid as child_pid, actor_process_image_sha256 as child_sha256, event_id, actor_process_instance_id as instance_id, agent_id, actor_process_execution_time as start_date, action_remote_ip // Selecting notable fields&lt;BR /&gt;| comp count(event_id) as Counter by host_name, CGO_Path, CGO_CMD, Username, child_path, child_cmd, child_pid, child_sha256, instance_id, agent_id, start_date, action_remote_ip // Counting how many connections were done by the child process&lt;BR /&gt;| filter Counter &amp;gt;= 5 // Filtering for more than 5 connections&lt;BR /&gt;| sort desc Counter // Sorting in descending order&lt;BR /&gt;|join (dataset = xdr_data | filter event_type = ENUM.FILE and (event_sub_type = ENUM.FILE_CREATE_NEW or event_sub_type = ENUM.FILE_WRITE) and lowercase(action_file_extension) in ("exe","dll","sys") | fields actor_process_instance_id as instance_id, agent_id, action_file_path) as file instance_id = file.instance_id and agent_id = file.agent_id // Joining for file create or write events of binary files by the same process (by the unique instance ID and agent id)&lt;BR /&gt;| dedup start_date, host_name, CGO_Path, CGO_CMD, Username, child_path, child_cmd, child_pid, child_sha256, Counter, action_file_path, action_remote_ip by desc _time // Dedupping results since there could be multiple writes to the same file&lt;BR /&gt;| fields start_date, host_name, CGO_Path, CGO_CMD, Username, child_path, child_cmd, child_pid, child_sha256, Counter, action_file_path as File_Path, action_remote_ip// Showing fields of interest&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;action_remote_ip was my first step for exclusions for IP-Adresses.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And why did PA choose 5 connections?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RFeyertag_1-1662671896478.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/43750iE022704CD2DE13EE/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="RFeyertag_1-1662671896478.png" alt="RFeyertag_1-1662671896478.png" /&gt;&lt;/span&gt;&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>Thu, 08 Sep 2022 21:19:59 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/children-of-office-processes-that-made-more-than-5-connections/m-p/514342#M2785</guid>
      <dc:creator>RFeyertag</dc:creator>
      <dc:date>2022-09-08T21:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Children of Office processes that made more than 5 connections</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/children-of-office-processes-that-made-more-than-5-connections/m-p/514395#M2795</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;Thank you for writing to live community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you mentioned that this is a correlation rule created, this has been user created and whatever parameters are supplied here would be adhered to. In this case, you can create either create exclusions for alerts with false positive IP addresses so that Cortex XDR suppresses alerts and events of FPs within the same rule, without you having to tune out this correlation rule all the time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively, you can think about adding a filter for not including the IPs and URLs listed in the ranges for&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/microsoft-365/enterprise/urls-and-ip-address-ranges?view=o365-worldwide" target="_self"&gt;Microsoft Office 365 URLs and IP address ranges&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;This should be done on the correlation rule itself.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On your query for this rule looking up for more than 5 connections is because of the command line in the query itself:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;| filter Counter &amp;gt;= 5 // Filtering for more than 5 connections&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can choose to tweak this as per your choice.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 08:01:38 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/children-of-office-processes-that-made-more-than-5-connections/m-p/514395#M2795</guid>
      <dc:creator>neelrohit</dc:creator>
      <dc:date>2022-09-09T08:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Children of Office processes that made more than 5 connections</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/children-of-office-processes-that-made-more-than-5-connections/m-p/515887#M2894</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/142551"&gt;@neelrohit&lt;/a&gt;&amp;nbsp;!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tweaked the Rule.&amp;nbsp;&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, 24 Sep 2022 22:03:40 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/children-of-office-processes-that-made-more-than-5-connections/m-p/515887#M2894</guid>
      <dc:creator>RFeyertag</dc:creator>
      <dc:date>2022-09-24T22:03:40Z</dc:date>
    </item>
  </channel>
</rss>

