Where are my Sentinel menus: Getting to know the new ISOC changes in the Defender portal

Where are my Sentinel menus: Getting to know the new ISOC changes in the Defender portal

Where are my Sentinel menus: Getting to know the new ISOC changes in the Defender portal If you open the Microsoft Defender portal today and look for the Microsoft Sentinel section in the left navigation, you may not find it. The Sentinel pages are still there. They have been moved into groups such as Investigation & response, Data lake exploration, Content management, Threat intelligence and Setup & configuration. This change is because of the new Integrated Security Operations Center (ISOC) features, which Microsoft released in public preview on September 23, 2026. ISOC brings XDR, SIEM, threat intelligence, automation and AI together in the Defender portal for eligible Microsoft Defender Suite, Microsoft 365 E5 and Microsoft 365 E7 customers. The new navigation applies whether or not your tenant has opted in to ISOC. A tenant that has not opted in (Settings > Microsoft Sentinel still shows the "Opt in to ISOC" button) has the same regrouped menu, with no Sentinel section. The table below maps each item from the old Sentinel section to its current location. It was captured on November 25, 2026. All paths are relative to security.microsoft.com. Old Sentinel section Item New location URL path General Search Data lake exploration > Search & restore /sentinel/search Threat management Incidents Cases (also Investigation & response > Incidents & alerts) /casesv2, /incidents Threat management Workbooks Dashboards & reports > Workbooks /workbooks Threat management Hunting Investigation & response > Hunts /sentinel/hunting Threat management Notebooks Investigation & response > Notebooks /sentinel/notebooks Threat management Entity behavior Settings > Microsoft Sentinel > UEBA (settings); UEBA card on Home /security-settings Threat management Threat intelligence Threat intelligence > Intel explorer /threatintelligenceexplorer Threat management MITRE ATT&CK Threat intelligence > MITRE ATT&CK /sentinel/mitre Content management Content hub Content management > Content hub /sentinel/contenthub Content management Repositories Content management > Repositories /sentinel/repositories Content management Community Content management > Community /sentinel/community Configuration Workspace manager / workspaces Setup & configuration > Settings > Microsoft Sentinel > SIEM workspaces /security-settings Configuration Data connectors Setup & configuration > Data management > Data & connectors (Connectors tab) /data-management Configuration Tables Setup & configuration > Data management > Data & connectors (Tables tab) /data-management Configuration Analytics Investigation & response > Detection > Analytics /sentinel/analytics Configuration Summary rules Investigation & response > Summary rules /sentinel/summaryrules Configuration Watchlists Setup & configuration > Data management > Watchlist /sentinel/watchlist Configuration Automation Automation (top level) /automation-page Configuration SOC optimization SOC optimization (top level) /sentinel/precision Configuration Health Setup & configuration > Health /securityhealth Configuration Settings Setup & configuration > Settings > Microsoft Sentinel /security-settings Configuration Data lake settings Setup & configuration > Settings > Microsoft Sentinel > Data lake /security-settings Some menu items are new and had no equivalent in the old Sentinel section: Item Location URL path Custom detection rules (unified rules page) Investigation & response > Detection /v2/custom_detection KQL queries, Notebooks, Jobs Data lake exploration /lake-explorer, /notebooks, /job-management Graphs Top level /graphs Cost & usage, Data Lake usage Cost management /costs-and-usage, /cost-management The old /sentinel/... URLs still open the correct pages, so existing bookmarks continue to work. Opting in to ISOC Benefits of opting in: Defender data stays in Defender. You no longer pay to ingest a second copy of it into the Sentinel workspace. Case management, shown as Cases in the navigation. Natural-language playbook generation, where you describe an automation in plain language and ISOC builds the playbook. Enhanced automation rules. Included retention for Defender data. Analysts and Microsoft's Perception agents work from the same signals, context and workflows. To opt in, go to Setup & configuration > Settings > Microsoft Sentinel and select Opt in to ISOC. The wizard lists six steps. Three are required: Connect all Sentinel workspaces to the Defender portal. Most tenants will already have done this. Table retention change. Set table retention to at least 90 days. ISOC now includes 90 days of retention. Stop Defender data ingestion. Remove the Microsoft Defender XDR data connector from the Sentinel workspace. The other three steps are recommended: importing Sentinel roles into Defender RBAC, activating Defender RBAC, and updating content to use Defender data. ISOC is a benefit of the Microsoft 365 E5 license, as is the included 90-day retention. Microsoft Defender Suite and Microsoft 365 E7 customers are also eligible. References Integrated Security Operations Center (ISOC) in Microsoft DefenderMicrosoft Defender XDR blog ISOC overviewMicrosoft Learn Microsoft Sentinel in the Microsoft Defender portalMicrosoft Learn Create an ISOC workspace in the Microsoft Defender portalMicrosoft Learn Data ingestion, retention and billing for ISOCMicrosoft Learn Connect Microsoft Sentinel to the Microsoft Defender portal (Offboard Microsoft Sentinel)Microsoft Learn FIELD NOTES · SIMPLE-SECURITY.CA

November 25, 2026 · 4 min · David Broggy
Now is a good time to review your Microsoft Defender AV and EDR tools

Now is a good time to review your Microsoft Defender AV and EDR tools

Now is a good time to review your Microsoft Defender AV and EDR tools With all the attacks happening lately, it's a good time to understand how Microsoft Defender works and which features are relevant to protecting your enterprise against these attacks. I'll show some recent attacks and how Defender helps, then we'll see what's on by default and what you need to think about turning on yourself. 01 01 / Recent attacks and the Defender features that apply Attack Date What happened Defender features that apply ConnectWise ScreenConnect partner accounts Disclosed Nov 11, 2026 Unauthorized access to partner accounts and unauthorized remote access software in customer environments. ConnectWise disabled five third-party extensions linked to the activity Defender for Endpoint advanced hunting for remote access tools; certificate indicators to block unapproved ones; automatic attack disruption Warlock ransomware through SharePoint Oct 2, 2026 On-premises SharePoint exploited at a water utility, a telecom provider, a government body and a university. Web shells, credential theft and remote access used; security protections disabled on at least 40 hosts Defender Vulnerability Management to find unpatched SharePoint; ASR (attack surface reduction) rules for web shell creation on servers and LSASS credential theft; tamper protection The Gentlemen ransomware Mid-2025 to 2026 Ransomware-as-a-service with over 320 claimed victims; enters through exposed VPNs, remote access gateways and firewall management portals (Check Point Research) Defender Vulnerability Management for internet-facing devices; tamper protection; controlled folder access; automatic attack disruption YAM Store phishing kits (Storm-3119) Reported Oct 14, 2026 Underground market selling phishing kits used in credential theft campaigns Defender for Office 365 Safe Links and preset security policies ClickFix fake CAPTCHA campaigns June 2025 to June 2026 Users told to paste and run a command; 12.8% of intrusions observed by Defender Defender Antivirus clipboard monitor, AMSI (Antimalware Scan Interface) script scanning, ASR rule for obfuscated scripts, network protection Storm-2949 Reported May 18, 2026 One compromised identity led to data theft from Microsoft 365, file-hosting services and Azure Defender for Identity, Defender for Cloud Apps, automatic attack disruption 02 02 / NEW: The ClickFix clipboard monitor At Ignite, Microsoft announced a clipboard monitor (DefenderSessionHelper.exe) that detects malicious commands copied from web pages and clears them before they reach the Run dialog, a terminal or Explorer. Remediation is rolling out to all devices running Defender Antivirus, to complete by the end of 2026. That is Defender Antivirus, not Defender for Endpoint, and the difference decides which devices are covered. 03 03 / Defender Antivirus is more than a file scanner Defender Antivirus (MsMpEng.exe) is built into Windows and does most of the blocking at the moment something runs. Besides file scanning, it runs: Behaviour monitoring, which can stop fileless malware after execution starts. AMSI script scanning of PowerShell, VBScript, JScript and macros in memory. Cloud protection, for verdicts on files it has not seen before. Network protection, ASR rules and controlled folder access, which are configured separately but enforced by this engine. From this rollout, the clipboard monitor. 04 04 / Active mode, passive mode and coverage When a third-party antivirus is installed alongside Defender for Endpoint, Defender Antivirus runs in passive mode: it scans and reports but does not remediate. Network protection, ASR rules and controlled folder access need it in active mode. For the clipboard monitor that means: Active and onboarded to Defender for Endpoint: covered, with alerts in the Defender portal. Active, not onboarded: covered, visible only in the local event log. Passive behind a third-party AV: not stated by Microsoft; assume not covered. macOS and Linux: not mentioned in the announcement. To check a device, run Get-MpComputerStatus | Select-Object AMRunningMode, AMProductVersion and look for DefenderSessionHelper.exe in the running processes. 05 05 / Defender Antivirus settings and their defaults Defaults are as stated on each linked Microsoft Learn page. Where Learn does not state one, check the device with Get-MpPreference. Use case Setting Where Default Cloud verdicts on new files Cloud protection* Intune Antivirus On Stop Defender being turned off Tamper protection* Defender portal or Intune On for enterprise customers (Windows); audit on macOS Block adware and bundled installers PUA protection (potentially unwanted applications)* Intune Antivirus Audit or block, depending on OS and intelligence version Block bad domains in any browser Network protection* Intune Antivirus Not stated; enabled per device Block obfuscated scripts, web shells and LSASS credential theft ASR rules* Intune ASR Audit: rules that are not configured do not block, but a sample of audit events is collected Block ransomware writes Controlled folder access* Intune ASR Off Block post-breach activity that the primary antivirus missed EDR in block mode** Defender portal, Advanced features Audit: detections on passive-mode devices raise alerts but are not remediated until this is turned on User clicks a link in an email Safe Links*** (Defender for Office 365) Defender portal, Threat policies On for licensed users through Built-in protection; Standard and Strict presets off Clear ClickFix commands from the clipboard Clipboard monitor* No setting Rolling out by end of 2026 * Included with Defender Antivirus on Windows 10 and 11 Pro and Enterprise; no Defender for Endpoint licence is needed. Alerts and reporting in the Defender portal need the device onboarded to Defender for Endpoint (Plan 1, Plan 2 or Defender for Business). For ASR rules, Microsoft recommends E5 for monitoring and reporting in the portal; without it the events are in Windows Event Viewer. ** Defender for Endpoint Plan 2, included in Microsoft 365 E5. *** Defender for Office 365 Plan 1 or Plan 2. Plan 2 is included in Microsoft 365 E5. Run ASR rules and network protection in audit mode first and review the results in the Defender portal before switching to block. 06 06 / Where each Defender layer fits HOW TO READ IT The columns are the five stages of a ClickFix attack, left to right. Each row is a Defender layer, and its bar spans the stages where that layer acts. Red bars run inside Defender Antivirus and do not block when it is passive behind a third-party AV; the bracket on the left marks them. The outlined bar, Defender for Office 365 Safe Links, covers only lures that arrive in email, Teams or Office apps. The hatched bar, Defender for Endpoint, records and alerts across the attack but does not block on its own. The right column shows where each layer is configured. 07 07 / Summary Most of the protections against the attacks in section 01 run inside Defender Antivirus and need it in active mode. On devices where a third-party antivirus is primary, they do not block, and EDR in block mode is the only Defender setting that remediates there. On by default: cloud protection, tamper protection for enterprise customers, and Safe Links through Built-in protection. Clipboard monitor: Microsoft says it is rolling out to all devices running Defender Antivirus by the end of 2026. It has no setting, and Microsoft has not said whether it can be turned off or whether it works in passive mode. Audit by default: ASR rules and EDR in block mode. They report but do not block until you turn them on. Off or not set until you configure them: network protection and controlled folder access. PUA (potentially unwanted applications) protection is in audit or block mode depending on the OS and intelligence version. To check a device, run Get-MpComputerStatus and Get-MpPreference, then move ASR rules and network protection from audit to block after reviewing the results in the Defender portal. 08 / References Ignite 2026: What's new in endpoint securityMicrosoft Defender Blog Storm-2949 turned compromised identity into cloud-wide breachMicrosoft Security Blog The hidden network inside the phishing infrastructure ecosystemMicrosoft Security Blog The Gentlemen: a new ransomware threat climbing the charts fastCheck Point Biggest cyber attacks, data breaches, ransomware attacks: October 2026Cyber Management Alliance Recent cyber attacks 2026: a month-by-month timelineStingrai Microsoft Defender Antivirus compatibility with other security productsMicrosoft Learn FIELD NOTES · SIMPLE-SECURITY.CA

