<?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 KB KB5022661 in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/kb-kb5022661/m-p/1244968#M8990</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Does anyone have a Cortex XDR query to check if any endpoints and/or servers are missing Microsoft KB5022661.&amp;nbsp; Any assistance would be greatly appreciated&lt;/P&gt;</description>
    <pubDate>Tue, 06 Jan 2026 14:53:09 GMT</pubDate>
    <dc:creator>M.Rivera653095</dc:creator>
    <dc:date>2026-01-06T14:53:09Z</dc:date>
    <item>
      <title>KB KB5022661</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/kb-kb5022661/m-p/1244968#M8990</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Does anyone have a Cortex XDR query to check if any endpoints and/or servers are missing Microsoft KB5022661.&amp;nbsp; Any assistance would be greatly appreciated&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2026 14:53:09 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/kb-kb5022661/m-p/1244968#M8990</guid>
      <dc:creator>M.Rivera653095</dc:creator>
      <dc:date>2026-01-06T14:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: KB KB5022661</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/kb-kb5022661/m-p/1246292#M9036</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/624549139"&gt;@M.Rivera653095&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;To identify endpoints and servers missing Microsoft KB5022661, you can use &lt;STRONG&gt;Cortex XDR Query Language (XQL)&lt;/STRONG&gt; to search through Host Inventory data. Identifying missing patches typically requires a &lt;EM&gt;negative search&lt;/EM&gt;, where you compare the total list of endpoints against those that have the specific KB installed.&lt;/P&gt;
&lt;HR /&gt;
&lt;H4&gt;XQL Query: Identifying Missing KB5022661&lt;/H4&gt;
&lt;P&gt;The most reliable method is to perform a &lt;STRONG&gt;left join&lt;/STRONG&gt; between the complete endpoints dataset and the &lt;CODE&gt;host_inventory_kbs&lt;/CODE&gt; preset.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="language-xql"&gt;dataset = endpoints 
| filter endpoint_status != ENUM.CONNECTION_LOST
| join conflict_strategy = left type = left 
    (preset = host_inventory_kbs | filter hotfix_id == "KB5022661") as kbs 
    kbs.endpoint_id = endpoint_id
| alter found = if(kbs.hotfix_id != null, 1, 0)
| comp sum(found) as total_found by endpoint_name, endpoint_id
| filter total_found == 0
| fields endpoint_name, endpoint_id
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;
&lt;H4&gt;Alternative XQL Method: Expanding the KB Array&lt;/H4&gt;
&lt;P&gt;You can also query the &lt;CODE&gt;host_inventory&lt;/CODE&gt; dataset directly by expanding the &lt;CODE&gt;kbs&lt;/CODE&gt; array and filtering for hosts where the target KB is not present:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="language-xql"&gt;dataset = host_inventory 
| fields agent_id, host_name, kbs
| arrayexpand kbs 
| alter kb_id = json_extract_scalar(to_json_string(kbs), "$.hotfix_id")
| alter is_target = if(kb_id == "KB5022661", 1, 0)
| comp sum(is_target) as kb_check by host_name, agent_id
| filter kb_check == 0
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;
&lt;H4&gt;Alternative: Azure Code Signing (ACS) Diagnostic Script&lt;/H4&gt;
&lt;P&gt;KB5022661 is specifically required to support Azure Code Signing (ACS), which is a prerequisite for newer Cortex XDR agent versions (for example, 8.8 and above).&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;The &lt;CODE&gt;test_acs&lt;/CODE&gt; Script:&lt;/STRONG&gt;&lt;BR /&gt;You can run the &lt;CODE&gt;test_acs&lt;/CODE&gt; diagnostic script from the Cortex XDR script library on endpoints. If the script returns &lt;CODE&gt;False&lt;/CODE&gt;, it confirms that the necessary ACS support (such as KB5022661 or a superseding update) is missing.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Result Visibility:&lt;/STRONG&gt;&lt;BR /&gt;Script execution results are stored in the &lt;STRONG&gt;Action Center&lt;/STRONG&gt; and are not queryable natively via XQL by default. To query these results centrally, you would need to use XSOAR to retrieve the results via API and ingest them into a custom XQL dataset.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;If you feel this has answered your query, please let us know by clicking like and on&amp;nbsp;"mark this as a Solution".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Happy New year!!&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, 22 Jan 2026 17:04:33 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/kb-kb5022661/m-p/1246292#M9036</guid>
      <dc:creator>susekar</dc:creator>
      <dc:date>2026-01-22T17:04:33Z</dc:date>
    </item>
  </channel>
</rss>

