How sameerk27/vigil365 works
Vigil365 is a self-hosted Microsoft 365 security monitoring dashboard. Administrators configure Graph access, then scheduled collection brings tenant security and activity data into the dashboard; users investigate alerts, posture, trends, recommendations, and reports, and can manage alert policies and notifications. The React client calls the ASP.NET API, which persists operational data in SQL Server. The README documents the product capabilities and collection schedule; source excerpts show API hosting, Graph access, database entities, and selected workers. Many endpoint and worker details were not sampled, so uncertain implementation links are omitted or dashed.
Main entry points: AppDbContext.cs Database context · Program.cs API host · api.ts API client · main.tsx Dashboard shell
Components 22
Dashboard client
- Dashboard shell
src/m365-security-dashboard-client/src/main.tsx - API client
src/m365-security-dashboard-client/src/services/api.ts - Monitoring pages
src/m365-security-dashboard-client/src/pages - Alert center
src/m365-security-dashboard-client/src/pages/AlertCenterPage.tsx
Tenant collection
- Graph API client
src/M365SecurityDashboard.Api/Services/GraphApiClient.cs - Graph collector
src/M365SecurityDashboard.Api/Services/GraphCollector.cs - Scheduled collection
src/M365SecurityDashboard.Api/Services/GraphCollectionWorker.cs
Alerting and insight
- Alert evaluator
src/M365SecurityDashboard.Api/Services/AlertEvaluator.cs - Recommendations
src/M365SecurityDashboard.Api/Services/RecommendationsEngine.cs - Posture analyzers
src/M365SecurityDashboard.Api/Services - Metrics and trends
src/M365SecurityDashboard.Api/Services/MetricsService.cs
API and operations
- API host
src/M365SecurityDashboard.Api/Program.cs - API endpoints
src/M365SecurityDashboard.Api/Endpoints - Sign-in and RBAC
src/M365SecurityDashboard.Api/Services/RoleClaimsTransformation.cs - Audit trail
src/M365SecurityDashboard.Api/Services/AuditLogger.cs - Notifications
src/M365SecurityDashboard.Api/Services/NotificationSender.cs - Reports and digests
src/M365SecurityDashboard.Api/Services/DigestBuilder.cs - Data retention
src/M365SecurityDashboard.Api/Services/DataRetentionWorker.cs
Persistence
- Database context
src/M365SecurityDashboard.Api/Data/AppDbContext.cs
Other components
- Admin / analyst
- Microsoft Graph
- SQL Server
Connections 23
- Admin / analyst → Dashboard shell: uses
README.md - Dashboard shell → Monitoring pages: navigates
src/m365-security-dashboard-client/src/main.tsx - Dashboard shell → API client: calls
src/m365-security-dashboard-client/src/main.tsx - Monitoring pages → API client: loads data
- Alert center → API client: manages alerts
- API client → API endpoints: requests
- API host → API endpoints: hosts
src/M365SecurityDashboard.Api/Endpoints/AuthHealthEndpoints.cs - API host → Sign-in and RBAC: configures
src/M365SecurityDashboard.Api/Program.cs - API host → Database context: configures
src/M365SecurityDashboard.Api/Program.cs - API host → Scheduled collection: registers
src/M365SecurityDashboard.Api/Program.cs - Scheduled collection → Graph collector: schedules
- Graph collector → Graph API client: requests data
- Graph API client → Microsoft Graph: queries
src/M365SecurityDashboard.Api/Services/GraphApiClient.cs - Scheduled collection → Database context: stores results
- Alert evaluator → Database context: evaluates records
- Recommendations → Database context: reads alerts
src/M365SecurityDashboard.Api/Services/RecommendationsEngine.cs - Posture analyzers → Database context: reads tenant data
src/M365SecurityDashboard.Api/Services/RecommendationsEngine.cs - Metrics and trends → Database context: records trends
src/M365SecurityDashboard.Api/Services/MetricsService.cs - Notifications → Database context: records delivery
- Reports and digests → Notifications: sends digests
- Data retention → Database context: prunes records
src/M365SecurityDashboard.Api/Services/DataRetentionWorker.cs - Audit trail → Database context: writes audit
src/M365SecurityDashboard.Api/Services/AuditLogger.cs - Database context → SQL Server: persists data
src/M365SecurityDashboard.Api/Data/AppDbContext.cs