November 19, 2026 · 7 min · David Broggy
Why your SIEM engineer might be your next AI hyperscale engineer

Why your SIEM engineer might be your next AI hyperscale engineer

Why your SIEM engineer might be your next AI hyperscale engineer A multi-agent system that processes security events has the same outer shape as a SIEM pipeline. Events are collected, queued, normalized, evaluated and acted on. What changes is the processing node: a deterministic rule is replaced, or supplemented, by a model call that returns structured output and can call tools. The part of SIEM work that matters most at agent scale is normalization. A normalized schema is what lets a thousand correlation rules read hundreds of sources, and it is what lets any number of agents use the same data without each agent handling each source format. As a bonus, I’ve added an interactive visual that shows 1,000 rules and 1,000 agents on the same normalized layer, with and without it. DAVID BROGGY · 2026-11-05 01 01 / Data normalization is key to hyperscaling agents A SIEM with 140 sources and 1,000 analytic rules does not have 20,000 integrations, which is what it would take for each rule to read the 20 or so raw sources in its schema directly. Each source has one parser into a common schema such as ASIM or the Splunk CIM, and each rule is written once against the schema. In Microsoft Sentinel a rule that queries _Im_Authentication covers Entra ID, Okta, AWS CloudTrail and every other authentication source with a parser, including sources added after the rule was written. The integration count is one parser per source, and the rules add none. (A standard Sentinel workspace allows 512 enabled scheduled rules; 1,000 needs a dedicated cluster, which allows 1,024, or a second workspace.) What works: SIEM correlation rules and agents both reading normalized data Figure 1. With normalization: 140 sources, 7 schemas, 1,000 rules and 1,000 agents Left to right: 140 raw sources grouped by the ASIM schema they map to, the seven schemas in the middle, then the two consumer fleets, 1,000 analytic rules (navy) and 1,000 agents (blue). Each source has one line into its schema, and every rule and agent reads only the schemas. The agents are grouped into four specialist types, one per schema family. Incidents from the rules start an orchestrator (one per incident), which hands work to the specialists, and everything they propose goes through the enforcer bar on the far right before it can change a system. That is the SOAR playbook split in three. Moving dots are events. Adding agents adds dots on the right and no lines on the left. Agents are consumers of the same data, and the same arithmetic applies. Without a normalized layer, every agent that investigates sign-ins has to read every raw authentication format, either through source-specific tools or by working out each format from the raw record on every call. With 140 sources spread across seven schemas, that is about 20 source-specific integrations per agent, and about 40,000 across 1,000 rules and 1,000 agents. Each new agent adds 20 more. Each field rename at a source breaks every rule and agent that reads that source directly, and agents that interpret raw formats themselves spend tokens doing it and can reach different conclusions from the same record. What doesn't work: SIEM rules and agents reading every source without normalization Figure 2. Without normalization: every rule and agent wired to every source The same 140 sources and 2,000 consumers with the schema layer removed. Every consumer now needs a line to each source in its schema; the drawing shows a sample of the 40,000. Red dots are the rules and agents that read a FortiGate field directly; the field was just renamed, so they are now broken. With the normalized layer, the ASIM parsers are KQL functions, so the function an analytic rule calls is the same function an agent’s query tool calls. Adding the 1,001st agent requires no new parser and no new integration. Adding a source requires one parser, and every existing rule and agent covers it. A field rename at a source is fixed once, in its parser. The number of agents is then limited by model capacity and query limits, not by integration work. The Log Analytics query API, for example, runs 5 concurrent queries per identity and queues up to 200 before returning HTTP 429, so query load is planned across agent identities the way rule load is planned across workspaces. A common objection is that MCP already handles this. MCP standardizes how an agent finds and calls a tool: the transport, the tool description, and a JSON schema for each tool’s inputs and, optionally, its outputs. Each server author chooses that schema. The protocol has no shared model for a sign-in, a firewall session or a lab result, so an MCP tool that queries a raw table returns that table’s field names, and thirty authentication sources behind thirty MCP tools are still thirty formats. In the architecture later in this post, MCP is the tool layer that carries the data to agents; ASIM or FHIR defines its shape. The work that makes this possible is existing SIEM work: onboarding sources, writing and testing parsers, maintaining schema coverage, and monitoring connector health. That work does not change when the consumers are agents. It becomes the precondition for running them at scale. 02 02 / Component mapping Each part of a SIEM pipeline has a counterpart in a multi-agent pipeline. The table lists them side by side. Dimension SIEM pipeline Multi-agent pipeline Runtime Collection and indexing tier (Splunk, Elastic, Microsoft Sentinel, with Cribl or Vector in front) Agent runtime (for example Microsoft Foundry Agent Service or Amazon Bedrock AgentCore), which schedules model calls and tool calls Unit of work A log event: a structured or semi-structured record of a state change A message on an agent’s input queue: an event, a tool result or a request, with a schema Normalization Parsers and data models (ASIM, Splunk CIM, grok patterns) The same parsers and schemas, exposed to agents as query tools, plus a schema contract (a Pydantic model or JSON Schema) on each agent’s inputs and outputs Detection Analytic rule or saved search: a fixed condition Specialist agent: a system prompt, a scoped set of tools and a typed verdict Transport Kafka, Event Hubs, a forwarder queue, partitioned by key Per-investigation input queues, processed in order for each investigation and in parallel across them Response SOAR playbook or Logic App with a fixed branch tree Tool calls proposed by agents and approved or rejected by an enforcer Testing Detection-as-code with sample logs and expected matches Evaluation sets: replayed incidents with expected verdicts and expected actions Cost control Ingestion tiers, data lake versus analytics tier, retention Token budgets, model tiering, and suspending agents while they wait on tools The normalization, transport, ordering and cost rows are where SIEM experience transfers almost directly. The detection and response rows are where the work changes. 03 03 / Agent data stream schema example A SIEM rule depends on field names. If a custom application changes user_id to uid, the parser still runs, the user field comes back empty, and the analytic rule stops matching. Nothing errors. The detection goes quiet and the gap is found later in a coverage review, or after an incident. In an agent pipeline the same boundary is handled with a schema contract. Every event that enters the pipeline is validated against a typed model, and every verdict an agent returns is validated against another. A Python sketch: from typing import Literal from pydantic import BaseModel, Field class SignInEvent(BaseModel): user_principal_name: str ip_address: str result_code: int app_display_name: str | None = None class TriageVerdict(BaseModel): verdict: Literal["benign", "suspicious", "malicious"] confidence: float = Field(ge=0, le=1) evidence: list[str] proposed_actions: list[str] When an event fails validation, the pipeline has a choice a SIEM parser does not have. A mapping step can pass the raw record and the contract to a model and ask which source field corresponds to user_principal_name. The model’s answer is a proposal, not a fix. It is validated against the contract, written to a log, and used to open a ticket to correct the parser. The model does not remove the need for normalization. It gives the pipeline a fallback path when a source drifts, and it makes the drift visible instead of silent. The skills that apply here are the ones SIEM engineers already use: knowing the target schema (ASIM or CIM), writing field-level data quality checks, and testing parsers against real samples before a source goes live. 04 04 / Correlation rules in SIEM are similar to agent logic An analytic rule is cheap, fast and deterministic. It runs in milliseconds, costs nothing per evaluation beyond the query, and gives the same answer every time. A model call takes seconds, costs tokens and can return different answers for the same input. Replacing every rule with an agent would raise cost and lower predictability for detections that already work. A practical design keeps the analytic rules. Rules filter and score the high-volume stream. Agents take over at three points the rules handle poorly: Triage of incidents the rules have already raised, where an analyst would normally pull context from several tables before deciding. Free-text input, such as a phishing report written by a user, that no field-based rule can parse. Sources that fail normalization, where the mapping step described above applies. Each specialist has one job, its own system prompt, and only the tools that job needs. An identity specialist can query SigninLogs and AuditLogs. An endpoint specialist can query DeviceProcessEvents. An email specialist can query EmailEvents and UrlClickEvents. The scoping is the same least-privilege work done today for a Logic App’s managed identity or a Splunk service account. 05 05 / SOAR playbooks vs agentic orchestrator, specialists, and enforcer A SOAR playbook encodes every branch in advance. The agent version splits that work across three roles: The orchestrator reads the incident, decides which specialists are needed, and starts them. It does not take actions itself. The specialists investigate in parallel and each return a typed verdict with evidence and proposed actions. The enforcer checks every proposed action before anything runs. The enforcer should be code, not a model. It applies fixed rules: an allowlist of permitted actions per incident type, a list of protected accounts (break-glass accounts, the Entra Connect sync account, executives under a separate process), a blast-radius limit such as no more than five accounts disabled per incident, and a human approval requirement for destructive actions such as soft-deleting mail or isolating a server. These are the approval gates and change-control rules that already sit inside mature SOAR playbooks, moved out of each playbook into one place that every agent passes through. The enforcer matters more in security than in most agent deployments because log content is attacker-controlled. A user agent string, an email body, a file name or a command line can contain text written to instruct a model. A specialist that reads a phishing email is reading the attacker’s words. Treat every field that came from a log as untrusted input, keep it out of system prompts, and rely on the enforcer, not the specialist’s judgment, to stop an action the attacker’s text talked the model into proposing. Each agent should also have its own identity, for example a Microsoft Entra Agent ID, so that its queries and actions appear in sign-in and audit logs under a name that can be monitored, scoped by Conditional Access, and disabled. The agent pipeline becomes a log source for the SIEM it supports. 06 06 / Testing and operating the pipeline Detection-as-code practice carries over with one change. A rule test checks that a sample log produces a match. An agent test checks that a replayed incident produces the expected verdict and the expected proposed actions, within a confidence range, across repeated runs, because the output is not deterministic. Build the evaluation set from closed incidents with known outcomes, and rerun it whenever a prompt, a model version or a tool changes. Operational metrics also carry over. Ingestion volume per day becomes tokens per incident. Rule latency becomes time to verdict. False positive rate stays as it is. Add two that SIEM pipelines do not need: the rate at which the enforcer rejects proposed actions, and the rate at which schema validation fails on agent output. A rising rejection rate means a prompt or a model change has made a specialist less reliable, and it should be visible on a dashboard before it causes a missed action or a wrong one. 07 07 / Skills that transfer and skills to add Skills that transfer with little change: Normalization to a common schema and data quality checks at ingestion. Queue design, partitioning and ordering. Enrichment as an asynchronous lookup. Least-privilege service identities for automation. Approval gates and change control in response automation. Detection testing against known samples. Cost management by tier and volume. Skills to add: Writing system prompts as specifications, with the output schema defined first. Building and maintaining evaluation sets. Choosing models by task, with smaller models for mapping and classification and larger ones for investigation. Defending against prompt injection from log content. Designing an enforcer as code, separate from the agents it controls. 08 08 / A use case: Hyperscale agentic use for healthcare Hospital networks have the same structure. Patient data arrives from EHR registration, lab systems sending HL7 v2 results, admit, discharge and transfer feeds, pharmacy and e-prescribing systems, radiology and pathology, and claims. HL7 FHIR plays the role ASIM plays in Sentinel: each system is mapped once into FHIR resources such as Patient, Observation, Encounter, MedicationRequest, Condition, Procedure and DiagnosticReport, with standard codes (LOINC, RxNorm, ICD-10). FHIR R4 is the version required for patient access APIs in certified US EHR technology under the ONC Cures Act Final Rule. The consumers are clinical decision support rules, such as sepsis screening or drug-interaction checks, and agents for prior authorization, care-gap outreach and coding review. The arithmetic is the same as for detections. With FHIR in place, a new agent calls the FHIR API and needs no interface work for any of the source systems. Without it, each agent decodes each feed itself. A source change shows the cost: if a lab system starts sending glucose in mmol/L instead of mg/dL, the FHIR mapping is corrected once, while every rule and agent reading the raw value directly sees results about 18 times too low. In security that is a missed detection; in healthcare it is a patient safety issue. 09 09 / Practical architecture In Microsoft terms the design has five layers, and the order matters. Sources are onboarded and normalized first; the rule fleet reads the normalized store directly; agents reach it only through a tool layer; an agent runtime hosts the agent types and their concurrent runs; and an enforcer stands between proposed actions and anything that changes a system. Identity and observability apply to every layer. Normalized data: Microsoft Sentinel’s analytics tier and data lake with ASIM parsers. This is where the 1,000 rules run. Tool layer: the Sentinel MCP server, with custom tools built from saved KQL queries that call the ASIM functions. Agents call tools and never read raw tables. Agent runtime: Microsoft Foundry Agent Service for the fleet, which Microsoft documents as having no limit on the number of agents in a project, with rate limits applied at the model deployment. Security Copilot hosts a few agent types embedded in Defender and Entra and is billed in Security Compute Units. Actions and oversight: Logic Apps playbooks with approval steps, a protected-account watchlist and blast-radius limits, then Defender and Entra response actions. Identity and observability: an Entra Agent ID per agent group, OpenTelemetry traces to Application Insights, and agent activity written back to Sentinel as a log source. Figure 3. Security architecture on Microsoft: Sentinel, ASIM, MCP, Foundry Left to right. Six source types feed the normalized store (the lime cylinder: Sentinel analytics tier and data lake with the seven ASIM schemas). The rule fleet reads it directly, and the dashed navy line shows incidents from rules starting agent work. Agents reach the data only through the Sentinel MCP server in the middle. Inside the agent runtime, an orchestrator routes each incident to specialist groups (identity, endpoint, network, cloud and audit), each running many concurrent copies. Proposed actions pass through the enforcer before response actions run; the bracket under the runtime marks orchestrator, specialists and enforcer as the three parts a SOAR playbook used to hold. The two bands at the bottom apply to every layer; the grey dashed line is agent activity logged back to Sentinel. The healthcare version uses the same layers. The Azure Health Data Services FHIR service is the normalized store, with $convert-data turning HL7 v2 and C-CDA into FHIR resources and the MedTech service mapping device data to Observation. A FHIR MCP server using SMART Backend Services authentication is the tool layer, alongside reference servers for ICD-10 codes, the NPI Registry and CMS coverage policies. Foundry hosts the agents; Microsoft publishes a prior authorization multi-agent accelerator with four hosted agents as a Foundry template. A clinician approves any order, payer submission or record write-back. Figure 4. Healthcare architecture on Microsoft: FHIR service, MCP, Foundry Same layout as the security diagram. Clinical systems on the left feed the FHIR service, which holds seven FHIR resource types. Decision support rules read FHIR directly; agents reach it through the FHIR MCP server. The orchestrator routes work to care-gap, clinical review, medication, and prior auth and coding specialists. Proposed actions stop at clinician review, which plays the enforcer role, and approved changes are written back through the FHIR API. FHIR service audit logs record every agent read and write. 10 10 / The visual and the source The accompanying page draws 140 raw sources grouped by ASIM schema, the seven schemas in the middle, and two consumer fleets on the right: 1,000 correlation rules and 1,000 agents. With normalization selected, each source has one line to its schema and every consumer reads only the schema. With normalization removed, every consumer needs a line to every source in its schema, and the drawing becomes a dense mesh. Sliders change the number of sources and agents, and a counts table gives both designs side by side: integrations to maintain, work to add one agent, work to add one source, and consumers broken when a FortiGate source renames a field. Adding 1,000 agents to the normalized design adds no integrations; adding them without normalization adds about 20,000. A second button switches the same diagram to the healthcare example, with FHIR resources as the middle layer and decision support rules and clinical agents as the consumers. An Architecture view draws each example as Microsoft services: Sentinel with ASIM, the Sentinel MCP server and Foundry Agent Service for security; the Azure Health Data Services FHIR service, a FHIR MCP server and Foundry Agent Service for healthcare. The visual is at https://broglock.github.io/siem-to-agent-normalization/ and the source, including this post, is at https://github.com/broglock/siem-to-agent-normalization. 11 11 / Security agent use cases by data schema A second page maps 18 security agent use cases to the data each one reads. The columns are the seven normalized schemas from the visual (Authentication, Process Event, Network Session, DNS, Web Session, Audit Event and File Event), which agents reach through custom Sentinel MCP tools, and six Security Copilot plugin sources: Microsoft Entra, Defender XDR, Intune, Purview, Defender Threat Intelligence and Defender External Attack Surface Management. A solid dot marks the main source for a use case and a ring marks a context source. The bottom row counts the agents that read each source. Figure 5. Security agent use cases mapped to normalized schemas and Security Copilot plugins Rows are agent use cases grouped by specialist family: identity, endpoint, network, cloud and audit, and cross-cutting. The blue columns are the seven normalized schemas, reached through custom Sentinel MCP tools; the navy columns are Security Copilot plugin sources. A solid dot is the main source for that agent and a ring is a context source. A lime tag marks a use case Microsoft already ships as a Security Copilot agent. Five of the use cases overlap agents Microsoft already ships in Security Copilot: Conditional Access Optimization, Vulnerability Remediation, Phishing Triage, Purview DLP alert triage and Threat Intelligence Briefing. Building your own version is still useful when it needs to read non-Microsoft sources through the normalized schemas. Selecting a row on the page shows its trigger rule, the tools it needs and the actions it proposes. The matrix is at https://broglock.github.io/siem-to-agent-normalization/use-case-matrix.html. 12 / References Service limits for Microsoft SentinelMicrosoft Learn Azure Monitor service limitsMicrosoft Learn Microsoft Sentinel MCP tools overviewMicrosoft Learn Foundry Agent Service quotas and limitsMicrosoft Learn Automate prior authorization with AI agentsMicrosoft Foundry Blog Microsoft Security Copilot plugins overviewMicrosoft Learn Security Copilot agents overviewMicrosoft Learn HL7 FHIR R4HL7 ONC Cures Act Final RuleHealthIT.gov Interactive visualGitHub Pages Project repository: post and visualGitHub FIELD NOTES · SIMPLE-SECURITY.CA

