<?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: Notepad++ block specific hash version in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/notepad-block-specific-hash-version/m-p/1247345#M9092</link>
    <description>&lt;P&gt;thanks for your help , you give me a good ideas.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;maybe the best solutions for this time is block the HASH related with old versions....the best way to get that hashes is XQL?&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/241098"&gt;@susekar&lt;/a&gt;&amp;nbsp;??&lt;BR /&gt;&lt;BR /&gt;because my objective, is only allow the last version...now, is 8.9.1....in the future , when launch 9.X for example, i'll block 8.9.1...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Feb 2026 17:27:23 GMT</pubDate>
    <dc:creator>tlmarques</dc:creator>
    <dc:date>2026-02-03T17:27:23Z</dc:date>
    <item>
      <title>Notepad++ block specific hash version</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/notepad-block-specific-hash-version/m-p/1247337#M9090</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="111" data-end="116"&gt;Guys,&lt;/P&gt;
&lt;P data-start="118" data-end="217"&gt;Does anyone know if it is possible to block the hashes associated with older versions of Notepad++?&lt;/P&gt;
&lt;P data-start="219" data-end="354"&gt;My goal is to allow only Notepad++ version &lt;STRONG data-start="262" data-end="271"&gt;8.9.1&lt;/STRONG&gt; to be executed, and to block the installation and execution of all other versions.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Feb 2026 15:27:14 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/notepad-block-specific-hash-version/m-p/1247337#M9090</guid>
      <dc:creator>tlmarques</dc:creator>
      <dc:date>2026-02-03T15:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Notepad++ block specific hash version</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/notepad-block-specific-hash-version/m-p/1247343#M9091</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/307134"&gt;@tlmarques&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;Yes, it is possible to block older versions of Notepad++ while allowing only version 8.9.1, but this must be achieved through SHA256 hashes rather than a simple version number toggle, as Cortex XDR does not natively support blocking based solely on application version strings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To allow only version 8.9.1 and block all other versions (installation and execution), you should use a combination of Restriction Profiles and Hash Control.&lt;/P&gt;
