Open source · Self-hosted Microsoft 365 reporting & automation

The all-seeing eye for your Microsoft 365 tenant.

Argus runs scheduled Microsoft Graph reports (sign-in failures, inactive guests, expiring app secrets, license waste and more) and emails your team when your rules match. When a report finds a problem, Argus automations can fix it: Audit first, Enforce when you say so, roll back if needed. One Docker container on your own infrastructure.

New: automations with Audit, Enforce and rollback, sign-in and HTTPS
  • MIT licensed
  • 26 reports
  • 19 automations
  • One container
  • amd64 + arm64 images
Argus catalog: 45 items, 26 read-only reports and 19 automations, shown as report packs and automation packs
One catalog: 26 read-only reports and 19 automations, grouped into solution packs.

Microsoft 365 has the data. Getting it to you is the work.

Every answer starts with a query.

Who keeps failing sign-in? Which guests went quiet? Which app secret expires next week? Each one is a Graph call, pagination and a script someone has to maintain.

Reports arrive as noise or not at all.

A weekly dump buries the one row that matters, and a check nobody scheduled never runs.

Fixing it is a one-off script with no undo.

Disabling stale guests or reclaiming licences usually means a hand-run script: no dry run, no change limit, and no record of what it changed.

How reports work

Five stages, every run

Argus follows a Jenkins-style model: Catalog → Jobs → Executions → Logs. Each scheduled run goes through the same pipeline.

  1. 1

    Fetch

    Pull data from Microsoft Graph with pagination, $select and retry with back-off.

  2. 2

    Analyze

    Compare against previous runs; flag counts more than 2σ from the baseline.

  3. 3

    Decide

    Apply your rule: always, count above a threshold, count changed, anomaly, new rows, or a metric moving by a set amount. Maintenance windows mute runs.

  4. 4

    Render

    Fill an editable HTML or plain-text email template.

  5. 5

    Deliver

    Send through Microsoft Graph from your configured mailbox, or call a webhook when a run is suppressed. Every run and log line is stored.

Automations New

Find it, then fix it, with guardrails

19 built-in automations act on what the reports find. They run through a separate, write-capable Entra app, so the reporting app never changes your tenant.

  1. 1

    Audit

    Every new policy starts here. A read-only what-if: the engine rejects any write, and the run lists exactly what would change.

  2. 2

    Enforce

    Only after a finished audit of the current settings and an explicit confirmation. Max changes per run halts a run that would change too much.

  3. 3

    Roll back

    Each change stores its before and after state. Reversible changes undo in one click; the few that can't (Intune retire, expired-secret removal) are marked.

Argus catalog filtered to automations: cards with risk level, schedule, Starts in Audit and Makes changes markers
Each automation shows its risk, schedule and the report it builds on.
Automation detail: Break-Glass Conditional Access Exclusion Guardrail with its required write permissions and parameters
Exact Graph permissions per automation.

Solution packs 18 of the 19 automations; Ownerless M365 Group Custodian runs on its own

4 automations

Zero-Trust & Lockout Guardrails

Break-glass Conditional Access exclusions, mandatory CA baseline drift, Tier-0 roles and tenant authorization hardening.

4 automations

Active Threat Containment

Contain high-risk users and service principals, remove external mailbox forwarding and revoke risky OAuth consents.

4 automations

Lifecycle Hygiene & FinOps Reclaim

Reclaim licences from disabled and dormant users, clean up stale B2B guests and expired app secrets.

6 automations

User & Device Lifecycle

Joiner/mover group sync, leaver offboarding, inactive account disable and cleanup, stale and end-of-support devices.

  • Exclusion lists on every automation that touches users. Put break-glass and service accounts there.
  • AD-synced users and dynamic or on-prem groups are skipped, because they can't be changed from the cloud.
  • Changing an enforcing policy's settings sends it back to Audit. Enforce is recorded with the signed-in user.
  • One run per policy at a time, with the same email templates, audit trail and restart handling as reports.

Automations guide →

Features

Built for the admin who owns the tenant

One catalog

26 read-only reports (identity, security, infrastructure, usage, plus a custom Graph query) next to the automations, with solution packs and maturity labels.

Send when the rule matches

Thresholds, changes, anomalies, new items and metric deltas decide whether a run emails anyone. Maintenance windows mute runs.

Row-level history and diff

Each run snapshots its rows, so "new items" means new identities, not just a bigger count. Per-job trend charts included.

No silent failures

Jobs that would email no one are saved paused. Interrupted runs are never re-sent. Failure alerts go out once per streak, not once per run.

Template studio

One shared template for every report: visual composer or highlighted HTML, live preview as any report, version history.

Guided Microsoft 365 setup

Device Code sign-in registers the Entra ID app with a local RSA-2048 certificate. Recipients can be Entra ID security groups or local lists.

Argus template studio: HTML editor with syntax highlighting and a live email preview of the Daily Sign-in Anomalies report
Template studio with live preview against fixture data.

Report catalog

What Argus can tell you

The catalog ships 25 predefined reports and a configurable Graph query. A sample:

