<?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 Need help - BIOC / Script / XQL? in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/need-help-bioc-script-xql/m-p/1219925#M7862</link>
    <description>&lt;P&gt;Hey everyone. I need some assistance in looking at this logically.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have an identified PuP in our environment that is persistent. It creates a scheduled task and if you don't remove that, your PuP that you deleted will be back in no time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a methodical and easy way to find that scheduled task (with the information we have, e.g., keywords, etc.) and disable or remove that scheduled task? A bonus would be to remove that and every other "tentacle" this PuP has on the system, but I'll settle with starting on the scheduled task. Not sure if I'm explaining it properly but I know XDR Pro can do it, somehow and someway, I just have the foggiest idea on where to start.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks all!&lt;/P&gt;</description>
    <pubDate>Mon, 10 Feb 2025 16:12:58 GMT</pubDate>
    <dc:creator>CraigV123</dc:creator>
    <dc:date>2025-02-10T16:12:58Z</dc:date>
    <item>
      <title>Need help - BIOC / Script / XQL?</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/need-help-bioc-script-xql/m-p/1219925#M7862</link>
      <description>&lt;P&gt;Hey everyone. I need some assistance in looking at this logically.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have an identified PuP in our environment that is persistent. It creates a scheduled task and if you don't remove that, your PuP that you deleted will be back in no time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a methodical and easy way to find that scheduled task (with the information we have, e.g., keywords, etc.) and disable or remove that scheduled task? A bonus would be to remove that and every other "tentacle" this PuP has on the system, but I'll settle with starting on the scheduled task. Not sure if I'm explaining it properly but I know XDR Pro can do it, somehow and someway, I just have the foggiest idea on where to start.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks all!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2025 16:12:58 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/need-help-bioc-script-xql/m-p/1219925#M7862</guid>
      <dc:creator>CraigV123</dc:creator>
      <dc:date>2025-02-10T16:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Need help - BIOC / Script / XQL?</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/need-help-bioc-script-xql/m-p/1219950#M7863</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/112301"&gt;@CraigV123&lt;/a&gt;, thanks for reaching us using the Live Community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try a XQL Query to retrieve the scheduled tasks created with any command:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;dataset = xdr_data
| filter action_process_image_command_line contains "schtasks"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With some tuning, this XQL query can be also used as a BIOC rule.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also try using the Windows Event Logs:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;dataset = xdr_data
| filter event_type = ENUM.EVENT_LOG
| filter action_evtlog_event_id = 4698
| fields action_evtlog_provider_name, action_evtlog_event_id, event_type, action_evtlog_message&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Having the task names, you can create a &lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-Pro-Administrator-Guide/Run-Scripts-on-an-Endpoint" target="_self"&gt;script&lt;/A&gt; to run in the affected endpoints to remove the tasks. You can even also use scripts to get the scheduled tasks in the endpoints and if the name matches, remove it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post answers your question, please mark it as the solution.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2025 19:45:25 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/need-help-bioc-script-xql/m-p/1219950#M7863</guid>
      <dc:creator>jmazzeo</dc:creator>
      <dc:date>2025-02-10T19:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need help - BIOC / Script / XQL?</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/need-help-bioc-script-xql/m-p/1220022#M7867</link>
      <description>&lt;P&gt;I needed a logical way to break that down and you explained it how I needed. I appreciate it. Thanks again.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 15:41:23 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/need-help-bioc-script-xql/m-p/1220022#M7867</guid>
      <dc:creator>CraigV123</dc:creator>
      <dc:date>2025-02-11T15:41:23Z</dc:date>
    </item>
  </channel>
</rss>

