Microsoft 365 Anomaly Detection

Every account has a rhythm. MAD catches the sign-in that doesn't fit.

MAD is a security monitoring system that runs on your own server. It collects logs from several Microsoft 365 tenants, the VPN and your servers, runs 40 detectors over them, and turns what they find into alerts, incidents and written AI analyses — ready for a decision, not for digging.

  • Self-hosted
  • Multi-tenant
  • Read-only sources
  • Interface in EN / PL
An account's day on a 24-hour dial The arc from 7:00 to 23:00 marks the hours when the account is usually active. The hand and the dot stand at 3:07 — a sign-in that does not fit this day. 00 03 06 09 12 15 18 21
Anomaly03:07

Sign-in from Shanghai

anna.nowak@contoso.com — 62 minutes after a session from Wrocław, 8,268 km away. This account is usually asleep at this hour.

impossible travelcritical
The Overview page in MAD: cards with the number of new, critical, high and medium alerts, the alert timeline for the last 7 days and the triage status.
Detectors

40

anomaly detectors

25 Microsoft 365 · 5 VPN · 3 network · 6 Wazuh · 1 watchdog

Pipeline cycle

5–15min

pipeline cycle

Wazuh every 5 minutes, everything else every 15

Data sources

7

data sources

Audit Log · Graph sign-ins · Microsoft alerts · Service Health · FortiAnalyzer · Wazuh · threat lists

AI reports

6

kinds of AI report

daily and intraday — for Microsoft 365, the network and Wazuh

Data sources

Three sources. One timeline.

An attack rarely leaves its trace in just one system. MAD brings identities, the network and servers into one database and one schema — and sees what no single source would show on its own.

Identitiesbuilt in

Microsoft 365

Sign-ins, mailbox and file operations, role and OAuth consent changes, and the alerts Microsoft raises itself — from several tenants at once, each with its own user profiles.

  • Unified Audit Log
  • Microsoft Graph sign-ins
  • Defender and Entra ID Protection alerts
  • Service Health
  • Exchange
  • SharePoint and OneDrive
  • Teams
  • Entra ID

Network edgeoptional module

FortiAnalyzer

VPN sessions with geolocation, plus network monitoring: firewall configuration changes, threats the gateways let through and saturated links.

  • SSL-VPN and IPsec tunnels
  • firewall configuration
  • threats
  • link load
  • block list

Serversoptional module

Wazuh

Events from hosts running the Wazuh agent: sign-ins, changes to sensitive files, vulnerabilities and configuration compliance — together with agent and manager health.

  • rule alerts
  • FIM
  • vulnerabilities (CVE)
  • SCA
  • agents

Correlation across sources

Apart, two valid events. Together, an alert.

A VPN session in one country while the same person signs in to Microsoft 365 from another gets caught — even though neither source would notice it alone. The company's shared egress addresses are excluded, so traffic through the VPN does not look like travel.

Features

From signal to decision — in one place.

The MAD dashboard takes the team from a first look at the security posture, through the alert queue, down to the timeline of a single account. Every screenshot comes from the running application with demonstration data.

Overview

The security posture in half a minute.

How many alerts are waiting, for how long, and whether that is more than usual. Every number sits next to the line of the previous period, so you see at once what is normal and what is a deviation.

  • Alerts by severity against the previous period — 24 hours, 7, 14, 30 or 90 days.
  • Backlog age: the oldest open critical alert and the spread of waiting times.
  • Detector deviation in σ against the same stretch of the four previous weeks.
  • A tenant filter in the header of every page.
The lower part of the Overview page: backlog age, detector deviation, anomaly types and the ten users with the most alerts.

Alerts and triage

A queue you can actually empty.