ReportWhat it answersNeeds
Identity
Daily Sign-in AnomaliesFailed sign-ins grouped by user and app, with AADSTS codes decoded to plain EnglishEntra ID P1
Inactive Guest UsersExternal guests with no interactive sign-in for 90+ daysEntra ID P1
License ReclamationLicensed accounts that look dormant, never used, or disabled but still licensedEntra ID P1
MFA Registration StatusEnabled users who are not MFA-capableEntra ID P1
Security
Conditional Access FailuresSign-ins blocked by Conditional Access in the last 7 daysEntra ID P1
User Risk DetectionsIdentity Protection detections joined with the user's current risk stateEntra ID P2
Secure Score TrendSeven daily snapshots, trend, peer average and lowest-scoring controlsMicrosoft 365
Infrastructure
App Secrets / Certificates ExpiryApp registration credentials expiring soonAny Entra ID
License UtilizationBought vs used vs available seats per SKU, with a recommendationAny Microsoft 365
SharePoint Site UsageInactive SharePoint sites with template and last activityMicrosoft 365 usage reports

Licences shown are Microsoft's requirements for the underlying Graph data, not Argus licences. Two alert reports (Security Alerts Digest, DLP Alerts) are still being verified, and two reports use Microsoft Graph beta endpoints. See the full catalog →

Security

Your tenant, your host, your keys

  • Sign-in on every page.

    Every page and API route needs a signed-in user, except the sign-in page and a status-only health check. The admin account is created on first visit (open for 30 minutes after start); passwords are argon2id hashes, five failures lock a username for 15 minutes, and sessions last 12 hours.

  • HTTPS in the container.

    The image serves HTTPS on port 8100 with a self-signed certificate it generates and renews, or your own certificate. The app itself listens only on loopback inside the container.

  • Read-only reports, separate write app.

    Reports use app-only Graph access with a local X.509 certificate (RS256 client assertion) or a client secret. Automations use their own Entra app, so write rights stay out of the reporting path.

  • Encrypted vault, one secret.

    Credentials are stored AES-256-GCM encrypted in SQLite. ARGUS_MASTER_KEY is the only required variable; the installer writes it to .env, so back it up and restrict access.

  • Hardened container, known destinations.

    Non-root with no-new-privileges, telemetry off. Outbound traffic goes to Entra ID and Graph, Exchange Online for automatic mailbox setup, and webhooks you configure.

Requirements

What you need

  • A Microsoft 365 tenant and an admin who can consent to an Entra ID app.
  • Docker (or Bun 1.3+ to run from source).
  • An Exchange Online mailbox to send from.
  • For automations: a second, write-capable Entra app. Quick Setup can create it.
  • Entra ID P1 for sign-in-based reports, P2 for risk reports, Intune for device compliance. Usage and license reports work on standard Microsoft 365 plans.

Quick start

Running in about a minute

Clone and install with Docker
git clone https://github.com/RohiRIK/argus.git
cd argus
./install.sh docker

Generates ARGUS_MASTER_KEY into .env, builds the image and serves on https://localhost:8100.

Or run the published image
# generate a key once and keep it safe
export ARGUS_MASTER_KEY=$(openssl rand -hex 32)
docker run -d --name argus -p 8100:8100 \
  -e ARGUS_MASTER_KEY \
  -v argus-data:/app/data \
  ghcr.io/rohirik/argus:latest
Or let your AI coding agent do it
This repo is "Argus", a self-hosted Microsoft 365 reporting app (Bun + Next.js 16 + SQLite, single container).
Read README.md, then run `./install.sh docker`.
The ONLY required secret is ARGUS_MASTER_KEY; install.sh generates it into .env.
When it's up, open https://localhost:8100, create the admin account, and confirm GET /api/health is healthy.

Open https://localhost:8100 (accept the self-signed certificate), create the admin account, then go to Settings → Integrations → Quick Setup to connect your tenant. Full install guide →

FAQ

Questions admins ask

Is Argus a SaaS?

No. You run it yourself. The UI, scheduler, SQLite database and worker live in one container on your infrastructure, behind its own sign-in.

What does it cost?

Nothing. Argus is MIT licensed. Some reports need Microsoft licences (Entra ID P1/P2, Intune) for the underlying data.

Can Argus change my tenant?

Reports never do. Changes come only from automations you set up, through a separate write-capable app. Every policy starts in Audit, Enforce needs an explicit confirmation, and reversible changes can be rolled back.

What permissions does it ask for?

The reporting app asks for 15 read permissions plus Mail.Send; Group.ReadWrite.All is opt-in. The automation app asks only for what your chosen automations need. Both lists are in the Security section.

Does it email on every run?

Only if you want it to. Each job has a rule (always, threshold, change, anomaly, new items or metric delta), and maintenance windows mute runs.

Where is my data stored?

In a SQLite database in the container's data volume. Integration credentials are encrypted with AES-256-GCM; report data stays on your host apart from the emails and webhooks you configure.

Can I monitor several tenants?

One Argus instance connects to one tenant. Run one instance per tenant.

Can I write my own reports or automations?

Yes. Use the Custom Graph Query report, or scaffold a plugin with bun run plugin:new <id> --kind=automation. Reports, automations and templates share one plugin contract that CI validates.

Put an eye on your tenant.

Free, open source and running on your own hardware in minutes.