November 5, 2026 · 17 min · David Broggy
Hunting across hundreds of log sources in the Sentinel data lake

Hunting across hundreds of log sources in the Sentinel data lake

Hunting across hundreds of log sources in the Sentinel data lake Microsoft Sentinel data lake makes it affordable to keep hundreds of third-party log sources for a year or more. Hunting across them is harder. Each source names the same things differently: an IP address is SourceIP in one table, src in another, and buried inside free text in a third. ASIM (the Advanced Security Information Model) is Microsoft’s answer to this in the analytics tier. It does not carry over to the lake as it is, for three reasons: ASIM parsers are stored KQL functions, and lake KQL does not run stored functions. Each parser is written for one product’s table and message format. A source without a parser gets no normalization. Parsers run at query time. Over a year of lake data, that cost is paid on every hunt. This matters more now that hunts start from an AI agent. The Sentinel data lake MCP server lets an agent write and run KQL against the lake. An agent asked “where has this IP shown up?” needs one field name to search, not three hundred. DAVID BROGGY · 2026-10-26 · DEPLOYED IN A TEST TENANT 01 01 / Normalize once, into an index My approach is to do the normalization work once, ahead of time, and store the result in the lake. Scheduled lake jobs read every source table and write two tables: HuntEntity holds one row per entity, per hour, per source and role (an IP, a user, a host, a URL, a hash), with its type, its role (source, destination, actor, target, device), a lowercase join value, a count, first and last seen times, and a few sample record keys. Rolling up by the hour keeps the table small enough to search a full year cheaply. HuntEvent holds sign-ins, network sessions and other events with ASIM field names such as SrcIpAddr, TargetUsername and EventResult, for sources mapped well enough to trust. It is rolled up by the hour too: repeated events with the same user, addresses, result and action become one row with a count. Every row in both tables names the source table and hour and keeps a few sample record keys that point back to the original records. The agent searches the index, then pivots to the raw rows when it needs the full detail. HOW TO READ IT On the left, the agent must query each table with that table's own field name, and two of the five hide the IP in free text. On the right, scheduled jobs (the line on the far right) feed every source into the index ahead of time, and the agent asks a single question of it. 02 02 / Four ways a source gets mapped No single method covers hundreds of sources, so the index uses four, in order of trust. Each source uses the best one available to it, and each index row records which one produced it. 01 ASIM logic Where Microsoft ships an ASIM parser, its KQL is expanded into a lake-safe query (no stored functions) and runs as a job. This gives the same fields ASIM would. 02 Registry rules For structured sources with no parser (CEF, JSON, clean custom tables), a short mapping in a Git registry says which column or JSON path holds which ASIM field. 03 Message templates For free text such as Unix syslog, a notebook groups messages into templates by masking the variable parts. An analyst names the slots once, for example “Failed password for <user> from <ip>”. An approved template then runs as KQL. 04 Value classifier Anything left over is scanned for values that look like IPs, emails, hashes or URLs. These rows are findable but carry no role, so they are marked as a lower tier. HOW TO READ IT Top to bottom is most trusted to least. The middle column shows the kinds of sources each method suits; the right column is the tier the index records, which the agent uses to weigh a result. The dashed band catches whatever the other three miss. The result is that every source is searchable on day one, and the mapping gets better as sources are reviewed. 03 03 / The architecture Everything runs inside the Sentinel data lake. There are no new data connectors, DCRs or ingestion changes: the index is built from data already there. The index builders are of two kinds. KQL jobs run every approved mapping: ASIM logic, registry rules and approved message templates. A lake notebook handles the sources nobody has reviewed yet. The notebook is Python for Spark (PySpark), written as a Jupyter notebook in Visual Studio Code with the Microsoft Sentinel extension, that reads lake tables and writes its results back to the lake. KQL jobs and notebooks can both run on a schedule, so once a source is approved nobody runs anything by hand. Three scheduled notebooks do the work that would otherwise be manual: Notebook 01 runs daily. It reads only new tables, changed schemas and the lines no template matched, profiles each field (how often it is filled and what its values look like) and proposes ASIM names, roles and message templates for an analyst to review. Sources with approved, high-confidence mappings are skipped. Notebook 02 runs hourly on sources nobody has reviewed yet. It indexes them through the value classifier into the same two tables the KQL jobs write, so they are searchable from day one. Once a source is approved, its mapping moves into a KQL job and the notebook stops reading it. Notebook 03 runs daily. It builds the coverage report from counts the index jobs record as they run (rows read, rows with an entity, rows matching a template) and flags any source whose extraction rate drops, which usually means the vendor changed its log format. It reads no source data. A mapping is decided once. After approval, the only recurring work for a source is applying its mapping to each new hour of events in a KQL job; nothing already indexed is read again. Analysts approve mappings and check results. Finding new fields, building the index and catching format changes all run on a schedule. HOW TO READ IT The top row runs left to right. Source tables of every shape feed the index builders. Approved groups run in one KQL job per source table; only groups still under review run in the lake notebook. Both write the two index tables that the agent and analysts query: HuntEntity holds hourly entity counts plus each job's row counts, and HuntEvent holds hourly counts of Tier 1 events with ASIM field names. Every index row carries sample record keys, so a hit is one pivot from the raw events. The bottom row is the control loop: notebook 01 reads only new or changed tables and drifting groups and proposes mappings, analysts approve them in the registry, the registry generates the builders, and notebook 03 measures coverage from the job counts. The note on the right is the drift rule that sends an approved group back to notebook 01. 04 04 / One question, five sources The example below uses sample data from five sources with very different shapes: Windows security events, FortiGate firewall logs over CEF, Linux sshd syslog, a JSON audit table from an in-house app, and a VPN appliance that writes raw key=value text. The agent asks one question: where has 203.0.113.45 appeared? Source How it was mapped Role Result Windows SecurityEvent ASIM logic Source Failure FortiGate (CEF) ASIM logic Source Failure (deny) Linux sshd (Syslog) Message templates Source Failure, 2 events App audit (JSON) Registry rules Source Failure VPN appliance (raw text) Classifier, then templates after review Source Failure One query over the index found the address in all five, each time labelled as the source, with a failed or denied result. Asked for the same user’s sign-ins, the index returns four failures from that address within about a minute, then successes from an internal address 16 minutes later. Without the index, the agent would need five different queries and would have to know each table’s field names. 05 05 / Adding a new source Once the index is running, a new log source needs a mapping review, not a new pipeline. The new table is searchable through the classifier from its first indexing run, before anyone has looked at it. HOW TO READ IT The top row runs left to right, then the flow turns down at the registry and runs right to left. Review starts from the parser if Microsoft ships one, otherwise from the fields and templates notebook 01 proposes. After deployment, four checks run: coverage numbers in the coverage table, a hand check of sample rows, a known test event found through the agent, and a pivot back to the raw row. Any failure sends the source back to review. 06 06 / Walkthrough demo and video The daily workflow can be seen in two places. Both use synthetic data only: documentation IP ranges, private 10.x addresses and contoso.com names. Walkthrough demo: an 18-step guided tour that runs in the browser with no server. Notebook 01 checks new and changed sources and proposes fields for a new badge reader table, an analyst reviews them, an admin approves the change, the generated lake job is deployed and passes four validation checks, a vendor format change is fixed, and a hunt for 203.0.113.45 runs across ten source groups. Demo video: about three minutes, recorded from the Lake Hunt app in demo mode. It covers the architecture, onboarding the badge reader, approval, validation and the same hunt. 07 07 / Cost at 1 TB a day At 1 TB a day of lake ingestion, the index adds about $440 to $490 a month on top of the lake's own cost for the raw data. That lake cost is about $6,080 a month at this volume: $4,500 to ingest it ($0.05 per GB ingestion plus $0.10 per GB data processing) and $1,580 to store it for a year. The index figure covers the hourly KQL jobs, the three notebooks and one year of storage for both index tables. Most of it is the KQL jobs, which read each new hour of data once. The notebooks cost under $150 a month because they only touch new, changed and unreviewed sources. The figures use Microsoft's published Sentinel data lake prices in US dollars for East US. The full calculation and its assumptions are in the project's GitHub repository, along with a walkthrough demo of the daily workflow. 08 08 / Limits The index covers common hunting fields: IPs, users, hosts, URLs, hashes, results and event types. Fields that only matter to one product stay in the raw table, one pivot away. Index freshness follows the job schedule, hourly in this design. Real-time detection stays in the analytics tier. Lake KQL jobs have tenant limits on count and concurrency, so sources are batched into shared jobs rather than one job per source. The design has been deployed and run in a test tenant with the Sentinel data lake onboarded. Behaviour at production volume still needs confirming, including notebook run times and how the job limits apply at 1 TB a day. The point of the design is that the cost of normalization is paid once per source, not once per hunt, and that an AI agent gets one consistent set of field names across every log source in the lake. 09 / References Normalization and the Advanced Security Information Model (ASIM)Microsoft Learn Jupyter notebooks and the Microsoft Sentinel data lakeMicrosoft Learn Create and manage Jupyter notebook jobsMicrosoft Learn Plan costs and understand Microsoft Sentinel pricing and billingMicrosoft Learn Project repository: design, solution kit, cost model and walkthrough demoGitHub Lake Hunt walkthrough demoGitHub Pages Lake Hunt demo videoGitHub FIELD NOTES · TEST-TENANT DATA ONLY · SIMPLE-SECURITY.CA