Every finding lands in one queue with filters, a status, an owner and an AI verdict. Closing an alert takes a reason code — after a month you know which detector is really making noise.

  • Statuses: new, in progress, resolved, false positive — with the full history of who changed what and when.
  • An owner on every alert: take it with one key or hand it over to someone on the team.
  • Filters with several severities and types at once, and your favourite filter sets as saved views above the list.
  • A panel over the list: J / K moves to the next alert, with the sign-in chart, the route on a map and the raw fields of the finding.
  • Comments with screenshots, and a 24-hour mute for a user + alert type pair.
The alert list in MAD: the collapsed triage queue, saved views, filters and the alert table with severity, AI verdict, status and owner.
The detail panel of an impossible travel alert: a map with the route between two sign-ins, the parameters of the finding and the AI analysis.

Alert context

Where it came from, what Microsoft says, what is already known.

Next to every alert MAD shows what an analyst would otherwise look up in three other places: whether the address is on a public threat list, what Microsoft said about the same event, and how earlier alerts on this account ended.

  • Threat lists: Tor exit nodes, Spamhaus DROP, abuse.ch Feodo Tracker and blocklist.de, refreshed once a day. Successful access from Tor, a botnet or a criminal network raises the alert severity by one step.
  • Microsoft alerts: Defender for Office 365, Endpoint, Identity and Cloud Apps, Entra ID Protection and Purview DLP in the same queue as MAD's own alerts — with the evidence, MITRE techniques and the current state on Microsoft's side.
  • Account history: alerts from the last 7, 30 or 90 days, how they were closed and the operators' notes. The AI reports read it too — they don't ask again to check a trip someone has already confirmed.
The panel of a Microsoft Defender for Office 365 alert: Microsoft's description, the MITRE technique, the recommendation and the evidence, and below them the sender address on the Spamhaus DROP and Tor lists.

AI analysis

An analyst who reads every alert.

Several times a day Claude Code goes through the alerts the way an analyst would: it merges duplicates into incidents, checks them against the raw sign-in and VPN records, and separates real events from known false positives. The verdict, the evidence and the next step are waiting next to the alert.

The panel of a brute force alert with the AI analysis: the address on the Tor exit node list, a “true positive” verdict, a list of events with times and the recommended action.
Verdict, evidence and recommendation in the alert panel — with a link to the report they come from. Above the analysis: the attacking address on the Tor exit node list.
The AI Reports page: the list of daily reports and a report preview with the day's numbers and the summary.
The AI Reports page: the archive of daily and 30-minute reports. The preview is the same file the team received by e-mail.

Two report rhythms.

  • The daily report, every day at 06:00. The full record of the day: incidents, trends and recommendations, compared with the day before and with the same window a week earlier. It goes to the team by e-mail.
  • The 30-minute report, on working days 06:30–17:00. It answers one question: does anything need action right now? At most three action points, or “no action needed”.
  • The network and Wazuh have their own reports — daily and hourly. Code computes the numbers; the model writes the summary and rates the alerts.

Six verdicts, always one per incident

True positiveA real event that needs a response.

Needs verificationThe data does not settle it — the recommendation says what to check.

Probable false positiveThe evidence explains why.

Confirmed false positiveFor example, confirmed with the user.

BenignThe user's or an administrator's own action.

InformationalContext without a rating.

Reports in full

Not an excerpt — the whole report. Scroll and read.

Below are two complete reports in the MAD format — the files the team gets by e-mail and sees on the AI Reports page. MAD writes its reports in Polish, whatever the interface language. Each one also opens in a new tab.

Daily report MAD alert report — 04.12.2026
Open in a new tab
When
every day at 06:00
Window
the previous 24 hours
Goes to
the team by e-mail and the AI Reports page

↕ scroll inside the frame to read it all7 sections · 12 incidents

What the daily report contains

  1. The day's numbersalerts, critical, high and incidents — compared with the previous window
  2. Summary (Podsumowanie)a few sentences: what happened and whether anything is urgent
  3. Incidents and verdictsalerts merged into incidents; each with a verdict, timed evidence and the next step
  4. Tablesalerts by detector, by tenant and status, and the accounts alerted most often
  5. Conclusions and recommendationsthe list of actions — including which detector is worth tuning

