<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Alex Verboon on Medium]]></title>
        <description><![CDATA[Stories by Alex Verboon on Medium]]></description>
        <link>https://medium.com/@verboonalex?source=rss-d02f8494a6b9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Alex Verboon on Medium</title>
            <link>https://medium.com/@verboonalex?source=rss-d02f8494a6b9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 25 Nov 2026 00:34:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@verboonalex/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Exploring IdentityAccountInfo — Building a KQL Query to Assess Identity Password Security Posture]]></title>
            <link>https://medium.com/@verboonalex/exploring-identityaccountinfo-building-a-kql-query-to-assess-identity-password-security-posture-f7c288069e72?source=rss-d02f8494a6b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7c288069e72</guid>
            <category><![CDATA[kql]]></category>
            <category><![CDATA[passwords]]></category>
            <category><![CDATA[defender-for-identity]]></category>
            <dc:creator><![CDATA[Alex Verboon]]></dc:creator>
            <pubDate>Sat, 06 Dec 2025 12:27:02 GMT</pubDate>
            <atom:updated>2025-12-06T12:27:43.462Z</atom:updated>
            <content:encoded><![CDATA[<h3>Exploring IdentityAccountInfo - Building a KQL Query to Assess Identity Password Security Posture</h3><p>Recently Microsoft Defender XDR <a href="https://learn.microsoft.com/en-us/defender-xdr/whats-new#november-2025">introduced </a>a new table called <a href="https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-identityaccountinfo-table"><strong>IdentityAccountInfo</strong></a>, and this one immediately caught my attention. It brings several interesting attributes into Advanced Hunting — including <strong>LastPasswordChangeTime</strong> and even the <strong>Sensitivity</strong> classification of an identity.</p><p>Naturally, my first thought was: <em>“This is perfect material for some hunting logic — so let’s build a KQL query out of it.”</em></p><p>Why am I excited about this? Because it finally allows us to query identity hygiene data straight from Defender, no external inventory dumps, no AD scripting, just KQL. Think of the following use cases:</p><p><strong>Identify stale passwords</strong><br> → Detect accounts that haven’t changed their password for a long period<br> → Calculated in <strong>days and years</strong> for easier reporting</p><p><strong>Assess sensitivity levels</strong><br> → Determine if accounts are marked <em>sensitive</em> or carry elevated privilege</p><p><strong>Review password configuration flags</strong><br> → Highlight accounts where <em>PasswordNeverExpires</em> or <em>PasswordNotRequired</em> is set</p><p><strong>Analyze account status &amp; exposure</strong><br> → Focus on <strong>enabled</strong> accounts to prioritize active security risks</p><p>The queries can also help you when tackling the <strong>Microsoft Defender for Identity (MDI) security posture recommendations</strong>, specifically those related to account protection such as:</p><ul><li>Built-in <strong>Active Directory Guest</strong> account is enabled</li><li><strong>krbtgt password rotation</strong> recommended</li><li><strong>Built-in Domain Administrator</strong> password aging</li><li>Rotate password for <strong>Microsoft Entra Connect AD DS Connector account</strong></li><li>Remove unsafe permissions on sensitive <strong>Entra Connect sync accounts</strong></li></ul><p>Below is an example output of the query. As you can see, it surfaces key password hygiene attributes in a single view including when an account last changed its password, the sensitivity label, and policy flags like PasswordNeverExpires or PasswordNotRequired. Once you run it, a few things immediately stand out: sensitive accounts, passwords that have not been rotated for many years, and configurations that might indicate elevated risk. Having all this information side by side makes it easy to spot high-risk identities such as the built-in Administrator, Guest, MSOL service accounts, and of course krbtgt. These are exactly the type of accounts where long password lifetimes or weak configurations can open the door for attackers, and now we can quickly identify them in one view.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KgTsR_a8gv7xKiMQ2SEBsA.png" /></figure><p>You can find the queries here on GitHub: <a href="https://github.com/alexverboon/Hunting-Queries-Detection-Rules/blob/main/Defender%20For%20Identity/MDI-Identity-Password%20Security%20Posture%20Assessment.md">https://github.com/alexverboon/Hunting-Queries-Detection-Rules/blob/main/Defender%20For%20Identity/MDI-Identity-Password%20Security%20Posture%20Assessment.md</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7c288069e72" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Modern Security for Legacy Systems]]></title>
            <link>https://medium.com/@verboonalex/modern-security-for-legacy-systems-0cb96f95a949?source=rss-d02f8494a6b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/0cb96f95a949</guid>
            <category><![CDATA[microsoft-defender-xdr]]></category>
            <category><![CDATA[windows-7]]></category>
            <category><![CDATA[defender-for-endpoint]]></category>
            <dc:creator><![CDATA[Alex Verboon]]></dc:creator>
            <pubDate>Sun, 30 Nov 2025 12:43:15 GMT</pubDate>
            <atom:updated>2025-11-30T12:43:15.959Z</atom:updated>
            <content:encoded><![CDATA[<p>Despite rapid OS refresh cycles, many organizations continue to run older systems such as Windows 7 or Windows Server 2008 R2. In many cases, critical line-of-business applications only run on older frameworks, specialized production machines rely on vendor-locked drivers, or long hardware replacement cycles make immediate upgrades unrealistic. Some companies also operate regulated or validated environments where any OS change requires extensive re-certification. Until now, these legacy endpoints posed a persistent security risk because unsupported or limited protection allowed attackers to exploit their vulnerabilities with little resistance.</p><p>This situation has changed with the <a href="https://techcommunity.microsoft.com/blog/microsoftdefenderatpblog/ignite-2025-microsoft-defender-now-prevents-threats-on-endpoints-during-an-attac/4470805">recent announcement</a> from Microsoft for Defender for Endpoint, which now officially extends full protection to Windows 7 and Server 2008 R2 devices. With this update, organizations can finally bring legacy systems under the same modern and proactive security umbrella as newer OS versions, reducing risk without forcing an immediate migration.</p><p>Microsoft has supported Windows 7 and Windows Server 2008 R2 in Microsoft Defender for Endpoint for several years, but this support relied on the Microsoft Monitoring Agent (MMA) together with the System Center Endpoint Protection (SCEP) client. Because Defender for Endpoint operated only as a process-based sensor on these legacy systems, its detection, protection, and response capabilities were significantly more limited compared with modern Windows versions where Defender for Endpoint is deeply integrated into the operating system itself. The result was basic visibility rather than the full, native protection stack available on supported platforms.</p><p>With the new Microsoft Defender deployment tool for Windows 7 and Windows Server 2008 R2, Microsoft Defender for Endpoint can now be installed and configured in a way that closely matches modern operating systems such as Windows 11 and Windows Server 2019, 2022, and 2025. This update means that Defender for Endpoint now runs as a native service on these legacy systems, providing a more consistent, robust, and integrated security experience compared to the previous MMA-based approach.</p><p>Below is an overview of the Microsoft Defender for Endpoint capabilities now available on Windows 7 and Windows Server 2008 R2.</p><ul><li><strong>Advanced Hunting</strong> — Hunt across events using the Kusto Query Language (KQL).</li><li><strong>Antivirus in Passive Mode</strong> — Allows coexistence with non-Microsoft anti-malware solutions.</li><li><strong>Custom File Indicators</strong> — Create allow, block, or quarantine actions for files based on hash or certificate attributes.</li><li><strong>Device and File Response Capabilities</strong> — Isolate devices, block files, retrieve files, collect investigation packages, and run antivirus scans. <br> Note: other response capabilities are not supported.</li><li><strong>Next-Generation Protection</strong> — Real-time behavior monitoring, cloud-delivered protection, definition-based blocking and remediation, and scheduled or manual scans. <br> Note: not supported: Network Protection, Attack Surface Reduction Rules, Controlled Folder Access, IP/URL indicators, and related features.</li><li><strong>OS and Software Vulnerability Assessments</strong> — Defender Vulnerability Management provides insights into OS and application vulnerabilities. <br> Note: not available: security configuration assessment, pending reboot experience, and premium capabilities such as baseline assessment, browser extensions, certificate/application blocking.</li><li><strong>Security Settings Management</strong> — Enforce Defender Antivirus policies. Only settings for supported features will apply.</li><li><strong>Sense Detection Sensor</strong> — Provides rich detection events for timelines, hunting, and alert generation.</li><li><strong>Attack Disruption (Contain Device/IP)</strong> — Automated containment to stop lateral movement during active attacks.</li><li><strong>Automatic Updates</strong> — Regular updates for anti-malware definitions and detection components.</li></ul><p>Now let’s take a closer look at running Microsoft Defender for Endpoint on Windows 7.</p><h3>Onboarding Windows 7</h3><h4>The Prerequisites</h4><p>To deploy Microsoft Defender for Endpoint using the new deployment tool, devices must meet several general and Windows-7-specific prerequisites. All devices require administrative privileges, tenant preview features enabled, and connectivity to <em>definitionupdates.microsoft.com</em> (where the tool is downloaded) as well as the broader .endpoint.security.microsoft.com service endpoints.</p><p>For Windows 7 SP1 and Windows Server 2008 R2 SP1 specifically, only 64-bit versions are supported, and systems should have the latest Windows updates installed to minimize reboots and installation time. These legacy systems must also have the SHA-2 code-signing update (<a href="https://support.microsoft.com/help/4474419">KB4474419</a>) and the servicing stack update (<a href="https://support.microsoft.com/help/4490628">KB4490628</a>) installed; both are typically delivered automatically through Windows Update. Additionally, Server 2008 R2 SP1 requires .NET Framework 3.5 or later.</p><p>Source: <a href="https://learn.microsoft.com/en-us/defender-endpoint/defender-deployment-tool-windows#prerequisites">https://learn.microsoft.com/en-us/defender-endpoint/defender-deployment-tool-windows#prerequisites</a></p><p>Run the following commands to verify that the required KBs are installed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*86PYD66K4Tn7YxvhpWuCHQ.png" /></figure><h4>Defender Deployment Tool</h4><p>In the Microsoft Defender portal (security.microsoft.com), select System &gt; Settings &gt; Endpoints &gt; Onboarding. From the drop-down menu, choose Windows (preview).</p><p>Under Deploy by downloading and applying packages or files, select the Download package button. This downloads the Defender executable and the onboarding file package.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*pNAdtAW_gn0f5GcjOYjFuw.png" /></figure><p>The Defender Deployment Tool can be used in both interactive and non-interactive modes. For more details, see the official Microsoft documentation: <a href="https://learn.microsoft.com/en-us/defender-endpoint/defender-deployment-tool-windows#deploy-defender-endpoint-security-on-devices">https://learn.microsoft.com/en-us/defender-endpoint/defender-deployment-tool-windows#deploy-defender-endpoint-security-on-devices</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*ctclIAV3mBm6DefzAdvofQ.png" /></figure><p>After a reboot, the Defender for Endpoint installation is completed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*0BILt1BdNEQjrd6A47yDNg.png" /></figure><p>When encountering any issues, check the Defender Deployment tool log files located in: C:\ProgramData\Microsoft\DefenderDeploymentTool</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*Rt7ukGsqtyRweGorHD6Vjw.png" /></figure><p>If all goes well, the device will show up in the Device Inventory</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*efRPXCnYH12M215h0ovP9g.png" /></figure><h4>Security Settings Management</h4><p>The good news is that Security Settings Management is fully supported, allowing you to centrally manage Defender configurations such as file, folder, and process exclusions, as well as definition update schedules.</p><p>To assign the Endpoint Security Policy for Windows 7 devices, Prepare a dedicated Entra Security Group, using the following dynamic membership rule.</p><pre>(device.deviceOSType -eq &quot;Windows&quot;) and (device.managementType -eq &quot;MicrosoftSense&quot;) and (device.deviceOSVersion -startsWith &quot;6.1.7601&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*9FsjCGaBvnSuXfUqMi6jCw.png" /></figure><p>Note: If you already have other Security Groups for Windows 10/11 Client MDE Security Settings Management, consider updating these to exclude Windows 7 devices.</p><p>Next, create a Security Settings Policy for Windows 7 and assign the policy to the previously created Entra ID Group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*Bkpscabq-XFkc6Mu0fXkmA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*6PSxdL-cKHSK8WfzDmbZeg.png" /></figure><p>Depending on how you have configured the Enforcement scope, you must first Tag the device for it to be registered in Entra ID and Microsoft Intune.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*YbDQLxNpwuv3YkGxxwQ_Nw.png" /></figure><p>For more information about Security Settings management see: <a href="https://learn.microsoft.com/en-us/defender-endpoint/mde-security-settings-management">https://learn.microsoft.com/en-us/defender-endpoint/mde-security-settings-management</a></p><h3>Defender for Endpoint on Windows 7</h3><p>As mentioned previously, Microsoft Defender for Endpoint is now deeply integrated into the Windows 7 operating systems and has nearly the same footprint as on newer Windows Operating systems. Defender Antivirus and Defender for Endpoint are now both running as a service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*0iBj5fJUdIgo-A6fyNIlxw.png" /></figure><p>Note that there’s no local user interface for Antivirus, but you can view or manage the settings locally using PowerShell 5.1</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*QuZx5kC-7hK_qTHop3fJFg.png" /></figure><p>On Windows 7 SP1 and on Windows Server 2008 R2 SP1 with the Desktop Experience pack installed, you might see a notification from Action Center Windows did not find antivirus software on this computer. This is not indicative of a problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*whRz3yUz5ST8O8rsy--2Yg.png" /></figure><h4>Inventory and Vulnerability Management</h4><p>When the device is successfully onboarded, it will start sending inventory data, including information about installed software and missing KBs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*U_23UxvN9bNpjAg_UThdBQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*aQZrHEgzN2fObCBM3KvdmA.png" /></figure><h4>Detection and Response</h4><p>To validate how Defender for Endpoint reacts to real-world attack behavior, we run a selection of <a href="https://github.com/redcanaryco/atomic-red-team">Atomic Red Team tests</a> to simulate adversary activity. In our scenario, Defender for Endpoint successfully detected the threats, initiated <a href="https://learn.microsoft.com/en-us/defender-xdr/automatic-attack-disruption">Attack Disruption</a>, and automatically contained the affected account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*4rUR8x_s3WLH9qpNEXr9gA.png" /></figure><h3>Conclusion</h3><p>If you still have Windows 7 or Server 2008 R2 in your environment, consider deploying Defender for Endpoint now, attackers certainly won’t wait.</p><h3>References:</h3><ul><li>Expanded Defender support for legacy Windows devices<br> <a href="https://techcommunity.microsoft.com/blog/microsoftdefenderatpblog/ignite-2025-microsoft-defender-now-prevents-threats-on-endpoints-during-an-attac/4470805">https://techcommunity.microsoft.com/blog/microsoftdefenderatpblog/ignite-2025-microsoft-defender-now-prevents-threats-on-endpoints-during-an-attac/4470805</a></li><li>Onboard previous versions of Windows<br> <a href="https://learn.microsoft.com/en-us/defender-endpoint/onboard-downlevel">https://learn.microsoft.com/en-us/defender-endpoint/onboard-downlevel</a></li><li>Defender deployment tool (preview)<br> <a href="https://learn.microsoft.com/en-us/defender-endpoint/defender-deployment-tool-windows">https://learn.microsoft.com/en-us/defender-endpoint/defender-deployment-tool-windows</a></li><li>Endpoint security in the AI era: What’s new in Defender | BRK240<br> <a href="https://www.youtube.com/watch?v=5FvIbLwRqzg">https://www.youtube.com/watch?v=5FvIbLwRqzg</a> (4:15)</li><li>Known issues and limitations for Windows 7 SP1 and Windows Server 2008 R2 SP1<br> <a href="https://learn.microsoft.com/en-us/defender-endpoint/defender-deployment-tool-windows#known-issues-and-limitations-for-windows-7-sp1-and-windows-server-2008-r2-sp1">https://learn.microsoft.com/en-us/defender-endpoint/defender-deployment-tool-windows#known-issues-and-limitations-for-windows-7-sp1-and-windows-server-2008-r2-sp1</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0cb96f95a949" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Defender for Identity — Automatic Windows event auditing configuration]]></title>
            <link>https://medium.com/@verboonalex/defender-for-identity-automatic-windows-event-auditing-configuration-0e7ed8e89f62?source=rss-d02f8494a6b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/0e7ed8e89f62</guid>
            <category><![CDATA[event-auditing]]></category>
            <category><![CDATA[defender-for-identity]]></category>
            <dc:creator><![CDATA[Alex Verboon]]></dc:creator>
            <pubDate>Sat, 22 Nov 2025 14:29:46 GMT</pubDate>
            <atom:updated>2025-11-22T14:58:38.946Z</atom:updated>
            <content:encoded><![CDATA[<h3>Defender for Identity — Automatic Windows event auditing configuration</h3><p>One of the most common issues we encounter during Defender for Identity assessments is misconfiguration. Many organizations believe that installing the sensor is the final step, but that is only part of the story. Proper post-installation configuration, especially enabling the right Windows event auditing policies, is essential for full detection capabilities. Without it, functionality is degraded and health notifications start piling up.</p><figure><img alt="Defender for Identity — Health Message about missing auditing configuration" src="https://cdn-images-1.medium.com/max/1024/1*085RNu6bqufIR2wgy8L5wA.png" /></figure><p>Event auditing is critical because Defender for Identity relies on specific Windows events to detect identity-based threats. Unfortunately, these settings are often overlooked. Administrators either forget to configure them or assume defaults are sufficient, leaving gaps in visibility and detection.</p><p>Defender for Identity relies on the following audit policies and subcategories to capture critical events:</p><p><strong>Account Logon</strong></p><ul><li>Audit Credential Validation → Event ID: 4776</li></ul><p><strong>Account Management</strong></p><ul><li>Audit Computer Account Management → Event IDs: 4741, 4743</li><li>Audit Distribution Group Management → Event IDs: 4753, 4763</li><li>Audit Security Group Management → Event IDs: 4728, 4729, 4730, 4732, 4733, 4756, 4757, 4758</li><li>Audit User Account Management → Event ID: 4726</li></ul><p><strong>DS Access</strong></p><ul><li>Audit Directory Service Changes → Event ID: 5136</li><li>Audit Directory Service Access → Event ID: 4662</li></ul><p><strong>System</strong></p><ul><li>Audit Security System Extension → Event ID: 7045</li></ul><h4>Automatic Windows Event Auditing Configuration</h4><p>To address this issue, Microsoft has introduced a new capability called <strong>Automatic Windows Event Auditing Configuration</strong>. The Defender for Identity sensor v3.x can automatically configure Windows event auditing on your domain controllers, applying the required Windows event auditing settings to new sensors and fixing misconfigurations on existing ones.</p><p>To enable Automatic Windows Auditing Configuration, navigate within the Defender XDR portal (https://security.microsoft.com) to Settings / Identities / Advanced Features.</p><figure><img alt="Defender for Identity Automatic Windows Event Auditing Configuration" src="https://cdn-images-1.medium.com/max/1024/1*IcXpMjeVsqa-6oqo7uvKNw.png" /></figure><p>Once enabled, you can verify the effect by running the KQL query I have published <a href="https://github.com/alexverboon/Hunting-Queries-Detection-Rules/blob/main/Defender%20For%20Identity/MDI-Automatic%20Windows%20auditing%20configuration.md">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m8ggpUgOBZL5fMiC10g3-g.png" /></figure><p>Note that the <em>InitiatingProcessFileName </em>is <strong><em>senseidentity</em>.<em>exe</em></strong><em>. </em>If the changes originate from svchost.exe, then you most likely have a conflict originating from Group Policy as shown in the example below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mMUDBaLapRf4wn-g7HQVzg.png" /></figure><p>If things aren’t working as expected, you also want to check whether there is a leftover from a previous local configuration. Look for the following file.</p><p>“C:\Windows\System32\GroupPolicy\Machine\Microsoft\Windows NT\Audit\audit.csv”</p><p>You can also verify the configuration by running the following command:</p><pre>auditpol /get /category:* | findstr /V /C:&quot;No Auditing&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*WJmw2rGZnOJjW3VYbliNOQ.png" /></figure><h4>References</h4><ul><li><a href="https://github.com/alexverboon/Hunting-Queries-Detection-Rules/blob/main/Defender%20For%20Identity/MDI-Automatic%20Windows%20auditing%20configuration.md">Hunting-Queries-Detection-Rules/Defender For Identity/MDI-Automatic Windows auditing configuration.md at main · alexverboon/Hunting-Queries-Detection-Rules</a></li><li><a href="https://mc.merill.net/message/MC1187403">MC1187403 — Automatic Windows event auditing configuration now available for unified sensors (V3.x) | Microsoft 365 Message Center Archive</a></li><li><a href="https://learn.microsoft.com/en-us/defender-for-identity/deploy/configure-windows-event-collection#configure-windows-event-auditing-with-the-defender-for-identity-sensor-v3x">Configure audit policies for Windows event logs — Microsoft Defender for Identity | Microsoft Learn</a></li><li><a href="https://learn.microsoft.com/en-us/defender-for-identity/whats-new">What’s new — Microsoft Defender for Identity | Microsoft Learn</a></li><li><a href="https://learn.microsoft.com/en-us/defender-for-identity/deploy/configure-windows-event-collection#configure-advanced-audit-policy-settings-from-the-ui">Configure audit policies for Windows event logs — Microsoft Defender for Identity | Microsoft Learn</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0e7ed8e89f62" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Collect Microsoft Entra Connect Sync Audit Events]]></title>
            <link>https://medium.com/@verboonalex/collect-microsoft-entra-connect-sync-audit-events-048c8f331e4c?source=rss-d02f8494a6b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/048c8f331e4c</guid>
            <dc:creator><![CDATA[Alex Verboon]]></dc:creator>
            <pubDate>Sat, 06 Sep 2025 15:32:18 GMT</pubDate>
            <atom:updated>2025-09-06T15:32:18.923Z</atom:updated>
            <content:encoded><![CDATA[<p>Starting with version 2.4.129.0, Microsoft Entra Connect Sync introduces a new admin audit logging feature that is enabled by default. This capability provides organizations with valuable visibility into configuration changes performed by Global Administrators, Hybrid Administrators, and local server administrators. Monitoring these changes is essential for maintaining security, compliance, and operational oversight in hybrid identity environments. In this blog, we’ll walk through how to set up forwarding of Microsoft Entra Connect Sync audit event logs into Microsoft Sentinel, enabling centralized monitoring, detection, and investigation of configuration activities within your security operations workflows.</p><h3>Check the Microsoft Entra Connect Sync Version</h3><p>Within the Microsoft Entra Portal entra.microsoft.com select Entra Connect / Connect Sync / Microsoft Entra Connect Health / Sync Services / &lt;Service Name&gt; / Microsoft Entra Connect Servers / &lt; Servername&gt; / Properties / Synchronization.</p><figure><img alt="screenshot of the Entra portal showing the Entra Connect Sync version" src="https://cdn-images-1.medium.com/max/940/1*s5AhQ80b-3s4rmo047Gtmg.png" /><figcaption>Entra Connect Sync Version</figcaption></figure><p>You can also check the version locally on the Entra Connect Synch Server.</p><figure><img alt="show the Entra Connect version on the local server in the Entra Connect Synch Application" src="https://cdn-images-1.medium.com/max/667/1*9L92HBJ865XmPIc5tZTKBw.png" /><figcaption>Entra Connect version</figcaption></figure><h3>Audit Logs</h3><p>Within the Windows Event log Viewer, you can see the Microsoft Entra Admin Actions.</p><figure><img alt="Windows Event log Viewer listing Entra Connect Sync Admin Actions" src="https://cdn-images-1.medium.com/max/940/1*WV8aw0GwoA1d9yj1TJ3Hjg.png" /><figcaption>Windows Event Log Viewer</figcaption></figure><h3>Azure Monitor Agent</h3><p>The Azure Monitor Agent (AMA) is Microsoft’s unified monitoring agent that collects telemetry data (such as logs and metrics) from servers and virtual machines and sends it to a Microsoft Sentinel Log Analytics workspace for analysis.</p><p>If your Microsoft Entra Connect Sync server is running on-premises, you’ll need to onboard it to Azure Arc in order to use the Microsoft AMA agent.</p><p>Once you have onboarded your Microsoft Entra Connect Sync Server into Azure Arc, the Azure Monitor Agent (Extension) will be installed automatically once the Data Collection rule is enabled.</p><h3>Microsoft Sentinel — Windows Security Events via AMA</h3><p>To forward Windows Security Events to Microsoft Sentinel, use the Windows Security Events data connector. If it isn’t already deployed, you can install it directly from the Microsoft Sentinel Content Hub.</p><figure><img alt="Microsoft Sentinel Content Hub" src="https://cdn-images-1.medium.com/max/940/1*D2_0dTaC8yjOdCU0xo_LCg.png" /><figcaption>Microsoft Sentinel Content Hub</figcaption></figure><p>Once installed, within the Microsoft Sentinel portal, select the Data connectors tab, and open the <strong>Windows Security Events via AMA</strong> configuration.</p><figure><img alt="Azure Monitor Agent configuration" src="https://cdn-images-1.medium.com/max/940/1*6bWPGMYAaljnIQ4ykJiSYw.png" /><figcaption>AMA Connector Configuration</figcaption></figure><p>Select <strong>Create data collection rule. </strong>Provide a Name for the Data Collection rule, select the Subscription and Resource Group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*e66N3iJA55AaFve4mz1t7g.png" /></figure><p>Next in the Resources Tab select the Server where Microsoft Entra Connect Sync is running.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*Xnev8OBrUjrxwiBjXkyo8Q.png" /></figure><p>Next on the Collect Tab select Custom and add the following XPATH queries.</p><pre>Application!*[System[Provider[@Name=&#39;Entra Connect Admin Actions&#39;] and (EventID=2523 or EventID=2524 or EventID=2525 or EventID=2526)]]<br><br>Application!*[System[Provider[@Name=&#39;Entra Connect Admin Actions&#39;] and (EventID=2503 or EventID=2504 or EventID=2505 or EventID=2506 or EventID=2507 or EventID=2508 or EventID=2509 or EventID=2510 or EventID=2511 or EventID=2512 or EventID=2513 or EventID=2514 or EventID=2515 or EventID=2516 or EventID=2517 or EventID=2518 or EventID=2519 or EventID=2520)]]<br><br>Application!*[System[Provider[@Name=&#39;Entra Connect Admin Actions&#39;] and (EventID=2521 or EventID=2522)]]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*_MTJa6JBDVXKE2adQj9xTQ.png" /></figure><p>Review the settings and select <strong>Create </strong>to create the data collection rule.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*F1Q2vPnYRIuoHr1wFgZyFg.png" /></figure><p>Once the DCR Rule is deployed to the Server, the Azure Monitor Agent Extension is automatically being installed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*ZHmo4jiopUUHMvL1isoKWQ.png" /><figcaption>Azure Arc — Extensions</figcaption></figure><p>All changes to Microsoft Entra Connect Sync configurations described here: <a href="https://learn.microsoft.com/en-us/entra/identity/hybrid/connect/admin-audit-logging">https://learn.microsoft.com/en-us/entra/identity/hybrid/connect/admin-audit-logging</a> are now forwarded to our Microsoft Sentinel log analytics workspace. Now when running the below query, you see all events.</p><p><a href="https://github.com/alexverboon/Hunting-Queries-Detection-Rules/blob/main/Entra%20ID/EntraID-EntraConnectSyncAuditEvents.md">https://github.com/alexverboon/Hunting-Queries-Detection-Rules/blob/main/Entra%20ID/EntraID-EntraConnectSyncAuditEvents.md</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*pkkpK9dfcKHsWs70hH7qqQ.png" /></figure><p>Happy auditing!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=048c8f331e4c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Shedding Light on Dormant Sensitive Accounts]]></title>
            <link>https://medium.com/@verboonalex/shedding-light-on-dormant-sensitive-accounts-5a443ff2b6f2?source=rss-d02f8494a6b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a443ff2b6f2</guid>
            <dc:creator><![CDATA[Alex Verboon]]></dc:creator>
            <pubDate>Tue, 08 Jul 2025 15:34:54 GMT</pubDate>
            <atom:updated>2025-07-08T15:37:51.632Z</atom:updated>
            <content:encoded><![CDATA[<p>Microsoft Defender for Identity identifies users flagged as sensitive and provides additional insights, such as whether these accounts are inactive, disabled, or have expired credentials.</p><p>However, sensitive accounts that remain unused for 180 days or more are considered dormant. These dormant sensitive accounts pose a significant security risk, as attackers may exploit them to gain privileged access within your organization.</p><p>In the <strong>Microsoft Defender XDR portal</strong>, go to <strong>Exposure management</strong> and select <strong>Recommendations</strong>. Here, you’ll find a recommendation titled <strong>“Remove dormant accounts from sensitive groups”</strong>, marked as <strong>Not Compliant</strong> with a <strong>Medium</strong> severity level.</p><p>Clicking on the recommendation opens a detailed view where you can switch to the <strong>Exposed entities</strong> tab. This view lists all affected accounts, including their <strong>sensitivity tag</strong>, <strong>domain</strong>, <strong>status</strong> (e.g., Disabled, Inactive), and how long they’ve been dormant.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DOHV37yOHpo_UPtHIolLeQ.png" /></figure><p>Click the Export button to download a list of all identified dormant accounts. However, the exported data only includes the account entity name, making it difficult to identify where the account resides in Active Directory. Key contextual information such as the SAM account name, company, department, or manager details is missing, which limits further investigation or remediation efforts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bNNVaHVDBZyE59W2u4B0Xw.png" /></figure><p>Fortunately, we do have access to the SID of each account. We can use this information by copying the SIDs and pasting them into <a href="https://alexverboon.github.io/KustoVars/">KustoVars</a>, a tool I recently created to quickly generate KQL variables.</p><p>Start by defining a variable name, for example <em>sid_list</em>, then paste in the list of SID values and click Generate KQL. The tool will output a properly formatted KQL variable block, which you can directly copy and use within Microsoft Defender XDR Advanced Hunting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A963As7oXiz6lwu856G3Mg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hvsffZQro98NB92ipb2l6w.png" /></figure><p>Then add the following KQL query right underneath the variable and run the query.</p><pre>IdentityInfo<br>| where TimeGenerated &gt; ago(21d)<br>| where OnPremSid in~ (sid_list)<br>| summarize arg_max(TimeGenerated,*) by OnPremSid<br>| project AccountDisplayName, AccountName,AccountDomain, OnPremSid, OnPremObjectId, CompanyName, Department, Country, AccountUpn, DistinguishedName, IsAccountEnabled, Manager</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lnf6osEsMQdPXjFlkAeX6g.png" /></figure><p>And there you go, once the query runs, you now gain <strong>additional valuable context</strong> about the dormant accounts, including attributes such as:</p><ul><li>AccountDisplayName</li><li>AccountName</li><li>AccountDomain</li><li>OnPremSid</li><li>OnPremObjectId</li><li>CompanyName</li><li>Department</li><li>Country</li><li>AccountUpn</li><li>DistinguishedName</li><li>IsAccountEnabled</li><li>Manager</li></ul><p>This enriched information helps you better understand the account’s purpose, ownership, and organizational placement, making it easier to decide whether it can be safely deactivated or removed.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a443ff2b6f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Microsoft Defender for Endpoint -Security Settings Management Internals 0x1]]></title>
            <link>https://medium.com/@verboonalex/microsoft-defender-for-endpoint-security-settings-management-internals-0x1-51586f184b42?source=rss-d02f8494a6b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/51586f184b42</guid>
            <category><![CDATA[configuration-management]]></category>
            <category><![CDATA[defender-for-endpoint]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[entra-id]]></category>
            <category><![CDATA[microsoft-intune]]></category>
            <dc:creator><![CDATA[Alex Verboon]]></dc:creator>
            <pubDate>Sun, 28 Apr 2024 12:25:01 GMT</pubDate>
            <atom:updated>2024-04-28T12:25:01.857Z</atom:updated>
            <content:encoded><![CDATA[<p>In this blog post we take a closer look at how <a href="https://learn.microsoft.com/en-us/mem/intune/protect/mde-security-integration">Microsoft Defender for Endpoint Security Settings Management</a> operates under the hood when managing Windows Servers.</p><h4>EntraID device Registration</h4><p>Because Microsoft Intune policies are assigned to groups, we need a device object in Entra ID. If the device was previously registered, like a Hybrid join device, the existing registration is used. For devices that haven’t been registered, a synthetic device identity is created in Microsoft Entra ID to enable the device to retrieve policies.</p><p>The creation of a synthetic device identity is especially useful for scenarios where the device is not a member of an on-premises Active Directory domain and where there is no native Intune support such as Windows Servers or Linux servers.</p><p><em>The following diagram is a conceptual representation of the Microsoft Defender for Endpoint security configuration management solution. Source: </em><a href="https://learn.microsoft.com/en-us/mem/intune/protect/mde-security-integration#architecture">https://learn.microsoft.com/en-us/mem/intune/protect/mde-security-integration#architecture</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9QnPn9U_Se4ZVIGf.png" /></figure><p>As shown in the above diagram, Microsoft Intune creates the synthetic device identity. Let’s take a look at the EntraID audit</p><pre>AuditLogs<br>| where OperationName == &#39;Update device&#39; or OperationName == &#39;Add device&#39;<br>| where Identity == &quot;Microsoft Intune&quot;<br>| extend modifiedProperties = parse_json(TargetResources)[0].modifiedProperties<br>| mv-expand modifiedProperties<br>| where modifiedProperties.displayName == &quot;DeviceOSType&quot;<br>| extend OldValue = tostring(parse_json(tostring(modifiedProperties.oldValue))[0])<br>| extend NewValue = tostring(parse_json(tostring(modifiedProperties.newValue))[0])<br>| extend DeviceName = tostring(TargetResources[0].displayName)<br>| project TimeGenerated, DeviceName, OldValue, NewValue, Identity, AADOperationType</pre><p>Server2022–001 and Server2016–001 were not Hybrid Joined thus no device objects existed for the devices in EntraID. Microsoft Intune created the synthetic device identity in EntraID.</p><p>Server2019–001 was hybrid joined and therefore the existing device identity object is used and the deviceOSType is updated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z1u6aqjeHmIWzOgy64KF_g.png" /><figcaption>Microsoft Intune synthetic device creation</figcaption></figure><h4>Windows Server — deviceOSType</h4><p>Earlier the operating system for Windows Servers contained the value “Windows’ that made it difficult to target security settings policies to Windows Servers only. Therefore, when a Windows Server is managed by Microsoft Defender for Endpoint Security Settings management, the <em>deviceOSType </em>is updated to ‘Windows Server”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z1hGNfsw6JYBbl3b2XLpaA.png" /><figcaption>deviceOSType attribute change</figcaption></figure><p><em>For more details see: </em><a href="https://techcommunity.microsoft.com/t5/intune-customer-success/windows-server-devices-managed-by-defender-for-endpoint-now/ba-p/3767773"><em>Windows Server devices managed by Defender for Endpoint now recognized as a new OS platform — Microsoft Community Hub</em></a></p><p>Let’s gather some information from Entra ID with PowerShell.</p><pre>$Result = [System.Collections.ArrayList]::new()<br>$AllDevices = Get-MgDevice -All<br>foreach ($Device in $AllDevices) {<br>    $DeviceDetail = $Device.AdditionalProperties<br>    $object = [PSCustomObject]@{<br>        DeviceName = $Device.DisplayName<br>        ManagementType = $DeviceDetail.managementType<br>        enrollmentType = $DeviceDetail.enrollmentType<br>        SystemLabels = $Device.Systemlabels<br>        IsManaged = $Device.isManaged<br>        TrustType = $Device.trustType<br>        DeviceId = $Device.DeviceId<br>        OperatingSystem = $Device.OperatingSystem<br>        OperatingSystemVersion = $Device.OperatingSystemVersion<br>    }<br>    [void]$Result.Add($object)<br>}<br>$Result | where-object {$_.DeviceName -like &quot;Server*&quot;}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*pSAZua1Iu30WkhtW6lANyw.png" /><figcaption>EntraID device information</figcaption></figure><p>Note that the <em>ManagementType </em>is set to ‘MicrosoftSense” we can use this value later when creating dynamic groups in Entra ID. We can also easily identify the synthetic device objects where the <em>TrustType </em>attribute is blank.</p><p>Within the Entra ID portal, we see the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KUpO-Afp8BGBEO3p4VfW9w.png" /><figcaption>Devices in the Entra ID portal</figcaption></figure><h4>EntraID Dynamic Groups</h4><p>To ensure that all devices enrolled in Defender for Endpoint security settings management receive policies it is recommended to create dynamic groups in Entra ID.</p><p>As described <a href="https://learn.microsoft.com/en-us/mem/intune/protect/mde-security-integration#what-to-expect-in-the-microsoft-azure-portal">here</a>, use the following guidance for creating dynamic groups:</p><ul><li>(Recommended) When targeting policy, use dynamic groups based on the device platform by using the <strong><em>deviceOSType</em> </strong>attribute (Windows, <strong>Windows Server</strong>, macOS, Linux) to ensure policy continues to be delivered for devices that change management types, for example during MDM enrollment.</li><li>If necessary, dynamic groups containing exclusively devices that are managed by Defender for Endpoint can be targeted by defining a dynamic group using the <strong><em>managementType</em> </strong>attribute <strong>MicrosoftSense</strong>. Use of this attribute targets all devices that are managed by Defender for Endpoint via the security settings management functionality, and devices remain in this group only while managed by Defender for Endpoint.</li></ul><p>I have created the following Entra ID dynamic groups.</p><pre>+---------------------+-----------------------------------------+<br>|     Group Name      |               Description               |<br>+---------------------+-----------------------------------------+<br>| sg-MDE-Servers      | All Windows Servers managed by MDE      |<br>| sg-MDE-Servers-2022 | All Windows Server 2022 managed by MDE  |<br>| sg-MDE-Servers-2019 | All Windows Server 2019 managed by MDE  |<br>| sg-MDE-Servers-2016 | All Windows Server 2016 managed by MDE  |<br>+---------------------+-----------------------------------------+</pre><p><strong>sg-MDE-Servers</strong></p><p>The sg-MDE-Servers includes all Windows Servers managed by MDE.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XT328V1N07T3mTsIitalUg.png" /><figcaption>Dynamic Membership rule for Windows Servers</figcaption></figure><pre>(device.deviceOSType -eq &quot;Windows Server&quot;) and (device.managementType -eq &quot;MicrosoftSense&quot;)</pre><h4>Windows Server OS Version specific dynamic groups</h4><p>To create more granular groups for Windows Server OS versions, we add an additional filter on the <em>deviceOSVersion </em>attribute. Having Windows Server OS specific groups in place will come in handy later when we deploy policies that contain settings not supported on all versions.</p><h4>sg-MDE-Server2022</h4><p>The sg-MDE-Server2022 group includes all Windows Server 2022 devices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*porAD9p-ak6zK8q3RMER0g.png" /><figcaption>Dynamic Membership Rule for Server 2022</figcaption></figure><pre>device.deviceOSType -eq &quot;Windows Server&quot;) and (device.deviceOSVersion -startsWith &quot;10.0.20348&quot;) and (device.managementType -eq &quot;MicrosoftSense&quot;)</pre><p>let’s validate our filter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nG7kKj_WPn-hit8K8xacYA.png" /><figcaption>Dynamic Group Filter validation</figcaption></figure><p>For the Windows Server 2019 and 2016, the filters are as following:</p><p>Dynamic Membership rule for Server 2019</p><pre>(device.deviceOSType -eq &quot;Windows Server&quot;) and (device.deviceOSVersion -startsWith &quot;10.0.17763&quot;) and (device.managementType -eq &quot;MicrosoftSense&quot;)</pre><p>Dynamic Membership rule for Server 2016</p><pre>(device.deviceOSVersion -startsWith &quot;10.0.14393&quot;) and (device.deviceOSType -eq &quot;Windows Server&quot;) and (device.managementType -eq &quot;MicrosoftSense&quot;)</pre><p>Stay tuned for the upcoming blog post where we will be creating and assigning security settings policies and see how they are being processed.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=51586f184b42" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>