October 27, 2026 · 10 min · David Broggy

Your Agents Are Invisible (Part 1): Onboarding Microsoft-Native Agents and SaaS AI Platforms

Your Agents Are Invisible (Part 1): Onboarding Microsoft-Native Agents and SaaS AI Platforms Agent usage is exploding. Tools for monitoring agents haven't kept up — until now. Agents in Microsoft 365 aren't monitored by default. Here are some tips for using Microsoft Agent 365 and related tools to monitor agents. Solutions discussed in this post: ▸Microsoft Agent 365 provides agent inventory, controls, and monitoring through the M365 admin center. ▸Entra ID features agent identity restrictions via Conditional Access. ▸Defender XDR can track agents through threat detections. ▸Purview finishes off the pack with information protection and compliance. This is part 1 of a two-part series. Part 1 covers the high-level building blocks, onboarding Microsoft-native agents and SaaS AI platforms, and validating the result. Part 2 is the deeper dive: connecting third-party and custom agents to Agent 365 with the SDK. Scope: this post covers onboarding and visibility — getting agents registered, reporting, and huntable. DAVID BROGGY · 2026-06-11 · LAB-VERIFIED AGAINST THE LIVE AGENT 365 BACKEND 01 01 / Getting Started: Agent Use Cases Understand how your organization is using agents and where they will be used. This determines what methods you need for admin controls and monitoring. Use case Where the agent runs Onboarding method Monitoring surfaces Prebuilt Microsoft agents (M365 Copilot agents, Researcher, Analyst) M365 cloud Out of the box — license + connectors Admin center, Defender, Purview Low-code agents built in Copilot Studio M365 cloud / Power Platform Out of the box — license + connectors Admin center, Defender, Purview Custom agents (Azure AI Foundry or your own code) Azure Agent 365 SDK — see Part 2 Admin center, Defender, Purview SaaS AI platforms (Claude Enterprise, ChatGPT Enterprise) Vendor cloud (SaaS) Native connector / marketplace plugin — varies by vendor Admin center, Defender, Purview Developer / CLI agents on workstations Local machines Agent 365 SDK — see Part 2 Admin center, Defender, Purview Standalone AI apps (Claude / ChatGPT Free, Plus, Team) Individual browser (shadow IT) Not onboardable — endpoint telemetry via Defender for Endpoint Defender (network logs), endpoint DLP The first two rows are covered in Onboarding Microsoft-Native Agents below; SaaS platforms and shadow IT have their own section; the SDK rows are covered in Part 2. 02 02 / The Building Blocks Four planes work together. Each has one job, one configuration location, and one place it's used day-to-day: 01 Identity plane — Entra ID Every managed agent is a directory object (an agent identity) with owners, sponsors, permissions, and sign-in logs. This is where governance lives: Conditional Access, risk scoring, least-privilege review. 02 Control plane — M365 admin center The tenant-wide agent registry (inventory, sessions, active users), agent access settings, and the instance approval queue. 03 Telemetry plane — Agent 365 + Defender Agent activity flows through the Agent 365 observability service into Defender's CloudAppEvents hunting table (via the Security-for-AI connectors) and into incidents and alerts. 04 Compliance plane — Purview Audit records, DSPM for AI posture, and DLP over agent interactions. The four planes — identity (Entra), control (M365 admin center), telemetry (Agent 365 + Defender), compliance (Purview). 03 03 / Onboarding Microsoft-Native Agents – Common Steps Copilot Studio and other Microsoft-built agents register their identities and send activity telemetry in the required format automatically. Here are some common points to consider when configuring agent monitoring. 01 License assignment Agent 365 is included in M365 E7 and available as a standalone add-on; assign it in the M365 admin center (Billing > Licenses). Ingestion drops the entire request — still returning 200 — unless at least one user in the tenant has the license assigned. A purchased but unassigned SKU is functionally identical to no license. 02 Defender Security-for-AI connectors Both live in the Defender portal under Settings > Security for AI. The "Microsoft 365" connector feeds activity ingestion into CloudAppEvents, the advanced-hunting table where agent activity lands; with it disconnected, the table is empty. The "Agent 365" connector feeds runtime threat detection — incidents and alerts. Both should be connected. In the lab, telemetry was accepted for days while the disconnected M365 connector kept CloudAppEvents empty. Defender portal > Settings > Security for AI — connect both the Agent 365 and Microsoft 365 connectors. Admin Center: Register your agents With these in place, native agents appear in the M365 admin center Agents blade and register your desired agents. M365 admin center > Agents > All agents — the tenant-wide agent registry. Admin Center: allow users access to agents M365 admin center > Copilot > Settings — allow user access to agents. Choose carefully! 04 04 / Entra ID: Agent Identity and Governance Each managed agent is a first-class identity in Entra — not a user, not an ordinary service principal, but an agent identity with its own governance surface: 01 Inventory the identities Entra ID > Agents > Agent identities lists every agent identity with status, owners, sponsors, and creation date. Reconcile this list against the admin center registry; agents with no owner or sponsor are accountable to no one. 02 Audit the blueprints A blueprint is the parent definition agents are created from. Blueprints configured with broad scopes hand every child agent the same permissions — review blueprints for enumerated, least-privilege scopes before reviewing individual agents. 03 Apply Conditional Access Conditional Access for agent identities can scope to all agent identities with a block control — the high-value pattern blocks on high agent risk, turning an ID Protection risky-agents signal into automatic containment (ID Protection for agents requires Entra ID P2). Build the policy in report-only mode first. Entra admin center > Entra ID > Agents > Agent identities — the agent identity inventory. Entra > Conditional Access > Create new policy from templates — built-in templates for blocking high-risk agent identities, agent users, and assistive agent flows. 05 05 / Purview: Activate Audit for Agent Visibility Purview tracks agent interactions through its Data Security Posture Management (DSPM) for AI setup tasks — activating Microsoft Purview Audit is the required first step. Purview > DSPM > Tasks and actions > Setup tasks — the agent-visibility setup checklist. After the setup tasks: DSPM > AI observability shows agent interaction posture, and DSPM > Discover > Apps and agents lists the AI apps and agents Purview has discovered. 06 06 / Connecting SaaS AI Platforms and Shadow IT Not every third-party AI tool needs SDK work. Enterprise SaaS editions ship varying levels of native integration, and Defender for Endpoint adds a baseline telemetry layer for everything else. AI platform & edition Deployment model Agent 365 (control plane) Defender (CloudAppEvents) Purview (DLP & audit) Claude Enterprise SaaS website / portal Native (via M365 connector / marketplace plugin) Full activity — actions and full user context via the API connector Full scanning — proactive, at rest, and in transit ChatGPT Enterprise SaaS website / portal Partial — visible as a "data source" only Full audit via the Purview-to-Sentinel bridge, plus endpoint telemetry via Defender for Endpoint Full scanning, configured via the Purview Data Map Custom OpenAI agents Azure OpenAI / SDK Full — deep model control Full security telemetry — native AiInteractionEvents table Full logs via SDK hook routing Claude / ChatGPT standalone (Free, Plus, Team) Individual browser (shadow IT) None — unmanaged shadow applications Endpoint network logs only, via Defender for Endpoint network protection Endpoint DLP only (Purview browser extension limits) How logs reach CloudAppEvents CloudAppEvents is fed by Microsoft Defender for Cloud Apps (MDCA). Three independent paths land rows in it: ▸Agent 365 telemetry — agents (native or SDK-onboarded) report to the Agent 365 observability service, which forwards into the table through the Defender Security-for-AI "Microsoft 365" connector (its setup includes the MDCA ingestion). This produces the agent ActionTypes (InvokeAgent, InferenceCall, ExecuteTool*). The SDK is only about getting telemetry into Agent 365 — the Agent-365-to-Defender leg is the same for native and SDK agents. ▸App connectors — MDCA API connectors for SaaS platforms (e.g. the Claude Enterprise connector) deliver full activity with user context, independent of Agent 365. ▸Defender for Endpoint — the MDE-to-MDCA integration forwards endpoint network logs, covering any generative AI app a user touches from a monitored device — including standalone apps that can't be onboarded at all. Endpoint telemetry from Defender for Endpoint When a user on a monitored machine accesses standalone ChatGPT or Claude in a browser, MDE sends the network signals to MDCA. Hunting in CloudAppEvents then shows: ▸the specific user and machine that accessed the tool, ▸the timestamps, URLs, and IP addresses visited, ▸the volume of data uploaded and downloaded during the session. KQL — Surface Endpoint-Driven GenAI Traffic (Defender / CloudAppEvents) CloudAppEvents | where Timestamp > ago(7d) | where ActionType == "Access" | where Application has_any ("ChatGPT", "Claude", "OpenAI") | project Timestamp, Application, AccountDisplayName, IPAddress | sort by Timestamp desc The trade-off: endpoint telemetry never contains the prompt or response text. It shows that a user used the tool and how much data moved — not what was said. Prompt-level visibility requires the Purview Data Map / Sentinel bridge (OpenAI) or the native API connector (Claude Enterprise). 07 07 / Operational Use: Verifying Agents in Defender Agent 365 provides detailed logging to the Defender portal. Use Defender to track all agent activity and create custom threat detections for your agents. Here's an example KQL query for observing activity from a specific agent ID: KQL — Observe Agent Activity (Defender / CloudAppEvents) CloudAppEvents | where Timestamp > ago(1d) | where ActionType in ("InvokeAgent", "InferenceCall", "ExecuteToolBySDK", "ExecuteToolByGateway", "ExecuteToolByMCPServer") | extend d = parse_json(RawEventData) | where tostring(d.TargetAgentId) == "<your-agent-id>" or tostring(d.AgentId) == "<your-agent-id>" | project Timestamp, ActionType, UserId = tostring(d.UserId), AgentId = tostring(d.AgentId), TargetAgentId = tostring(d.TargetAgentId), ConversationId = tostring(d.ConversationId) Some fields of interest: ▸AgentId holds the caller — the calling agent's ID for agent-to-agent calls (agent IDs are listed in the admin center Agents blade), or an all-zeros placeholder when a human starts the run. ▸The invoked agent is in TargetAgentId. ▸A filter on AgentId alone misses every human-triggered InvokeAgent event — filter on both fields. The ActionType values are the Defender-side names of the telemetry span types (the span model is covered in Part 2). What "verified" looks like: rows in CloudAppEvents attributed to the agent and the invoking user, plus session and active-user counts in the admin center Agents blade after the ingestion lag (minutes to hours). HTTP-level success from any sender is not proof — the hunting rows are. Defender > Advanced hunting — agent activity rows; the highlighted human-initiated run shows AgentId as all-zeros with the agent in TargetAgentId. 08 08 / Key Takeaways Summary Start with the use-case map/table Where an agent runs determines its onboarding path: Microsoft-native agents are out of the box; everything else goes through the SDK (Part 2). Agents are not monitored until onboarding is complete Microsoft-native agents become visible only after the tenant is configured (license assignment + Defender connectors). Microsoft-native agents need three things The Agent 365 license assigned to at least one user, both Defender Security-for-AI connectors connected (the M365 connector for activity and hunting, the Agent 365 connector for incidents), and at least one invocation before any activity appears. Govern the identity, not just the telemetry Agent identities live in Entra with owners, sponsors, blueprints, and Conditional Access — ownerless agents and over-scoped blueprints are findings. Enterprise SaaS editions connect; standalone apps don't Claude Enterprise has a native connector, ChatGPT Enterprise connects partially via Purview, and standalone Claude/ChatGPT can't be onboarded — Defender for Endpoint still records who accessed them, from where, and how much data moved, but never the prompt text. Verify in Defender advanced hunting, not dashboards Dashboards lag, and ingestion returns HTTP 200 even when everything is dropped — the CloudAppEvents query is the proof that an agent is actually monitored. Next: Part 2 — connecting third-party and custom agents to Agent 365 with the SDK: the identity model, tenant enablement, telemetry requirements, and validation. / REFERENCES References Microsoft Agent 365 overviewMicrosoft Learn Secure AI agents at scale using Microsoft Agent 365Microsoft Learn Manage agent identities in your organizationMicrosoft Learn Conditional Access for Agent IDMicrosoft Learn Identity Protection for agentsMicrosoft Learn Microsoft Defender for Cloud Apps overviewMicrosoft Learn Microsoft Defender for Endpoint integration with Defender for Cloud AppsMicrosoft Learn Data Security Posture Management for AIMicrosoft Learn PART 1 OF 2 · LAB-VERIFIED FIELD NOTES · IDENTIFIERS ANONYMIZED · SIMPLE-SECURITY.CA