A production report also has a VPN section and the state of log collection in every tenant.

30-minute report Intraday report — 11:30
Open
When
working days, every 30 min from 06:30 to 17:00
Goes to
the AI Reports page and the alert panel

↕ scroll inside the frameone action point

Sample reports on demonstration data: the layout and format are those of MAD; the text was put together by the demo data generator, not by a model.

Numbers that add up

The window boundaries are computed once and written into the queries as constants — every number in the report adds up to the same total.

A missing report does not go unnoticed

A failed run, or a report whose e-mail did not go out, sends the administrator a notice with the tail of the log — without involving the model.

Careful with untrusted text

The network and Wazuh reports give the model no tools, and server log lines are masked before they reach it. A typo in a verdict can never make an alert look safe.

Incidents

Five alerts, one notification.

When at least two different detectors flag the same account within six hours, MAD merges the alerts into an incident. The team gets one message instead of a series — and the whole chain of events on one screen.

  • Incident severity is one step above the highest alert in the group.
  • A later alert joins the incident without a new notification.
  • You can also build an incident yourself: select alerts in the list and choose “Create incident” or “Add to incident”.
  • Closing an incident closes its open alerts with it — with a single reason code.
The Incidents page: open critical incidents, each listing alerts from several detectors on one account, with buttons to close them.

Investigation

Where from, when, and what happened next.

The map shows where successful and failed sign-ins come from, and the routes of impossible travel. The account timeline lays out 30 days of activity in one view, and the log browser reaches down to the raw audit records — with CSV and PDF export.

Login Maps: failed sign-ins on a world map, the country ranking and impossible travel routes.
Failed sign-ins by country and impossible travel routes.
User timeline: an account risk card at 100 out of 100 with the points for each alert, and below it lanes of alerts, sensitive changes and sign-ins over 30 days.
30 days of one account, with the risk score and its breakdown by alert on top.
The audit log browser with filters for user, operation, period and location.
Raw audit logs with filters, CSV and PDF.

Account risk

One number: who to look at first.

Every account gets a score from 0 to 100, computed live from its alerts of the last 14 days. A fresh critical alert weighs more than one a week old, thirty alerts from one detector are not thirty reasons to worry, and closing an alert lowers the score right away.

  • A bonus for each further, different detector on the same account and for an address on a threat list.
  • Administrator accounts and accounts without MFA registered get a multiplier: the same event does more damage there.
  • A Risk column in the account list, the score next to every alert and a breakdown card on the account timeline — you can see where every point comes from.
The Users page sorted by risk: accounts scored from 100 down, a “no MFA” tag, and activity, alert and sign-in country counts.

Trends and team

Know which detector is noisy — and how the team is coping.

Trends shows the quality of every detector: how many alerts it raised, how far it is from its usual volume, and what share of its closed alerts turned out to be false positives. The Team page shows who handles the alerts and whether the queue is growing.

  • The false positive share comes from the reason codes given on closing.
  • Signal versus noise: loud, inaccurate detectors stand out at once.
  • New alerts against closures, and the median handling time per operator.
  • PDF export of the Trends page.
The detector table on the Trends page: alert count, change, deviation from the usual volume, false positive share and a daily chart.
The Team page: team pulse, closures over time by operator and the operator ranking.

M365 tenants

Licences, accounts and security for every tenant.

Once a day MAD takes an inventory of the licences, accounts and mailboxes of every tenant — with no new permissions, just the ones it already uses to collect logs. The licence auditor shows where money sits idle, and the tenant table puts each tenant's licence cost and security state side by side.

  • Blocked accounts that still hold licences.
  • Licences with no activity, and licences duplicated by another licence on the same account.
  • Shared mailboxes with a licence they do not need, and guest accounts with licences.
  • Purchased licences nobody is assigned — with the renewal date.

35 itemslicences to check that the auditor found across the three tenants of the demonstration data, which spend €5,641 a month on licences

