<?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 Ahmed Monsri on Medium]]></title>
        <description><![CDATA[Stories by Ahmed Monsri on Medium]]></description>
        <link>https://medium.com/@ahmed.monsry?source=rss-4add91c9ba9a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*tKtiG5Py7sAogJesndCy8A.jpeg</url>
            <title>Stories by Ahmed Monsri on Medium</title>
            <link>https://medium.com/@ahmed.monsry?source=rss-4add91c9ba9a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 13:48:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ahmed.monsry/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[Secure Enablement of Claude M365 MCP Connector]]></title>
            <link>https://medium.com/@ahmed.monsry/secure-enablement-of-claude-m365-mcp-connector-ea726ade248b?source=rss-4add91c9ba9a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea726ade248b</guid>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[claude]]></category>
            <category><![CDATA[integration]]></category>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Ahmed Monsri]]></dc:creator>
            <pubDate>Wed, 22 Jul 2026 09:43:39 GMT</pubDate>
            <atom:updated>2026-07-22T09:43:39.066Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*651p3O3QoHRUxgJ0ihqq7w.png" /></figure><h4>Introduction</h4><p>I generally <strong>do not recommend connecting third-party AI assistants to Microsoft 365 data</strong> unless there is a well-defined business requirement that cannot be adequately addressed otherwise.</p><p>Expanding access to enterprise data through an external AI platform inevitably introduces additional security, privacy, compliance, and governance considerations that organizations must carefully evaluate.</p><p>That said, security is rarely about saying “no” to business requirements. It is about understanding the risks, implementing appropriate controls, and enabling innovation responsibly. If the business value of the Claude M365 MCP Connector is assessed to outweigh the associated risks, then the objective should be to deploy it in the most secure and controlled manner possible.</p><p>This article outlines the approach I would take to securely enable Anthropic’s Microsoft 365 MCP Connector. It focuses on minimizing risk through strong identity governance, least-privilege access, Conditional Access enforcement, permission reviews, monitoring, and phased deployment practices. The goal is not simply to make the integration work, but to ensure it operates within an acceptable risk tolerance while maintaining visibility and control over how enterprise data is accessed and used.</p><h3>1. Secure target state</h3><p>This SOP defines the highest-security practical configuration for enabling the official Microsoft 365 MCP connector for Claude. It deliberately uses a controlled pilot, delegated user access, explicit app assignment, Conditional Access, read-only capability, and auditable administrator consent.</p><h3>Target-state controls</h3><p><strong>Connector</strong></p><ul><li><strong>Required state:</strong> Official Anthropic Microsoft 365 connector only</li><li><strong>Security intent:</strong> Do not deploy a community/local M365 MCP as an alternative.</li></ul><p><strong>Identity</strong></p><ul><li><strong>Required state:</strong> Per-user delegated Microsoft Graph permissions (not broad application-only access.)</li><li><strong>Security intent:</strong> No shared accounts, PATs, shared tokens, or stored user secrets.</li></ul><p><strong>Access</strong></p><ul><li><strong>Required state:</strong> Assignment required on both enterprise applications</li><li><strong>Security intent:</strong> The same approved security group must be assigned to both. This setting means: <strong>Only members of the approved Claude pilot group can obtain access through either component of the Microsoft 365 MCP connector; everyone else is blocked by Entra.</strong></li></ul><p><strong>Permissions</strong></p><ul><li><strong>Required state:</strong> Minimum read scopes needed by the approved use case</li><li><strong>Security intent:</strong> Revoke unused workloads; keep all write scopes unapproved.</li></ul><p><strong>Device/session</strong></p><ul><li><strong>Required state:</strong> Conditional Access</li><li><strong>Security intent:</strong> Require approved authentication and managed-device posture according to organizational policy.</li></ul><p><strong>Rollout</strong></p><ul><li><strong>Required state:</strong> Pilot first</li><li><strong>Security intent:</strong> Approve expansion only after evidence review and negative testing.</li></ul><p><strong>Monitoring</strong></p><ul><li><strong>Required state:</strong> Entra + M365 audit + Claude admin/Compliance telemetry</li><li><strong>Security intent:</strong> Alert on consent, permission, assignment, and write-tool changes. Microsoft states that AuditLogs contains directory and managed-application activity, while sign-in tables cover interactive, non-interactive, and service-principal authentication. Monitor both Claude applications: <strong>M365 MCP Client for Claude</strong>; <strong>M365 MCP Server for Claude</strong>. Microsoft Entra audit logs capture application, service-principal, group, and user changes and cannot be modified or deleted.</li></ul><h3>2. Mandatory prerequisites and change record</h3><ul><li>Approved business use case and data categories documented.</li><li>Security risk assessment and data-protection review approved.</li><li>Claude organization Owner available to enable the connector.</li><li>Microsoft Entra Global Administrator available only for the consent step.</li><li>Dedicated security group created (example: Claude-M365-MCP-Pilot).</li><li>Pilot users completed required Claude awareness training and acknowledged the acceptable-use policy.</li><li>Rollback owner, monitoring owner, and service owner identified.</li></ul><p><strong>Do not proceed if any prerequisite is incomplete.</strong></p><h3>3. Secure enablement procedure</h3><h3>Step 1: Approve a read-only pilot scope</h3><p><strong>• </strong>Define exactly which workloads are needed: SharePoint/OneDrive, Outlook mail, calendar, Teams chat/channels, meetings/transcripts, or directory lookup.</p><p><strong>• </strong>Define the pilot group and named owners. Keep membership small and exclude privileged administrators unless their use case is explicitly approved.</p><p><strong>• </strong>Document prohibited data and sensitive repositories. Review existing M365 permissions because Claude inherits what each user can already access.</p><p><strong>• </strong>Record that write tools are out of scope for phase 1.</p><p><strong>SECURITY NOTE: </strong>The connector searches SharePoint tenant-wide within each user’s existing access; site-specific search restriction is not supported by the connector. Oversharing must be remediated before rollout.</p><p><strong>Evidence / acceptance: </strong>Approved change/request, risk assessment, data owner sign-off, pilot membership list.</p><h3>Step 2: Enable the official connector in Claude but do not connect users yet</h3><p><strong>• </strong>Sign in to Claude using an organization Owner account.</p><p><strong>• </strong>Open Organization settings &gt; Connectors.</p><p><strong>• </strong>Select + Add &gt; All available.</p><p><strong>• </strong>Find Microsoft 365 and select Add to your team.</p><p><strong>• </strong>Leave write tools disabled. Do not grant members access until Entra controls are completed.</p><p><strong>Evidence / acceptance: </strong>Screenshot/export showing Microsoft 365 connector added and write actions disabled.</p><h3>Step 3: Create both Anthropic service principals manually in Entra</h3><p><strong>• </strong>Use Microsoft Graph Explorer while signed in with an appropriately authorized administrator.</p><p><strong>• </strong>Create the M365 MCP Client for Claude service principal with the exact request below.</p><p><strong>• </strong>Create the M365 MCP Server for Claude service principal with the exact request below.</p><p><strong>• </strong>Confirm that two enterprise applications now exist and that their App IDs exactly match the documented values.</p><p><strong>SECURITY NOTE: </strong>Manual creation is preferred for a controlled deployment because it lets Security verify both identities before tenant-wide consent.</p><p><strong>Evidence / acceptance: </strong>Screenshots or Graph output for both service principals, including display name, App ID, object ID, publisher, and creation time.</p><pre>M365 MCP Client for Claude<br>POST https://graph.microsoft.com/v1.0/servicePrincipals<br>{&quot;appId&quot;:&quot;08ad6f98-a4f8–4635-bb8d-f1a3044760f0&quot;}</pre><pre>M365 MCP Server for Claude<br>POST https://graph.microsoft.com/v1.0/servicePrincipals<br>{&quot;appId&quot;:&quot;07c030f6–5743–41b7-ba00–0a6e85f37c17&quot;}</pre><h3>Step 4: Verify identities before consent</h3><p><strong>• </strong>In Microsoft Entra admin center, open Enterprise applications and remove restrictive application-type filters if needed.</p><p><strong>• </strong>Open each of the two Claude enterprise applications.</p><p><strong>• </strong>Verify display name, Application ID, publisher information, tenant object ID, and that the application is enabled for sign-in.</p><p><strong>• </strong>Compare the Application IDs against this SOP and Anthropic’s current setup article. Stop if either ID or publisher does not match.</p><p><strong>• </strong>Export or capture the initial permissions and assignment state.</p><p><strong>Evidence / acceptance: </strong>Two verified service-principal records with matching App IDs and reviewed publisher details.</p><h3>Step 5: Restrict access on both enterprise applications before consent</h3><p><strong>• </strong>Open M365 MCP Server for Claude (Application) &gt; Properties.</p><p><strong>• </strong>Set Assignment required? to Yes and save.</p><p><strong>• </strong>Open Users and groups and assign only the approved Claude-M365-MCP-Pilot security group.</p><p><strong>• </strong>Repeat the same configuration for M365 MCP Client for Claude (Application).</p><p><strong>• </strong>Confirm both apps contain the same authorized group and no direct broad assignments.</p><p><strong>SECURITY NOTE: </strong>Restrict both components. Restricting only one leaves an inconsistent control boundary.</p><p><strong>Evidence / acceptance: </strong>Properties screenshots and assignment export for both applications.</p><h3>Step 6: Apply Conditional Access to both applications</h3><p><strong>• </strong>Create a dedicated Conditional Access policy in report-only mode first.</p><p><strong>• </strong>Users: include the approved pilot group. Exclude only formally managed emergency access accounts where required by policy.</p><p><strong>• </strong>Target resources: select both M365 MCP Client for Claude and M365 MCP Server for Claude enterprise applications.</p><p><strong>• </strong>Grant controls: require the organization-approved MFA/authentication strength and require a compliant or otherwise approved managed device, according to the existing access policy.</p><p><strong>• </strong>Conditions: apply approved location, platform, sign-in risk, and user-risk restrictions where already defined by organizational policy.</p><p><strong>• </strong>Validate report-only results with pilot accounts, then enable the policy after confirming no unacceptable business impact.</p><p><strong>SECURITY NOTE: </strong>Do not invent a bypass for unmanaged devices. If the application cannot satisfy required device or authentication controls, stop the rollout and resolve the architecture.</p><p><strong>Evidence / acceptance: </strong>Conditional Access policy export, report-only validation results, approval to enforce, and enforced policy screenshot.</p><h3>Step 7: Grant tenant admin consent using the documented URLs</h3><p><strong>• </strong>Use a dedicated administrative session and ensure the tenant ID is correct.</p><p><strong>• </strong>Open the Client admin-consent URL and review every requested delegated permission before accepting.</p><p><strong>• </strong>Open the Server admin-consent URL and review every requested delegated permission before accepting.</p><p><strong>• </strong>Confirm consent is shown as granted for the tenant on both enterprise applications.</p><p><strong>• </strong>Sign out of the privileged session after completing consent.</p><p><strong>SECURITY NOTE: </strong>Do not approve unexpected application permissions or any unidentified scope. Stop and investigate discrepancies.</p><p><strong>Evidence / acceptance: </strong>Consent screenshots and permission export for both apps, administrator identity, change ticket, and approval record.</p><p>Client admin consent URL<br>https://login.microsoftonline.com/{your-tenant-id}/adminconsent?client_id=08ad6f98-a4f8-4635-bb8d-f1a3044760f0</p><p>Server admin consent URL<br>https://login.microsoftonline.com/{your-tenant-id}/adminconsent?client_id=07c030f6-5743-41b7-ba00-0a6e85f37c17</p><h3>Step 8: Reduce the permission set to the approved workloads</h3><p><strong>• </strong>Open M365 MCP Server for Claude &gt; Permissions &gt; Admin consent.</p><p><strong>• </strong>Review the Microsoft Graph delegated scopes against the approved use case.</p><p><strong>• </strong>Revoke every unnecessary workload permission using the ellipsis menu &gt; Revoke permission &gt; confirm.</p><p><strong>• </strong>Disable the corresponding tools in Claude so users do not receive repeated failed-tool errors.</p><p><strong>• </strong>Re-export permissions after revocation and attach the final list to the change record.</p><p><strong>SECURITY NOTE: </strong>Re-running full admin consent can restore the default permission set. Treat any re-consent as a new security change requiring review.</p><p><strong>Evidence / acceptance: </strong>Final permission matrix and exported grant state.</p><h3>Recommended phase-1 permission position</h3><h3>Recommended phase-1 permission position details</h3><p><strong>Basic identity</strong></p><ul><li><strong>Scopes:</strong> User.Read, openid, email, profile</li><li><strong>Secure decision:</strong> Retain only as required for sign-in and user context.</li></ul><p><strong>Session continuity</strong></p><ul><li><strong>Scopes:</strong> <strong>offline_access</strong></li><li><strong>Secure decision:</strong> Retain only if accepted by the risk assessment; monitor revocation/offboarding behavior.</li><li><strong>Note:</strong> offline_access allows Claude to receive a <strong>refresh token</strong>, so it can obtain new short-lived access tokens without asking the user to sign in again each time. better user experience through fewer sign-ins, but greater responsibility to revoke sessions promptly when access is removed.</li></ul><p><strong>Files</strong></p><ul><li><strong>Scopes:</strong> Files.Read, Files.Read.All, Sites.Read.All</li><li><strong>Secure decision:</strong> Retain only when SharePoint/OneDrive search is approved.</li></ul><p><strong>Mail</strong></p><ul><li><strong>Scopes:</strong> Mail.Read and required read/metadata scopes</li><li><strong>Secure decision:</strong> Revoke if mailbox search is not an approved use case; review shared-mailbox exposure.</li></ul><p><strong>Calendar</strong></p><ul><li><strong>Scopes:</strong> Calendars.Read and optional shared-calendar read</li><li><strong>Secure decision:</strong> Revoke if calendar access is unnecessary.</li></ul><p><strong>Teams</strong></p><ul><li><strong>Scopes:</strong> Chat/Channel read scopes</li><li><strong>Secure decision:</strong> Revoke unless chat/channel search is approved.</li></ul><p><strong>Meetings</strong></p><ul><li><strong>Scopes:</strong> Meeting/transcript/recording/artifact read scopes</li><li><strong>Secure decision:</strong> Revoke high-sensitivity artifact scopes unless explicitly required.</li></ul><p><strong>Directory</strong></p><ul><li><strong>Scopes:</strong> User.ReadBasic.All</li><li><strong>Secure decision:</strong> Retain only if user lookup/meeting availability is required.</li></ul><p><strong>Write</strong></p><ul><li><strong>Scopes:</strong> Mail.Send, Mail.ReadWrite, Calendars.ReadWrite, Files.ReadWrite.All, MailboxSettings.ReadWrite</li><li><strong>Secure decision:</strong> Do not consent / keep write tools disabled for phase 1.</li></ul><h3>Step 9: Harden consent governance tenant-wide</h3><p><strong>• </strong>In Entra, open Identity &gt; Applications &gt; Enterprise apps &gt; Consent and permissions &gt; User consent settings.</p><p><strong>• </strong>Restrict or disable user consent in accordance with organizational policy; Microsoft recommends limiting user consent to verified publishers and selected permissions.</p><p><strong>• </strong>Enable the admin consent workflow so blocked requests are routed for review.</p><p><strong>• </strong>Review existing OAuth grants; changing user-consent settings affects future grants and does not automatically remove existing consent.</p><p><strong>Evidence / acceptance: </strong>User-consent configuration export, admin-consent workflow configuration, and review record for existing grants.</p><h3>Step 10: Enable audit, detections, and ownership before user connection</h3><p><strong>• </strong>Confirm Entra sign-in logs cover both service principals and Conditional Access results.</p><p><strong>• </strong>Monitor service-principal creation/deletion, app-role assignments, OAuth grants, permission changes, credential changes, and sign-in anomalies.</p><p><strong>• </strong>Confirm Microsoft 365 audit coverage for Exchange, SharePoint, OneDrive, Teams, and meeting artifacts used by the pilot.</p><p><strong>• </strong>Enable Claude organization audit/Compliance telemetry available to the licensed plan and record the monitoring owner.</p><p><strong>• </strong>Create alerts for write scopes granted, write tools enabled, assignment changes, consent changes, and access by non-pilot users.</p><p><strong>Evidence / acceptance: </strong>Log samples, alert test evidence, SIEM queries/analytics references, and SOC runbook owner.</p><h3>Step 11: Connect pilot users and perform negative testing</h3><p><strong>• </strong>Each authorized pilot user opens Customize &gt; Connectors &gt; Microsoft 365 &gt; Connect and authenticates with their own corporate Microsoft 365 account.</p><p><strong>• </strong>Confirm an unassigned user is denied.</p><p><strong>• </strong>Confirm an unmanaged/noncompliant device is handled by Conditional Access as designed.</p><p><strong>• </strong>Confirm the pilot user can retrieve approved content they can already access.</p><p><strong>• </strong>Confirm the same user cannot retrieve content they cannot access in Microsoft 365.</p><p><strong>• </strong>Confirm revoked workload scopes fail and corresponding Claude tools are disabled.</p><p><strong>• </strong>Confirm send/update/create/delete actions are unavailable.</p><p><strong>• </strong>Remove one test user from the group and verify access is removed; revoke sessions/tokens where required by the offboarding procedure.</p><p><strong>Evidence / acceptance: </strong>Test script with expected/actual outcomes, screenshots, sign-in logs, and issue list.</p><h3>Step 12: Approve production expansion or roll back</h3><p><strong>• </strong>Conduct a joint Security, IAM, M365, data-owner, and Claude service-owner review.</p><p><strong>• </strong>Approve expansion only if all acceptance criteria pass and no unresolved high-risk finding remains.</p><p><strong>• </strong>Expand through group membership rather than direct assignment.</p><p><strong>• </strong>Establish periodic reviews for group membership, consented scopes, service-principal changes, Conditional Access coverage, and M365 oversharing.</p><p><strong>• </strong>If rollback is required: remove the connector in Claude, disable sign-in for both enterprise applications, remove assignments, revoke consent/grants, revoke user sessions as appropriate, and preserve logs/evidence.</p><p><strong>Evidence / acceptance: </strong>Go/no-go sign-off and recurring review schedule.</p><h3>4. Go-live security checklist</h3><h3>Go-live security checklist details</h3><p><strong>1)</strong></p><ul><li><strong>Control:</strong> Official connector confirmed; App IDs match 08ad6f98-a4f8–4635-bb8d-f1a3044760f0 and 07c030f6–5743–41b7-ba00–0a6e85f37c17.</li><li><strong>Status:</strong> ☐ Pass ☐ Fail</li></ul><p><strong>2)</strong></p><ul><li><strong>Control:</strong> Both enterprise applications have Assignment required = Yes.</li><li><strong>Status:</strong> ☐ Pass ☐ Fail</li></ul><p><strong>3)</strong></p><ul><li><strong>Control:</strong> Both enterprise applications are assigned to the exact same approved group.</li><li><strong>Status:</strong> ☐ Pass ☐ Fail</li></ul><p><strong>4)</strong></p><ul><li><strong>Control:</strong> Conditional Access targets both applications and has passed report-only validation before enforcement.</li><li><strong>Status:</strong> ☐ Pass ☐ Fail</li></ul><p><strong>5)</strong></p><ul><li><strong>Control:</strong> Pilot uses delegated per-user identity; no shared credentials or tokens.</li><li><strong>Status:</strong> ☐ Pass ☐ Fail</li></ul><p><strong>6)</strong></p><ul><li><strong>Control:</strong> Final permissions match the approved workload matrix.</li><li><strong>Status:</strong> ☐ Pass ☐ Fail</li></ul><p><strong>7)</strong></p><ul><li><strong>Control:</strong> Write scopes are not approved and Claude write tools remain disabled.</li><li><strong>Status:</strong> ☐ Pass ☐ Fail</li></ul><p><strong>8)</strong></p><ul><li><strong>Control:</strong> SharePoint/OneDrive/Teams/shared mailbox oversharing was reviewed for pilot users.</li><li><strong>Status:</strong> ☐ Pass ☐ Fail</li></ul><p><strong>9)</strong></p><ul><li><strong>Control:</strong> Entra, Microsoft 365, and Claude-side logging/alerting is operational.</li><li><strong>Status:</strong> ☐ Pass ☐ Fail</li></ul><p><strong>10)</strong></p><ul><li><strong>Control:</strong> Offboarding, permission revocation, connector disablement, and rollback are tested.</li><li><strong>Status:</strong> ☐ Pass ☐ Fail</li></ul><p><strong>11)</strong></p><ul><li><strong>Control:</strong> Unapproved local MCP installation is addressed through endpoint governance and monitoring.</li><li><strong>Status:</strong> ☐ Pass ☐ Fail</li></ul><p><strong>12)</strong></p><ul><li><strong>Control:</strong> Go-live is formally approved by Security, IAM/M365, and the relevant data/service owners.</li><li><strong>Status:</strong> ☐ Pass ☐ Fail</li></ul><h3>5. Monitoring and recurring review</h3><h3>Monitoring and recurring review details</h3><p><strong>Identity</strong></p><ul><li><strong>Trigger / review point:</strong> Unexpected sign-ins, risky sign-ins, CA failures, disabled-user access attempts.</li></ul><p><strong>Consent</strong></p><ul><li><strong>Trigger / review point:</strong> New grant, removed grant, re-consent, or permission-set expansion.</li></ul><p><strong>Authorization</strong></p><ul><li><strong>Trigger / review point:</strong> Pilot group membership or direct-assignment changes on either app.</li></ul><p><strong>Capability</strong></p><ul><li><strong>Trigger / review point:</strong> Write scopes granted or write tools enabled.</li></ul><p><strong>Data access</strong></p><ul><li><strong>Trigger / review point:</strong> Unusual or high-volume access to mail, files, chats, transcripts, recordings, or shared resources.</li></ul><p><strong>Configuration</strong></p><ul><li><strong>Trigger / review point:</strong> Service principal disabled/recreated, publisher/app ID discrepancy, or Conditional Access exclusion.</li></ul><p><strong>Endpoint bypass</strong></p><ul><li><strong>Trigger / review point:</strong> Local/unapproved MCP configuration or process activity that bypasses the managed connector catalog.</li></ul><h3>6. Sources and authority</h3><p><strong>Anthropic — Set up the Microsoft 365 connector: </strong><a href="https://support.claude.com/en/articles/12542951-set-up-the-microsoft-365-connector#main-content">Open source</a></p><p>Primary source for connector setup, App IDs, service-principal creation, access restriction, permission revocation, permissions, and write-tool behavior.</p><p><strong>Anthropic — Microsoft 365 connector security guide: </strong><a href="https://support.claude.com/en/articles/12684923-microsoft-365-connector-security-guide">Open source</a></p><p>Vendor security architecture and control information.</p><p><strong>Microsoft — Manage application consent requests: </strong><a href="https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/manage-consent-requests">Open source</a></p><p>Official guidance for consent governance, review, auditing, and monitoring.</p><p><strong>Microsoft — Configure user consent: </strong><a href="https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/configure-user-consent">Open source</a></p><p>Official steps and considerations for tenant user-consent settings.</p><p><strong>Microsoft — Manage application access and security: </strong><a href="https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/tutorial-manage-access-security">Open source</a></p><p>Official guidance for application assignment, admin consent, MFA, and Conditional Access.</p><p><strong>Microsoft — Conditional Access target resources: </strong><a href="https://learn.microsoft.com/en-us/entra/identity/conditional-access/concept-conditional-access-cloud-apps">Open source</a></p><p>Official guidance for targeting Entra-integrated applications and Microsoft 365 resources.</p><h3>7. Important limitations</h3><ul><li>The connector uses delegated permissions and mirrors each user’s existing Microsoft 365 access. This limits access to what the user can already open, but it does not correct existing oversharing.</li><li>SharePoint search is tenant-wide within the signed-in user’s accessible content; the connector documentation states that site-specific search restriction is not supported.</li><li>Write permissions materially change the risk profile and require a separate change, scope review, consent review, pilot, and approval.</li><li>Anthropic may update the requested permission set. Always compare the live consent screen and official documentation with the approved matrix before granting or renewing consent.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea726ade248b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hunting Local AI Tools on Windows with Microsoft Defender for Endpoint]]></title>
            <link>https://medium.com/@ahmed.monsry/hunting-local-ai-tools-on-windows-with-microsoft-defender-for-endpoint-b2addca193d1?source=rss-4add91c9ba9a------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2addca193d1</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[microsoft-defender]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Ahmed Monsri]]></dc:creator>
            <pubDate>Fri, 17 Jul 2026 16:38:33 GMT</pubDate>
            <atom:updated>2026-07-17T17:32:06.823Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9ynB3Qu0S5Ao7TBjWgV_HQ.png" /></figure><p><strong>Executive summary:</strong></p><p>Local AI tools on Windows are not simply another software inventory item. They can run under the signed-in user context, interact with files, spawn processes, use developer tooling, and connect to MCP servers or external services. Microsoft Defender for Endpoint gives security teams a practical starting point through local AI agent discovery, inventory, exposure mapping, and Advanced Hunting. This document adapts the same concept to Windows-specific realities such as PowerShell, WSL, package managers, user profiles, scheduled tasks, IDE extensions, and local admin privileges.</p><p><strong>Audience: </strong>SOC analysts, endpoint security engineers, AI governance teams</p><p><strong>Scope: </strong>Windows endpoints onboarded to Microsoft Defender for Endpoint</p><p><strong>Important note: </strong>Validate all KQL against your tenant schema, licensing, preview status, and telemetry availability</p><p><strong>1. Why Windows deserves a dedicated view</strong></p><p>On Windows, local AI tools often sit close to developer environments, shells, browsers, package managers, user profile directories, Windows Subsystem for Linux, and automation mechanisms. That creates a broader telemetry surface and a broader governance question: do we only know that an AI tool exists, or do we understand what it can reach and how it behaves?</p><p>Microsoft documents local AI agent discovery in Defender for Endpoint as a preview capability that can surface supported local AI agents, MCP server configurations, inventory relationships, and Advanced Hunting data on supported Windows and macOS endpoints. The practical opportunity is to combine that native discovery with Windows hunting patterns that security teams already use every day.</p><p><strong>2. Start with Defender-confirmed local AI agents</strong></p><p>Microsoft Defender for Endpoint can automatically discover <strong>supported local AI agents</strong> on onboarded Windows devices. For a low-noise inventory, use the exposure graph, where Defender labels confirmed local agents as endpointAiAgent, instead of relying on process-name keywords.</p><p><strong>Query 1 Local AI agents on Windows devices</strong></p><pre>let WindowsDevices =<br>    DeviceInfo<br>    | where OSPlatform startswith &quot;Windows&quot;<br>    | summarize arg_max(Timestamp, DeviceName, OSPlatform) by DeviceId<br>    | project DeviceId, DeviceName, OSPlatform;<br>ExposureGraphEdges<br>| where SourceNodeLabel == &quot;endpointAiAgent&quot;<br>| where EdgeLabel =~ &quot;runs on&quot;<br>| project<br>    AgentId = SourceNodeId,<br>    AgentName = SourceNodeName,<br>    DeviceId = TargetNodeId<br>| join kind=inner WindowsDevices on DeviceId<br>| project AgentName, DeviceName, OSPlatform<br>| distinct AgentName, DeviceName, OSPlatform<br>| order by AgentName asc</pre><p>This query returns only agents that Defender has classified as local endpoint AI agents and then uses DeviceInfo to retain those associated with Windows devices.</p><h3>Query 2 — Windows devices hosting multiple agents</h3><pre>let WindowsDevices =<br>    DeviceInfo<br>    | where OSPlatform startswith &quot;Windows&quot;<br>    | summarize arg_max(Timestamp, DeviceName) by DeviceId<br>    | project DeviceId, DeviceName;<br><br>ExposureGraphEdges<br>| where SourceNodeLabel == &quot;endpointAiAgent&quot;<br>| where EdgeLabel =~ &quot;runs on&quot;<br>| project<br>    AgentName = SourceNodeName,<br>    DeviceId = TargetNodeId<br>| join kind=inner WindowsDevices on DeviceId<br>| summarize<br>    AgentCount = dcount(AgentName),<br>    Agents = make_set(AgentName, 20)<br>    by DeviceName<br>| where AgentCount &gt;= 2<br>| order by AgentCount desc</pre><p>Devices hosting several agents are not automatically risky, but they provide a practical starting point for reviewing agent concentration and governance coverage.</p><p><strong>Note:</strong> This approach provides high-confidence results but only covers local AI agents supported and discovered by Defender. The capability is currently documented as preview.</p><p><strong>Recommended baseline questions</strong></p><ul><li>Which supported local AI agents are present on Windows devices?</li><li>Which users are associated with those agents?</li><li>Which devices host more than one AI client or coding agent?</li><li>Which agents have MCP server configurations attached?</li><li>Which agents appear on devices with elevated risk, active alerts, or known exposure?</li><li>Which agent-related processes launch shells, scripts, package managers, or network connections?</li></ul><p><strong>3. Hunt around the agent, not only for the agent</strong></p><p>An AI agent by itself is only one part of the story. The higher-value question is what happens around it: process spawning, script execution, package installation, network access, and interaction with sensitive local paths. Microsoft documents DeviceProcessEvents as the Advanced Hunting table for process creation and related events, including fields such as FileName, FolderPath, process command line, hashes, account, and integrity data.</p><p><strong>Query 3 — AI-related process execution on Windows</strong></p><pre>// Add or remove high-confidence AI tool/agent indicators based on your environment.<br>// Examples: &quot;claude-code&quot;, &quot;cursor&quot;, &quot;continue&quot;, &quot;ollama&quot;, &quot;lm studio&quot;,<br>// &quot;windsurf&quot;, &quot;codex&quot;, &quot;aider&quot;, &quot;openwebui&quot;, &quot;mcp-server&quot;,<br>// &quot;github.copilot&quot;, and &quot;github.copilot-chat&quot;.<br>// Avoid generic terms such as &quot;copilot&quot;, &quot;code&quot;, &quot;agent&quot;, &quot;node&quot;, &quot;python&quot;,<br>// or &quot;npx&quot; unless combined with a product-specific path or identifier.<br>let aiTerms = dynamic([<br>    &quot;claude-code&quot;,<br>    &quot;cursor&quot;,<br>    &quot;continue&quot;,<br>    &quot;ollama&quot;,<br>    &quot;lm studio&quot;,<br>    &quot;mcp-server&quot;,<br>    &quot;github.copilot&quot;,<br>    &quot;github.copilot-chat&quot;<br>]);<br>let WindowsDevices =<br> DeviceInfo<br> | summarize arg_max(Timestamp, OSPlatform) by DeviceId<br> | where OSPlatform startswith &quot;Windows&quot;<br> | project DeviceId;<br>DeviceProcessEvents<br>| where Timestamp &gt; ago(1h)<br>| join kind=inner WindowsDevices on DeviceId<br>| where FileName has_any (aiTerms)<br> or ProcessCommandLine has_any (aiTerms)<br> or FolderPath has_any (aiTerms)<br>| project<br> Timestamp,<br> DeviceName,<br> AccountName,<br> FileName,<br> FolderPath,<br> ProcessCommandLine,<br> InitiatingProcessFileName,<br> InitiatingProcessCommandLine,<br> ProcessIntegrityLevel,<br> SHA1<br>| order by Timestamp desc</pre><p>This is a pragmatic discovery query, not a final detection. It catches naming patterns, but it also creates noise. Use it to build a local allow list, identify legitimate user adoption, and discover tools that are not yet covered by native inventory.</p><p><strong>Query 4 — AI tools launching command interpreters</strong></p><pre>// Add approved or high-confidence AI executables and product-specific markers<br>// relevant to your environment. Avoid generic terms such as &quot;code&quot;, &quot;node&quot;,<br>// &quot;python&quot;, &quot;agent&quot;, or &quot;mcp&quot; because they can create significant noise.<br>let aiExecutables = dynamic([<br>    &quot;claude.exe&quot;,<br>    &quot;cursor.exe&quot;,<br>    &quot;windsurf.exe&quot;,<br>    &quot;ollama.exe&quot;,<br>    &quot;copilot.exe&quot;,<br>    &quot;codex.exe&quot;<br>]);<br>let aiMarkers = dynamic([<br>    &quot;claude-code&quot;,<br>    &quot;github.copilot&quot;,<br>    &quot;github.copilot-chat&quot;,<br>    &quot;continue.continue&quot;,<br>    &quot;mcp-server&quot;,<br>    &quot;lm studio&quot;<br>]);<br>let shells = dynamic([<br>    &quot;powershell.exe&quot;,<br>    &quot;pwsh.exe&quot;,<br>    &quot;cmd.exe&quot;,<br>    &quot;wsl.exe&quot;,<br>    &quot;bash.exe&quot;<br>]);<br>let WindowsDevices =<br>    DeviceInfo<br>    | summarize arg_max(Timestamp, OSPlatform) by DeviceId<br>    | where OSPlatform startswith &quot;Windows&quot;<br>    | project DeviceId;<br>DeviceProcessEvents<br>| where Timestamp &gt; ago(1h)<br>| join kind=inner WindowsDevices on DeviceId<br>| where FileName in~ (shells)<br>| where InitiatingProcessFileName in~ (aiExecutables)<br>    or InitiatingProcessCommandLine has_any (aiMarkers)<br>    or InitiatingProcessFolderPath has_any (aiMarkers)<br>| project<br>    Timestamp,<br>    DeviceName,<br>    AccountName,<br>    AIParentProcess = InitiatingProcessFileName,<br>    AIParentPath = InitiatingProcessFolderPath,<br>    AIParentCommandLine = InitiatingProcessCommandLine,<br>    SpawnedShell = FileName,<br>    ShellCommandLine = ProcessCommandLine,<br>    ProcessIntegrityLevel,<br>    SHA1<br>| order by Timestamp desc</pre><p>This query focuses on behavior that matters on Windows: AI-assisted workflows that move from conversation to execution. In a mature environment, this should feed investigation playbooks rather than immediate blocking.</p><p><strong>Query 5 — PowerShell activity near AI tooling</strong></p><pre>// Add or remove high-confidence AI product indicators based on your environment.<br>// Examples: &quot;claude-code&quot;, &quot;github.copilot&quot;, &quot;github.copilot-chat&quot;,<br>// &quot;continue.continue&quot;, &quot;cursor&quot;, &quot;windsurf&quot;, &quot;ollama&quot;, &quot;codex&quot;, &quot;mcp-server&quot;.<br>// Avoid generic terms such as &quot;agent&quot;, &quot;mcp&quot;, &quot;code&quot;, &quot;node&quot;, or &quot;python&quot;<br>// because they can match normal administrative and development activity.<br>let aiTerms = dynamic([<br>    &quot;claude-code&quot;,<br>    &quot;github.copilot&quot;,<br>    &quot;github.copilot-chat&quot;,<br>    &quot;continue.continue&quot;,<br>    &quot;cursor&quot;,<br>    &quot;windsurf&quot;,<br>    &quot;ollama&quot;,<br>    &quot;codex&quot;,<br>    &quot;mcp-server&quot;<br>]);<br>let WindowsDevices =<br>    DeviceInfo<br>    | summarize arg_max(Timestamp, OSPlatform) by DeviceId<br>    | where OSPlatform startswith &quot;Windows&quot;<br>    | project DeviceId;<br>DeviceProcessEvents<br>| where Timestamp &gt; ago(1h)<br>| where DeviceId in (WindowsDevices)<br>| where FileName in~ (&quot;powershell.exe&quot;, &quot;pwsh.exe&quot;)<br>| where ProcessCommandLine has_any (aiTerms)<br>    or InitiatingProcessCommandLine has_any (aiTerms)<br>    or InitiatingProcessFolderPath has_any (aiTerms)<br>| project<br>    Timestamp,<br>    DeviceName,<br>    AccountName,<br>    PowerShellProcess = FileName,<br>    PowerShellCommandLine = ProcessCommandLine,<br>    InitiatingProcessFileName,<br>    InitiatingProcessFolderPath,<br>    InitiatingProcessCommandLine,<br>    ProcessIntegrityLevel,<br>    SHA1<br>| order by Timestamp desc</pre><p>PowerShell deserves special attention because it is a normal administration tool and also a powerful execution layer. Treat findings with context: device role, user role, signed scripts, expected developer activity, and whether execution is elevated.</p><p><strong>4. MCP servers: the capability extension layer</strong></p><p>Model Context Protocol servers are important because they can extend what a local AI tool can do. Microsoft documentation states that Defender can discover supported local AI agents and MCP server configurations, and that discovered agent details can include configured MCP servers when detected. For Windows governance, MCP should be treated as a connector surface, not just a configuration detail.</p><p><strong>MCP hunting questions</strong></p><ul><li>Which tools are configured with MCP servers?</li><li>Are MCP servers local, remote, or tied to developer repositories?</li><li>Do MCP configurations appear on privileged devices or administrator workstations?</li><li>Do MCP-related processes initiate outbound connections to unexpected destinations?</li><li>Are sensitive workspace folders exposed to tools that auto-approve actions?</li></ul><p><strong>Query 6 — Network activity around AI-related processes</strong></p><pre>// Add or remove high-confidence AI product indicators based on your environment.<br>// Examples: &quot;claude-code&quot;, &quot;github.copilot&quot;, &quot;github.copilot-chat&quot;,<br>// &quot;continue.continue&quot;, &quot;cursor&quot;, &quot;windsurf&quot;, &quot;ollama&quot;, &quot;codex&quot;, &quot;mcp-server&quot;.<br>// Avoid generic terms such as &quot;agent&quot;, &quot;mcp&quot;, &quot;code&quot;, &quot;node&quot;, or &quot;python&quot;<br>// because they can match normal network activity.<br>let aiTerms = dynamic([<br>    &quot;claude-code&quot;,<br>    &quot;github.copilot&quot;,<br>    &quot;github.copilot-chat&quot;,<br>    &quot;continue.continue&quot;,<br>    &quot;cursor&quot;,<br>    &quot;windsurf&quot;,<br>    &quot;ollama&quot;,<br>    &quot;codex&quot;,<br>    &quot;mcp-server&quot;<br>]);<br>let WindowsDevices =<br>    DeviceInfo<br>    | summarize arg_max(Timestamp, OSPlatform) by DeviceId<br>    | where OSPlatform startswith &quot;Windows&quot;<br>    | project DeviceId;<br>DeviceNetworkEvents<br>| where Timestamp &gt; ago(1h)<br>| where DeviceId in (WindowsDevices)<br>| where InitiatingProcessFileName has_any (aiTerms)<br>    or InitiatingProcessCommandLine has_any (aiTerms)<br>    or InitiatingProcessFolderPath has_any (aiTerms)<br>| project<br>    Timestamp,<br>    DeviceName,<br>    AccountName = InitiatingProcessAccountName,<br>    InitiatingProcessFileName,<br>    InitiatingProcessFolderPath,<br>    InitiatingProcessCommandLine,<br>    RemoteUrl,<br>    RemoteIP,<br>    RemotePort,<br>    Protocol<br>| order by Timestamp desc</pre><p>Use this query to understand external reach. It is especially useful when paired with proxy, DNS, firewall, or DLP telemetry. The objective is not to block every connection, but to identify where AI tooling creates new egress paths.</p><p><strong>5. Windows control strategy: practical and proportional</strong></p><p>A good Windows strategy should avoid two extremes: ignoring AI tools because they are productivity tools, or blocking everything and pushing usage into unmanaged paths. The better approach is inventory first, then risk-based control.</p><h4>A Practical Governance Model for AI Agents on Windows</h4><p><strong>Discover</strong> : <em>See what exists</em><br> Leverage <strong>MDE AI Agent Inventory</strong>, software inventory, and process hunting to identify AI tools running across your environment.<br> ➡ <strong>Output:</strong> Approved, tolerated, unknown, and prohibited AI tools.</p><p><strong>Contextualize</strong> : <em>Understand risk</em><br> Add context from device criticality, user privileges, local admin rights, exposure level, and active alerts.<br> ➡ <strong>Output:</strong> A prioritized investigation and risk queue.</p><p><strong>Constrain</strong> : <em>Reduce blast radius</em><br> Apply security controls such as <strong>Least Privilege</strong>, <strong>Controlled Folder Access</strong>, <strong>WDAC/App Control</strong>, <strong>ASR rules</strong>, and <strong>DLP policies</strong>.<br> ➡ <strong>Output:</strong> Governed and controlled AI usage patterns.</p><p><strong>Monitor: </strong><em>Detect risky behavior</em><br>Continuously monitor with <strong>Advanced Hunting</strong>, custom detections, behavioral analytics, and incident enrichment.<br> ➡ <strong>Output:</strong> AI-aware investigations with actionable context.</p><p><strong>Review: </strong><em>Keep governance current</em><br> Perform regular AI agent inventory reviews and maintain a structured exception process for developers and business users.<br> ➡ <strong>Output:</strong> Continuously updated allow/block decisions and governance policies.</p><p><strong>Key takeaway:</strong> The goal is not just to know <em>which AI tools are installed</em>, but to understand <strong>what they can access, execute, and connect to</strong> on your Windows endpoints.</p><p><strong>6. Suggested operational workflow</strong></p><p><strong>Step 1 Build the inventory</strong></p><p>Use Defender local AI agent discovery where available. Complement it with process, software, and file telemetry for unsupported or renamed tools.</p><p><strong>Step 2 Classify usage</strong></p><p>Separate approved business use, developer experimentation, unmanaged personal tools, and prohibited tools.</p><p><strong>Step 3 Prioritize risky intersections</strong></p><p>Focus first on local admin devices, privileged users, servers, jump boxes, source-code workstations, and devices with active alerts.</p><p><strong>Step 4 Hunt for execution paths</strong></p><p>Track AI tools launching shells, script engines, package managers, WSL, or remote connections.</p><p><strong>Step 5 Govern MCP configurations</strong></p><p>Inventory MCP servers and review what each server enables. Treat remote MCP endpoints as third-party integrations.</p><p><strong>Step 6 Create clear response rules</strong></p><p>Define when to close as expected usage, when to contact the user, when to isolate the device, and when to block the tool.</p><p><strong>Step 7 Report adoption and risk</strong></p><p>Trend agent count, device coverage, high-risk combinations, and unresolved exceptions over time.</p><p><strong>7. Example closure logic for SOC incidents</strong></p><p>When a Windows AI tool appears in an incident, the analyst should avoid generic closure notes. The closure should explicitly state whether the tool is approved, which user and device were involved, whether it launched interpreters or performed network activity, and whether any high-risk path was observed.</p><p><strong>8. Final takeaways</strong></p><ul><li>Windows AI agent hunting should combine native Defender local AI agent discovery with classic process, network, script, and endpoint governance telemetry.</li><li>The most important hunting question is not only “which AI tool exists?” but “what can it execute, access, and connect to from this Windows device?”</li><li>PowerShell, WSL, IDE extensions, package managers, scheduled tasks, and local admin rights are key Windows-specific considerations.</li><li>MCP servers should be reviewed as capability extensions because they can change what the local AI tool can do.</li><li>The right operating model is inventory first, risk-based control second, and continuous monitoring after that.</li></ul><p><strong>Public references</strong></p><ul><li><a href="https://learn.microsoft.com/en-us/defender-endpoint/local-agent-discovery-overview">Microsoft Learn — Local AI agent discovery with Microsoft Defender for Endpoint (Preview)</a></li><li><a href="https://learn.microsoft.com/en-us/defender-endpoint/discover-local-ai-agents">Microsoft Learn — Discover local AI agents with Microsoft Defender for Endpoint (Preview)</a></li><li><a href="https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-deviceprocessevents-table">Microsoft Learn — DeviceProcessEvents table in Advanced Hunting schema</a></li><li><a href="https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-deviceevents-table">Microsoft Learn — DeviceEvents table in Advanced Hunting schema</a></li><li><a href="https://support.microsoft.com/help/5037621">Microsoft Support — Microsoft Defender for Endpoint plug-in for WSL2</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2addca193d1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Microsoft Purview eDiscovery (Standard vs Premium): a hierarchical, end‑to‑end guide]]></title>
            <link>https://medium.com/@ahmed.monsry/microsoft-purview-ediscovery-standard-vs-premium-a-hierarchical-end-to-end-guide-e3f270d66ee0?source=rss-4add91c9ba9a------2</link>
            <guid isPermaLink="false">https://medium.com/p/e3f270d66ee0</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[ediscovery]]></category>
            <dc:creator><![CDATA[Ahmed Monsri]]></dc:creator>
            <pubDate>Tue, 17 Feb 2026 13:53:48 GMT</pubDate>
            <atom:updated>2026-02-17T13:53:48.453Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/850/0*8Y8L-5Tcu5Xodlvp.jpg" /><figcaption><a href="https://zapproved.com/blog/what-is-collection/">https://zapproved.com/blog/what-is-collection/</a></figcaption></figure><p>Microsoft Purview eDiscovery is Microsoft 365’s built-in workflow for preserving, finding, reviewing, and exporting content for legal, regulatory, HR, or internal investigations, while maintaining a defensible record of what was done, by whom, and when.</p><p>A useful way to understand it is as a building: if the foundation (tenant settings, permissions, auditing, retention) is weak, every case you run on top becomes risky.</p><p>This article is structured bottom-up (global → org → case → search/review → export), and it clearly separates eDiscovery Standard from eDiscovery Premium.</p><blockquote>Mind-marking story: treat each case like a “sealed evidence pipeline.” Holds are the locks, search are the evidence sweep, review sets are the lab bench, and export is the evidence handoff receipt.</blockquote><h3>Early structure (what we will build, from bottom to top)</h3><h3>A) Foundation layer (tenant-wide)</h3><ol><li>Licensing &amp; prerequisites</li><li>Identity, roles, and access model</li><li>Auditability &amp; logging expectations</li><li>Information governance interplay (Retention/Records, sensitivity, encryption)</li></ol><h3>B) eDiscovery “platform” layer (Purview setup)</h3><ol><li>Purview portal navigation &amp; eDiscovery solution boundaries</li><li>Organization-wide decisions (naming, scoping standards, custody model)</li></ol><h3>C) Case execution layer (per matter)</h3><ol><li>Case creation &amp; case settings</li><li>Preservation: holds</li><li>Identification &amp; scoping: search</li><li>Review workflow (Premium) and quality controls</li><li>Export &amp; handoff (chain of custody)</li></ol><h3>D) Operational layer (repeatability)</h3><ol><li>Common pitfalls + defensibility checklist</li><li>Recommended playbooks and templates</li></ol><h3>1) Foundation layer (tenant-wide)</h3><h3>1.1 Licensing and prerequisites</h3><p>eDiscovery (Standard) is included in many Microsoft 365 plans and supports cases, holds, searches, and export. eDiscovery (Premium) (often tied to E5 / advanced compliance licensing) adds advanced workflows: custodian(Location) management, collections, review sets, analytics (dedupe/threading/near-duplicate), tagging, and richer review/export options.</p><p>High-value consideration: confirm licensing early because it changes how you design your process. Many organizations start with Standard and then hit scale limits (volume, review effort, iterative scoping) that Premium is meant to solve.</p><h3>1.2 Identity, roles, and least privilege (your defensibility backbone)</h3><p>Before you run any case, clarify the separation between eDiscovery Administrator and eDiscovery Manager, and whether you will allow Guest access.</p><ul><li>eDiscovery Administrator: the tenant-level authority for eDiscovery. Typically manages the overall eDiscovery configuration and governance, can manage access, and has broad capabilities across cases (depending on how your role groups are designed). This role is usually limited to a small number of trusted compliance/security admins because it can effectively control the eDiscovery environment.</li><li>eDiscovery Manager: the operational role that runs the work inside cases. Typically creates and manages cases, places holds, runs searches/collections, and performs case tasks day-to-day — but should not automatically be treated as a tenant-wide authority. This role is commonly assigned to compliance teams or legal operations who execute investigations.</li><li>Guest options: controls whether you can add external users (for example, outside counsel or external reviewers) to collaborate in eDiscovery cases. If enabled, treat it as a high-governance decision: use it only with strict scope controls, time-bound access, and clear rules for what guests can see or export. In many organizations, guests are allowed only for review collaboration (Premium) and are restricted from export.</li></ul><h3>1.3 Auditability expectations (what you must be able to prove)</h3><p>A defensible eDiscovery process answers:</p><ul><li>When did you learn of the matter and when did you preserve data?</li><li>Who approved scope changes and exports?</li><li>What locations were included/excluded and why?</li><li>What exact queries and conditions were used?</li></ul><p>Purview provides rich logging, but your process should also include a simple “case notebook” practice: a place to record scope decisions, custodians, date ranges, and approvals.</p><h3>1.4 How eDiscovery interacts with Retention/Records and security controls</h3><p>eDiscovery does not live alone. It intersects with:</p><ul><li>Retention policies/labels: may preserve or delete data independently of a case. Holds typically ensure content is preserved, but you should understand your organization’s retention architecture to avoid false assumptions.</li><li>Sensitivity labels / encryption / protected content: may affect what can be previewed, reviewed, or exported.</li><li>Teams data model: Teams content is stored across Exchange, SharePoint, and OneDrive, so “Teams investigation” almost always means multiple underlying locations.</li></ul><p>Mind-marking model: eDiscovery is an “evidence vault process,” while retention is a “records lifecycle process.” They can support each other, but they are designed for different objectives.</p><h3>2) eDiscovery platform layer (Purview setup)</h3><h3>2.1 Where eDiscovery lives</h3><p>eDiscovery is managed in the Microsoft Purview portal under eDiscovery. You choose Standard or Premium depending on licensing and the workflow you need.</p><h3>2.2 Organization-wide standards you should define before the first case</h3><p>These decisions prevent inconsistent, hard-to-defend case outcomes:</p><ul><li>Naming convention for cases, holds, searches, exports (enables repeatability and auditing).</li><li>Custodian model: do you always work by custodians (people) or by locations (sites/mailboxes), or both?</li><li>Scope templates: standard intake questions (date range, keywords, participants, systems, languages).</li><li>Access model: who can open cases, who can add custodians, who can export.</li><li>Handoff standard: what format exports must be in and how you deliver them securely to counsel/review platforms.</li></ul><h3>3) Case execution layer -eDiscovery (Standard)</h3><p>eDiscovery Standard is best described as: Preserve (Hold) → Search → Export, wrapped inside a Case.</p><h3>3.1 Case (Standard)</h3><p>A Case is the container for:</p><ul><li>Holds</li><li>Searches</li><li>Exports</li><li>Case members (who can access)</li></ul><p>High-value practice: treat the case description field and internal documentation as part of your defensibility record: why the case exists, what scope is intended, and who authorized it.</p><h3>3.2 Holds (Standard)</h3><p>A Hold is preservation. It’s how you prevent relevant content from being permanently deleted while an investigation is active.</p><p>Key decisions:</p><ul><li>Hold scope: preserve everything in a location, or preserve only what matches conditions (query-based).</li><li>Locations: Exchange mailboxes, SharePoint sites, OneDrive accounts (and by extension Teams content through those services).</li></ul><p>Practical reality: holds are about time and completeness. Most eDiscovery failures aren’t “we didn’t search well,” they’re “we didn’t preserve early enough.”</p><h3>3.3 Search (Standard)</h3><p>A Search identifies potentially relevant content in the locations in scope and prepares it for export.</p><p>High-value considerations:</p><ul><li>Location completeness: include shared mailboxes, group mailboxes, OneDrive for leavers, and relevant SharePoint sites.</li><li>Teams nuance: chats (Exchange) vs channel messages (group mailbox) vs files (SharePoint/OneDrive).</li><li>Query design: combine keywords with date ranges, participants, and file types; keyword-only strategies miss synonyms, typos, and context.</li><li>Iteration: first search is rarely the final one; track your versions and rationale for narrowing/broadening.</li></ul><h3>3.4 Export (Standard)</h3><p>Exports produce content for external counsel, regulators, or third-party review tools.</p><p>Key considerations:</p><ul><li>Export permissions should be restricted and monitored.</li><li>Export format should match downstream needs (mail container vs loose files + metadata/load files).</li><li>Chain of custody: record who exported, when, from which case/search, and where the data was stored/transferred.</li></ul><p>Standard in one sentence: it’s efficient for preservation and straightforward exports, but it’s not designed for large-scale, analytics-driven document review.</p><h3>4) Case execution layer — eDiscovery (Premium)</h3><p>Premium adds a structured workflow that mirrors modern eDiscovery practice: Custodians → Collections → Review sets → Analytics/Review → Export.</p><h3>4.1 Case (Premium)</h3><p>The Premium case is still the main container, but it supports more advanced objects and workflow stages.</p><p>Important difference: Premium is designed to support repeatable, defensible review at scale (not just search-and-export).</p><h3>4.2 Custodians (Premium)</h3><p>A Custodian is a person whose data is relevant. Premium makes custodian management first-class:</p><ul><li>Central place to track custodians in a matter</li><li>Easier mapping to their sources (mailbox, OneDrive)</li><li>Reporting and workflow consistency</li></ul><p>Why it matters: custodian-based workflows are how legal teams commonly think and how matters are defended (“we preserved and collected from these people, for these reasons, during this timeframe”).</p><h3>4.3 Holds (Premium)</h3><p>Holds exist in Premium too, but are often managed with stronger custodian alignment.</p><p>High-value considerations:</p><ul><li>Decide whether you preserve broadly (safer for completeness) then narrow later, or use query-based holds (reduces preserved volume but increases risk of missing).</li><li>Track hold start dates carefully; timing is often challenged in disputes.</li></ul><h3>4.4 Review sets (Premium)</h3><p>A Review set is your controlled review workspace, think of it as the “evidence table” where items are staged for legal review.</p><p>Value-dense considerations:</p><ul><li>Review sets enable structured review and tagging (responsive, non-responsive, privileged, etc.).</li><li>They support consistent reviewer experience and reporting.</li><li>They are the anchor for analytics, de-duplication, and threaded conversation handling.</li></ul><h3>4.5 Analytics (Premium): reducing volume without losing defensibility</h3><p>Premium analytics features are designed to reduce review cost and increase consistency:</p><ul><li>De-duplication: remove duplicate copies across custodians while retaining traceability.</li><li>Email threading: review the most inclusive emails instead of every reply.</li><li>Near-duplicate detection: find similar documents that differ slightly (drafts, versions).</li><li>Themes / clustering (where available): quickly understand content patterns.</li></ul><p>Key consideration: analytics settings are part of defensibility. Document what you enabled and how it influenced what reviewers saw.</p><h3>4.6 Review workflow (Premium): tagging, privilege, redaction</h3><p>Premium supports a more complete review lifecycle:</p><ul><li>Tagging for responsiveness and issue codes</li><li>Privilege handling (process-wise; tools help but policy decides)</li><li>Redaction (where supported) to protect sensitive data while producing relevant content</li></ul><p>High-value practice: establish review rules before starting (what counts as responsive, what is privileged, how to handle personal data, how to escalate edge cases).</p><h3>4.7 Export (Premium)</h3><p>Export in Premium is typically the end of a more controlled pipeline:</p><ul><li>Export from a reviewed, tagged set</li><li>Produce content aligned to legal production requirements</li><li>Preserve review metadata (tags, decisions) if needed for reporting</li></ul><p>Premium in one sentence: it is Standard plus a defensible, scalable workflow for collection refinement, analytics, and human review.</p><h3>5) Common pitfalls (and how to avoid them)</h3><ol><li>Thinking Teams is a single data source Fix: map Teams chats, channel messages, and files to Exchange/SharePoint/OneDrive locations explicitly.</li><li>Missing “non-obvious” locations Fix: always consider shared mailboxes, group mailboxes, leaver OneDrives, and relevant SharePoint sites.</li><li>Late preservation Fix: implement an intake process that triggers holds immediately when litigation/regulatory action is anticipated.</li><li>Over-reliance on keyword search Fix: combine keywords with people, dates, and location-based scoping; iterate and document changes.</li><li>Too many export-capable users Fix: minimize and monitor Export permissions; require approvals and document them.</li></ol><h3>6) A compact defensibility checklist (use it for every case)</h3><ul><li>Scope defined (who/what/when/where) and approved</li><li>Holds applied promptly and verified</li><li>Locations complete and justified (inclusions + exclusions)</li><li>Searches/collections documented (versions, queries, rationale)</li><li>Review decisions consistent (protocol + QA)</li><li>Exports controlled (who/when/what/format) and securely transferred</li></ul><blockquote>Mind-marking story: treat each case like a “sealed evidence pipeline.” Holds are the locks, search are the evidence sweep, review sets are the lab bench, and export is the evidence handoff receipt.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e3f270d66ee0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Classification in Microsoft Purview]]></title>
            <link>https://medium.com/@ahmed.monsry/understanding-classification-in-microsoft-purview-f5c2cfa52645?source=rss-4add91c9ba9a------2</link>
            <guid isPermaLink="false">https://medium.com/p/f5c2cfa52645</guid>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[microsoft-purview]]></category>
            <category><![CDATA[classification]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Ahmed Monsri]]></dc:creator>
            <pubDate>Fri, 30 Jan 2026 14:20:40 GMT</pubDate>
            <atom:updated>2026-01-30T14:20:40.220Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/562/1*KZMvC39VyuhVZjrlzZgfNQ.png" /></figure><p>Data protection in Microsoft Purview starts with a deceptively simple question:</p><blockquote><strong><em>What data do we have, and how do we recognize it?</em></strong></blockquote><p>Everything in Microsoft Purview Data Loss Prevention (DLP), Information Protection, and Data Governance builds on the answer to that question. Classification is the foundation. Without it, policies cannot trigger, labels cannot apply, and risk cannot be measured.</p><p>This article walks through <strong>all the major classification options in Microsoft Purview</strong>, how they relate to each other, and where <strong>on‑demand classification</strong> and <strong>custom options</strong> fit into the bigger picture.</p><h3>Classification vs. Enforcement: a quick reset</h3><p>Before diving into options, it’s important to separate two concepts that are often mixed:</p><ul><li><strong>Classification</strong> answers <em>“What is this data?”</em></li><li><strong>Policies (DLP, labels, retention)</strong> answer <em>“What should we do about it?”</em></li></ul><p>Microsoft Purview always classifies <strong>first</strong>. Policies only act <strong>after</strong> classification has identified something meaningful.</p><h3>Sensitive Information Types (SITs): the baseline</h3><p>Sensitive Information Types are the <strong>most fundamental classifiers</strong> in Purview. They are designed to detect <strong>specific data elements</strong> using patterns, keywords, checksums, and confidence rules.</p><p>Typical examples include:</p><ul><li>Credit card numbers</li><li>Bank account and IBAN numbers</li><li>Passport or national ID numbers</li><li>IP addresses</li></ul><p>Purview provides <strong>hundreds of built‑in SITs</strong>, but organizations can also create <strong>custom SITs</strong> using regular expressions and supporting keywords.</p><h3>Customization options for SITs</h3><p>A custom SIT is built from <strong>patterns</strong>, and each pattern is made of specific components.</p><h4><strong>Regular Expressions (Regex): </strong>Detect <strong>structured formats</strong> (numbers, codes, identifiers)</h4><p><strong>Examples:</strong></p><ul><li>Employee IDs</li><li>Internal reference numbers</li><li>Custom license formats</li></ul><p><strong>Notes:</strong></p><ul><li>Uses the <strong>Boost.Regex engine</strong></li><li>Forms the <strong>primary detection element</strong> in most SITs</li></ul><h4>Keyword Lists: Increase accuracy by requiring <strong>context words</strong> near the match</h4><p><strong>Examples:</strong></p><ul><li>“Employee ID”</li><li>“Customer number”</li><li>“Invoice reference”</li></ul><p><strong>Notes:</strong></p><ul><li>Can be <strong>custom‑created</strong></li><li>Can be reused across multiple SITs</li></ul><h4>Keyword Dictionaries: Match against a <strong>large predefined word set</strong></h4><p><strong>Examples:</strong></p><ul><li>Department names</li><li>Product codes</li><li>Internal terminology</li></ul><p><strong>Difference from keyword lists:</strong></p><ul><li>Dictionaries are optimized for <strong>larger word collections</strong></li></ul><h4>Confidence Levels (Low / Medium / High): Control how strict detection must be before a match is considered valid</h4><p><strong>How it works:</strong></p><ul><li>Combine regex + keywords</li><li>Higher confidence = more conditions must be met</li></ul><p><strong>Why it matters:</strong></p><ul><li>Reduces false positives</li><li>Allows flexible DLP thresholds</li></ul><h4><strong>Validators (Advanced — Optional): Verify that detected values are mathematically or logically valid</strong></h4><p><strong>Examples:</strong></p><ul><li>Checksum validation</li><li>Modulo algorithms</li><li>Alphanumeric checksum support</li></ul><p><strong>Used for:</strong></p><ul><li>Bank accounts</li><li>License numbers</li><li>Structured identifiers with check digits</li></ul><h4>Multiple Patterns per SIT: Support <strong>different formats</strong> for the same data type</h4><p><strong>Example:</strong></p><ul><li>Old employee ID format</li><li>New employee ID format</li></ul><p><strong>Notes:</strong></p><ul><li>Each pattern can have its own confidence level</li></ul><h4>What you cannot customize in SITs</h4><ul><li>Edit Microsoft built‑in SITs directly</li><li>Use AI/ML logic (that’s trainable classifiers)</li><li>Detect document meaning or intent</li></ul><p><strong>When to use SITs</strong></p><ul><li>When data is <strong>structured</strong></li><li>When it follows a <strong>known format</strong></li><li>When pattern matching is reliable</li></ul><p>SITs are the backbone of most DLP policies and are usually the <strong>first classifiers organizations deploy</strong>.</p><h3>Exact Data Match (EDM): precision over patterns</h3><p>Exact Data Match is a <strong>specialized form of Sensitive Information Type</strong>, designed for cases where pattern matching alone is not accurate enough.</p><p>Instead of relying on regex, EDM compares content against a <strong>hashed reference dataset</strong> that you provide. This dataset might come from:</p><ul><li>HR systems</li><li>CRM platforms</li><li>Finance or payroll databases</li></ul><p>Because Purview matches against known records, EDM offers:</p><ul><li>Very high accuracy</li><li>Extremely low false positives</li><li>Strong suitability for regulated data</li></ul><p><strong>When to use EDM</strong></p><ul><li>When you own the <strong>authoritative source data</strong></li><li>When accuracy matters more than coverage</li><li>When false positives are unacceptable</li></ul><p>EDM is powerful, but it requires more upfront planning and data preparation than standard SITs.</p><h4>What makes EDM different from regular SITs</h4><p>EDM does <strong>not rely on patterns or regex alone</strong>.<br> Instead, it matches content against <strong>hashed values from your real datasets</strong>, dramatically reducing false positives.</p><h4>Customization options for EDM</h4><p>An EDM setup is made of <strong>four key customizable layers</strong>.</p><h4><strong>EDM Data Source (Your Dataset): </strong>Define <strong>what exact data Purview should match</strong></h4><p><strong>What you provide:</strong></p><ul><li>CSV file (exported from HR, CRM, Finance, etc.)</li><li>Columns such as:</li><li>Employee ID</li><li>Name</li><li>Email</li><li>Date of birth</li></ul><p><strong>Customization points:</strong></p><ul><li>Which fields are included</li><li>Which fields are considered sensitive</li><li>Data refresh frequency</li></ul><p><strong>Note:</strong></p><p>Supports large datasets (up to very large row counts)<br>Data is <strong>hashed before upload</strong> (Microsoft cannot read it)</p><h4>Schema Definition: Tell Purview <strong>how to interpret your dataset</strong></h4><p><strong>Customization options:</strong></p><ul><li>Define <strong>primary match fields</strong> (the most sensitive value)</li><li>Define <strong>corroborative evidence fields</strong> (supporting context)</li><li>Map columns to data types</li></ul><p><strong>Example:</strong></p><ul><li>Primary: EmployeeID</li><li>Corroborative: FirstName + LastName</li></ul><p>This improves accuracy and reduces false positives.</p><h4>EDM‑Based Sensitive Information Type: Create the <strong>custom SIT</strong> that policies will use</h4><p><strong>Customization options:</strong></p><ul><li>Name and description</li><li>Matching rules</li><li>Confidence thresholds</li><li>Required corroborative evidence</li></ul><p>EDM SITs behave like normal SITs in DLP, labeling, and analytics</p><h4>Matching Rules &amp; Confidence Levels: Control <strong>how strict</strong> a match must be</h4><p><strong>Customization options:</strong></p><ul><li>Require only the primary field (low confidence)</li><li>Require primary + corroborative fields (medium/high confidence)</li><li>Tune detection thresholds per scenario</li></ul><p>This allows the same EDM dataset to support <strong>multiple risk levels</strong>.</p><h4>Supported integration points</h4><p>Once created, EDM SITs can be used in:</p><ul><li>Data Loss Prevention (DLP)</li><li>Auto‑labeling (service‑side &amp; client‑side)</li><li>Insider Risk Management</li><li>eDiscovery</li><li>Microsoft Defender for Cloud Apps</li></ul><h3>What you cannot customize in EDM</h3><ul><li>Partial pattern matching (values must exist in the dataset)</li><li>Free‑text or semantic meaning detection</li><li>Ad‑hoc single‑value lookups</li></ul><p>(Those scenarios are better handled by SITs or trainable classifiers.)</p><h3>Document Fingerprinting: recognizing templates</h3><p>Document Fingerprinting focuses on <strong>document structure</strong>, not values or meaning.</p><p>With fingerprinting, you upload one or more <strong>sample documents</strong> (for example, a standard NDA or contract). Purview analyzes the structure and creates a fingerprint that can recognize:</p><ul><li>Variations of the same document</li><li>Files with modified text but similar layout</li></ul><p>This makes fingerprinting ideal for:</p><ul><li>Legal agreements</li><li>Invoices</li><li>HR forms</li><li>Standardized business documents</li></ul><p><strong>When to use document fingerprinting</strong></p><ul><li>When documents follow a <strong>template</strong></li><li>When content changes but structure stays consistent</li><li>When pattern matching is unreliable</li></ul><p>Fingerprinting is often underused but extremely effective in legal and HR scenarios.</p><h3>Trainable Classifiers: understanding document meaning</h3><p>Trainable classifiers move beyond patterns and templates. They use machine learning to identify <strong>types of documents</strong>, not specific data values.</p><p>Examples include:</p><ul><li>Financial reports</li><li>Resumes</li><li>Source code</li><li>Business plans</li><li>M&amp;A documents</li></ul><p>Microsoft provides many <strong>pre‑trained classifiers</strong>, and organizations can also create <strong>custom trainable classifiers</strong> by providing positive and negative samples.</p><p><strong>When to use trainable classifiers</strong></p><ul><li>When data is <strong>unstructured</strong></li><li>When regex or patterns don’t exist</li><li>When the question is <em>“What kind of document is this?”</em></li></ul><p>Trainable classifiers are especially valuable for high‑level content discovery and risk analysis.</p><h3>Continuous (automatic) classification: the default behavior</h3><p>By default, Microsoft Purview classifies content <strong>automatically</strong> when:</p><ul><li>A file is created</li><li>A file is modified</li></ul><p>This continuous classification feeds:</p><ul><li>DLP policies</li><li>Sensitivity labeling</li><li>Retention and lifecycle policies</li></ul><p>However, this model has an important limitation:<br><strong>files that are never edited are never re‑classified.</strong></p><p>This is where on‑demand classification becomes essential.</p><h3>On‑Demand Classification: scanning data at rest</h3><p>On‑demand classification allows administrators to <strong>explicitly trigger a classification scan</strong> of data at rest.</p><ul><li>It is not a new classifier.</li><li>It does not change detection logic.</li><li>Instead, it <strong>re‑runs existing classifiers</strong> against historical data.</li></ul><p>On‑demand classification is used when:</p><ul><li>New SITs or EDM rules are created</li><li>Trainable classifiers are updated</li><li>Old or inactive files need to be reassessed</li></ul><p>When a scan runs:</p><ol><li>Purview evaluates files using all enabled classifiers</li><li>Classification metadata is updated</li><li>Existing policies (DLP, labels, retention) trigger automatically</li></ol><p>This capability is especially important for:</p><ul><li>SharePoint Online</li><li>OneDrive for Business</li><li>Endpoints (in limited scenarios)</li></ul><p>Because on‑demand classification can scan large volumes of data, it is offered as a <strong>pay‑as‑you‑go feature</strong>.</p><h3>Collection Policies: defining where Purview can look</h3><p>Collection policies do not classify data and do not enforce controls. Instead, they define <strong>scope</strong>.</p><p>A collection policy answers one simple question:</p><blockquote>Which locations is Purview allowed to scan and analyze?</blockquote><p>They control:</p><ul><li>Which SharePoint sites are included</li><li>Which OneDrive accounts are in scope</li><li>Which endpoints can be scanned</li></ul><p>Without a collection policy:</p><ul><li>Continuous classification won’t run</li><li>On‑demand classification won’t work</li><li>Data won’t appear in analytics or explorers</li></ul><p>Collection policies are therefore a <strong>mandatory prerequisite</strong> for classification, not an alternative to it.</p><h3>How everything fits together</h3><p>All classification in Microsoft Purview follows a clear dependency chain:</p><pre>Collection Policy<br>→ Data is eligible for scanning<br>→ Classification (SIT, EDM, Fingerprint, Trainable)<br>→ On‑Demand or Continuous Evaluation<br>→ DLP / Labels / Retention act</pre><p>Each layer has a distinct responsibility, and skipping one breaks the entire flow.</p><h3>Summary:</h3><ul><li><strong>Collection policy</strong>: Where can Purview look?</li><li><strong>Classification</strong>: What is this data?</li><li><strong>On‑demand classification</strong>: Scan it again, now</li><li><strong>Policies</strong>: What should we do about it?</li></ul><p>Understanding this separation is the key to designing effective, predictable Microsoft Purview deployments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f5c2cfa52645" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Rise of Autonomous Penetration Testing Security Agents]]></title>
            <link>https://medium.com/@ahmed.monsry/the-rise-of-autonomous-security-agents-7f3b1ddb8ce2?source=rss-4add91c9ba9a------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f3b1ddb8ce2</guid>
            <category><![CDATA[cyebrsecurity]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Ahmed Monsri]]></dc:creator>
            <pubDate>Tue, 27 Jan 2026 13:41:03 GMT</pubDate>
            <atom:updated>2026-01-27T13:43:06.021Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ki1NCC9IV3uh5lKDSR3J0g.png" /><figcaption>generated</figcaption></figure><h3>The End of “Wait and See” Security: How AWS is Turning AI into a Red Teamer</h3><p>We’ve all been there: a critical release is scheduled for Friday, but the security audit report doesn’t come back until Monday. Or worse, the “automated” scanner flags 400 vulnerabilities, and your team spends the weekend realizing 395 of them aren’t even exploitable.</p><p>The “Scan and Pray” era of cybersecurity is officially dying.</p><p>At the latest re:Invent, AWS dropped something that feels like it’s straight out of a sci-fi novel: the <strong>AWS Security AI Agent</strong>. It isn’t just a better scanner; it’s an autonomous, context-aware entity that thinks like a penetration tester. After analyzing the latest deep dives and demonstrations, it’s clear: the speed of AI in security is no longer a trend, it’s a revolution.</p><h3>1. Verification over Volatility: The “Proof” in the Pudding</h3><p>One of the most frustrating parts of AppSec is the “False Positive.” Traditional tools look at code and say, <em>“This looks like a bug.”</em> The AWS Security Agent takes it a step further. It uses <strong>Validator Agents</strong> to actually attempt the exploit. If it finds a potential SQL Injection, it crafts a payload, hits the endpoint, and checks if it actually works.</p><p>When you get a notification from this agent, it doesn’t say “Possible Risk.” It says, <em>“I found this, I verified it, and here is the exact </em><em>curl command I used to breach it.&quot;</em> This shifts the security team&#39;s role from &quot;investigators&quot; to &quot;remediators.&quot;</p><h3>2. Penetration Testing as a Utility, Not an Event</h3><p>Historically, a “Penetration Test” was a high-stakes, once-a-year event involving expensive external consultants. AWS has effectively turned that event into a button you can press whenever you want.</p><p>Because the agent has access to your <strong>architecture diagrams, design docs, and source code</strong>, it understands the <em>intent</em> of your app. It doesn’t just bang on the front door; it looks for business logic flaws, like bypassing an admin panel or extracting database credentials via local file inclusion (LFI), that generic scanners would walk right past.</p><h3>3. Securing the “Blank Page” (Design Reviews)</h3><p>One of the coolest features mentioned in the demos is the <strong>Design Security Review</strong>. You can literally upload an architecture diagram or a product spec, and the AI audits the <em>idea</em> before a single line of code is written.</p><p>It checks your design against your own organizational requirements (like: <em>“Does this meet our encryption standards?”</em> or <em>“Is there an audit log for this PII access?”</em>). Finding an architectural flaw in a PDF is 100x cheaper than finding it in a running production environment.</p><h3>4. The Pull Request Bodyguard</h3><p>With its <strong>GitHub integration</strong>, the AWS Security Agent acts as a high-level peer reviewer. Every time a developer opens a Pull Request, the agent scans the code for hardcoded secrets, permission escalations, or insecure libraries.</p><p>But here’s the kicker: it doesn’t just block the PR. It can actually <strong>generate a new PR with the fix</strong>.</p><p>It’s the first time we’ve seen the loop fully closed: Detect → Verify → Fix → Repeat.</p><h3>The Big Picture: Why This Matters</h3><p>For years, the “bad guys” have had the advantage of speed. They only need to find one hole; we have to patch them all.</p><p>By releasing an agent that can conduct a full-scale penetration test in <strong>two hours</strong> rather than two weeks, AWS is leveling the playing field. We are moving toward a world of <strong>Continuous Offensive Security</strong>, where your defense is constantly attacking itself to find weaknesses before anyone else does.</p><h3>Conclusion: Are We Ready for Autonomy?</h3><p>The <strong>AWS Security AI Agent</strong> (currently in Public Preview) represents a massive leap in trust. Handing an AI the “keys” to probe your systems for weaknesses is a big step, but given the sheer volume of code being produced today, it’s a necessary one.</p><p>The future of security lies not in a more powerful firewall, but in a smarter agent, not to mention, of course, an experienced orchestrator.</p><p><strong>What’s your take?</strong> Does the idea of an autonomous AWS agent “hacking” your own infrastructure make you feel safer or a bit nervous? Let’s talk about it</p><p>Reference:</p><ul><li><a href="https://aws.amazon.com/security-agent/">https://aws.amazon.com/security-agent/</a></li><li><a href="https://youtu.be/moNFV5WbXpc">https://youtu.be/moNFV5WbXpc</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f3b1ddb8ce2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When Phishing Walks Into Teams: Make it a first class security surface]]></title>
            <link>https://medium.com/@ahmed.monsry/when-phishing-walks-into-teams-make-it-a-first-class-security-surface-f5b372099265?source=rss-4add91c9ba9a------2</link>
            <guid isPermaLink="false">https://medium.com/p/f5b372099265</guid>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[phishing]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Ahmed Monsri]]></dc:creator>
            <pubDate>Mon, 26 Jan 2026 13:13:38 GMT</pubDate>
            <atom:updated>2026-01-26T13:13:38.721Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*UbanFtYg33O8VTSm" /><figcaption><a href="https://2wtech.com/microsoft-warns-against-new-microsoft-teams-phishing-campaign/">https://2wtech.com/microsoft-warns-against-new-microsoft-teams-phishing-campaign/</a></figcaption></figure><p>Email security has matured. Most organizations have built layers of protection around the inbox, from URL scanning to user reporting to incident workflows. Attackers have noticed. And they are shifting to the place where people move faster, trust messages more, and rarely expect deception: Microsoft Teams.</p><p>A modern Teams attack does not need malware on day one. It needs psychology, timing, and a path to influence user behavior. The most effective campaigns look like normal business collaboration or internal support, then pivot into account takeover or remote access.</p><p>This article breaks down the common attack pattern and a practical set of defenses you can deploy without destroying collaboration. It also includes a set of Teams specific protections and hunting capabilities you can use immediately.</p><h3>Why this works so well</h3><p>Teams messages carry a different psychological weight than email. Users expect spam in the inbox. They do not expect a “support engineer” to appear in chat, already aware of their problem, offering immediate help. That context bias is exactly what the attacker exploits.</p><p>The attack also benefits from a common organizational gap: many tenants allow external users to initiate chats with internal users, which gives adversaries a low friction entry point into the conversation layer of your environment.</p><h3>The attack chain in plain language</h3><h3>Step 1: The attacker creates “legitimacy”</h3><p>The attacker sets up a new Microsoft 365 tenant so they can present as a real organization rather than a random consumer identity. This makes the interaction feel like normal business collaboration.</p><h3>Step 2: The attacker creates noise and urgency</h3><p>They sign the target up for many newsletters, flooding their mailbox with unwanted messages. The goal is to overwhelm, frustrate, and set up a believable reason for “support” to intervene.</p><p>One important nuance: this flooding can be deliberately paced to avoid obvious detection, more like a steady drip than a sudden burst, which can slip past “email bomb” assumptions if thresholds are too high.</p><h3>Step 3: The attacker enters through Teams</h3><p>They reach out in Teams, impersonating helpdesk staff and offering to fix the spam problem. The hook is simple: the user is already experiencing pain, and the attacker arrives with a solution.</p><h3>Step 4: The attacker escalates to remote access</h3><p>They convince the user to accept a remote access session using tools like Quick Assist or other remote access utilities. Once that session is live, the attacker is no longer “just chatting.” They now have an interactive foothold.</p><h3>Step 5: The attacker moves from access to impact</h3><p>From there, they attempt to weaken protections, for example by tampering with security controls, installing payloads, or pushing the user through a flow that enables further account compromise.</p><p>The key takeaway is not the specific tool used. It is the sequence: create urgency, impersonate trust, gain remote control, then expand the compromise.</p><h3>What defenders should prioritize</h3><p>You do not stop this with a single control. You stop it by breaking the chain at multiple points so the attacker has to succeed repeatedly, not once.</p><p>Below are the highest value moves as a mitigation list, translated into an operational mindset.</p><h3>Defense in depth: the actions that break the chain</h3><h3>1. Enable malicious URL protection in Teams for everyone</h3><p>Microsoft Teams includes near real time URL protection that can deliver warnings on known malicious URLs, and it can also add warnings up to 48 hours after delivery if a URL is later determined to be malicious. This applies to internal and external chats and channels.</p><p>This capability reduces the odds that a user clicks a link before security has time to classify it. It also helps when links change reputation after the message was sent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*2bNUYJ93TMzn43UI.png" /><figcaption><a href="https://learn.microsoft.com/en-us/defender-office-365/mdo-support-teams-quick-configure#step-3-verify-warnings-for-unsafe-links-are-shown-in-microsoft-teams-messages">https://learn.microsoft.com/en-us/defender-office-365/mdo-support-teams-quick-configure#step-3-verify-warnings-for-unsafe-links-are-shown-in-microsoft-teams-messages</a></figcaption></figure><h3>2. Add time of click protection with Safe Links, Safe attachements for Teams</h3><p>If the tenant has Microsoft Defender for Office 365, Safe Links provides time of click protection for URLs in Teams. URLs are validated when the user clicks. In Teams, URLs are not rewritten.</p><p>This is valuable because attackers often rely on delayed weaponization, where a URL is benign at delivery but malicious later. Time of click checks help close that gap.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4LTjmGGjUBRvETIjvUwOhw.png" /></figure><h3>3. Use Zero hour auto purge for Teams to clean up malicious messages after delivery</h3><p>Zero hour auto purge can retroactively detect and take action on malicious Teams chat messages. In Teams chats, it applies to internal messages identified as malware or high confidence phishing. External messages are not supported in Teams chats. In Teams channels, standard channels support internal messages, while shared channels support internal and external messages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eotpFKFd51RS021ObKKZ5g.png" /><figcaption><a href="https://learn.microsoft.com/en-us/defender-office-365/mdo-support-teams-about#configure-zap-for-teams-protection-in-defender-for-office-365">Microsoft Defender for Office 365 support for Microsoft Teams — Microsoft Defender for Office 365 | Microsoft Learn</a></figcaption></figure><p>This is especially useful when a link becomes malicious after delivery or when Microsoft updates detection signals.</p><h3>4. Turn users into sensors using in client reporting</h3><p>With Microsoft 365 E5 or Defender for Office 365 Plan 2, users can report Teams messages as malicious or not malicious. Those reports can be routed to a reporting mailbox, Microsoft, or both depending on organizational configuration and they will generate alerts for yuour SOC.</p><p>This feature provides value only if you pair it with user education. Users need to know what to report and what not to report so your SOC does not drown in noise.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*ZzHB4WaFo1Nc1Ik2.png" /><figcaption><a href="https://learn.microsoft.com/en-us/defender-office-365/submissions-teams">https://learn.microsoft.com/en-us/defender-office-365/submissions-teams</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*IzgfvwGfpkDy0kkb.png" /><figcaption><a href="https://learn.microsoft.com/en-us/defender-office-365/submissions-teams">https://learn.microsoft.com/en-us/defender-office-365/submissions-teams</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/0*otK5kT00cFYMyLo_.png" /><figcaption><a href="https://learn.microsoft.com/en-us/defender-office-365/media/submissions-teams-turn-on-off-defender-portal.png#lightbox">https://learn.microsoft.com/en-us/defender-office-365/media/submissions-teams-turn-on-off-defender-portal.png#lightbox</a></figcaption></figure><h3>5. Block external domains and users from one place</h3><p>Security teams can manage Teams blocks via the Tenant Allow Block List. Domain and sender address entries can be added and will block new Teams communication from that organization, including chats, channels, meetings, and calls. Existing communications can be deleted. This requires the right Teams external access configuration and the toggle that allows the security team to manage blocked domains.</p><p>This is a powerful containment lever during a live attack, but it is also a business decision because blocking an entire domain can impact legitimate partners.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZgVo5SvrDF95v0ZwDzofhQ.png" /><figcaption><a href="https://learn.microsoft.com/en-us/defender-office-365/tenant-allow-block-list-teams-domains-configure">https://learn.microsoft.com/en-us/defender-office-365/tenant-allow-block-list-teams-domains-configure</a></figcaption></figure><h3>6. Reduce the remote access pivot</h3><p>This attack family often succeeds because the attacker convinces a user to accept remote access.</p><p>Your response should include:</p><ul><li>Restrict or remove unapproved remote access tools from endpoints</li><li>Standardize support channels so users can recognize legitimate support requests</li><li>Make remote support workflows verifiable rather than ad hoc</li></ul><p>Even if an attacker reaches a user in Teams, you want the remote access step to be hard to execute.</p><h3>Visibility: how to know which external domains are talking to your tenant</h3><p>A practical request from many customers is simple: show me all domains communicating with staff through Teams.</p><p>Microsoft Teams provides an external domain activity report that shows communication with managed external organizations over chat, including 1 to 1 chats, group chats, and meeting chats.</p><h3>Investigation and hunting: build proof, not assumptions</h3><h3>Advanced hunting tables for Teams messages and URLs</h3><p>Defender for Office 365 can populate advanced hunting tables for Teams:</p><ul><li>MessageEvents provides details about messages at delivery time.</li><li>MessagePostDeliveryEvents captures security events after delivery, including actions like quarantine and ZAP.</li><li>MessageUrlInfo contains URL metadata extracted from Teams messages.</li></ul><h3>Click evidence with UrlClickEvents</h3><p>When Safe Links is in play, UrlClickEvents contains information about Safe Links clicks from email, Teams, and Office apps. This lets you move from “a malicious URL was sent” to “who clicked it, from where, and whether it was blocked.”</p><h3>A practical KQL starting point for external URL investigations</h3><p>Below is a clean version of the correlation approach you referenced. It joins post delivery events, message metadata, and URL metadata, then filters to external threads.</p><p>KQL</p><p><strong><em>MessagePostDeliveryEvents</em></strong></p><p><strong><em>| join MessageEvents on TeamsMessageId</em></strong></p><p><strong><em>| join MessageUrlInfo on TeamsMessageId</em></strong></p><p><strong><em>| where IsExternalThread == true</em></strong></p><p><strong><em>| project Timestamp, Action, ActionType, TeamsMessageId, Url, SenderEmailAddress, ThreatTypes, ConfidenceLevel, DetectionMethods, ThreadId, ReportId</em></strong></p><p>Once you have this view, you can pivot to:</p><ul><li>Frequent sender domains</li><li>Repeated URLs or URL domains</li><li>Users repeatedly exposed</li><li>Delivery actions taken after delivery</li></ul><p>If you also have Safe Links enabled, you can correlate with UrlClickEvents for click confirmation and response priority.</p><h3>Radical move: Reduce unsolicited external chat exposure</h3><p>If external users can initiate chats freely, then your tenant is effectively open for direct social engineering at scale. The mitigation is to lock down chat with external users in Teams, in a way that matches your business model.</p><h3>Harden tamper protection and anti tampering controls</h3><p>When adversaries gain remote access, one of their early goals is to reduce friction for persistence, payload delivery, or credential theft. The mitigation emphasizes configuring tamper protection settings so that “hands on keyboard” access does not immediately translate into “security off.”</p><h3>Tune email flooding defenses to reflect modern attacker pacing</h3><p>Email flooding is not new, but it is being used as a setup tactic for Teams compromise. That means your email protections still matter, even if the final social engineering happens in chat.</p><p>If your mail controls assume an email bomb is always “loud and fast,” consider how a slower flood might evade that assumption.</p><p>The email flood is the stage lighting. Teams is the performance. You need to control both.</p><h3>Conclusion: make Teams a first class security surface</h3><p>The shift from email to Teams is not hypothetical. It is already happening. Attackers are exploiting speed, trust, and the natural impulse to respond in chat.</p><p>The organizations that respond well do three things:</p><ul><li>They deploy baseline protections that warn and block malicious URLs, including post delivery changes in reputation.</li><li>They use Defender for Office 365 features to add time of click protection, retroactive cleanup, user reporting, and centralized blocking where licensing allows it.</li><li>They operationalize visibility and hunting so the SOC can prove exposure and act quickly, rather than debating intent in chat logs.</li></ul><p>Teams can remain open for collaboration and still be safer. The difference is whether you treat Teams messages like critical security telemetry or like informal chatter.</p><blockquote>Reference: <a href="https://learn.microsoft.com/en-us/defender-office-365/mdo-support-teams-quick-configure">https://learn.microsoft.com/en-us/defender-office-365/mdo-support-teams-quick-configure</a></blockquote><blockquote><a href="https://learn.microsoft.com/en-us/defender-office-365/mdo-support-teams-sec-ops-guide">https://learn.microsoft.com/en-us/defender-office-365/mdo-support-teams-sec-ops-guide</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f5b372099265" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Dataless SIEM That Still Sees What Matters]]></title>
            <link>https://medium.com/@ahmed.monsry/not-a-siemless-soc-not-a-dataless-siem-a-purpose-built-one-4d7718ffb6e9?source=rss-4add91c9ba9a------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d7718ffb6e9</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[cost]]></category>
            <dc:creator><![CDATA[Ahmed Monsri]]></dc:creator>
            <pubDate>Tue, 20 Jan 2026 17:35:07 GMT</pubDate>
            <atom:updated>2026-01-20T17:45:29.067Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/420/1*4Qip_MkA_Y3otVdAjT9n1g.png" /></figure><blockquote><strong>How to Cut SIEM Cost Without Cutting Detection</strong></blockquote><p>For years, SIEM strategy has followed a simple but dangerous assumption:<br> <em>More data means more security.</em></p><p>The reality most organizations discover, usually after the first invoice , is that more data often just means more noise, more cost, and slower outcomes. Cloud SIEM made ingestion easy, but it also made it dangerously easy to centralize everything without asking a fundamental question:</p><p><strong>Does this data actually need to live in the SIEM?</strong></p><p>This is where the idea of a <em>dataless SIEM</em> started to surface. The premise was elegant: centralize alerts, not raw data.</p><p>But in practice, most security teams quickly hit a wall, because some data is simply too important to lose.</p><p>The evolution from that realization is what this post is about.</p><h3>The Traditional SIEM Starting Point</h3><p>In a traditional SIEM deployment, organizations typically aim to centralize as much security data as possible, endpoint telemetry, email activity, cloud logs, identity events, compliance data, under the assumption that full visibility requires full ingestion.</p><p>Over time, the SIEM becomes the system of record for detection, hunting, investigation, and compliance, with analytic rules built directly on raw log streams from every available tool.</p><p>This approach is logical as a starting point and still common today, but it often leads to high data volumes, rising costs, and overlapping analytics with upstream security platforms that are already generating alerts.</p><p>What we explore in this post is not a rejection of that model, but a refinement of it, In our case we imagine a client using Microsoft Sentinel, Microsoft Defender Security solutions(XDR, Endpoint…), and Entra ID as a concrete example to illustrate a broader idea that applies regardless of products: <strong>optimize what the SIEM ingests by value, not by default</strong>.</p><h3>The Core Insight: Not All Data Has Equal Value in a SIEM</h3><p>Modern detection does not start in a SIEM anymore. It starts upstream:</p><ul><li>In endpoint sensors</li><li>In email pipelines</li><li>In cloud service intelligence</li><li>In identity risk engines</li></ul><p>Platforms like Microsoft Defender XDR already perform large‑scale behavioral analytics, correlation, and detection <em>before</em> anything reaches a SIEM. Sending all of that raw telemetry into Sentinel often duplicates work that has already been done, at significant cost.</p><p>At the same time, not all detection domains are equal.</p><p>Some data streams produce outcomes (alerts).<br>Others produce <em>context</em> you cannot reconstruct later.</p><p>Understanding that distinction is the key to optimizing SIEM without weakening security.</p><h3>What We Optimized and Why</h3><p>In the approach discussed here, we deliberately optimized what data flows into Microsoft Sentinel based on <strong>irreplaceable value</strong>, not habit.</p><h3>First, reduce ingestion from XDR and alert‑centric tools</h3><p>Instead of ingesting raw endpoint events, email telemetry, and cloud activity logs, we let Microsoft Defender XDR do what it does best:</p><ul><li>Detect threats</li><li>Correlate signals</li><li>Raise high‑confidence alerts and incidents</li></ul><p>Sentinel then ingests <strong>only those alerts and incidents</strong>, gaining:</p><ul><li>Centralized visibility</li><li>SOC workflow</li><li>Incident tracking</li><li>Executive reporting</li></ul><p>This alone eliminates the largest SIEM cost driver: high‑volume telemetry ingestion.</p><h3>Then, we asked the hard question: What can we not afford to lose?</h3><p>The answer was (as an example) identity.</p><p>Raw Entra ID Sign‑in Logs and Audit Logs enable detections that <strong>cannot be recreated from alerts alone</strong>, including:</p><ul><li>Authentication pattern analysis</li><li>Conditional Access bypass scenarios</li><li>Service principal abuse</li><li>Directory and privilege change monitoring</li><li>Identity‑centric forensics</li></ul><p>Defender XDR consumes identity <em>outcomes</em> (risk signals), but it does not provide full access to raw identity logs. Losing that capability would mean losing an entire detection class.</p><p>So instead of going fully “dataless,” we made one intentional exception:</p><p><strong>We kept Entra ID Sign‑in and Audit logs in Sentinel analytics.</strong></p><h3>The Result: An Identity‑First, Alert‑Centric SIEM</h3><p>This creates a clear, opinionated architecture:</p><p><strong>Sentinel analytics</strong><br> Used for:</p><ul><li>All security alerts and incidents</li><li>Full Entra ID identity logs</li><li>Identity‑driven analytic rules</li><li>Year‑long incident visibility</li><li>(Of course, any other irreplaceable data to be used in the detection rules.)</li></ul><p><strong>XDR platforms</strong><br> Used for:</p><ul><li>Endpoint, email, cloud detection, and intensive telemetry</li><li>Native investigations and response</li><li>Scheduled hunting where applicable</li></ul><p><strong>Sentinel Data Lake or native retention</strong><br> Used for:</p><ul><li>Long‑term, low‑cost storage</li><li>On‑demand investigations</li><li>Compliance and forensics</li></ul><p>Sentinel stops being a data sink and becomes what it should have always been: <strong>a decision engine, not a dumping ground.</strong></p><h3>Why This Delivers Real ROI</h3><p>From a financial perspective, the return on investment is immediate.</p><p>Traditional SIEM models scale cost with telemetry volume, which is the wrong metric.</p><p>This approach scales cost with <em>decision value</em>.</p><p>By removing continuous ingestion of high‑volume telemetry and retaining only alerts plus identity logs:</p><ul><li>SIEM ingestion volume drops dramatically</li><li>Retention costs become predictable</li><li>Year‑over‑year cost shocks disappear</li></ul><p>At the same time, nothing critical is lost:</p><ul><li>Detection still happens upstream</li><li>Identity analytics remain intact</li><li>Incident visibility actually improves due to reduced noise</li></ul><p>Most organizations adopting this model see <strong>70–80% SIEM cost reduction</strong> compared to full‑telemetry deployments, while maintaining or improving security outcomes.</p><h3>This Is Not About Doing Less Security</h3><p>This is a common misunderstanding.</p><p>This approach does not reduce detection capability, it <strong>reassigns it to the right layer</strong>.</p><ul><li>Let XDR detect behavior at scale</li><li>Let identity logs tell the full story where it matters</li><li>Let the SIEM focus on correlation, oversight, and outcomes</li></ul><p>Security improves because engineers spend less time managing ingestion and more time responding to real threats.</p><h3>The Bigger Lesson</h3><p>The lesson here is bigger than Microsoft Sentinel.</p><p>SIEM maturity does not mean: “Can we ingest everything?”</p><p>It means: “Do we understand where each detection belongs?”</p><p>A clarity‑first SIEM strategy is an architectural decision, not a cost‑cutting trick. When done intentionally, it delivers better security, better economics, and better operational sanity.</p><h3>Final Thought</h3><p>This is not a dataless SIEM.<br> It’s not a full‑fat SIEM either.</p><p>It’s a <strong>selectively opinionated SIEM</strong>, built around the reality that:</p><ul><li>Alerts are outcomes</li><li>Identity is foundational</li><li>And not all data deserves the same price tag</li></ul><p>If you design your SIEM around <em>what you can’t replace</em>, the ROI takes care of itself.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d7718ffb6e9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fixing “Groups & Sites” Option Grayed Out in Sensitivity Labels: A Complete Guide]]></title>
            <link>https://medium.com/@ahmed.monsry/fixing-groups-sites-option-grayed-out-in-sensitivity-labels-a-complete-guide-d4c503964fd1?source=rss-4add91c9ba9a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4c503964fd1</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[microsoft-purview]]></category>
            <dc:creator><![CDATA[Ahmed Monsri]]></dc:creator>
            <pubDate>Mon, 12 Jan 2026 10:47:47 GMT</pubDate>
            <atom:updated>2026-06-09T17:21:22.350Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s_8sX1zTj9_QkqsMatCM3w.png" /></figure><h3>Introduction</h3><p>If you’ve tried applying sensitivity labels to Microsoft 365 Groups or Teams and noticed the <strong>“Groups &amp; Sites”</strong> option is grayed out, you’re not alone. This issue occurs because directory-level settings aren’t configured to allow Microsoft Information Protection (MIP) labels for groups. In this guide, we’ll walk through why this happens and how to fix it using <strong>Microsoft Entra PowerShell cmdlets</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s_8sX1zTj9_QkqsMatCM3w.png" /></figure><h3>Why Is the Option Grayed Out?</h3><p>By default, Microsoft Entra ID (formerly Azure AD) does not enable MIP labels for Microsoft 365 Groups. To unlock this feature, you need to create a <strong>directory setting</strong> using the Group.Unified template and set the property EnableMIPLabels to True.</p><h3>Prerequisites</h3><p>Before you start, make sure you have:</p><ul><li><strong>Microsoft Entra ID P1 license</strong><br> <em>(Some settings require this license. Check Microsoft’s official documentation for details.)</em></li><li><strong>PowerShell installed with Microsoft Graph modules</strong></li><li><strong>Global Administrator permissions</strong> in your tenant</li></ul><h3>Step-by-Step Solution</h3><h3>Step 1: Install Microsoft Graph PowerShell SDK</h3><p>Open <strong>Windows PowerShell</strong> as an administrator and run:</p><pre>Install-Module Microsoft.Graph -Scope AllUsers<br>Install-Module Microsoft.Graph.Beta -Scope AllUsers</pre><p>These modules allow you to manage Microsoft Entra settings via PowerShell.</p><p>First go with:</p><pre>Set-ExecutionPolicy RemoteSigned -Scope CurrentUser</pre><p>Connect using this line:</p><pre>Connect-MgGraph -Scopes &quot;Directory.ReadWrite.All&quot; -UseDeviceCode<br><br>Or<br><br>Connect-MgGraph -Scopes &quot;Directory.ReadWrite.All&quot;</pre><h3>Step 2: Get the Settings Template</h3><p>To configure Microsoft 365 group settings, you need the Group.Unified template. Run:</p><pre>Get-MgBetaDirectorySettingTemplate</pre><p>This command lists all available templates. Look for:</p><pre>DisplayName: Group.Unified<br>Id: 62375ab9-6b52-47ed-826b-58e47e0e304b</pre><h3>Step 3: Create Directory Settings</h3><p>First, store the template ID in a variable:</p><pre>$TemplateId = (Get-MgBetaDirectorySettingTemplate | where { $_.DisplayName -eq &quot;Group.Unified&quot; }).Id</pre><p>Next, define the settings you want to apply. Here, we’ll enable MIP labels and add a usage guideline URL:</p><pre><br>$params = @{<br>   templateId = &quot;62375ab9-6b52-47ed-826b-58e47e0e304b&quot;<br>   values = @(<br>#change the URL or remove it<br>      @{ name = &quot;UsageGuidelinesUrl&quot;; value = &quot;https://guideline.example.com&quot; },<br>      @{ name = &quot;EnableMIPLabels&quot;; value = &quot;True&quot; }<br>   )<br>}</pre><p>Finally, create the directory setting:</p><pre><br>New-MgBetaDirectorySetting -BodyParameter $params</pre><h3>Step 4: Verify Settings</h3><p>To confirm that the settings were applied:</p><pre><br>$Setting = Get-MgBetaDirectorySetting | where { $_.DisplayName -eq &quot;Group.Unified&quot;}<br>$Setting.Values</pre><p>You should see:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/939/1*blcGLIUFxgYk8JCebtib0g.png" /></figure><h3>Wrap-Up</h3><p>Once you enable EnableMIPLabels, you can apply sensitivity labels to Microsoft 365 Groups and Teams, improving compliance and security across your organization.</p><p><strong>Pro Tip:</strong> Regularly review your group settings to ensure they align with your governance policies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BvE-YOmeruTJYhK9_rTrjg.png" /></figure><h3>Further Reading</h3><ul><li><a href="https://learn.microsoft.com/en-us/entra/identity/users/groups-settings-cmdlets">https://learn.microsoft.com/en-us/entra/identity/users/groups-settings-cmdlets</a></li><li><a href="https://learn.microsoft.com/en-us/entra/identity/users/groups-assign-sensitivity-labels?tabs=microsoft">https://learn.microsoft.com/en-us/entra/identity/users/groups-assign-sensitivity-labels?tabs=microsoft</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4c503964fd1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The 20% That Delivers 80% of Microsoft Defender for Cloud’s Value in Azure]]></title>
            <link>https://medium.com/@ahmed.monsry/the-20-that-delivers-80-of-microsoft-defender-for-clouds-value-in-azure-e5d2307f6fed?source=rss-4add91c9ba9a------2</link>
            <guid isPermaLink="false">https://medium.com/p/e5d2307f6fed</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[azure]]></category>
            <dc:creator><![CDATA[Ahmed Monsri]]></dc:creator>
            <pubDate>Mon, 15 Dec 2025 15:43:23 GMT</pubDate>
            <atom:updated>2025-12-15T15:43:23.041Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1BjxQ25asfGiraip.jpeg" /></figure><h3>Scope &amp; Purpose</h3><p>This guide is for <strong>Azure-managed environments only, </strong>no AWS, GCP, or on-premises. The goal is simple: highlight the small set of actions (20%) that unlock most of the capabilities (80%) of <strong>Microsoft Defender for Cloud</strong>, while following security best practices and cost optimization.</p><h3>Why This Matters</h3><p>Microsoft Defender for Cloud is a <strong>Cloud-Native Application Protection Platform (CNAPP)</strong> built on two pillars:</p><ul><li><strong>Posture Management (CSPM):</strong> Continuous assessment of your Azure environment for misconfigurations and compliance gaps.</li><li><strong>Workload Protection Plans (CWPP): </strong>Runtime protection for specific resource types like VMs, containers, databases, and storage.</li></ul><p>Understanding these pillars, and where to apply them, is key to maximizing value efficiently.</p><h3>The 20% Actions That Matter Most</h3><h3>1. Posture Management: Defender CSPM</h3><p><strong>What it does:</strong> Advanced posture management, attack-path analysis, risk-based prioritization.<br> <strong>Apply Per Subscription: </strong>Enable Defender CSPM at the subscription level for broad coverage.<br> <strong>Why it’s critical:</strong> Provides visibility across all Azure resources and drives <strong>Secure Score</strong> improvements.<br> <strong>Cost Tip:</strong> Start with critical subscriptions first.</p><h3>2. Workload Protection Plans</h3><p>These plans secure resources at runtime. Apply them where they matter most:</p><h4>Defender for Servers</h4><ul><li><strong>Scope:</strong> Virtual Machines (Windows/Linux)</li><li><strong>Apply: </strong>Per Resource Type or Resource Group ((or even individual resource level)) Enable for all VMs in production resource groups.</li><li><strong>Impact:</strong> Vulnerability scanning, JIT VM access, integration with Defender for Endpoint.</li><li><strong>Cost Tip:</strong> Avoid enabling on dev/test VMs unless required.</li></ul><h4>Defender for Containers</h4><ul><li><strong>Scope:</strong> Azure Kubernetes Service (AKS)</li><li><strong>Apply: </strong>Per Cluster, Enable for AKS clusters hosting sensitive workloads.</li><li><strong>Impact:</strong> Image scanning, runtime protection, and DevOps pipeline integration.</li><li><strong>Cost Tip:</strong> Focus on clusters exposed to the internet or running critical apps.</li></ul><h4>Defender for Databases</h4><ul><li><strong>Scope:</strong> Azure SQL, Cosmos DB</li><li><strong>Apply: </strong>Per Resource type, Enable on business-critical databases only.</li><li><strong>Impact:</strong> Detect suspicious queries and access patterns.</li><li><strong>Cost Tip:</strong> Skip non-production databases to save cost.</li></ul><h4>Defender for Storage</h4><ul><li><strong>Scope:</strong> Blob and File Storage</li><li><strong>Apply: </strong>Per Storage Account, Enable on accounts storing sensitive or external-facing data.</li><li><strong>Impact:</strong> Malware scanning and anomaly detection.</li><li><strong>Cost Tip:</strong> Avoid enabling on archival storage.</li></ul><h4>Defender for Key Vault</h4><ul><li><strong>Scope:</strong> Azure Key Vault</li><li><strong>Apply: </strong>Per Vault, Enable on vaults storing production secrets.</li><li><strong>Impact:</strong> Alerts for suspicious access attempts.</li></ul><h4>Defender for App Service</h4><ul><li><strong>Scope:</strong> Azure App Service (Web Apps, APIs)</li><li><strong>Apply: </strong>Per App Service Plan or Resource, Enable for internet-facing apps.</li><li><strong>Impact:</strong> Detect vulnerabilities and suspicious activity.</li></ul><h3>Operational Best Practices</h3><ul><li>Review <strong>Secure Score</strong> regularly and prioritize high-impact recommendations.</li><li>Enable <strong>Just-in-Time VM Access</strong> to reduce exposure.</li><li>Automate remediation for common misconfigurations.</li><li>Stream alerts to <strong>Microsoft Sentinel</strong> for SOC workflows.</li></ul><h3>Optimization Tips</h3><ul><li>Use <strong>Cost Management + Billing</strong> to monitor Defender plan usage.</li><li>Scope plans to critical workloads only.</li><li>Disable unused plans to avoid unnecessary charges.</li></ul><h3>Closing Thoughts</h3><p>By enabling <strong>Defender CSPM</strong> and selectively applying <strong>workload protection plans</strong> where they matter most, you’ll cover posture management and runtime protection, the pillars of Azure security, without overspending. This is the <strong>20% effort that delivers 80% of the value</strong>.</p><p><strong>Your next step?</strong> Start with <a href="https://learn.microsoft.com/azure/defender-for-cloud/defender-for-cloud-introduction">https://learn.microsoft.com/azure/defender-for-cloud/defender-for-cloud-introduction</a> and build from there.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e5d2307f6fed" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Practitioner’s Path through Microsoft Defender for Cloud]]></title>
            <link>https://medium.com/@ahmed.monsry/a-practitioners-path-through-microsoft-defender-for-cloud-8c918ccde4d4?source=rss-4add91c9ba9a------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c918ccde4d4</guid>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[microsoft]]></category>
            <dc:creator><![CDATA[Ahmed Monsri]]></dc:creator>
            <pubDate>Mon, 15 Dec 2025 13:10:53 GMT</pubDate>
            <atom:updated>2025-12-15T13:10:53.899Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4muSl83iibZMFQyq.png" /><figcaption><a href="https://learn.microsoft.com/en-us/azure/defender-for-cloud/defender-for-cloud-introduction">https://learn.microsoft.com/en-us/azure/defender-for-cloud/defender-for-cloud-introduction</a></figcaption></figure><h3>Why Microsoft Defender for Cloud Matters</h3><p>Cloud adoption has transformed how businesses operate, but it has also multiplied the attack surface. Misconfigurations, exposed APIs, and sprawling multicloud environments create blind spots that attackers exploit every day. Traditional security tools struggle to keep pace because they were designed for static, on-premises systems, not dynamic, distributed workloads.</p><p><strong>Microsoft Defender for Cloud</strong> solves this challenge by acting as a <strong>Cloud-Native Application Protection Platform (CNAPP)</strong>. It combines <strong>Cloud Security Posture Management (CSPM)</strong> to continuously assess and improve your environment, <strong>Cloud Workload Protection (CWPP)</strong> to defend resources at runtime, and <strong>DevSecOps integration</strong> to secure code before it reaches production. All of this happens in a single pane of glass, across <strong>Azure</strong>, <strong>AWS</strong>, <strong>GCP</strong>, and even on-premises servers through <strong>Azure Arc</strong>.</p><p>Why should you care? Because security isn’t just about compliance, it’s about resilience. Defender for Cloud helps you:</p><ul><li><strong>See everything</strong>: Gain visibility into your entire cloud estate, including SaaS apps and hybrid machines.</li><li><strong>Reduce risk fast</strong>: Prioritize misconfigurations and vulnerabilities with actionable recommendations.</li><li><strong>Defend intelligently</strong>: Detect and respond to threats using advanced analytics and Microsoft’s global threat intelligence.</li><li><strong>Prepare for the future</strong>: Protect emerging workloads like AI services and ensure governance at scale.</li></ul><p>In this blog, we’ll walk through a practical learning path, from onboarding and integration to advanced operations and compliance, so you can build an industry-ready security posture Knowledge with confidence.</p><h3>Microsoft Defender for Cloud Plans at a Glance</h3><p>Choosing the right plan is essential for building a strong cloud security posture. Microsoft Defender for Cloud offers multiple tiers and add-ons to fit different needs:</p><h3>1. Foundational CSPM (Free Tier)</h3><ul><li><strong>What it includes</strong>:</li><li>Basic posture management for Azure resources.</li><li>Secure Score and security recommendations.</li><li><strong>Best for</strong>: Organizations starting with visibility and compliance checks.</li></ul><h3>2. Defender CSPM (Paid)</h3><ul><li><strong>What it adds</strong>:</li><li>Advanced posture management across Azure, AWS, and GCP.</li><li>Attack-path analysis and risk-based prioritization.</li><li>Agentless scanning for VMs and containers.</li><li><strong>Best for</strong>: Enterprises needing deep risk insights and multicloud coverage.</li></ul><h3>3. Workload Protection Plans (CWPP)</h3><p>These plans secure specific resource types at runtime:</p><ul><li><strong>Defender for Servers: </strong>Protects VMs and hybrid machines; integrates with Microsoft Defender for Endpoint.</li><li><strong>Defender for Containers</strong> : Secures Kubernetes clusters and container registries.</li><li><strong>Defender for Databases: </strong>Protects SQL, Cosmos DB, and other database services.</li><li><strong>Defender for Storage: </strong>Monitors blob and file storage for threats.</li><li><strong>Defender for Key Vault: </strong>Detects suspicious access to secrets.</li><li><strong>Defender for App Service: </strong>Protects web apps and APIs.</li></ul><h3>Reader profile &amp; prerequisites</h3><p>This path targets Security Engineers, Cloud Architects, and SOC Analysts comfortable with Azure, basic AWS/GCP terms, and Microsoft Defender products.</p><h3>Your 4‑Milestone Learning Path</h3><h3>Milestone 1 Setup / Onboarding / Integration</h3><p>(Prepare the environment, connect resources, enable security foundations)</p><ol><li>Set up Microsoft Defender for Cloud: <a href="https://learn.microsoft.com/en-us/training/modules/set-up-microsoft-defender-cloud/">https://learn.microsoft.com/en-us/training/modules/set-up-microsoft-defender-cloud/</a></li><li>Secure your hybrid and multicloud machines by using Azure Arc-enabled servers: <a href="https://learn.microsoft.com/en-us/training/modules/secure-azure-arc-enabled-servers/">https://learn.microsoft.com/en-us/training/modules/secure-azure-arc-enabled-servers/</a></li><li>Connect Azure assets to Microsoft Defender for Cloud: <a href="https://learn.microsoft.com/en-us/training/modules/connect-azure-assets-to-azure-defender/">https://learn.microsoft.com/en-us/training/modules/connect-azure-assets-to-azure-defender/</a></li><li>Connect non-Azure resources to Microsoft Defender for Cloud: <a href="https://learn.microsoft.com/en-us/training/modules/connect-non-azure-machines-to-azure-defender/">https://learn.microsoft.com/en-us/training/modules/connect-non-azure-machines-to-azure-defender/</a></li><li>Explore just-in-time virtual machine access: <a href="https://learn.microsoft.com/en-us/training/modules/just-in-time-access/">https://learn.microsoft.com/en-us/training/modules/just-in-time-access/</a></li></ol><h3>Milestone 2 Features</h3><p>(Understand the capabilities you now enabled)</p><ol><li>Audit the security of Windows Server IaaS Virtual Machines: <a href="https://learn.microsoft.com/en-us/training/modules/audit-security-of-windows-server-iaas-virtual-machines/">https://learn.microsoft.com/en-us/training/modules/audit-security-of-windows-server-iaas-virtual-machines/</a></li><li>Explain cloud workload protections in Microsoft Defender for Cloud: <a href="https://learn.microsoft.com/en-us/training/modules/understand-azure-defender-cloud-workload-protection/">https://learn.microsoft.com/en-us/training/modules/understand-azure-defender-cloud-workload-protection/</a></li><li>Plan for cloud workload protections using Microsoft Defender for Cloud: <a href="https://learn.microsoft.com/en-us/training/modules/what-is-azure-defender/">https://learn.microsoft.com/en-us/training/modules/what-is-azure-defender/</a></li><li>Configure and manage threat protection by using Microsoft Defender for Cloud: <a href="https://learn.microsoft.com/en-us/training/modules/microsoft-defender-cloud-threat-protection/">https://learn.microsoft.com/en-us/training/modules/microsoft-defender-cloud-threat-protection/</a></li><li>Implement endpoint protection by using Microsoft Defender for Endpoint: <a href="https://learn.microsoft.com/en-us/training/modules/implement-endpoint-protection-use-microsoft-defender-endpoint/">https://learn.microsoft.com/en-us/training/modules/implement-endpoint-protection-use-microsoft-defender-endpoint/</a></li><li>Protect AI workloads with Microsoft Defender for Cloud: <a href="https://learn.microsoft.com/en-us/training/modules/defender-for-cloud-ai-protect-workloads/">https://learn.microsoft.com/en-us/training/modules/defender-for-cloud-ai-protect-workloads/</a></li><li>Understand how Microsoft Defender for Cloud supports AI security and governance in Azure: <a href="https://learn.microsoft.com/en-us/training/modules/defender-for-cloud-ai-understand-protections/">https://learn.microsoft.com/en-us/training/modules/defender-for-cloud-ai-understand-protections/</a></li></ol><h3>Milestone 3 Operations</h3><p>(Day-to-day SOC activities: monitoring, response, posture)</p><ol><li>Remediate security alerts using Microsoft Defender for Cloud: <a href="https://learn.microsoft.com/en-us/training/modules/remediate-azure-defender-security-alerts/">https://learn.microsoft.com/en-us/training/modules/remediate-azure-defender-security-alerts/</a></li><li>Manage security posture by using Microsoft Defender for Cloud: <a href="https://learn.microsoft.com/en-us/training/modules/microsoft-defender-cloud-security-posture/">https://learn.microsoft.com/en-us/training/modules/microsoft-defender-cloud-security-posture/</a></li><li>Security monitoring and governance: <a href="https://learn.microsoft.com/en-us/training/modules/security-monitoring-and-governance/">https://learn.microsoft.com/en-us/training/modules/security-monitoring-and-governance/</a></li></ol><h3>Milestone 4 Optimization</h3><p>(Advanced design, compliance, long-term improvements)</p><ol><li>Design solutions for security posture management in hybrid and multicloud environments: <a href="https://learn.microsoft.com/en-us/training/modules/design-solutions-security-posture-management-hybrid-multicloud-environments/">https://learn.microsoft.com/en-us/training/modules/design-solutions-security-posture-management-hybrid-multicloud-environments/</a></li><li>Design solutions for regulatory compliance: <a href="https://learn.microsoft.com/en-us/training/modules/design-solutions-regulatory-compliance/">https://learn.microsoft.com/en-us/training/modules/design-solutions-regulatory-compliance/</a></li></ol><h3>Closing Thoughts</h3><p>Cloud security is no longer a checkbox, it’s a continuous journey. Microsoft Defender for Cloud gives you the tools to unify posture management, workload protection, and SaaS security across Azure, AWS, GCP, and hybrid environments. By following this learning path, you’re not just enabling features, you’re building a security strategy that scales with your business and adapts to emerging threats like AI-driven attacks and multicloud complexity.</p><p>Start small: enable CSPM, connect your resources, and onboard critical workloads. Then, grow into advanced capabilities like threat detection, compliance dashboards, and DevSecOps integration. Every milestone brings you closer to a resilient, industry-ready cloud security posture knowldge.</p><blockquote><strong>Your next step? Dive into the official Microsoft Learn modules, experiment in a lab, and turn these concepts into practice. Security isn’t static, keep learning, keep improving, and stay ahead.</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c918ccde4d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>