<?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  query for locked AD account in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-for-locked-ad-account/m-p/562075#M5359</link>
    <description>&lt;P&gt;This can be done in different ways, easiest is to use what the XDR agent collects natively as part of its "&lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-Pro-Administrator-Guide/Endpoint-Data-Collection#:~:text=Security-,Microsoft%2DWindows%2DSecurity%2DAuditing,-4720%2C%204722%2C%204723" target="_self"&gt;Microsoft-Windows-Security-Auditing&lt;/A&gt;" Windows Event Collection, where XDR agent can &lt;BR /&gt;1- Collect&amp;nbsp;Event ID 4740&amp;nbsp; - A user account was locked out&amp;nbsp;&lt;BR /&gt;2-&amp;nbsp;Collect&amp;nbsp;Event ID 4767 - A user account was unlocked&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;These event IDs are going to be ingested and normalized into the dataset = xdr_data, hence a simple XQL query looking for these events can get you started and then can be filtered out down the road if you need to add more details to it, an example of this query can be :&lt;BR /&gt;&lt;BR /&gt;dataset = xdr_data // Using the xdr dataset&lt;BR /&gt;| filter event_type = ENUM.EVENT_LOG and action_evtlog_event_id in (4740 ,4767)&lt;BR /&gt;&lt;BR /&gt;If you focus only on the locked account , then Event ID&amp;nbsp;4767 can be removed, and the query can look like:&lt;BR /&gt;dataset = xdr_data // Using the xdr dataset&lt;BR /&gt;| filter event_type = ENUM.EVENT_LOG and action_evtlog_event_id =4740&lt;BR /&gt;&lt;BR /&gt;In the query results , please make sure you select the fields related "action_evtlog*" as seen in the screenshot in order to see the Event log details&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-10-17 09_21_33-Epic Pen Content Surface_ __._DISPLAY2.png" style="width: 609px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/54471i103B7F48537A13B6/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="2023-10-17 09_21_33-Epic Pen Content Surface_ __._DISPLAY2.png" alt="2023-10-17 09_21_33-Epic Pen Content Surface_ __._DISPLAY2.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;I hope that was helpful and shed some light,&amp;nbsp; please feel free to mark the response as "Accept as Solution" if it answers your query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Oct 2023 13:23:16 GMT</pubDate>
    <dc:creator>zarnous</dc:creator>
    <dc:date>2023-10-17T13:23:16Z</dc:date>
    <item>
      <title>XQL  query for locked AD account</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-for-locked-ad-account/m-p/562038#M5356</link>
      <description>&lt;P&gt;Dear LIVEcommunity,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've been wondering about using XQL query to locate locked AD accounts. Been looking at the dataset "msft_azure_ad_raw" which contained&amp;nbsp;&lt;SPAN&gt;Azure AD Authentication Logs and have no success so far. FYI, We also ingest data via Cloud Identity Engine. Appreciate anyone could shed some light on this, i.e. Is this even possible, what dataset and the field to search for.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;LI-PRODUCT title="Cortex XDR" id="Cortex_XDR"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 08:56:47 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-for-locked-ad-account/m-p/562038#M5356</guid>
      <dc:creator>Antony_Chan</dc:creator>
      <dc:date>2023-10-17T08:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: XQL  query for locked AD account</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-for-locked-ad-account/m-p/562075#M5359</link>
      <description>&lt;P&gt;This can be done in different ways, easiest is to use what the XDR agent collects natively as part of its "&lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-Pro-Administrator-Guide/Endpoint-Data-Collection#:~:text=Security-,Microsoft%2DWindows%2DSecurity%2DAuditing,-4720%2C%204722%2C%204723" target="_self"&gt;Microsoft-Windows-Security-Auditing&lt;/A&gt;" Windows Event Collection, where XDR agent can &lt;BR /&gt;1- Collect&amp;nbsp;Event ID 4740&amp;nbsp; - A user account was locked out&amp;nbsp;&lt;BR /&gt;2-&amp;nbsp;Collect&amp;nbsp;Event ID 4767 - A user account was unlocked&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;These event IDs are going to be ingested and normalized into the dataset = xdr_data, hence a simple XQL query looking for these events can get you started and then can be filtered out down the road if you need to add more details to it, an example of this query can be :&lt;BR /&gt;&lt;BR /&gt;dataset = xdr_data // Using the xdr dataset&lt;BR /&gt;| filter event_type = ENUM.EVENT_LOG and action_evtlog_event_id in (4740 ,4767)&lt;BR /&gt;&lt;BR /&gt;If you focus only on the locked account , then Event ID&amp;nbsp;4767 can be removed, and the query can look like:&lt;BR /&gt;dataset = xdr_data // Using the xdr dataset&lt;BR /&gt;| filter event_type = ENUM.EVENT_LOG and action_evtlog_event_id =4740&lt;BR /&gt;&lt;BR /&gt;In the query results , please make sure you select the fields related "action_evtlog*" as seen in the screenshot in order to see the Event log details&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-10-17 09_21_33-Epic Pen Content Surface_ __._DISPLAY2.png" style="width: 609px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/54471i103B7F48537A13B6/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="2023-10-17 09_21_33-Epic Pen Content Surface_ __._DISPLAY2.png" alt="2023-10-17 09_21_33-Epic Pen Content Surface_ __._DISPLAY2.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;I hope that was helpful and shed some light,&amp;nbsp; please feel free to mark the response as "Accept as Solution" if it answers your query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 13:23:16 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-for-locked-ad-account/m-p/562075#M5359</guid>
      <dc:creator>zarnous</dc:creator>
      <dc:date>2023-10-17T13:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: XQL  query for locked AD account</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-for-locked-ad-account/m-p/562244#M5368</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/165579"&gt;@zarnous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thank you! I didn't know that xdr_data dataset consisted of windows security event logs. I make a few simple searches and it worked like a charm.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 10:15:23 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-for-locked-ad-account/m-p/562244#M5368</guid>
      <dc:creator>Antony_Chan</dc:creator>
      <dc:date>2023-10-18T10:15:23Z</dc:date>
    </item>
  </channel>
</rss>