The M365 tenants page in the light theme: licences, active mail, Copilot, accounts, posture, cost and the number of items to check for three tenants.

Identity posture

A tenant's weak spots, before someone else finds them.

The same daily inventory checks the security configuration of every tenant: Secure Score and its change over the week, Conditional Access policies, MFA registration and apps with access to data. Nine rules turn it into a list of things to fix, most serious first.

  • An administrator without MFA, too many Global Administrators, enabled accounts without MFA registered.
  • No policy that requires MFA from everyone, and legacy authentication left unblocked — together with the report-only policies that would close the gap.
  • Apps with permissions to all mail or files, unverified apps with organisation-wide consent, secrets and certificates about to expire.
  • A weekly report every Monday at 07:00: what improved and what is new. Built by code, without AI.
The Posture tab of the Fabrikam tenant in the light theme: Secure Score at 45.9% after a 14-point drop in a week, one of three Conditional Access policies enabled, MFA on 61.5% of accounts and the list of items to check.

Health and configuration

A system that also watches itself.

Monitoring that has quietly stopped collecting data is worse than none. The watchdog detector checks every collector and analyzer run, and the settings — from thresholds to permissions — are changed in the interface, with a change log.

The MAD health page: run count, errors and uptime for 24 hours, the pipeline heartbeat with every run, and component status.
Pipeline heartbeat: every run of the last 24 hours. The watchdog reports a collector that went silent, collection errors and an expiring certificate.
The Configuration page with its tabs: general, detection, whitelists, notifications, retention, integrations, users and audit log.
Detection thresholds, whitelists, notifications, retention, modules and users — without editing files on the server.

Detectors

40 detectors. Each one knows a single attack pattern.

From brute force to OAuth consent phishing and a change of domain federation. One detector usually recognises several distinct patterns, and the thresholds of each are set in the configuration.

Authentication and account security

Microsoft 365

13

  • Impossible travel
  • Unusual hours
  • Brute force and password spray
  • Non-interactive brute force
  • Sustained authentication failure
  • Suspicious actions after sign-in
  • Account takeover
  • Conditional Access bypass
  • Token theft (AiTM)
  • Device code and device registration
  • Correct password on a disabled account
  • First use of AI agents
  • Dormant account

Data security

Microsoft 365

3

  • Data exfiltration
  • Mass email operations
  • Mass file deletion

Privilege and access

Microsoft 365

5

  • Privilege escalation
  • Lateral movement
  • Privileged accounts
  • Persistence and audit evasion
  • Mailbox delegation

OAuth, Microsoft and health

Microsoft 365

5

  • OAuth consent phishing
  • Service principal sign-ins
  • Entra ID risky sign-ins
  • Microsoft Defender and Purview alerts
  • Collection watchdog

VPN security

FortiAnalyzer

5

  • Password spray
  • Brute force per account
  • VPN ↔ M365 impossible travel
  • Concurrent sessions
  • Geolocation anomaly

Network

FortiAnalyzer

3

  • Risky firewall change
  • Threat let through
  • Link saturation

Servers

Wazuh

6

  • Critical rule
  • Sensitive file change
  • Host sign-ins
  • Wazuh health
  • Vulnerabilities
  • Configuration compliance

No repeats

Every alert carries a content hash. The same finding is stored once per window — 12 hours by default, 24 hours for types that describe a whole day.

Whitelists

IP addresses, countries, country pairs and OAuth applications you know stop raising alerts. Privileged and service accounts are described per tenant.

Shadow mode and learning

New network and Wazuh detectors and Microsoft alerts start silent — no e-mails until you switch them on. A new tenant spends its first 14 days learning its accounts' rhythm.

Four severity levels

Critical, high, medium and low — and notification recipients are grouped by severity.

Screens

The whole application, page by page.

Pick a page from the list. Click a screenshot to open it at full resolution.

The Overview page: alert cards by severity, the alert timeline and the triage status.

Overview

