<?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: Blocking PowerShell While Allowing Certain Powershell Scripts in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/blocking-powershell-while-allowing-certain-powershell-scripts/m-p/1219797#M7855</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/1394660977"&gt;@A.ABDULLAH893848&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;How often are these IT scripts modified?&lt;/P&gt;
&lt;P&gt;You could use the &lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-Pro-Administrator-Guide/Action-Center" target="_self"&gt;Action Center's Allow List&lt;/A&gt; to add the scripts hashes and maintain the list when there is a modification.&lt;/P&gt;
&lt;P&gt;The path exception is not usually recommended, but maybe you can create a filename exception by adding to all the scripts files a naming convention like "IT-Script-Something_Description", and you can use a wildcard for that standard name that is unique and only belongs to your environment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can find &lt;A href="https://live.paloaltonetworks.com/t5/cortex-xdr-how-to-videos/cortex-xdr-training-alert-tuning-fundamentals/ta-p/557062" target="_self"&gt;here&lt;/A&gt; a nice webinar about Alert Handling and how to create the right exceptions for different use cases.&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>Fri, 07 Feb 2025 13:14:18 GMT</pubDate>
    <dc:creator>jmazzeo</dc:creator>
    <dc:date>2025-02-07T13:14:18Z</dc:date>
    <item>
      <title>Blocking PowerShell While Allowing Certain Powershell Scripts</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/blocking-powershell-while-allowing-certain-powershell-scripts/m-p/1219295#M7845</link>
      <description>&lt;P&gt;Hi, good day!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need some help with configuring PowerShell restrictions in Cortex XDR.&lt;/P&gt;
&lt;P&gt;I'm currently facing an issue where Cortex XDR has detected a PowerShell script executed from a user endpoint. After investigation, we confirmed that this script is part of a legitimate IT department operation.&lt;/P&gt;
&lt;P&gt;Our goal is to allow specific, authorized PowerShell script activity while blocking all other unauthorized or unknown scripts. Based on the documentation, it appears that we need to create a Legacy Agent Exception to permit the approved scripts.&lt;/P&gt;
&lt;P&gt;However, we would like to explore if there are more effective or granular methods to achieve this. Are there alternative approaches, such as policy configurations or allowlisting mechanisms, that would provide better control over PowerShell script execution?&lt;/P&gt;
&lt;P&gt;Could anyone guide me through the process of implementing the best approach to achieve this?&lt;/P&gt;
&lt;P&gt;I really appreciate any insights or recommendations on best practices.&lt;/P&gt;
&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 12:51:10 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/blocking-powershell-while-allowing-certain-powershell-scripts/m-p/1219295#M7845</guid>
      <dc:creator>A.ABDULLAH893848</dc:creator>
      <dc:date>2025-02-04T12:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Blocking PowerShell While Allowing Certain Powershell Scripts</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/blocking-powershell-while-allowing-certain-powershell-scripts/m-p/1219797#M7855</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/1394660977"&gt;@A.ABDULLAH893848&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;How often are these IT scripts modified?&lt;/P&gt;
&lt;P&gt;You could use the &lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-Pro-Administrator-Guide/Action-Center" target="_self"&gt;Action Center's Allow List&lt;/A&gt; to add the scripts hashes and maintain the list when there is a modification.&lt;/P&gt;
&lt;P&gt;The path exception is not usually recommended, but maybe you can create a filename exception by adding to all the scripts files a naming convention like "IT-Script-Something_Description", and you can use a wildcard for that standard name that is unique and only belongs to your environment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can find &lt;A href="https://live.paloaltonetworks.com/t5/cortex-xdr-how-to-videos/cortex-xdr-training-alert-tuning-fundamentals/ta-p/557062" target="_self"&gt;here&lt;/A&gt; a nice webinar about Alert Handling and how to create the right exceptions for different use cases.&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>Fri, 07 Feb 2025 13:14:18 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/blocking-powershell-while-allowing-certain-powershell-scripts/m-p/1219797#M7855</guid>
      <dc:creator>jmazzeo</dc:creator>
      <dc:date>2025-02-07T13:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Blocking PowerShell While Allowing Certain Powershell Scripts</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/blocking-powershell-while-allowing-certain-powershell-scripts/m-p/1220666#M7902</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/310428"&gt;@jmazzeo&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The IT scripts are modified quite frequently as part of our regular updates and automation improvements. Using the Action Center's Allow List seems like a great solution to ensure that the latest script versions are always accounted for. I’ll explore this option further.&lt;/P&gt;
&lt;P&gt;I understand the path exception isn't recommended, but I appreciate your suggestion regarding a unique naming convention. Implementing a pattern like IT-Script-* with a wildcard could definitely simplify exception handling for our environment.&lt;/P&gt;
&lt;P&gt;Also, thanks for sharing the link to the webinar on Alert Handling—I'll be sure to check it out!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 13:01:43 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/blocking-powershell-while-allowing-certain-powershell-scripts/m-p/1220666#M7902</guid>
      <dc:creator>A.ABDULLAH893848</dc:creator>
      <dc:date>2025-02-17T13:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Blocking PowerShell While Allowing Certain Powershell Scripts</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/blocking-powershell-while-allowing-certain-powershell-scripts/m-p/1241588#M8860</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am trying to do the same, but although I add the hash of my powershell script to the allow list, Cortex keeps on blocking its execution.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I check the alert created, it is showing as malicious the hash value of powershell.exe, not the one of the script itself. Obviously, I can't make an exception for powershell.exe as any malicious script based on it would would be able to run without restrictions.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DJuanpere_0-1762857216417.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/69810i6F1D5923A0173E70/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DJuanpere_0-1762857216417.png" alt="DJuanpere_0-1762857216417.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am I doing something wrong?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2025 10:34:24 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/blocking-powershell-while-allowing-certain-powershell-scripts/m-p/1241588#M8860</guid>
      <dc:creator>DJuanpere</dc:creator>
      <dc:date>2025-11-11T10:34:24Z</dc:date>
    </item>
  </channel>
</rss>

