<?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: Cortex XDR Device Control Violation Alerts in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/cortex-xdr-device-control-violation-alerts/m-p/1247529#M9100</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/120320991"&gt;@D.Bengian&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Greetings for the day.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is important to clarify that &lt;STRONG&gt;Device Control Violations&lt;/STRONG&gt; (the specific events where the agent blocks a device) are currently &lt;STRONG&gt;not included&lt;/STRONG&gt; in the &lt;CODE&gt;xdr_data&lt;/CODE&gt; dataset. Because BIOC rules operate on the &lt;CODE&gt;xdr_data&lt;/CODE&gt; dataset, you &lt;STRONG&gt;cannot create a BIOC rule&lt;/STRONG&gt; that triggers specifically based on the &lt;STRONG&gt;“Blocked”&lt;/STRONG&gt; action of the Device Control module.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These violations are currently only visible in the &lt;STRONG&gt;Device Control Violations&lt;/STRONG&gt; page of the console or accessible via the &lt;STRONG&gt;Public API&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, you &lt;EM&gt;can&lt;/EM&gt; create a BIOC rule to alert on the &lt;STRONG&gt;activity of a USB or removable device being connected&lt;/STRONG&gt; (plugged in or mounted). While this does &lt;STRONG&gt;not differentiate between allowed and blocked devices&lt;/STRONG&gt;, it allows you to generate alerts for &lt;STRONG&gt;any external device connection attempt&lt;/STRONG&gt;.&lt;/P&gt;
&lt;H4&gt;&amp;nbsp;&lt;/H4&gt;
&lt;H5&gt;XQL Queries for BIOC Rules:&lt;/H5&gt;
&lt;P&gt;You can use either of the following queries to create a BIOC rule for detecting removable device connections:&lt;/P&gt;
&lt;H5&gt;Option 1: Detecting Device Plug Events&lt;/H5&gt;
&lt;P&gt;This approach monitors USB plug activity:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;dataset = xdr_data
| filter event_type = DEVICE and event_sub_type = DEVICE_PLUG
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;H5&gt;Option 2: Detecting Device Mount Events&lt;/H5&gt;
&lt;P&gt;This query identifies when a storage drive is successfully recognized and mounted by the operating system:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;dataset = xdr_data
| filter event_type = MOUNT AND event_sub_type = MOUNT_DRIVE_MOUNT
| alter 
    vendor_id = json_extract_scalar(action_mount_device_info , "$.storage_device_vendor_id"), 
    product_id = json_extract_scalar(action_mount_device_info , "$.storage_device_product_id"), 
    serial_number = json_extract_scalar(action_mount_device_info , "$.storage_device_serial_number")
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;
&lt;H5&gt;Alternative Methods for Violation Alerts&lt;/H5&gt;
&lt;P&gt;If you strictly require alerts for &lt;STRONG&gt;Device Control Violations (blocks)&lt;/STRONG&gt;, consider these alternatives:&lt;/P&gt;
&lt;H5&gt;Management Audit Log Forwarding&lt;/H5&gt;
&lt;P&gt;You can configure notification forwarding to send emails or syslog messages when a violation is logged.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;Navigate to &lt;STRONG&gt;Settings → Configurations → General → Notifications&lt;/STRONG&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Select &lt;STRONG&gt;Management Audit Logs&lt;/STRONG&gt; as the log type&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Apply a filter for &lt;STRONG&gt;Device Control Violations&lt;/STRONG&gt; to capture policy breach events&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;H5&gt;Cortex XDR Public API&lt;/H5&gt;
&lt;P&gt;Use the &lt;STRONG&gt;Get-Violations&lt;/STRONG&gt; API endpoint to programmatically retrieve violation data and integrate it with your SIEM or alerting platform.&lt;/P&gt;
&lt;H5&gt;Removable Media File Execution Alerts&lt;/H5&gt;
&lt;P&gt;In your &lt;STRONG&gt;Restrictions Profile&lt;/STRONG&gt;, you can enable notifications for &lt;STRONG&gt;Removable Media&lt;/STRONG&gt; to report when files are executed from external drives.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you feel this has answered your query, please let us know by clicking like and on&amp;nbsp;&lt;STRONG&gt;"mark this as a Solution".&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;S. Subashkar Sekar&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Feb 2026 14:37:48 GMT</pubDate>
    <dc:creator>susekar</dc:creator>
    <dc:date>2026-02-05T14:37:48Z</dc:date>
    <item>
      <title>Cortex XDR Device Control Violation Alerts</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/cortex-xdr-device-control-violation-alerts/m-p/1247458#M9096</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We enabled device configurations to block external devices connecting to endpoints in the organization and its work fine. In the Cortex XDR console, I can see the device control violations.&lt;/P&gt;
