
Self-hosted Microsoft 365 security operations dashboard — aggregates Defender XDR, Entra ID Protecti
Self-hosted Microsoft 365 security operations dashboard — aggregates Defender XDR, Entra ID Protecti
A self-hosted Microsoft 365 security monitoring dashboard that aggregates alerts from Defender XDR, Entra ID Protection, Intune, Exchange Online, Compliance, and more — all in one place, collected on a schedule (every 15 minutes by default).
No third-party SaaS required. Runs entirely on your own Windows host using Microsoft Graph API.
| Page | What it monitors |
|---|---|
| Overview | Secure Score trend, KPI tiles, recent alerts, risky users, compliance summary, alert policy status |
| Identity | Risky users, risky sign-ins, risk detections, MFA coverage, PIM assignments, MDI alerts, foreign sign-ins |
| Devices | Intune compliance, non-compliant devices, stale devices, MDE endpoint alerts |
| MDO protection alerts by category (malware, phish, spam), threat breakdown | |
| Incidents & Alerts | Unified Defender XDR incidents + alerts, severity KPI tiles, date-range filter |
| Compliance | DLP alerts, MCAS alerts, IRM insider risk alerts, attack simulations |
| Alert Center | Custom alert policies, policy templates, triggered alert history, acknowledge/resolve workflow |
| Service Health | M365 service advisories and incidents, per-service health status |
| M365 Connectivity | Sign-in health, connectivity issues |
| Licenses & Users | License SKU breakdown, inactive users, expiring licenses |
| Conditional Access | Policy list, state breakdown (Enabled/Report-only/Disabled), per-policy detail, gap analysis |
| Tenant Activity | Directory audit events with search, day-range filter, and CSV export — the audit surface behind activity-based alerting |
| Sign-in Locations | Success/failure breakdown and country drill-down (tabular; no map) |
| Layer | Technology |
|---|---|
| Backend | ASP.NET Core 8 Minimal API |
| Frontend | React 18 + TypeScript + Vite |
| Sign-in | Microsoft Entra sign-in (MSAL) + in-app RBAC |
| Collection | Graph app-only — client secret or certificate |
| Scheduler | .NET BackgroundService — every 15 minutes |
| Storage | SQL Server Express (EF Core migrations) |
| Icons | lucide-react |
Nothing else is required on the server. SQL Server Express and Azure CLI are installed by the setup wizard if they are not already there.
All paths also need a Microsoft 365 tenant where you can create an app registration.
Option 1: Download pre-built installer (Recommended)
Download Vigil365-Setup.exe from the latest release and run it as Administrator.
Option 2: Build the installer yourself (Optional) If you prefer to build the executable yourself from source, open PowerShell and run:
pwsh -File scripts/build-installer.ps1Then execute the generated dist/Vigil365-Setup.exe as Administrator.
That is the whole install: it is a single self-contained file that carries the application, the web UI, and the .NET runtime, so the deployment server needs no source tree, no Node.js, and no .NET installed.
The wizard will:
The wizard's first question decides everything else:
Just this computer — the default, for evaluating Vigil365. It binds
http://localhost:8080 (loopback only), needs no certificate, and changes no
firewall rules. Entra permits http for loopback redirect URIs, so sign-in works
as-is. Nothing else on your network can reach it.
Other people on our network — asks for a hostname and a certificate. Entra
refuses plain http:// redirect URIs for anything but localhost, so once
Vigil365 is reachable by name, HTTPS is required and the wizard asks where the
certificate comes from:
| Option | Use when |
|---|---|
| A certificate already on this server | Your organisation issues certificates from an internal CA (most common). The wizard lists what is in LocalMachine\My and marks hostname matches with a ✓. |
A .pfx file |
You hold a wildcard or externally-issued certificate as a file. |
| Create one for me (default) | You have neither and want to get running now. |
The last option generates a certificate and trusts it on that server only — that machine stops warning, every other browser still warns. Fine for a pilot, not fine to leave in place: on a security product, a warning you tell people to click through is training them to ignore the one that matters. Re-run the wizard and pick one of the first two options to replace it; re-running reuses the existing Entra app registration rather than creating another.
If the server is reachable from the internet, scripts/request-cert.ps1 gets a
free, publicly-trusted certificate from Let's Encrypt instead:
pwsh -File scripts/request-cert.ps1 -Hostname vigil365.yourcompany.com -Email [email protected]Everything else is detected or derived: the first administrator is taken from your Azure CLI sign-in, and an existing SQL Server instance is found and reused rather than installing a second one.
After the wizard finishes, open the app and finish Setup in the browser to supply the Graph credentials used for collection.
For detailed instructions on user roles (RBAC), setting up SMTP notifications, and general configuration, see the Administration & Configuration Guide.
Run both simultaneously:
# Terminal 1 — backend
cd src\M365SecurityDashboard.Api
$env:ASPNETCORE_ENVIRONMENT = "Development"
dotnet watch run
# Terminal 2 — frontend
cd src\m365-security-dashboard-client
npm run devFrontend dev server: http://localhost:5173 (proxies API calls to backend)
Vigil365 uses Playwright for end-to-end testing. The test suite automatically spins up the backend API and the frontend dev server, verifies the login flow, and ensures the dashboard renders correctly.
To run the tests locally:
cd src\m365-security-dashboard-client
npm install
npx playwright install --with-deps
npx playwright testTo run tests in UI mode:
npx playwright test --uiOutside Development the app enforces HTTPS (HSTS + redirect). Plain HTTP is only for local development. Two supported ways to serve TLS:
Terminate TLS at IIS / Nginx / Caddy and proxy to the app on localhost. Example Caddy config:
vigil365.yourcompany.com {
reverse_proxy localhost:8080
}Run the app bound to localhost only (--urls http://localhost:8080) so it is
never directly exposed; the proxy handles certs (e.g. automatic Let's Encrypt).
Let the app terminate TLS directly by configuring a Kestrel HTTPS endpoint in
appsettings.Production.json (Kestrel reads this automatically — no code change):
{
"Kestrel": {
"Endpoints": {
"Https": {
"Url": "https://0.0.0.0:443",
"Certificate": { "Path": "C:\\certs\\vigil365.pfx", "Password": "YOUR_PFX_PASSWORD" }
}
}
}
}Set the Azure App Registration SPA redirect URI and Auth:RedirectUri to the
HTTPS URL (e.g. https://vigil365.yourcompany.com).
Credential hygiene: prefer certificate auth for Graph over a client secret, store secrets in a vault or environment variables (never in committed files), and rotate any secret that has ever been exposed.
| Method | Endpoint | Description |
|---|---|---|
GET |
/api/dashboard/overview |
Aggregated overview data |
GET |
/api/dashboard/identity |
Identity & MFA data |
GET |
/api/dashboard/devices |
Intune device compliance |
GET |
/api/dashboard/email-protection |
MDO email alerts |
GET |
/api/dashboard/security-incidents |
Defender XDR incidents |
GET |
/api/dashboard/defender-alerts |
Defender XDR alerts |
GET |
/api/dashboard/mdi-alerts |
Microsoft Defender for Identity alerts |
GET |
/api/dashboard/mcas-alerts |
Defender for Cloud Apps alerts |
GET |
/api/dashboard/risk-detections |
Entra ID risk detections |
GET |
/api/dashboard/attack-simulation |
Attack simulation results |
GET |
/api/dashboard/servicehealth |
M365 service health |
GET |
/api/dashboard/licenses |
License SKU usage |
GET |
/api/dashboard/conditional-access |
CA policies |
GET |
/api/dashboard/ca-gaps |
Conditional Access gap analysis |
GET |
/api/dashboard/sharing-posture |
SharePoint/OneDrive sharing posture |
GET |
/api/dashboard/signin-locations |
Sign-in locations |
GET |
/api/audit-events |
Tenant directory audit events |
GET |
/api/entity/{kind}/{id} |
Entity investigation timeline (user/device) |
GET |
/api/setup/status |
First-run setup progress |
GET |
/api/setup/permissions |
Graph permission reference + status |
POST |
/api/collector/run |
Trigger manual data collection |
GET |
/api/collector/runs |
Collection run history |
Unknown
/api/*paths return404JSON. The full surface (alerts workbench, notification settings, report schedules, RBAC) is larger than this excerpt.
Read this before relying on Vigil365. This is an open-source **read-only visibility a
No open issues yet, or sync has not completed.