&lt;H4&gt;Recommended Implementation Steps&lt;/H4&gt;
&lt;H4&gt;1. Obtain the Required Hashes&lt;/H4&gt;
&lt;P&gt;Identify the SHA256 hashes for the Notepad++ version 8.9.1 executable (&lt;CODE&gt;notepad++.exe&lt;/CODE&gt;) and its specific installer (for example, &lt;CODE&gt;npp.8.9.1.Installer.x64.exe&lt;/CODE&gt;).&lt;BR /&gt;The global Block List supports Windows PE, PE64, and DLL files, which includes the standard Notepad++ binaries.&lt;/P&gt;
&lt;H4&gt;2. Configure a Restriction Profile (Block by Name)&lt;/H4&gt;
&lt;P&gt;Instead of manually adding large numbers of older hashes to a global block list, use a Restriction Profile to block the application by filename and then create an exception for your allowed version.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;Navigate to &lt;STRONG&gt;Policy &amp;gt; Prevention Profiles &amp;gt; Restrictions&lt;/STRONG&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Create a new profile and add &lt;CODE&gt;notepad++.exe&lt;/CODE&gt; and &lt;CODE&gt;npp.*.Installer*.exe&lt;/CODE&gt; to the &lt;STRONG&gt;Executables&lt;/STRONG&gt; block list&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;This blocks the execution of any file with these names regardless of version.&lt;/P&gt;
&lt;H4&gt;3. Create an Exception for Version 8.9.1 (Allow by Hash)&lt;/H4&gt;
&lt;P&gt;Explicitly allow the hash of version 8.9.1 so it overrides the restriction.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;Navigate to &lt;STRONG&gt;Policy &amp;gt; Prevention&lt;/STRONG&gt; and select the policy group for your endpoints&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Go to the &lt;STRONG&gt;Exceptions&lt;/STRONG&gt; tab and add a &lt;STRONG&gt;Disable Prevention Rule&lt;/STRONG&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Configure the rule to target the SHA256 hash of the 8.9.1 executable and installer&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Alternatively, you can use &lt;STRONG&gt;Malware Profile &amp;gt; Allow List&lt;/STRONG&gt; to add the 8.9.1 hash.&lt;/P&gt;
&lt;H4&gt;4. Use the Global Block List for Known Older Hashes (Optional)&lt;/H4&gt;
&lt;P&gt;If you have specific older versions you want to ensure are blocked even if renamed:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;Navigate to &lt;STRONG&gt;Response &amp;gt; Action Center &amp;gt; New Action &amp;gt; Add to Block List&lt;/STRONG&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Enter the SHA256 hashes of the older Notepad++ versions&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;Warning:&lt;/STRONG&gt; Hashes added to the global Block List are enforced universally across all endpoints in the tenant and take precedence over most other policy rules.&lt;/P&gt;
&lt;H4&gt;Critical Limitations to Consider&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;MSI Installers:&lt;/STRONG&gt; Cortex XDR’s Hash Block List in the Action Center does not currently support blocking &lt;CODE&gt;.msi&lt;/CODE&gt; files by SHA256 hash. If the Notepad++ versions are distributed as &lt;CODE&gt;.msi&lt;/CODE&gt; packages, the hash-based block will not trigger. You must rely on filename or path restrictions in a Restriction Profile for these files.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Size Limits:&lt;/STRONG&gt; For agent versions 8.1 and below, there is a 100 MB limit for hash calculations; files exceeding this size will not be matched against the block list. Most Notepad++ binaries are well under this limit.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;H4&gt;Verification on the Endpoint&lt;/H4&gt;
&lt;P&gt;You can verify whether the block and allow lists are correctly applied to a local Windows endpoint by running the following command in an Administrator command prompt:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;"%ProgramFiles%\Palo Alto Networks\Traps\cytool.exe" persist print hash_overrides.db
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you feel this has answered your query, please let us know by clicking like and on&lt;STRONG&gt;&amp;nbsp;"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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Feb 2026 17:02:53 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/notepad-block-specific-hash-version/m-p/1247343#M9091</guid>
      <dc:creator>susekar</dc:creator>
      <dc:date>2026-02-03T17:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Notepad++ block specific hash version</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/notepad-block-specific-hash-version/m-p/1247345#M9092</link>
      <description>&lt;P&gt;thanks for your help , you give me a good ideas.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;maybe the best solutions for this time is block the HASH related with old versions....the best way to get that hashes is XQL?&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/241098"&gt;@susekar&lt;/a&gt;&amp;nbsp;??&lt;BR /&gt;&lt;BR /&gt;because my objective, is only allow the last version...now, is 8.9.1....in the future , when launch 9.X for example, i'll block 8.9.1...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Feb 2026 17:27:23 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/notepad-block-specific-hash-version/m-p/1247345#M9092</guid>
      <dc:creator>tlmarques</dc:creator>
      <dc:date>2026-02-03T17:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Notepad++ block specific hash version</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/notepad-block-specific-hash-version/m-p/1247426#M9094</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/307134"&gt;@tlmarques&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for the response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, using &lt;STRONG&gt;XQL (Cortex Query Language)&lt;/STRONG&gt; is one of the most effective ways to retrieve the &lt;STRONG&gt;SHA256 hashes of specific software versions&lt;/STRONG&gt; that have been seen in your environment. Since Cortex XDR cannot natively block applications based solely on a version string, you must identify the specific hashes associated with those older versions and add them to a block list.&lt;/P&gt;
&lt;HR /&gt;
&lt;H4&gt;1. How to Retrieve Hashes Using XQL&lt;/H4&gt;
&lt;P&gt;You can use either the &lt;STRONG&gt;files&lt;/STRONG&gt; dataset (which leverages Host Insights data) or the &lt;STRONG&gt;xdr_data&lt;/STRONG&gt; dataset (which contains historical event logs) to find hashes linked to specific file names and versions.&lt;/P&gt;
&lt;H4&gt;To find hashes and their reported versions from the inventory&lt;/H4&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt;&lt;BR /&gt;This query requires the &lt;STRONG&gt;Host Insights&lt;/STRONG&gt; add-on to be active.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;PRE&gt;&lt;CODE class="language-xql"&gt;dataset = files
| filter file_name == "your_executable_name.exe"
| fields sha256, file_name, file_version, vendor, last_seen
| dedup sha256
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;H4&gt;To find hashes from execution events (if you don't have Host Insights)&lt;/H4&gt;
&lt;PRE&gt;&lt;CODE class="language-xql"&gt;dataset = xdr_data
| filter event_type = ENUM.PROCESS and action_file_name == "your_executable_name.exe"
| fields action_file_sha256, action_file_name, os_actor_process_command_line, agent_hostname
| dedup action_file_sha256
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; In the &lt;CODE&gt;xdr_data&lt;/CODE&gt; dataset, the version might not always be available as a standalone field. You may need to inspect &lt;CODE&gt;action_file_path&lt;/CODE&gt; or &lt;CODE&gt;os_actor_process_command_line&lt;/CODE&gt; if the version is embedded in the directory structure or command line.&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&lt;STRONG&gt;&amp;nbsp;"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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2026 12:46:00 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/notepad-block-specific-hash-version/m-p/1247426#M9094</guid>
      <dc:creator>susekar</dc:creator>
      <dc:date>2026-02-04T12:46:00Z</dc:date>
    </item>
  </channel>
</rss>