July 10, 2026 · 10 min · David Broggy

Your Agents Are Invisible (Part 2): Connecting Third-Party and Custom Agents with the Agent 365 SDK

Your Agents Are Invisible (Part 2): Connecting Third-Party and Custom Agents with the Agent 365 SDK Part 1 covered onboarding Microsoft-native agents and SaaS AI platforms — the paths that need configuration, not code. This part covers everything else: connecting agents that have no native integration — third-party frameworks and agents you build or run yourself. The decision rule from Part 1: if an agent is missing from the M365 admin center inventory after the native-onboarding settings are in place, it needs the Microsoft Agent 365 SDK. That includes custom agents on Azure, developer and CLI agents on workstations, and any vendor framework without a native connector. This post is lessons learned from lab work — a custom Claude-powered agent built, registered, and monitored end to end against the live Agent 365 backend — not a comprehensive guide. See the official Agent 365 SDK documentation for the complete setup. What this part covers: the SDK identity model (the Entra objects you'll be asked to consent to), one-time tenant enablement, registering an agent, two worked use cases (a Teams AI teammate powered by Claude, and a Claude usage collector feeding Sentinel), the telemetry format Agent 365 enforces, validating the result, and a security review checklist. DAVID BROGGY · 2026-06-11 · PART 2 OF 2 · LAB-VERIFIED AGAINST THE LIVE AGENT 365 BACKEND 01 01 / The SDK Identity Model Before running any tooling, know what objects it creates — every one of them is an Entra object a security or identity administrator will govern later: Object What it is Why it matters to the admin "Agent 365 CLI" app A well-known public client application the Agent 365 CLI authenticates through One per tenant; created and admin-consented during enablement. Its presence = the tenant is enabled. Blueprint An application object — the parent definition an agent is created from Permissions granted here are inherited by every agent created from it. Least-privilege review starts at the blueprint. Agent identity A service principal of type ServiceIdentity — the agent's directory identity This is what appears in Entra ID > Agents, holds the observability permission, and is the target for Conditional Access. Registration The record that lists the agent in the M365 admin center inventory Registration alone produces no activity data — it is inventory presence only. Instance (optional) A running copy of an AI-teammate agent that users chat with Created only after admin approval; instance invocations populate the sessions and active-user counts. 📷 SCREENSHOT TO ADD: a simple object-relationship diagram — Agent 365 CLI app (tenant-level) → blueprint → agent identity → registration → instance — with one line on which portal each appears in. 📷 SCREENSHOT TO ADD: Entra admin center showing the objects after a registration run (the blueprint under App registrations, and the agent identity under Entra ID > Agents). 02 02 / One-Time Tenant Enablement Before the SDK can register with the M365 admin center, the Azure tenant must be enabled for Agent 365. This is a separate prerequisite from licensing — a licensed tenant is not automatically an enabled one — and it is done once by the admin: ▸The Agent 365 CLI authenticates through the "Agent 365 CLI" public client app, which must exist in the tenant with admin consent for its Graph scopes (agent blueprint, identity, and registration permissions). a365 setup requirements creates and consents it. ▸Registration creates standard Entra objects — a blueprint application, an agent identity (a service principal of type ServiceIdentity), and the registration record. The agent's observability permission is an app role on the Agent 365 observability resource and needs admin consent like any other application permission. 📷 SCREENSHOT TO ADD: a365 setup requirements output showing the requirements checks passing (or the Entra consent prompt for the Agent 365 CLI app). 03 03 / Registering an Agent with the SDK The Agent 365 SDK provides two separate capabilities, plus an optional third: 01 Register Creates the agent's directory objects in Entra: a blueprint (the parent definition), an agent identity, and a registration that lists the agent in the M365 admin center inventory. Registration alone produces no activity data. 02 Observability SDK scopes wrap the agent's work and emit the gen_ai span tree: an invoke_agent root per run, chat spans with model name and token counts, execute_tool spans per tool action. 03 AI teammate (optional) Publishing the agent as a teammate lists it in the Teams agent store, where users can request an instance (their own running copy of the agent to chat with). Two tenant conditions apply: the tenant must be enrolled in Microsoft's Frontier early-access program (M365 admin center > Copilot > Settings), and each instance request needs admin approval (M365 admin center > Agents > Requested). Approved-instance invocations are what populate the sessions and active-user columns in the admin center. The SDK's observability package is vendor-neutral. Microsoft also ships vendor-specific tooling extensions — including one for Anthropic's Claude (npm: @microsoft/agents-a365-tooling-extensions-claude; Claude Enterprise only, standalone Claude accounts are not supported) — that handle the agent's tool/MCP integration; telemetry itself comes from the shared observability package. Notes from the lab build: ▸The agent ran on a local machine behind a dev tunnel, with no Azure compute. Registration and identity live in Entra; the runtime only needs a reachable messaging endpoint. ▸The tenant settings from Part 1 apply unchanged: an SDK-instrumented agent in an unlicensed tenant, or behind a disconnected Security-for-AI connector, shows nothing. For new agent code, the Microsoft OpenTelemetry Distro emits the convention by default, and the get-started guide covers the CLI-driven setup. 📷 SCREENSHOT TO ADD: the registered custom agent appearing in M365 admin center > Agents > All agents after a365 setup completes. 📷 SCREENSHOT TO ADD: the agent listed in the Teams agent store ("Agents for your team") after AI-teammate publishing, and/or the Agents > Requested approval queue. 04 04 / Use Case 1: A Teams AI Teammate Powered by Claude The SDK does not connect a Claude subscription to Agent 365 by itself. What gets built is one concrete artifact: a small web service — in the lab, a Node.js app of a few hundred lines — that exposes a messaging endpoint. That service is the agent as far as the tenant is concerned: the registration points at its endpoint, Teams delivers user messages to it, and its replies and telemetry come back from it. Each incoming message follows the same loop: receive the message → authenticate as the agent → call Claude → reply to the user → emit the spans. Use case 1 — a Teams user chats with the agent instance; the built web service authenticates as the registered agent identity, calls Claude, replies, and emits gen_ai spans to Agent 365. The building blocks inside that service: 01 The wrapper app holds the agent identity Registered via the CLI, it authenticates as the agent and receives invocations at its messaging endpoint. 02 Claude is the model inside Per invocation, the app calls Claude and returns the response — the model name and token counts in the telemetry come from Claude itself. 03 SDK scopes produce the telemetry The app wraps each Claude call in observability scopes: an invoke_agent root per run, with a chat span carrying the actual Claude model and token usage. 04 The Claude tooling extension handles tools, not telemetry @microsoft/agents-a365-tooling-extensions-claude registers the agent's tools/MCP servers with Claude (Claude Enterprise only). The service can run anywhere its endpoint is reachable; in the lab it ran on a local machine behind a dev tunnel. This is the pattern the lab verified end to end. 05 05 / Use Case 2: Monitoring Claude Usage on Windows Endpoints The same SDK pattern supports a different job: a collector agent that watches what users do in the Claude application on their Windows devices and feeds that activity into the Microsoft security stack. Here the SDK-built service has no chat surface at all — its input is the local Claude usage/audit logs, and it emits two outputs: 01 Raw events to Microsoft Sentinel The collector forwards parsed log events to a Sentinel custom table via the Logs Ingestion API, where analytics rules drive monitoring and alerting. (Agent 365 ingests traces only — raw log lines belong in Sentinel, not in the Agent 365 pipeline.) 02 User-attributed gen_ai spans to Agent 365 The collector represents observed Claude sessions as spans under its registered agent identity, attributed to the user via delegated identity — making the activity huntable in Defender with full user context. This attribution pattern is lab-verified. Use case 2 — the collector reads local Claude logs and emits raw events to Sentinel (alerting) and user-attributed gen_ai spans to Agent 365 (inventory, hunting, audit). How each service uses the telemetry: Service What it receives How it's used Microsoft Sentinel Raw Claude usage events (custom table), plus CloudAppEvents via the Defender XDR connector Analytics rules, alerting, incident correlation M365 admin center The collector's registration and activity Inventory presence, session counts Defender XDR The user-attributed spans as CloudAppEvents rows Advanced hunting, custom detections on agent ActionTypes Entra ID The collector's agent identity Ownership, Conditional Access, risk scoring — the collector is governed like any agent Purview The collector's interactions via the audit pipeline DSPM discovery, audit search Caveats: what the local Claude application logs (and where) depends on the edition and version deployed — confirm log availability on a reference device before building. And the general rule from Part 1 applies: validate each leg at its destination (a Sentinel query for the custom table, the CloudAppEvents query for the spans), not from send-side success. 📷 SCREENSHOT TO ADD: Sentinel showing the custom table populated with Claude usage events (Logs > custom table query), and/or an analytics rule alerting on a seeded test event. 06 06 / Agent 365 SDK Telemetry Requirements The Format Rule Agent 365 ingests OpenTelemetry traces only — no metrics, no logs. Every span must follow Microsoft's gen_ai semantic convention. Spans in any other format are dropped individually, and the request still returns HTTP 200. A trace is a tree of timed operations called spans. The gen_ai convention defines four span operation types: invoke_agent, chat, execute_tool, and output_messages. The first three cover most agent activity, and each maps to a Defender CloudAppEvents ActionType: Span operation Meaning CloudAppEvents ActionType invoke_agent One agent run. The required root span — a run without it does not appear in the admin center. InvokeAgent chat One LLM call, carrying the model name and input/output token counts. InferenceCall execute_tool One tool action (a file read, a command, an API call), carrying the tool name and arguments. ExecuteToolBySDK / ByGateway / ByMCPServer Ingestion enforces three rules: 01 Convention attributes on every span Each span must carry a valid operation name, the agent identity, and the tenant ID. Spans that don't are dropped individually, with no error. 02 A root invoke_agent span per run Required for the run to surface in the admin center. Child spans without a root are only reachable through Defender advanced hunting. 03 Agent ID match in three places The ingestion URL, the auth token, and every span must carry the same agent ID. A mismatch returns 403. A note on the obvious shortcut: some tools (Claude Code among them) can emit OpenTelemetry natively, and pointing that output directly at Agent 365 appears to work — the request returns HTTP 200. Every span is rejected individually, because the names and attributes follow the vendor's convention, not gen_ai. The direct OpenTelemetry integration path is for code you instrument yourself to emit the convention; it does not accept other formats. The full wire specification is in the observability concepts documentation; read it before writing any integration. 07 07 / Operational Use: Validating the Custom Agent Validate in this order — each step depends on the one before it: 01 Inventory The agent appears in M365 admin center > Agents > All agents (the Register capability worked). 02 Telemetry accepted Spans are not rejected — then confirmed at the destination, never assumed from the HTTP response. 03 Hunting rows CloudAppEvents shows the agent's activity, attributed to both the agent and the invoking user (query below). 04 Sessions and users If published as an AI teammate, the instance approval flow works (Agents > Requested) and instance chats populate the sessions/active-user columns after the ingestion lag (minutes to hours). KQL — Validate Custom Agent Activity (Defender / CloudAppEvents) CloudAppEvents | where Timestamp > ago(1d) | where ActionType in ("InvokeAgent", "InferenceCall", "ExecuteToolBySDK", "ExecuteToolByGateway", "ExecuteToolByMCPServer") | extend d = parse_json(RawEventData) | where tostring(d.TargetAgentId) == "<your-agent-id>" or tostring(d.AgentId) == "<your-agent-id>" | project Timestamp, ActionType, UserId = tostring(d.UserId), AgentId = tostring(d.AgentId), TargetAgentId = tostring(d.TargetAgentId), ConversationId = tostring(d.ConversationId) Remember the field semantics from Part 1: AgentId is the caller (all-zeros for human-initiated runs); the invoked agent is in TargetAgentId; filter on both. If the hunting query returns zero rows a day after setup, work backward: was the agent invoked; is the license assigned; is the Security-for-AI "Microsoft 365" connector connected; and is the telemetry actually in the gen_ai format. 📷 SCREENSHOT TO ADD: Defender > Advanced hunting showing the custom agent's rows — InvokeAgent and InferenceCall ActionTypes with the user attribution visible. 08 08 / Security Review Checklist for SDK Agents Before an SDK-onboarded agent goes into production use, review it the way any new workload identity would be reviewed: ▸☐ The agent identity has a named owner and sponsor (Entra ID > Agents). ▸☐ The blueprint grants enumerated, least-privilege scopes — permissions granted at the blueprint are inherited by every agent created from it. ▸☐ The observability app role consent is reviewed and recorded like any other application permission grant. ▸☐ Conditional Access covers agent identities (Part 1, Entra section) — including this one. ▸☐ Instance requests route through the admin approval queue, with an assigned approver. ▸☐ The agent's tool access is restricted to what its job requires — execute_tool telemetry only shows the tools the agent has, and tool access is also its attack surface. 09 09 / Key Takeaways Summary Know the identity model before you run the tooling The SDK creates real Entra objects — blueprint, agent identity, registration — and each one is something the identity team governs afterward. Tenant enablement is one-time and separate from licensing The "Agent 365 CLI" app with admin consent is the marker of an enabled tenant. Registration and observability are separate capabilities Inventory presence produces no activity data; both are required for monitoring. The telemetry format is strict Traces only, gen_ai convention, root invoke_agent span, agent ID matching in URL, token, and span — anything else is silently dropped with HTTP 200. Validate in order Inventory → telemetry accepted → hunting rows → sessions. The CloudAppEvents query is the proof; dashboards lag. One SDK, multiple use cases A Teams teammate and an endpoint log collector follow the same identity + telemetry pattern — only the input changes. Raw logs go to Sentinel; spans go to Agent 365. Review SDK agents like workload identities Owner, sponsor, least-privilege blueprint, consent records, Conditional Access coverage, and tool restriction. Previous: Part 1 — the building blocks, onboarding Microsoft-native agents and SaaS AI platforms, and verifying agents in Defender. / REFERENCES References Agent 365 SDKMicrosoft Learn Agent 365 CLIMicrosoft Learn Get started with Agent 365 developmentMicrosoft Learn Agent 365 observability conceptsMicrosoft Learn Microsoft OpenTelemetry DistroMicrosoft Learn Direct OpenTelemetry integrationMicrosoft Learn Microsoft Agent 365 overviewMicrosoft Learn Agent 365 Tooling SDK for Claude (npm)npm Logs Ingestion API in Azure MonitorMicrosoft Learn Create custom analytics rules in Microsoft SentinelMicrosoft Learn Connect Microsoft Defender XDR data to Microsoft SentinelMicrosoft Learn PART 2 OF 2 · LAB-VERIFIED FIELD NOTES · IDENTIFIERS ANONYMIZED · SIMPLE-SECURITY.CA

July 10, 2026 · 13 min · David Broggy

Preventing AiTM Attacks and Stopping Token Theft with Microsoft E5

TLDR: skip to the summary at the bottom for quick wins with AiTM. Adversary-in-the-Middle (AiTM) phishing targets the authenticated session token that exists after a user has already completed multi-factor authentication. Once captured, that token gives an attacker full access to M365 services — email, SharePoint, Teams, OneDrive — without ever knowing the user's password, and without triggering another MFA prompt. The March 2026 EvilTokens / Railway.com campaign, documented by Huntress across more than 340 organisations, introduced a variant that bypasses even network-based session controls: rather than routing a victim through a reverse proxy, it abuses the OAuth device code flow — a legitimate Microsoft authentication mechanism — to harvest tokens directly, then uses those tokens to register a device in Entra ID and obtain a Primary Refresh Token (PRT). 01 01 / The Threat Landscape The Core Problem Multi-factor authentication stops password replay. It does not stop token theft. Adversary-in-the-Middle attacks intercept the authenticated session token after MFA succeeds — then replay it from the attacker's infrastructure. The user sees nothing unusual. No failed MFA prompt. No alert. A stolen access token gives full M365 access for hours; a stolen refresh token survives a password reset for days. Every token theft attack follows the same four-phase progression. Understanding each phase is the starting point for mapping the right controls. 01 Lure & Redirect Targeted phishing email delivers a link that routes the victim through an attacker-controlled proxy or device code flow. Highly convincing — Microsoft-branded pages, valid TLS certificates. 02 Token Interception The proxy relays credentials and MFA to Microsoft in real-time, receives the authenticated session cookie, and forwards a clean login experience to the victim. MFA was completed — by the proxy. 03 Persistence & Pivot Attacker replays the access token immediately. Uses the refresh token to register a device, obtain a Primary Refresh Token (PRT), and achieve persistent silent access — surviving password resets. 04 Impact Business email compromise (inbox rules, forwarding), data exfiltration, lateral movement to on-premises systems via hybrid join, financial fraud. Average dwell time before detection: 3–7 days. LURE Phishing email + proxy redirect → INTERCEPT Proxy relays MFA to Microsoft → TOKEN HARVEST Session cookie + refresh token stolen → PERSISTENCE Device reg + PRT survives pwd reset → IMPACT BEC / Exfil / Lateral move 02 02 / Attacker Arsenal These are the active frameworks and phishing-as-a-service platforms observed in the wild. Knowing what attackers are using — and how each tool works — determines which controls are non-negotiable versus layered defences. Evilginx2 / AiTM Proxy Open Source Open-source reverse proxy with automatic session cookie extraction. Widely documented; the reference implementation attackers adapt from. Targets any web-based SSO flow. EvilProxy / PhaaS Phishing-as-a-Service Subscription-based phishing-as-a-service. Targets Apple, Google, Microsoft, and 50+ providers. Operator dashboard, ready-made lure pages. Low technical barrier for attackers. EvilTokens / Railway.com / Device Code March 2026 Campaign March 2026 Huntress-documented campaign. Uses OAuth device code phishing instead of AiTM proxy — bypasses GSA network checks entirely. Chains into device registration + PRT for persistent access. Storm-1167 / PhaaS Microsoft-Tracked Actor Microsoft-tracked threat actor operating a multi-stage indirect proxy AiTM service. Targets financial services and professional services sectors. Known to automate BEC follow-on within minutes of token capture. Modlishka / AiTM Proxy Open Source Polish-origin open-source AiTM tool. Single-binary, no external dependencies. Often deployed on compromised servers or cloud VMs. Targets standard browser auth flows. Caffeine / PhaaS Phishing-as-a-Service PhaaS platform — notable for open self-registration (no referral required). Focuses on Microsoft 365 targets. Provides anti-bot and anti-analysis evasion, geo-fencing, and victim tracking dashboards. 03 03 / The Modern Attack Chain Why This Matters Now Classic AiTM proxy attacks are increasingly blocked by Global Secure Access Strict Enforcement Mode — which validates the client IP against a Microsoft-managed Entra network presence. Attackers adapted: the EvilTokens / Railway.com campaign (March 2026) uses the OAuth device authorization flow instead of a reverse proxy. The user enters a code on a legitimate Microsoft page — no proxy involved. GSA network checks never fire. The stolen refresh token is then used to register a device under the attacker's control, obtain a Primary Refresh Token (PRT), and achieve silent, persistent access to all M365 services — even after the user changes their password. Attack Chain — Device Code Phishing & PRT Pivot The kill chain below shows how an attacker converts a single phishing email into persistent, password-reset-proof access to all M365 services — without ever touching a reverse proxy. 1. PHISHING EMAIL Attacker sends device code link → 2. DEVICE CODE User enters code at microsoft.com ✓ → 3. TOKEN ISSUED Attacker receives refresh token → 4. DEVICE REGISTER Rogue device joins Entra ID → 5. PERSISTENT PRT = silent SSO to all M365 services KEY DIFFERENCE VS CLASSIC AiTM — No reverse proxy used. User authenticates on legitimate Microsoft page. GSA network enforcement does not fire. CA device code block is the primary control. Why the PRT Is the Real Target A Primary Refresh Token (PRT) is a long-lived credential that provides silent single-sign-on to every Microsoft 365 service. It is normally bound to a managed device. When an attacker registers a device using a stolen refresh token and obtains a PRT, they inherit that persistent SSO capability — with no MFA prompt, on their own hardware. A PRT survives a password reset because it is tied to the device registration, not the password. Revoking it requires removing the rogue device registration from Entra ID. 04 04 / The Token Map: What an Attacker Sees First The Local Admin Problem An adversary who gains local administrator access to a managed Mac or Windows endpoint does not need to phish credentials. Every browser cookie database, every MSAL token cache, and — on Windows — LSASS memory itself contain active, replay-capable Microsoft 365 credentials. A tool like M365 Token Inspector (token_inspector.py) maps exactly what is present. The result on a corporate machine is reliably alarming. Running streamlit run token_inspector.py on an active corporate Mac surfaces every Microsoft authentication token across Firefox, Chrome, and Edge simultaneously. Firefox cookies are stored in plaintext SQLite databases — no decryption required. Chrome and Edge cookies are AES-128-CBC encrypted with a key held in macOS Keychain. Retrieving that key requires one Keychain prompt — which an attacker with local admin can trigger silently via a background process. The output is a categorised inventory of every live credential: its expiry window, its host domain, and its classification. On a typical corporate Mac with an active M365 session, expect between 30 and 80 Microsoft cookies — several of them Critical. Token / Cookie Storage Lifetime Risk What an Attacker Does With It estsauthpersistent Browser cookie store (disk) Up to 90 days Critical Replays the full Entra ID authenticated session from any remote host. Grants access to email, Teams, SharePoint, and OneDrive. No MFA prompt fires. No new sign-in event is logged for the replay — it appears as a continuation of the original session. sccauth / sccauthc1 Browser memory / cookie store Session Critical Accesses the Microsoft Defender XDR portal (security.microsoft.com). Attacker can suppress active alerts, close incidents, add AV/EDR exclusions for their tools, and disable MDE sensor policies — blinding the security team while access continues undetected. fedauth / rtfa Browser cookie store (disk) Session / persistent Critical Grants full SharePoint farm access — read, modify, exfiltrate, or delete documents and files across all SharePoint sites and OneDrive. Access patterns are indistinguishable from normal user activity in SharePoint audit logs. MSAL Refresh Token Disk (DPAPI / Keychain encrypted) 90 days (sliding) Critical Survives a password reset. Exchangeable for new access tokens to any M365 service indefinitely within the 90-day window. On Windows, extractable via SharpDPAPI or Mimikatz DPAPI module with local admin. The user's password change does not touch this token. Primary Refresh Token (PRT) Windows LSASS / macOS Keychain 14 days (auto-renewed) Critical Silent SSO to every M365 service. On Windows, extracted from LSASS memory using ProcDump or Mimikatz, then used with AADInternals to generate access tokens for any M365 resource — no MFA, no password, from any attacker-controlled device. ohpauth / ohpauthc1 Browser cookie store Session Critical Full Microsoft 365 portal access. Used to pivot to connected apps, access shared mailboxes, modify user settings, enumerate tenant resources, and exfiltrate data from any service the user can reach via the portal. estsauth (non-persistent) Browser memory Browser session High Short-lived but immediately replayable while the browser is open. Usable for rapid exfiltration tasks — forwarding email rules, downloading OneDrive contents, accessing Teams messages — before the session closes. High-Risk Observation — The 90-Day Replay Window The estsauthpersistent cookie is created whenever a user selects "Keep me signed in" at the Entra login prompt — the default on most corporate Macs. An attacker who extracts this single cookie value from the browser's SQLite database can inject it into any browser and access all M365 services for up to 90 days. There is no re-authentication prompt, no MFA challenge, and no new sign-in event generated in Entra ID logs. The session presents with the user's original IP context from initial login, making anomaly detection unreliable unless the replay occurs from a geographically distant IP or unfamiliar ASN. High-Risk Observation — Going Dark With sccauth The sccauth cookie is the most underappreciated Critical token on the list. It grants access to the Microsoft Defender XDR portal. An attacker who captures it can suppress active detections, close open incidents, add their tools to MDE exclusion lists, and offboard endpoints from Defender monitoring — all from the same portal the security team uses to investigate them. This is how attackers go dark inside a defended environment: not by evading detection initially, but by accessing the security controls themselves and disabling them after they are already inside. A compromised sccauth session will not generate a suspicious sign-in alert, because it looks like an analyst using their own tools. High-Risk Observation — Password Reset Does Nothing for Refresh Tokens MSAL refresh tokens persist in an encrypted file on disk and survive a password reset by design — the token lifecycle is managed by Entra ID server-side policy, not the password. When incident response advises a user to change their password after a compromise, that action alone invalidates nothing an attacker has already captured from the MSAL cache. Revocation requires an explicit server-side action: Revoke-AzureADUserAllRefreshToken via PowerShell, or the "Sign out everywhere" option in myaccount.microsoft.com. Until that is executed, the attacker continues to generate valid access tokens from their captured refresh token. Attack Chain 1 — Local Admin to Full M365 Compromise 1. LOCAL ADMIN Endpoint access gained (any method) → 2. TOKEN SCAN Browser DBs · MSAL cache · LSASS (Win) → 3. CRITICAL TOKENS estsauthpersistent · sccauth · fedauth · PRT → 4. REMOTE REPLAY Cookies injected into attacker browser / C2 → 5. FULL M365 Email · Teams · SP · No MFA · 90-day window NO PHISHING REQUIRED — Local admin = full token access. No credentials stolen, no MFA bypassed — the tokens already exist on disk and in memory from the user's normal session. Attack Chain 2 — Covering Tracks via the Defender Portal (sccauth) 1. sccauth CAPTURED Defender portal session replayed → 2. ALERT SUPPRESSION Active incidents closed, alerts resolved / hidden → 3. AV EXCLUSIONS Attacker tools added to MDE exclusion list → 4. SENSOR DISABLED Endpoint offboarded from MDE policy → 5. SOC IS BLIND Zero telemetry. Attacker operates freely. THE UNDERAPPRECIATED RISK — sccauth is not a data access token — it is a security control access token. An attacker who uses it to disable monitoring can then operate for weeks without triggering a single alert. 05 05 / Attack Scenarios & E5 Controls Each card maps a specific attack scenario to the Microsoft E5 controls that stop it — covering the problem, the solution, and the licensing required. Use these to drive the conversation with your customer around their current gaps. SCENARIO 01 AiTM Proxy — Session Token Theft Token Theft Problem Reverse proxy intercepts the post-MFA session cookie. Attacker replays the token from a foreign IP address. Standard MFA does not prevent replay. Token valid for hours with no further challenge. E5 Controls Global Secure Access + Strict Enforcement — binds sessions to a Microsoft-managed network presence. Token replayed from an external IP is rejected immediately. Continuous Access Evaluation (CAE) — re-evaluates session on every API call. IP-change or policy violation revokes access in under 15 minutes. Entra ID Protection — anomalous token risk signal triggers risk-based CA auto-block on the compromised session. M365 E5 | Entra Suite (GSA) | Medium Effort SCENARIO 02 Device Code Phishing — OAuth Flow Abuse Dev Code Problem Attacker initiates a device code flow, sends the code to the victim. Victim enters code at microsoft.com — a legitimate Microsoft page. Attacker receives access and refresh tokens with no proxy involvement. GSA network enforcement does not fire. E5 Controls CA — Block Device Code Flow — CA policy denying the device_code grant for all users except approved device-constrained roles. Entra ID Protection — Anomalous Token Risk — device code abuse triggers a risk signal; risk-based CA auto-blocks the session. Defender XDR — correlates the device code grant event with subsequent anomalous M365 activity into a single incident. M365 E5 | Low Effort SCENARIO 03 Device Registration + PRT Pivot PRT Abuse Problem Attacker uses a stolen refresh token to register a device in Entra ID and request a Primary Refresh Token. The PRT grants silent SSO to all M365 services from the attacker's own hardware — with no MFA required and no revocation on password reset. E5 Controls MFA for Device Registration — Entra CA policy forces MFA at join time, preventing registration using only a stolen refresh token. Token Protection (Proof-of-Possession) — cryptographically binds the token to the originating device. A stolen token cannot be replayed on a different device. Restrict User-Initiated Device Registration — limit registration to Intune-enrolled managed devices. Defender XDR — Anomalous Device Registration Alert — detection fires when a device is registered from a non-corporate IP or following a suspicious token event. M365 E5 | Medium Effort SCENARIO 04 Refresh Token Persistence After Password Reset Persistence Problem A refresh token remains valid after a password reset unless explicitly revoked. Attackers who captured a refresh token before the reset retain full access — including the ability to request new access tokens indefinitely. Users and admins believe the reset resolved the breach. E5 Controls Revoke All Refresh Tokens — Revoke-AzureADUserAllRefreshToken invalidates all active sessions across every device and app immediately. Risk-Based CA Auto-Revocation — Entra ID Protection high-risk user flag triggers automatic token revocation without manual intervention. Defender XDR Attack Disruption — automatically contains the compromised account and suspends active sessions upon high-confidence attack detection. M365 E5 | Low Effort SCENARIO 05 OAuth App Consent Abuse App Abuse Problem Attacker tricks the user into consenting to a malicious OAuth application. The app receives delegated permissions tied to the user's identity — persisting even after password reset or token revocation, until the app consent itself is removed. E5 Controls Restrict User Consent — CA policy requires admin approval for all third-party OAuth app consent. Admin Consent Workflow — Entra ID admin consent request workflow routes app approvals to designated reviewers. Defender for Cloud Apps — OAuth app anomaly detection flags apps with suspicious permission sets, unusual publisher domains, or consent patterns inconsistent with legitimate software. M365 E5 | Low Effort SCENARIO 06 BEC — Inbox Rule Hijack Post-Compromise Problem Attacker with mailbox access creates forwarding rules or auto-delete rules to hide their activity and intercept financial communications. Rules persist even after the stolen session is revoked. E5 Controls Defender for Cloud Apps — Inbox Rule Anomaly — built-in policy fires when a rule is created that forwards or deletes email matching financial keywords or external domains. Defender XDR Auto-Disruption — automatically disables the compromised account and quarantines suspicious mail rules upon high-confidence BEC detection. Exchange Online Audit Logging — unified audit log captures every inbox rule creation/modification. M365 E5 | Low Effort SCENARIO 07 PaaS Infrastructure & IP Rotation Evasion Evasion Problem Attackers host phishing infrastructure on legitimate PaaS platforms (Railway, Vercel, Cloudflare Workers) to evade IP blocklists. They rotate IPs rapidly, making traditional IP-reputation controls ineffective. E5 Controls GSA Strict Enforcement Mode — validates sessions against the Entra network presence, not IP reputation. PaaS IP rotation is irrelevant. Entra ID Protection — Behavioral Signals — evaluates impossible travel, unfamiliar location, and token properties holistically. Defender XDR Advanced Hunting — custom KQL detects sign-ins from hosting provider ASNs combined with anomalous M365 activity. M365 E5 | Entra Suite (GSA) | Medium Effort 06 06 / Defense Architecture PREVENT Passkeys · Token Binding · Block Device Code → ENFORCE GSA Strict Mode · CAE · Compliant Device CA → DETECT ID Protection · XDR · Sentinel KQL → RESPOND Auto-Disruption · Token Revocation Layer 1 — Prevent Make Tokens Worthless Controls that ensure captured tokens cannot be replayed or bound to attacker devices FIDO2 Passkeys Token Protection Block Device Code Device Reg MFA FIDO2 Passkeys: Phishing-resistant credential — no password to intercept, no OTP to relay. Immune to AiTM by design. Token Protection: Proof-of-possession cryptographically binds the access token to the issuing device. Replay on any other device fails at validation. Block Device Code: Conditional Access policy denies the device code grant type for all non-approved roles. Closes the EvilTokens attack path entirely. Device Reg MFA: CA policy requires phishing-resistant MFA at device registration time. Stolen refresh tokens cannot be used to register rogue devices. Layer 2 — Enforce Block Replay in Real-Time Network and session enforcement that rejects stolen tokens at use GSA + Strict Mode CAE Compliant Device CA GSA + Strict Mode: Global Secure Access anchors every Entra-protected session to a Microsoft-managed network presence. Token replayed from an external IP is rejected. Entra Suite add-on. CAE: Continuous Access Evaluation pushes real-time policy signals to resource providers. IP change or risk elevation revokes access in under 15 minutes. Compliant Device CA: Conditional Access requires Intune device compliance on all M365 sessions. Attacker-registered non-managed devices fail the compliance check. Layer 3 — Detect & Respond Catch What Slips Through Signal correlation and automated containment for attacks in progress ID Protection Defender XDR Defender for Cloud Apps Sentinel ID Protection: Risk-based signals (anomalous token, impossible travel, unfamiliar location) auto-block the session via CA. No analyst required. Defender XDR: Correlates identity, endpoint, email, and cloud signals into a single incident. Auto-disruption suspends compromised accounts on high-confidence detection. Defender for Cloud Apps: Inbox rule anomalies, OAuth app abuse, impossible travel across SaaS services — all correlated with Entra sign-in context. Sentinel: Custom KQL analytics rules for device code grants, anomalous device registrations, and PaaS ASN sign-ins. Playbook automation for incident response. 07 07 / Detection & Response Prevention controls reduce exposure but will not catch every attack. The following Microsoft tools provide the detection and automated response capability needed to identify active token theft and contain it before data is exfiltrated. Entra ID Protection Identity Risk Anomalous Token flags tokens with unusual IP, device, or session properties Impossible Travel detects sign-ins from geographically impossible locations within a session window Risk-Based CA auto-blocks or requires step-up auth on Medium/High risk without analyst action Microsoft Defender XDR Cross-Signal Correlation · Auto-Disruption Cross-Workload Incident stitches identity, endpoint, email, and cloud signals into one unified incident Automatic Attack Disruption suspends compromised user account and active sessions upon high-confidence AiTM classification AiTM Detection native classifier identifies session cookie replay patterns across Entra sign-in telemetry Defender for Cloud Apps SaaS & Cloud Activity Inbox Rule Anomaly built-in policy fires on forwarding or deletion rules targeting financial keywords or external addresses OAuth App Governance flags apps with over-privileged permissions or abnormal consent patterns Impossible Travel (SaaS) extends identity-level impossible travel detection across cloud app activity Defender for Identity Hybrid / On-Premises Lateral Movement detects pass-the-hash, pass-the-ticket, and Kerberos abuse following cloud identity compromise Privilege Escalation flags DCSync, AdminSDHolder modification, and AD group changes inconsistent with user role Hybrid Correlation links on-premises AD events to Entra cloud identity signals for unified hybrid attack view in XDR KQL — Detect Device Code Grant Sign-Ins (Sentinel / SigninLogs) SigninLogs | where AuthenticationProtocol == "deviceCode" | where ResultType == 0 // successful only | project TimeGenerated, UserPrincipalName, IPAddress, AppDisplayName, DeviceDetail, Location | order by TimeGenerated desc KQL — Anomalous Device Registration Following Suspicious Sign-In let riskySignins = SigninLogs | where RiskLevelDuringSignIn in ("high","medium") | project UserPrincipalName, riskTime = TimeGenerated; AuditLogs | where OperationName == "Register device" | extend UPN = tostring(InitiatedBy.user.userPrincipalName) | join kind=inner riskySignins on $left.UPN == $right.UserPrincipalName | where TimeGenerated between (riskTime .. riskTime + 4h) | project TimeGenerated, UPN, DeviceName = tostring(TargetResources[0].displayName) KQL — Inbox Forwarding Rules Created to External Addresses OfficeActivity | where Operation in ("New-InboxRule","Set-InboxRule") | where Parameters has "ForwardTo" or Parameters has "RedirectTo" | extend RuleParams = parse_json(Parameters) | where RuleParams has_any ("@gmail","@yahoo","@outlook.com") or RuleParams !has "@yourdomain.com" | project TimeGenerated, UserId, ClientIP, Parameters 08 08 / MITRE ATT&CK Coverage The table below maps each technique used across the token theft attack chain to its MITRE ATT&CK identifier and the corresponding E5 mitigations. This provides a common framework for discussing coverage with security-aware customers. Technique ID Name Phase E5 Mitigations T1566.002 Phishing: Spear-phishing Link Initial Access Defender for Office 365 Safe Links; user awareness training T1539 Steal Web Session Cookie Credential Access GSA Strict Enforcement; Token Protection; CAE revocation T1550.001 Use Alternate Authentication Material: Application Access Token Defense Evasion / Lateral Movement Token Protection; CAE; Entra ID Protection Anomalous Token signal T1528 Steal Application Access Token (OAuth device code) Credential Access CA policy blocking device code grant; Defender XDR detection T1098.005 Account Manipulation: Device Registration Persistence MFA at device registration; Restrict BYOD registration; Anomalous device reg alert T1556.006 Modify Authentication Process: Multi-Factor Authentication Defense Evasion Privileged Identity Management; MFA method audit; Defender XDR MFA change detection T1114.003 Email Collection: Email Forwarding Rule Collection Defender for Cloud Apps inbox rule anomaly; Exchange audit logging KQL T1078.004 Valid Accounts: Cloud Accounts Persistence / Privilege Escalation Risk-based CA auto-block; Defender XDR auto-disruption; refresh token revocation T1136.003 Create Account: Cloud Account Persistence Entra Privileged Identity Management; admin account audit; creation anomaly alert Licensing All controls above are available within Microsoft 365 E5 or the Microsoft 365 E5 Security add-on, with one exception: Global Secure Access (GSA) is part of the Microsoft Entra Suite, which is a separate add-on (~$12 USD/user/month). GSA provides the strongest single control against token replay. All monitoring tools (Defender XDR, Defender for Cloud Apps, Defender for Identity, Sentinel, Entra ID Protection) are included in M365 E5. ✓ Summary / Key Takeaways & Recommended Actions The controls below represent the highest-impact actions for closing the token theft exposure window. Prioritise by threat coverage and implementation effort — the first three can be deployed with a single Conditional Access policy each. Summary Recommended Control Priorities Control Covers Priority Block Device Code Flow (CA) Eliminates the EvilTokens / OAuth device code phishing path entirely. Single CA policy, low complexity, no user impact in most organisations. Critical Require MFA for Device Registration (CA) Prevents PRT pivot via stolen refresh token. Blocks the persistent access phase even when token theft has already occurred. Critical Risk-Based Conditional Access (Entra ID Protection) Automatically blocks or step-up challenges sessions flagged as anomalous — covers token replay, impossible travel, and unfamiliar sign-in properties without manual intervention. Critical GSA + Strict Enforcement Mode Strongest control against classic AiTM proxy token replay. Binds every session to Microsoft-managed network presence. Requires Entra Suite add-on. High Token Protection (Proof-of-Possession) Cryptographically binds access tokens to the issuing device. Prevents replay on any other hardware. Currently Windows + Exchange/SharePoint only. High FIDO2 / Phishing-Resistant MFA The only MFA method fully immune to AiTM by design. Prioritise for privileged accounts, finance teams, and executives — highest-value targets for token theft campaigns. High Sentinel KQL Analytics + Defender XDR Provides detection coverage for attacks that bypass preventive controls. Device code grants, anomalous device registrations, and inbox rule creation should all have active analytics rules. Medium David Broggy | LevelBlue — April 2026

May 15, 2026 · 19 min · David Broggy

Building an Intentionally Vulnerable LLM App — and How Microsoft Tools Help You Defend Against It

Author: David Broggy Published: 2026-03-12 Tags: MVPBuzz, CyberSecurity, LLM Security, Prompt Injection, Azure AI, OWASP LLM Top 10 What This Covers LLMGoat is a deliberately vulnerable LLM application built for security training. It follows the WebGoat model — an intentionally insecure app used for years to teach OWASP web vulnerabilities — but targets the OWASP LLM Top 10 instead. This post walks through how LLMGoat is built, what each vulnerability looks like in practice, and where Microsoft tools — Azure AI Content Safety, Azure OpenAI, Microsoft Sentinel, and Azure Monitor — fit into a realistic defense. ...

March 12, 2026 · 8 min · David Broggy

Maximizing Microsoft Security Copilot Value:

KQL-First Agent Design and SCU Optimization SCU Billing and Why Agent Design Matters Microsoft Security Copilot is billed in Security Compute Units (SCUs). Every time you prompt it — ask a question, request a summary, investigate an alert — you consume SCUs. Most organisations start by using Copilot the way it looks in demos: type a question, get an answer. That works for exploration. For repeatable operations work, it gets expensive quickly. ...

March 12, 2026 · 7 min · David Broggy
Microsoft AMA Troubleshooter script

Microsoft AMA Troubleshooter script

I recently had an issue with a new linux syslog server that was using Arc and had the AMA service enabled by a data collection rule in Sentinel. I could see the Sentinel DCR (data collection rule) had been pushed out but the AMA agent wasn’t forwarding logs back up to Sentinel. I suspected traffic was getting blocked but I wasn’t sure how to validate it. This script will extract the Sentinel Workspace ID and perform a network connection test that simulates the connection from AMA to the data collection point or ODS(operational data store). ...

July 23, 2025 · 5 min · David Broggy