Alert counts and timeline, the backlog, triage status and Microsoft 365 service health — on one screen.

The Alerts page: the triage queue and the alert table with severity, AI verdict, status and owner.

Alerts

The alert queue: multi-value filters, saved views, the AI verdict, the owner and tags for Microsoft alerts and threat lists.

The detail panel of an impossible travel alert with a map of the route between two sign-ins.

Alert detail

The impossible travel route on a map, the fields of the finding, the AI analysis, the incident and related alerts for the same account.

The detail panel of a Microsoft Defender for Office 365 alert with its evidence and the address on the Spamhaus DROP and Tor lists.

Microsoft alert

A Defender for Office 365 alert in the MAD queue: Microsoft's description and recommendation, the MITRE technique, the evidence, a link to the Defender portal and the sender address on threat lists.

The Incidents page with open critical incidents.

Incidents

Alerts from at least two detectors on one account, gathered into a single incident with a single notification — or put together by hand from the alert list.

The AI Reports page with the list of daily reports and a report preview.

AI Reports

The reports Claude Code writes for Microsoft 365 — exactly as they were e-mailed.

The AI Reports page with the list of 30-minute reports and a report preview with its action points.

30-minute report

The intraday report: what happened in the last half-hour window and whether anything needs action right now.

The Team page: team pulse, closures over time and the operator ranking.

Team

Who handles the alerts, how many closures there are per new alert and how the backlog is moving.

The Users page: a table of accounts sorted by risk, with activity and alert counts and the list of countries.

Users

Accounts by risk score from 0 to 100, with a “no MFA” tag and their event, alert and sign-in country counts.

The user timeline with the account risk card and lanes of events over 30 days.

Account timeline

The account risk score with the points for each alert, and below it 30 days of activity: alerts, sensitive changes, failed and successful sign-ins.

Login Maps: successful sign-ins on a world map and the country ranking.

Login Maps

Where successful and failed sign-ins come from, the country ranking and impossible travel routes.

The audit log browser with filters and the event table.

Logs

Raw audit records with filters for user, operation, period and location. CSV and PDF export.

The M365 tenants page: the tenant table with posture and the list of items to check.

M365 tenants

Licences, accounts, posture and cost for every tenant side by side, and below them one list of things to check: licences and security.

The Posture tab of a tenant: Secure Score, Conditional Access, MFA registration and the items to check.

Tenant posture

Secure Score with its weekly change, Conditional Access policies, MFA registration and apps — and rules P1–P9 that say what to fix.

The MAD health page: uptime, the pipeline heartbeat and component status.

MAD health

Every collector and analyzer run, the pipeline heartbeat, component status and system alerts.

The Configuration page with its settings tabs and the list of modules.

Configuration

Detection thresholds, whitelists, notifications, retention, integrations, modules, users and the audit log.

The About MAD page: a description of the system, its numbers and the pipeline steps.

About MAD

Documentation inside the app: how the pipeline works, the architecture, AI reports, the detector catalogue and deployment steps.

The quick jump dialog with search results for pages and users.

Quick jump

Pages, alerts, detectors, tenants and users under one shortcut — with recently opened items and actions on the open alert.

Themes

Four themes — from a bright office to a night shift.

The Overview page in the light theme.
Light
The Overview page in the ash theme.
Ash
The Overview page in the dusk theme.
Dusk
The Overview page in the dark theme.
Dark

Phone and desktop

A three-in-the-morning alert reads fine on your phone.

The dashboard is responsive and installs like an app (PWA) — on the desktop or on the phone's home screen. Every user picks their own interface language: English or Polish.

  • Quick jump under Ctrl / ⌘ + K: pages, alerts, detectors, tenants and users — and actions on the open alert.
  • Desktop notifications about critical alerts and incidents, and a count on the app icon.
  • A “live” indicator — the data refreshes on its own.

How it works

Six steps, every quarter of an hour.

