<?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 USB drive Alert in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/usb-drive-alert/m-p/1000224#M7669</link>
    <description>&lt;P class="lia-align-justify"&gt;kindly we need your support, I want to get alert when a USB drive&lt;SPAN&gt;&amp;nbsp;is connected to workstation and not blocked by Symantec AV.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;I have tried several times with correlation rule, I found XQL query very effective, and it is as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-SPOILER&gt;config case_sensitive = false&lt;BR /&gt;| preset = device_control &lt;BR /&gt;| filter event_sub_type = ENUM.MOUNT_DRIVE_MOUNT&lt;BR /&gt;| fields agent_hostname, _time as mount_time, action_device_bus_type, action_device_class_name&lt;BR /&gt;| filter action_device_bus_type = 1 and action_device_class_name = "disk"&lt;BR /&gt;| sort desc mount_time&lt;BR /&gt;| join (&lt;BR /&gt;config case_sensitive = false&lt;BR /&gt;| preset = device_control&lt;BR /&gt;| filter event_sub_type = ENUM.MOUNT_DRIVE_UNMOUNT&lt;BR /&gt;| fields agent_hostname, _time as unmount_time, action_device_bus_type, action_device_class_name&lt;BR /&gt;| filter action_device_bus_type = 1 and action_device_class_name = "disk"&lt;BR /&gt;| sort desc unmount_time&lt;BR /&gt;) as F F.agent_hostname = agent_hostname&lt;BR /&gt;| filter unmount_time &amp;gt; mount_time&lt;BR /&gt;| alter time_diff_Second = timestamp_diff( unmount_time , mount_time, "SECOND") , time_diff_Minute = timestamp_diff( unmount_time , mount_time, "MINUTE")&lt;BR /&gt;|filter &lt;FONT color="#FF0000"&gt;time_diff_Second &amp;gt;= 20 //because the &lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;Symantec&lt;/SPAN&gt;&lt;/SPAN&gt; blocks the devices before 20s i want alert who have the privilege to use it&lt;/FONT&gt;&lt;BR /&gt;| fields agent_hostname, mount_time, unmount_time as unmount_time, time_diff_Second, time_diff_Minute&lt;/LI-SPOILER&gt;
&lt;P&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;This code is effective because I found that Symantec AV blocks the USB between about 2 to 20 seconds, and I was able to show almost correct results. It works on XQL Search but when I save it as correlation rule does not give an alert and does not accept to be added in BIOC because it uses (Config).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt; Is there a way by changing the code that I can get alerts ether on correlation or BIOC rule?&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="jCAhz"&gt;&lt;SPAN class="ryNqvb"&gt;Or if there another code please support us.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;LI-PRODUCT title="Cortex XDR" id="Cortex_XDR"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jan 2025 07:31:03 GMT</pubDate>
    <dc:creator>F.Alsalem</dc:creator>
    <dc:date>2025-01-07T07:31:03Z</dc:date>
    <item>
      <title>USB drive Alert</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/usb-drive-alert/m-p/1000224#M7669</link>
      <description>&lt;P class="lia-align-justify"&gt;kindly we need your support, I want to get alert when a USB drive&lt;SPAN&gt;&amp;nbsp;is connected to workstation and not blocked by Symantec AV.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;I have tried several times with correlation rule, I found XQL query very effective, and it is as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-SPOILER&gt;config case_sensitive = false&lt;BR /&gt;| preset = device_control &lt;BR /&gt;| filter event_sub_type = ENUM.MOUNT_DRIVE_MOUNT&lt;BR /&gt;| fields agent_hostname, _time as mount_time, action_device_bus_type, action_device_class_name&lt;BR /&gt;| filter action_device_bus_type = 1 and action_device_class_name = "disk"&lt;BR /&gt;| sort desc mount_time&lt;BR /&gt;| join (&lt;BR /&gt;config case_sensitive = false&lt;BR /&gt;| preset = device_control&lt;BR /&gt;| filter event_sub_type = ENUM.MOUNT_DRIVE_UNMOUNT&lt;BR /&gt;| fields agent_hostname, _time as unmount_time, action_device_bus_type, action_device_class_name&lt;BR /&gt;| filter action_device_bus_type = 1 and action_device_class_name = "disk"&lt;BR /&gt;| sort desc unmount_time&lt;BR /&gt;) as F F.agent_hostname = agent_hostname&lt;BR /&gt;| filter unmount_time &amp;gt; mount_time&lt;BR /&gt;| alter time_diff_Second = timestamp_diff( unmount_time , mount_time, "SECOND") , time_diff_Minute = timestamp_diff( unmount_time , mount_time, "MINUTE")&lt;BR /&gt;|filter &lt;FONT color="#FF0000"&gt;time_diff_Second &amp;gt;= 20 //because the &lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;Symantec&lt;/SPAN&gt;&lt;/SPAN&gt; blocks the devices before 20s i want alert who have the privilege to use it&lt;/FONT&gt;&lt;BR /&gt;| fields agent_hostname, mount_time, unmount_time as unmount_time, time_diff_Second, time_diff_Minute&lt;/LI-SPOILER&gt;
&lt;P&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;This code is effective because I found that Symantec AV blocks the USB between about 2 to 20 seconds, and I was able to show almost correct results. It works on XQL Search but when I save it as correlation rule does not give an alert and does not accept to be added in BIOC because it uses (Config).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt; Is there a way by changing the code that I can get alerts ether on correlation or BIOC rule?&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="jCAhz"&gt;&lt;SPAN class="ryNqvb"&gt;Or if there another code please support us.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;LI-PRODUCT title="Cortex XDR" id="Cortex_XDR"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 07:31:03 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/usb-drive-alert/m-p/1000224#M7669</guid>
      <dc:creator>F.Alsalem</dc:creator>
      <dc:date>2025-01-07T07:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: USB drive Alert</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/usb-drive-alert/m-p/1085865#M7746</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/245441137"&gt;@F.Alsalem&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reaching on LiveCommunity!&lt;/P&gt;
&lt;P&gt;The XQL query must at a minimum filter on the event_type field in order for it to be a valid BIOC rule. In addition, you can create BIOC rules using the xdr_data and cloud_audit_log datasets and presets for these datasets. Currently, you cannot create a BIOC rule on customized datasets and only the filter stage, alter stage, and functions without any aggregations are supported for XQL queries that define a BIOC.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please c&lt;SPAN&gt;lick&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;to acknowledge that the answer to your question has been provided.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2025 17:46:54 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/usb-drive-alert/m-p/1085865#M7746</guid>
      <dc:creator>nsinghvirk</dc:creator>
      <dc:date>2025-01-15T17:46:54Z</dc:date>
    </item>
  </channel>
</rss>