&lt;P data-start="0" data-end="161"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="163" data-end="294" data-is-last-node="" data-is-only-node=""&gt;We want to create alerts to detect the&amp;nbsp;Device Control Violation based on a BIOC rule, as this is the only available option.&lt;/P&gt;
&lt;DIV class="text-base my-auto mx-auto pb-10 [--thread-content-margin:--spacing(4)] @w-sm/main:[--thread-content-margin:--spacing(6)] @w-lg/main:[--thread-content-margin:--spacing(16)] px-(--thread-content-margin)"&gt;
&lt;DIV class="[--thread-content-max-width:40rem] @w-lg/main:[--thread-content-max-width:48rem] mx-auto max-w-(--thread-content-max-width) flex-1 group/turn-messages focus-visible:outline-hidden relative flex w-full min-w-0 flex-col agent-turn" tabindex="-1"&gt;
&lt;DIV class="flex max-w-full flex-col grow"&gt;
&lt;DIV class="min-h-8 text-message relative flex w-full flex-col items-end gap-2 text-start break-words whitespace-normal [.text-message+&amp;amp;]:mt-1" dir="auto" data-message-author-role="assistant" data-message-id="9dfb5429-51e0-4860-83b3-a93771c52d6d" data-message-model-slug="gpt-5-2"&gt;
&lt;DIV class="flex w-full flex-col gap-1 empty:hidden first:pt-[1px]"&gt;
&lt;DIV class="markdown prose dark:prose-invert w-full wrap-break-word dark markdown-new-styling"&gt;
&lt;P data-start="0" data-end="97" data-is-last-node="" data-is-only-node=""&gt;I tried several different queries. I realized I’m spending a lot of time on this without success.&amp;nbsp;&lt;SPAN&gt;Does anyone have a ready XQL query for this?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P data-start="0" data-end="97" data-is-last-node="" data-is-only-node=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards and thanks,&lt;/P&gt;
&lt;P&gt;David.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2026 19:51:54 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/cortex-xdr-device-control-violation-alerts/m-p/1247458#M9096</guid>
      <dc:creator>D.Bengian</dc:creator>
      <dc:date>2026-02-04T19:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Cortex XDR Device Control Violation Alerts</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/cortex-xdr-device-control-violation-alerts/m-p/1247529#M9100</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/120320991"&gt;@D.Bengian&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Greetings for the day.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is important to clarify that &lt;STRONG&gt;Device Control Violations&lt;/STRONG&gt; (the specific events where the agent blocks a device) are currently &lt;STRONG&gt;not included&lt;/STRONG&gt; in the &lt;CODE&gt;xdr_data&lt;/CODE&gt; dataset. Because BIOC rules operate on the &lt;CODE&gt;xdr_data&lt;/CODE&gt; dataset, you &lt;STRONG&gt;cannot create a BIOC rule&lt;/STRONG&gt; that triggers specifically based on the &lt;STRONG&gt;“Blocked”&lt;/STRONG&gt; action of the Device Control module.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These violations are currently only visible in the &lt;STRONG&gt;Device Control Violations&lt;/STRONG&gt; page of the console or accessible via the &lt;STRONG&gt;Public API&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, you &lt;EM&gt;can&lt;/EM&gt; create a BIOC rule to alert on the &lt;STRONG&gt;activity of a USB or removable device being connected&lt;/STRONG&gt; (plugged in or mounted). While this does &lt;STRONG&gt;not differentiate between allowed and blocked devices&lt;/STRONG&gt;, it allows you to generate alerts for &lt;STRONG&gt;any external device connection attempt&lt;/STRONG&gt;.&lt;/P&gt;
&lt;H4&gt;&amp;nbsp;&lt;/H4&gt;
&lt;H5&gt;XQL Queries for BIOC Rules:&lt;/H5&gt;
&lt;P&gt;You can use either of the following queries to create a BIOC rule for detecting removable device connections:&lt;/P&gt;
&lt;H5&gt;Option 1: Detecting Device Plug Events&lt;/H5&gt;
&lt;P&gt;This approach monitors USB plug activity:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;dataset = xdr_data
| filter event_type = DEVICE and event_sub_type = DEVICE_PLUG
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;H5&gt;Option 2: Detecting Device Mount Events&lt;/H5&gt;
&lt;P&gt;This query identifies when a storage drive is successfully recognized and mounted by the operating system:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;dataset = xdr_data
| filter event_type = MOUNT AND event_sub_type = MOUNT_DRIVE_MOUNT
| alter 
    vendor_id = json_extract_scalar(action_mount_device_info , "$.storage_device_vendor_id"), 
    product_id = json_extract_scalar(action_mount_device_info , "$.storage_device_product_id"), 
    serial_number = json_extract_scalar(action_mount_device_info , "$.storage_device_serial_number")
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;
&lt;H5&gt;Alternative Methods for Violation Alerts&lt;/H5&gt;
&lt;P&gt;If you strictly require alerts for &lt;STRONG&gt;Device Control Violations (blocks)&lt;/STRONG&gt;, consider these alternatives:&lt;/P&gt;
&lt;H5&gt;Management Audit Log Forwarding&lt;/H5&gt;
&lt;P&gt;You can configure notification forwarding to send emails or syslog messages when a violation is logged.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;Navigate to &lt;STRONG&gt;Settings → Configurations → General → Notifications&lt;/STRONG&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Select &lt;STRONG&gt;Management Audit Logs&lt;/STRONG&gt; as the log type&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Apply a filter for &lt;STRONG&gt;Device Control Violations&lt;/STRONG&gt; to capture policy breach events&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;H5&gt;Cortex XDR Public API&lt;/H5&gt;
&lt;P&gt;Use the &lt;STRONG&gt;Get-Violations&lt;/STRONG&gt; API endpoint to programmatically retrieve violation data and integrate it with your SIEM or alerting platform.&lt;/P&gt;
&lt;H5&gt;Removable Media File Execution Alerts&lt;/H5&gt;
&lt;P&gt;In your &lt;STRONG&gt;Restrictions Profile&lt;/STRONG&gt;, you can enable notifications for &lt;STRONG&gt;Removable Media&lt;/STRONG&gt; to report when files are executed from external drives.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you feel this has answered your query, please let us know by clicking like and on&amp;nbsp;&lt;STRONG&gt;"mark this as a Solution".&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;S. Subashkar Sekar&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Feb 2026 14:37:48 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/cortex-xdr-device-control-violation-alerts/m-p/1247529#M9100</guid>
      <dc:creator>susekar</dc:creator>
      <dc:date>2026-02-05T14:37:48Z</dc:date>
    </item>
  </channel>
</rss>