MAD is a pull-based batch pipeline on a single Ubuntu server. It installs no agents of its own — it comes to fetch the data from the sources you already have.

  1. Collect

    Collectors pull the Unified Audit Log, Graph sign-ins, Microsoft alerts and service health from every tenant, and VPN, firewall and threat events from FortiAnalyzer.

    every 15 min · Wazuh every 5
  2. Store

    Everything lands in one PostgreSQL database in one schema, and every IP address is resolved to a country and a city.

    geolocation with a cache
  3. Detect

    The analyzer runs 40 detectors in three passes, checks addresses against threat lists and records what they find as alerts — without repeats.

    M365 + VPN · network · Wazuh
  4. Notify

    New alerts go by e-mail to recipient groups chosen by severity, and as a card to a Microsoft Teams channel.

    SMTP · Teams webhook
  5. Analyse

    Claude Code reviews the alerts every morning and during the working day: it merges them into incidents, verifies them in the logs and rates them.

    verdict · evidence · next step
  6. Triage

    The team works the alerts in the dashboard — statuses, comments, mutes — with the AI verdict at hand.

    a history of every change

Architecture

One stage failing does not stop the others.

Every stage is a separate process started by systemd, and the stages meet only in PostgreSQL and in the reports directory. A collector remembers how far it has read and catches up after a gap; every stage can be re-run for a past time window.

Collectors
PowerShell 7 and Python · application certificate sign-in · read-only
Database
PostgreSQL · logs in monthly partitions · retention: logs 90 days, alerts 365 days
Analysis
Python · 40 detectors · deduplication by content hash · threat lists
AI reports
Claude Code, headless · HTML + JSON in one directory
API
FastAPI · JWT · listens on 127.0.0.1 only
Dashboard
Next.js behind nginx with TLS · session in an httpOnly cookie

Why MAD

Designed around a security team's daily work.

MAD is developed on a live production system — with several tenants, different licences and a real queue of alerts to handle.

01

On your own server

Ubuntu, PostgreSQL and nginx. Logs and alerts stay in your database, and you decide how long they are kept.

02

Many tenants, one view

Separate user profiles and deduplication in every tenant, a shared dashboard and a tenant filter on every page.

03

Works with any M365 licence

Standard mode needs only the Unified Audit Log. With Entra ID P1/P2 you add Graph sign-ins, delayed by about 5 minutes.

04

Read-only

MAD changes and blocks nothing on its own. The block list for FortiGate gateways is built only after a person approves each network.

05

Fewer false positives

Deduplication, whitelists, incidents and AI verdicts cut the noise, and the reason codes given on closing show what to tune next.

06

Six roles and Microsoft sign-in

Owner, Admin, Engineer, Analyst, Helpdesk and Viewer. A local account or Entra ID, and every configuration change goes to the log.

07

Notifications where you work

E-mail to recipient groups by alert severity, and cards in a Microsoft Teams channel. The daily report arrives by e-mail every morning.

08

Modules on demand

VPN and network, Wazuh and M365 tenants are switched on in the configuration. The menu shows only what is on.

09

Documentation inside the app

The architecture, the detector catalogue, the AI report flow and the deployment steps are described on the “About MAD” page — in English and in Polish.

Deployment

From an empty server to the first alert.

One server, an app registration with a certificate in every tenant, and a configuration file. Below are the requirements and a short version of the installation; the full guide, with every pitfall met in production, is part of the project.

What you need

  • ServerUbuntu 24.04 LTS with sudo access (22.04 works too)
  • EnvironmentPython 3.10+, PostgreSQL 14+, Node.js 20+, PowerShell 7, nginx with a TLS certificate
  • Tenantan app registration with a certificate, the Exchange Administrator role and the Unified Audit Log switched on; for posture and Microsoft alerts — a few read-only Graph permissions
  • AI reportsthe Claude Code CLI on the server and a reachable SMTP server
  • Optionalaccess to the FortiAnalyzer API; a read-only account in Wazuh
