Auditex: why we built it, and what we learned about AI along the way

The problem

Most small and mid-sized organisations run on Microsoft 365 or Google Workspace. The settings that decide whether that tenant is safe (who must use multi-factor sign-in, who can share files outside the company, how mail is protected against spoofing, who holds admin rights) are spread across many admin screens. They change quietly over time, and very few owners can say with confidence how their tenant measures up against a recognised security baseline.

The usual answers are expensive. You can hire a consultant for a manual review, which is slow and hard to repeat. Or you can send your tenant's data to a hosted monitoring service, which many owners are rightly uneasy about.

What Auditex does

Auditex is a tool that an auditor or administrator runs on their own computer. It signs in once, as a reader app with a certificate, makes read requests only, collects the tenant's settings, and produces:

  • a report of what is right and what is wrong, ordered by severity, with the evidence behind each finding;
  • answers against the US government's CISA SCuBA security baselines (102 checks across Entra ID, Exchange Online, Teams, SharePoint, Defender, Power BI and Power Platform, and, since 2.1.0, 138 Google Workspace checks across Gmail, Drive, Meet, Chat, Calendar, Groups and the other Workspace services), plus mappings to CIS, Microsoft Secure Score, Zero Trust and the UK NCSC Cyber Essentials requirements (the answers and mappings are our own reading of those published documents, not approved by their owners);
  • exports, comparisons between runs to show drift, and a checksum-sealed pack you can hand to a customer.

What it does not do

  • It does not change anything in your tenant. The audit only makes read requests, every request is listed in the run's records, and a run that recorded a write would fail its own check. Two of the permissions Microsoft requires for the reader app allow more than reading; the setup guide says which and why.
  • It does not read anyone's email or files. It reads settings, not content. Commands that could return message or file content are refused while it runs.
  • It sends nothing to us. Evidence stays on the machine that ran the audit. There is no telemetry. Two things do go elsewhere: the tenant's domain names, to a DNS-over-HTTPS resolver (Cloudflare's public DNS service unless you name another) to check mail records, and, if you use the optional plain-words answer, a one-time model download from Hugging Face.
  • Names are masked in the outputs made for sharing. They replace personal names with a private per-run code. Masking is a safeguard, not full anonymisation, so look through a pack before you send it.
  • It does not certify anything. A report is evidence for a person to review. It is not a certificate, an audit opinion or legal advice, and it does not show that a tenant is secure or meets Cyber Essentials, a CIS Benchmark or any other standard.

Why we built it

We wanted an audit that a small business could afford to run every month, that a cautious IT manager would allow, and that gives the same answer every time for the same evidence. That last point shaped everything else.

The AI experiment, in plain words

In autumn 2026 we tried teaching an AI model to decide the SCuBA answers itself. It did quite well, but "quite well" is not good enough for a security verdict. Its scores changed from one training run to the next, and some of its success came from test questions that closely resembled its training material. So we replaced it with fixed rules. Since November 2026 written rules, not a model, decide every verdict. The same evidence always gives the same answer, and anyone can check why.

We then asked a narrower question: could AI help explain those verdicts in plainer, fuller words? We ran a serious series of experiments on the Isambard-AI and JUPITER supercomputers:

  1. Training a model to write fuller explanations. We trained several open models and had an independent AI judge compare their explanations with our existing fixed-text explanations. The model text did not reliably beat the fixed text. Most of the time the judge called it a draw. Four attempts with better training examples also fell short.
  2. Training a model to answer questions about an audit. This attempt also fell short, for the same reason: the fixed answers were already good.
  3. A small "Auditex model" for ordinary laptops. We built thousands of test tenants, attacked the system with deliberately hostile data, and trained compact models on checked answers in two separate rounds. Neither round produced a compact model that beat the ready-made open model we already use, so we shipped none of them.

What did ship is more modest, and safer. After an audit, Auditex can optionally run a ready-made open model on your own laptop to put the results in plain words: what is wrong first, then what is right. The model only chooses from sentences we have written and checked in advance. It cannot change a verdict, cannot invent a value and cannot hide a failing check. If its choice fails our checks, you see the fixed text instead. It passed every one of our acceptance tests, including tests with tenant data written to try to trick it.

What this means for you

  • The verdicts follow from the evidence. No model decides whether a check is met, and the report lists what the run could not read.
  • Your data stays with you. The audit makes read requests only. It does not read mail or files, and the optional plain-words answer runs offline on your own machine. Its only network call is a one-time download of the model from Hugging Face, under that model's own licence.
  • The plain-words summary is a convenience, not a judge. It helps a non-specialist read the report, and every failing check is always shown.
  • We report results honestly. When our own model did not beat the ready-made one, we did not ship it. We publish what we tried and why it did not make the cut.

Auditex is open source under the Apache License 2.0 at github.com/magrathean-uk/auditex, free to use and provided as it is, without warranty. More at https://magrathean.uk/solutions/auditex/.

We acknowledge the use of resources provided by the Isambard-AI National AI Research Resource (AIRR) (McIntosh-Smith, Alam and Woods, 2024, arXiv:2410.11199), operated by the University of Bristol and funded by the UK Government's Department for Science, Innovation and Technology through UK Research and Innovation and the Science and Technology Facilities Council [ST/AIRR/I-A-I/1023]. Neither they, nor Microsoft, Google, CISA, the NCSC, IASME, the Center for Internet Security or any model publisher named here, has reviewed or endorsed Auditex. Their names belong to their owners.