<?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 - New attacks through ZIPs and ISOs in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-new-attacks-through-zips-and-isos/m-p/510467#M2422</link>
    <description>&lt;P&gt;Hi RFeyertag,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use XQL to create a BIOC for this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;dataset = xdr_data
| filter event_type = ENUM.FILE and (event_sub_type = ENUM.FILE_CREATE_NEW or event_sub_type = ENUM.FILE_WRITE)
| filter action_file_path contains "\\AppData\\Local\\Temp\\" or action_file_path contains \"\\AppData\\Local\\Microsoft\\Windows\\INetCache\\Content.Outlook\\"
| filter action_file_extension = "iso"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can tweak this query to look for different extensions, change the file operation included (this query looks for file creation, or file write).&amp;nbsp; You should do some testing to determine if it will fire when a user extracts an iso from a zip but I believe it will.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Aug 2022 16:33:31 GMT</pubDate>
    <dc:creator>afurze</dc:creator>
    <dc:date>2022-08-01T16:33:31Z</dc:date>
    <item>
      <title>XQL - New attacks through ZIPs and ISOs</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-new-attacks-through-zips-and-isos/m-p/510430#M2419</link>
      <description>&lt;P&gt;Hello dear Community,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;has someone of you a ready to implement XQL Query for downloading zip/rar/iso file containing a iso? The source can be outlook, etc.&lt;/P&gt;
&lt;P&gt;I found a sigma rule based on:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/SigmaHQ/sigma/blob/master/rules/windows/file_event/file_event_win_iso_file_mount.yml" target="_blank"&gt;https://github.com/SigmaHQ/sigma/blob/master/rules/windows/file_event/file_event_win_iso_file_mount.yml&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would be appreciate for some examples.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Rob&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 10:43:38 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-new-attacks-through-zips-and-isos/m-p/510430#M2419</guid>
      <dc:creator>RFeyertag</dc:creator>
      <dc:date>2022-08-01T10:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: XQL - New attacks through ZIPs and ISOs</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-new-attacks-through-zips-and-isos/m-p/510467#M2422</link>
      <description>&lt;P&gt;Hi RFeyertag,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use XQL to create a BIOC for this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;dataset = xdr_data
| filter event_type = ENUM.FILE and (event_sub_type = ENUM.FILE_CREATE_NEW or event_sub_type = ENUM.FILE_WRITE)
| filter action_file_path contains "\\AppData\\Local\\Temp\\" or action_file_path contains \"\\AppData\\Local\\Microsoft\\Windows\\INetCache\\Content.Outlook\\"
| filter action_file_extension = "iso"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can tweak this query to look for different extensions, change the file operation included (this query looks for file creation, or file write).&amp;nbsp; You should do some testing to determine if it will fire when a user extracts an iso from a zip but I believe it will.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 16:33:31 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-new-attacks-through-zips-and-isos/m-p/510467#M2422</guid>
      <dc:creator>afurze</dc:creator>
      <dc:date>2022-08-01T16:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: XQL - New attacks through ZIPs and ISOs</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-new-attacks-through-zips-and-isos/m-p/510483#M2424</link>
      <description>&lt;P&gt;Hi Rob,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a different approach on this. Made a generic catch-all query for anything executed from a CD-ROM drive that is not digitally signed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;====&lt;/P&gt;
&lt;P&gt;preset = xdr_process &lt;BR /&gt;| filter storage_device_drive_type = ENUM.DEVICE_CDROM and action_process_signature_status != enum.SIGNED &lt;BR /&gt;| comp count(action_process_image_path) as Hits by action_process_image_path, action_process_image_name , action_process_signature_status, action_process_image_sha256 &lt;BR /&gt;| sort asc action_process_image_path &lt;BR /&gt;| dedup action_process_image_path &lt;BR /&gt;| dedup action_process_image_name by asc action_process_image_path&lt;BR /&gt;=====&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This doesn't really answer the question fully, but with some baselining and a bit of elbow grease I think you can improve on this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ofc, outright blocking ISO's from mounting would be best, but meh.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 19:22:18 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-new-attacks-through-zips-and-isos/m-p/510483#M2424</guid>
      <dc:creator>JillianSagun</dc:creator>
      <dc:date>2022-08-01T19:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: XQL - New attacks through ZIPs and ISOs</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-new-attacks-through-zips-and-isos/m-p/510586#M2429</link>
      <description>&lt;P&gt;Hello!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to tweak it, with the initial query I didn't get any result. And with my tweaked one there was the same result.&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_0-1659450704453.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/42731iE2694E3657E72F6E/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="RFeyertag_0-1659450704453.png" alt="RFeyertag_0-1659450704453.png" /&gt;&lt;/span&gt;&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-1659450775649.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/42732iB8E52DBA71F5DF84/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="RFeyertag_1-1659450775649.png" alt="RFeyertag_1-1659450775649.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RFeyertag_2-1659450811041.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/42733iB409E4FC660E44ED/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="RFeyertag_2-1659450811041.png" alt="RFeyertag_2-1659450811041.png" /&gt;&lt;/span&gt;&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_3-1659450891232.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/42734iCE214766C79C38A3/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="RFeyertag_3-1659450891232.png" alt="RFeyertag_3-1659450891232.png" /&gt;&lt;/span&gt;&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_4-1659450910720.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/42735i74A2B93AAC4CB507/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="RFeyertag_4-1659450910720.png" alt="RFeyertag_4-1659450910720.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Is there anything wrong with this query?&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 14:36:37 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-new-attacks-through-zips-and-isos/m-p/510586#M2429</guid>
      <dc:creator>RFeyertag</dc:creator>
      <dc:date>2022-08-02T14:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: XQL - New attacks through ZIPs and ISOs</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-new-attacks-through-zips-and-isos/m-p/510590#M2430</link>
      <description>&lt;P&gt;Is there any possibility to migrate this query into xql? Here it is working.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&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_6-1659451433942.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/42737iB48FBE92729716C6/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="RFeyertag_6-1659451433942.png" alt="RFeyertag_6-1659451433942.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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 14:44:08 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-new-attacks-through-zips-and-isos/m-p/510590#M2430</guid>
      <dc:creator>RFeyertag</dc:creator>
      <dc:date>2022-08-02T14:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: XQL - New attacks through ZIPs and ISOs</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-new-attacks-through-zips-and-isos/m-p/510597#M2431</link>
      <description>&lt;P&gt;Not sure where the query went awry, maybe add in some case insensitivity?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Also, I have a personal grudge against "contains" but tested this one and it was able to pick up some iso's in the %temp% dir.&lt;BR /&gt;&lt;BR /&gt;config case_sensitive = false&lt;BR /&gt;| dataset = xdr_data&lt;BR /&gt;| filter action_file_path in ("*\AppData\Local\Temp\*","*\AppData\Local\Microsoft\Windows\INetCache\Content.Outlook\*")&lt;BR /&gt;| filter action_file_extension in ("img","iso","zip")&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 15:28:19 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-new-attacks-through-zips-and-isos/m-p/510597#M2431</guid>
      <dc:creator>JillianSagun</dc:creator>
      <dc:date>2022-08-02T15:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: XQL - New attacks through ZIPs and ISOs</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-new-attacks-through-zips-and-isos/m-p/511141#M2476</link>
      <description>&lt;P&gt;Thank you very much, this one worked like a charm &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;BR&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rob&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 20:48:11 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-new-attacks-through-zips-and-isos/m-p/511141#M2476</guid>
      <dc:creator>RFeyertag</dc:creator>
      <dc:date>2022-08-05T20:48:11Z</dc:date>
    </item>
  </channel>
</rss>