installation in short · full steps in docs/LINUX_INSTALLATION.md
# 1. Packages and code
sudo apt install -y python3 python3-venv python3-dev build-essential git \
  postgresql postgresql-contrib libpq-dev nginx
sudo snap install powershell --classic
sudo git clone <MAD-repository-url> /opt/mad

# 2. Python environment
cd /opt/mad && sudo python3 -m venv .venv
sudo .venv/bin/pip install -r requirements.txt -r requirements-api.txt

# 3. Database (then the migrations from scripts/migrations/)
sudo -u postgres psql -c "CREATE DATABASE mad OWNER mad_app;"
cat scripts/init_pg.sql | sudo -u postgres psql -d mad

# 4. Tenant: certificate + config/settings.json, then the systemd timers

# 5. API and dashboard behind nginx
sudo bash scripts/deploy_v2.sh

Three data collection modes

You choose the mode for each tenant separately. The VPN, network and Wazuh detectors depend on none of them.

Feature Hybrid recommended Standard default Graph only narrowest
Data sourceUnified Audit Log + Graph sign-insUnified Audit LogGraph sign-ins only
M365 detectorsallall except those that need Graph sign-inssign-in detectors only
Licence requiredEntra ID P1/P2any Microsoft 365 licenceEntra ID P1/P2
Sign-in delayabout 5 minabout 60 minabout 5 min
Audit log delayabout 60 minabout 60 minnot collected

Questions

Before you ask.

Does MAD block or change anything in my environment?

No. Every source — Microsoft 365, FortiAnalyzer and Wazuh — is only read. MAD detects and notifies; a person makes the decision. The one exception is the optional block list: MAD proposes the networks attacking the gateways, and FortiGate fetches only those you approve.

Which Microsoft 365 licences do I need?

No extra ones. Standard mode uses the Unified Audit Log, which works with any Microsoft 365 licence. If the tenant has Entra ID P1/P2, you switch on Hybrid mode: Microsoft Graph sign-ins then arrive after about 5 minutes instead of about an hour.

What permissions does MAD need in the tenant?

An app registration that signs in with a certificate. The Unified Audit Log needs the Exchange.ManageAsApp permission and the Exchange Administrator role, and Graph sign-ins need AuditLog.Read.All and Directory.Read.All. Licences and accounts on the M365 tenants page use the same permissions. Identity posture adds SecurityEvents.Read.All (Secure Score) and Policy.Read.All (Conditional Access), and Microsoft alerts add SecurityAlert.Read.All. Each part works on its own: without its permission MAD skips it and says so on the MAD health page.

Does MAD replace Microsoft Defender?

No — it builds on it. The alerts Defender, Entra ID Protection and Purview DLP raise land in the same queue as MAD's own findings, with their evidence and their state on Microsoft's side. MAD adds what Defender does not see: correlation with the VPN and servers, a profile of every account's usual rhythm, incidents across several detectors and AI reports for the team. Closing an alert in MAD changes nothing at Microsoft.

How soon after an event does the alert appear?

The pipeline runs every 15 minutes, and every 5 for Wazuh. The rest depends on Microsoft: Graph sign-ins are available after about 5 minutes, and Unified Audit Log events usually after a few dozen minutes. Events indexed late are picked up by MAD every night.

Are the AI reports mandatory?

No. Detectors, alerts, incidents, notifications and the whole dashboard work without them. The AI reports need the Claude Code CLI on the server; if the AI step of a network or Wazuh report fails, the report still goes out — built from code alone.

What do the screenshots show?

The real application with demonstration data. The companies Contoso, Fabrikam and Northwind, every person and every event are made up, and the IP addresses come from ranges reserved for documentation. The interface in the screenshots is English; alert descriptions and AI analyses stay in Polish, because the demonstration data and MAD's reports are written in Polish. The reports on this page have the format of MAD reports, but their text was put together by the demo data generator, not by a model.

See what is really happening on your organisation's accounts.

Put MAD on one server, connect the first tenant and see what it shows after the first day.