Finding Shadow AI in the Cloud: A Free PowerShell Report from Defender for Cloud Apps Discovery

Studio photograph of translucent glass spheres on a dark reflective surface, some with small amber glowing orbs inside

An inventory of what is installed on a laptop only tells you half the story. Plenty of AI tools never touch the disk. They live in a browser tab, and the only trace is the network traffic. If your clients already feed firewall or proxy logs, or Defender for Endpoint signals, into Microsoft Defender for Cloud Apps, then that traffic has already been catalogued as discovered cloud apps. The question is how to get it out in a form you can put in front of a business owner. That is what ai-shadow-report.ps1 does.

This post covers what the script reports, what it needs, how to run it, how to read the results and where I would be careful. It is the cloud-side companion to the endpoint script I covered in How to Find the AI Apps Hiding on Your Windows Devices with a Free PowerShell Script. Everything about the script comes from the code and the Shadow AI and Cloud Discovery Report documentation, both of which I re-read on 1 December 2026. My own suggestions are labelled as such.

Endpoint inventory versus cloud discovery

The two scripts answer different questions, and I would run both:

Endpoint script (ai-apps-report.ps1)Cloud discovery script (ai-shadow-report.ps1)
Where it looksThe Windows device itself: apps, processes, shortcuts, browser and editor extensionsCloud app discovery data in Microsoft Defender for Cloud Apps, read through Microsoft Graph
What it can seeWhat is installed or running locallyCloud apps your network or devices have talked to, including ones that only live in a browser
What it cannot seeWebsites visited with no local traceAnything that is not in your discovery streams
NeedsPowerShell on the device, no tenant accessA tenant with populated Cloud Discovery data, and Graph consent

One tells you what is on the machine. The other tells you what the machines and the network are reaching. Neither tells you what was typed into them.

What the script does

It is a read-only Microsoft Graph report. According to the script and the documentation, it:

  • loads the built-in AI detection rules, plus an optional catalog file;
  • signs in to Microsoft Graph with the single delegated scope CloudApp-Discovery.Read.All;
  • lists the Cloud Discovery streams you can access, or one you name;
  • pulls aggregated discovered-app data for a 7, 30 or 90 day period;
  • classifies each app as an AI product by name, domain, Defender for Cloud Apps category and keyword rules;
  • optionally looks up which users are associated with each app;
  • writes an app CSV, a user CSV and a self-contained HTML report, and opens the report in your browser unless you tell it not to.

It does not sanction, unsanction, block or change anything. The documentation says so explicitly, and the code only issues read requests to Graph.

Prerequisites

  • PowerShell. Windows PowerShell 5.1 or PowerShell 7. The script has a #requires -Version 5.1 line.
  • The Microsoft Graph authentication module. The script needs Connect-MgGraph, Invoke-MgGraphRequest, Get-MgContext and Disconnect-MgGraph. The documentation installs Microsoft.Graph.Authentication for that.
  • Admin consent. An administrator must grant consent to CloudApp-Discovery.Read.All, and the account you sign in with needs access to the Cloud Discovery data and streams.
  • Discovery data. At least one populated Cloud Discovery stream must exist. The script does not create or import discovery data. If you have not set up Cloud Discovery in Defender for Cloud Apps, there is nothing to report on.

That last point matters most for small business clients. Microsoft’s Defender for Cloud Apps getting started guide describes two main ways to feed discovery data. One is integrating with Microsoft Defender for Endpoint so Windows 10 and 11 devices are monitored, and the other is uploading firewall or proxy logs, either as a one-off snapshot report or through automatic log upload. I have not checked licensing for any of this. Confirm what your clients are entitled to before you promise them a report.

One more thing. The script uses the Microsoft Graph beta Cloud Discovery API, and its own header says the beta API can change and is not supported for production use. Microsoft documents the same endpoints on its discovered apps Graph API page. Treat the output as a point-in-time view and expect that field names may change.

Getting it and running it

This download snippet is my suggestion, built from the repository paths in the links above:

$dest = 'C:\Tools\ShadowAI'
New-Item -ItemType Directory -Path $dest -Force | Out-Null
$base = 'https://raw.githubusercontent.com/directorcia/Office365/master'
Invoke-WebRequest "$base/ai-shadow-report.ps1" -OutFile "$dest\ai-shadow-report.ps1"
Invoke-WebRequest "$base/ai-apps-catalog.json" -OutFile "$dest\ai-apps-catalog.json"
Unblock-File "$dest\ai-shadow-report.ps1"

Install-Module Microsoft.Graph.Authentication -Scope CurrentUser

Read the script before you run it. Then, from that folder:

.\ai-shadow-report.ps1

The default run uses a 30 day lookback and all the discovery streams you can access. It exports every discovered app, queries user associations where it can, uses ai-apps-catalog.json beside the script if it is there, and writes the reports into the script’s folder. It then opens the HTML report. Because the sign-in is interactive, a browser prompt will appear the first time. If your account has not been consented, ask a Global Administrator to approve the permission once.

Parameters

ParameterDefaultWhat it does
-Days30Lookback period. Only 7, 30 or 90 are accepted.
-StreamIdAll accessible streamsLimit the run to one discovery stream. An unknown or inaccessible ID stops the run.
-TenantIdCurrent context, or interactive selectionTenant ID or domain to sign in to.
-EnvironmentGlobalGraph cloud: Global, USGov or USGovDoD.
-OutputDirectoryThe script’s folderWhere the reports go. The folder must already exist.
-CatalogPathai-apps-catalog.json beside the scriptLocal AI catalog file.
-UpdateCatalogOffDownload the catalog first (HTTPS only), cache it if the path is writable, and fall back if that fails.
-CatalogUriThe catalog in the same GitHub repositoryHTTPS address used by -UpdateCatalog.
-AiOnlyOffExport only apps classified as Known or Possible AI, and skip user lookups for the rest.
-AiUsersOnlyOffExport all apps, but look up users only for AI-classified apps. Faster on large tenants.
-SkipUsersOffSkip user lookups. The user CSV has a header row only.
-NoLaunchOffSave the HTML report without opening it.
-PassThruOffReturn a summary object, including report paths, counts and warnings.
-WhatIf / -ConfirmThe script supports both. -WhatIf prevents the Graph connection and the export.

Examples

# AI-only app export over 30 days
.\ai-shadow-report.ps1 -Days 30 -AiOnly

# Refresh the AI catalog first
.\ai-shadow-report.ps1 -UpdateCatalog

# Look up users only for AI-classified apps
.\ai-shadow-report.ps1 -AiUsersOnly

# One stream, 90 days, no browser (the ID below is a placeholder)
.\ai-shadow-report.ps1 -Days 90 -StreamId "00000000-0000-0000-0000-000000000000" -NoLaunch

# Choose the output folder and capture a summary
$result = .\ai-shadow-report.ps1 -OutputDirectory "C:\Reports\ShadowAI" -NoLaunch -PassThru
[PSCustomObject]@{
    KnownAI    = $result.KnownAiAppCount
    PossibleAI = $result.PossibleAiAppCount
    Unsanctioned = $result.UnsanctionedAiCount
    Warnings   = $result.Warnings.Count
    Report     = $result.HtmlReportPath
}

# Preview without connecting
.\ai-shadow-report.ps1 -WhatIf

Create the output folder first. The script validates it and will not make one for you.

How it decides an app is AI

Each discovered app gets one of these classifications, based on the app name, its domains and its Defender for Cloud Apps category:

  • Known AI-capable product. The name or a domain matches a catalog product rule or a known AI domain, or the Defender category is one of the AI categories the script recognises: generativeAi, aiModelProvider, mcpServer and clientAiApp. The current built-in catalog (version 2026.11.30-builtin) has 74 product rules, plus a built-in list of known AI domains.
  • Possible AI product. No known match, but the catalog’s keyword pattern matched the app name or a domain. Terms such as generative AI and large language model are examples.
  • No AI match. Nothing matched.

The same catalog file is shared with the endpoint script. A custom catalog is a JSON file with a products array (each entry has a product and a pattern) and an optional keywordPattern. A custom entry replaces a built-in product of the same name, and new products are added. Both documents are clear that a match is evidence for investigation, not proof that a person used an AI feature or that anyone approved the app.

What you get

The app report

The app CSV and the HTML dashboard carry the same fields. The ones I look at first are:

  • AppName, Domains and Category, which is what the app is and where it lives.
  • AiConfidence, AiProducts and AiEvidence, which is the classification, the product it was matched to and the reason.
  • SanctionStatus and Tags, taken from the tags in Defender for Cloud Apps, as Sanctioned, Unsanctioned, Monitored or Not tagged.
  • RiskScore, the Defender risk score when it is available.
  • UserCount, IpAddressCount, TransactionCount and the upload and download bytes, which show how much the app is used.
  • StreamName, LogDataProvider and LastDataReceivedDateTime, which tell you which source the data came from and how fresh it is.

The user report

Unless you skip it, the script asks Graph which users are associated with each eligible app. It skips an app if its user count is zero, or its stream does not expose user names. The user CSV lists the app, its AI classification and sanction status, the risk score and the user identifier that Graph returned. The HTML report shows at most 500 user associations. The CSV is the complete export.

The HTML dashboard

The dashboard is a single offline file. It has summary cards (including exported apps, known AI, possible AI and unsanctioned AI), search and filters for confidence, sanction status and stream, sortable tables, CSV and JSON downloads of the visible rows, light and dark themes and print to PDF. It also lists stream coverage and any operational warnings, so read those before you trust the numbers.

Files are named with a millisecond timestamp, for example shadow-it-apps-yyyyMMdd-HHmmss-fff.csv, and the matching shadow-it-users and shadow-it-report files. The script stages files under temporary names and only publishes them after all three are generated. It will not overwrite an existing report. CSV values that start with a formula character are prefixed with an apostrophe, so opening them in a spreadsheet is safer.

Reading the results

  • Start with unsanctioned AI. Apps classified as AI and tagged Unsanctioned in Defender for Cloud Apps are the obvious first conversation. The script reports that count on the console and in the dashboard.
  • Then look at Not tagged. An AI app that nobody has tagged yet is exactly the shadow part. It tells you where your governance has not caught up.
  • Treat Possible matches as leads. Read the evidence column before you decide anything.
  • Never add up traffic across streams. Streams can overlap, so the same app may appear in more than one. The script and the documentation both warn about this.
  • Never divide app totals across users. The API provides app-level traffic only, not per-user traffic, so the numbers cannot tell you how much any one person sent.
  • Blank transfer fields are normal. Some sources do not provide volume information.

Running it regularly

The documentation does not describe scheduled or unattended use. The script signs in interactively with the delegated scope, and I could not find an app-only or certificate sign-in option in it. Everything in this section is my own suggestion and I have not tested it:

  • Run it monthly by hand, or as part of a client review, with -NoLaunch -PassThru and a dated output folder. Keep the reports so you can compare one month with the next.
  • Use -Days 30 for a monthly look and -Days 90 for a quarterly one, and keep the same stream selection each time so the numbers are comparable.
  • Compare the lists of AI apps month to month. New names and rising user counts are what matter. The tool does not do that comparison for you.
  • If you want a fully unattended job, you would need a sign-in method the script does not currently offer, so I would not try that without checking the code and the Graph permissions model first.

Privacy, limits and caveats

  • Reports are sensitive. They can contain tenant IDs, app names, domains, user identifiers, IP usage counts and traffic data. Store and share them in line with your privacy and retention requirements, and take particular care with the user CSV.
  • It only sees what discovery sees. The data comes from the selected streams and period. How complete that is depends on how discovery is set up for each client.
  • Classification is heuristic. Expect false positives and false negatives.
  • The API is beta. Field names and behaviour can change.
  • Your view depends on your role. A signed-in user sees only the data their tenant and Defender roles permit.
  • No enforcement. Sanctioning, blocking and policy all happen elsewhere, in Defender for Cloud Apps and your other controls.
  • Air-gapped environments. Skip -UpdateCatalog. The built-in catalog and a local catalog file still work.

How I would use it with clients

This is my view, not part of the script. I would run the endpoint inventory and the cloud discovery report together, and take both to the client as one story: here is what is installed, and here is what your network is actually reaching. The overlap is where the real shadow AI sits, and the gaps tell you where each tool is blind. From there the conversation is about policy. Which AI tools are approved, which are not, and who owns the decision. The reports give you the evidence. They do not give you the answer.

The takeaway

You do not need a new platform to start seeing shadow AI. If a client already has Defender for Cloud Apps discovery running, the data is sitting there, and one read-only script turns it into a report a business owner can read. If they do not, setting up discovery is the real first step. Either way, start with a pilot tenant, read the warnings and treat the first report as a baseline, not a verdict.

Sources (checked 1 December 2026)

Running CISA ScubaGear with Grok Bot: Setup, Prompts and a Weekly Routine

Underwater photograph of a kelp forest with shafts of sunlight and a school of small silver fish

If you want to measure a Microsoft 365 tenant against a published, government-grade baseline, ScubaGear is the tool. It is free, it comes from CISA, and it produces a report you can act on. It also has one catch that surprises people with an agent in the mix: it only runs on Windows. This post covers how I would deploy and run it with Grok Bot, including a weekly routine. It is a companion to my Maester v3 post.

I checked the official sources on 30 November 2026. The current release is ScubaGear 2.0.0, published on 22 October 2026 on both the GitHub releases page and the PowerShell Gallery.

Why ScubaGear

CISA’s Secure Cloud Business Applications (SCuBA) project publishes secure configuration baselines for Microsoft 365 and Google Workspace. ScubaGear checks a tenant against the Microsoft 365 baselines. CISA says organisations in every sector can use them, not only federal agencies; see the CISA SCuBA page. Under the hood, ScubaGear queries Microsoft 365 APIs, compares the settings with Open Policy Agent (OPA) policies, and writes HTML, JSON and CSV results.

For an MSP, that gives you a repeatable baseline assessment to run for a client, and a clear list of what to fix.

Where it runs, and how Grok Bot fits

Here is the catch. ScubaGear runs on Windows PowerShell 5.1 and Windows only. The ScubaGear dependencies page says some of the Microsoft libraries it uses are tied to PowerShell 5, so it will only run on Windows. The module manifest in the 2.0.0 package I downloaded lists PowerShellVersion 5.1 and the Desktop edition only. That means it does not run on PowerShell 7, and it will not run on Grok Bot’s own Linux computer.

The realistic pattern looks like this:

  • A Windows computer does the assessing. Grok Bot can run commands on a Windows computer you have registered with it. Each of those actions needs your approval in the app. That is fine for setup and for supervised runs, but it is not unattended.
  • Windows Task Scheduler does the unattended run. A scheduled task on that computer runs ScubaGear weekly with a certificate and writes the results into a OneDrive or SharePoint-synced folder. CISA does not document Task Scheduler specifically. This is my own reasonable pattern, built on the “scheduled jobs” non-interactive mode the docs describe.
  • A Grok Bot routine does the thinking. Routines are saved prompts that run on a cron schedule in local time. The routine reads the latest results from OneDrive or SharePoint, compares them with the previous run, and posts a summary to Teams or email through connectors.

If you want a fully hosted option instead, CISA’s own automation is ScubaConnect. Its GearConnect component runs ScubaGear on a schedule in Azure, deployed with Terraform, and keeps configs and results in Azure storage. It is a bigger job than a scheduled task, but it is the official route for multiple tenants.

Prerequisites and the service principal

For interactive runs you sign in as a person. For scheduled runs, ScubaGear supports one method only: a service principal that authenticates with a certificate thumbprint. The certificate must be in the Cert:\CurrentUser\My store of the account running the task. The non-interactive permissions page sets out what each product needs:

Product (ProductNames value)Interactive roleService principal needs
Entra ID (aad)Global ReaderGraph application permissions: Directory.Read.All, Policy.Read.All, PrivilegedAccess.Read.AzureADGroup, PrivilegedEligibilitySchedule.Read.AzureADGroup, RoleManagement.Read.Directory, RoleManagementPolicy.Read.AzureADGroup, User.Read.All
Security Suite (securitysuite)Global Reader or Exchange AdministratorExchange.ManageAsApp, plus the Global Reader role
Exchange Online (exo)Global Reader or Exchange AdministratorExchange.ManageAsApp, plus the Global Reader role
Teams (teams)Global Reader or Teams AdministratorGlobal Reader role
SharePoint and OneDrive (sharepoint)Global Reader or SharePoint AdministratorSites.FullControl.All
Power Platform (powerplatform)Power Platform Administrator with a Power Apps for Office 365 licenceOne-time registration of the app with New-PowerAppManagementApp
Power BI (powerbi)Fabric Administrator or Global Administrator, with a Power BI or Fabric licenceA Power BI admin tenant setting, applied through a security group, and no API permission

Be honest with yourself about the last three rows. The docs say the SharePoint and Power Platform permissions include write privileges, because the underlying APIs require them, and that ScubaGear itself never uses them for its assessments. I would start with aad, securitysuite, exo and teams, which only need read access, and add the others deliberately.

ScubaGear also includes helpers for the app: New-ScubaGearServicePrincipal creates the app, permissions and certificate, Get-ScubaGearAppPermission and Set-ScubaGearAppPermission audit and fix permissions, and Get-ScubaGearAppCert, New-ScubaGearAppCert and Remove-ScubaGearAppCert handle certificate rotation. The service principal workflows guide covers them. An admin should run these, not the bot. The certificate defaults to six months, so plan for rotation.

Setup, with prompts to give Grok Bot

1. Install ScubaGear

Use my registered Windows computer. Check that Windows PowerShell 5.1 is available, not PowerShell 7. Then run Install-Module -Name ScubaGear and tell me the output of Invoke-SCuBA -Version. I will approve each action.

2. Install the dependencies

Run Install-ScubaDependencies on the Windows computer. Tell me what it installed, and confirm that OPA and the MSAL files exist in the .scubagear folder in my home directory.

Initialize-SCuBA still works as an alias for Install-ScubaDependencies. The dependencies are the powershell-yaml module, OPA and the Microsoft Authentication Library assemblies.

3. Generate the YAML configuration

In C:\Scuba, run New-SCuBAConfig -Organization contoso.onmicrosoft.com -ProductNames “aad,securitysuite,exo,teams”. Read the generated SampleConfig.yaml and list what I need to fill in. Don’t guess any values. Ask me for the object IDs of our emergency access accounts.

ScubaGear works best with a config file. Without one it assumes defaults that may not reflect your policies, as the README explains. The configuration guide covers every option, and Start-SCuBAConfigApp opens a graphical editor on Windows, but that is one for you at the keyboard.

4. First interactive run

Tell me when you are ready, so I can be at the Windows computer for the browser sign-in. Then run Invoke-SCuBA -ProductNames aad,securitysuite,exo,teams -ConfigFilePath C:\Scuba\SampleConfig.yaml -OutPath C:\Scuba\Results -SilenceBODWarnings. Afterwards, run Get-ScubaGearContext and confirm which tenant was used.

5. Move to the certificate

Walk me through creating the ScubaGear service principal with New-ScubaGearServicePrincipal -M365Environment commercial -ProductNames ‘aad’,’securitysuite’,’exo’,’teams’ -ServicePrincipalName ‘ScubaGear-Production’. Run it with -WhatIf first and explain the output. I will do the admin sign-in. Then run Get-ScubaGearAppPermission to verify, and test one run with -AppID, -CertificateThumbprint and -Organization.

Invoke-SCuBA -ProductNames aad,securitysuite,exo,teams `
  -AppID <application-client-id> `
  -CertificateThumbprint <certificate-thumbprint> `
  -Organization contoso.onmicrosoft.com `
  -OutPath C:\Scuba\Results -Quiet

Notice there is no secret to hand over here. The private key stays in the Windows certificate store, and the app ID, thumbprint and organisation are identifiers. If anything else does need a secret, such as a webhook, ask the bot for a masked secret request and never paste it into chat.

6. Triage the first report

Read ScubaResults.json and ActionPlan.csv from the latest Results folder. List the failing SHALL controls first, grouped by product. For each, give the control ID, what failed, the risk in plain English and the fix. Don’t change anything.

Operating it

  • Explain a failure: “Explain why MS.AAD.1.1v1 failed in our report and what it protects against.”
  • Remediation steps: “Draft step-by-step remediation for the top five failures as a change request for me to review.”
  • Compare runs: “Compare the two most recent ScubaResults files. What newly failed, what was fixed and what is new?” The tool itself has Invoke-SCuBADiff -BeforePath -AfterPath, which works offline and produces DiffResults.json, DiffResults.csv and DiffReport.html.
  • Record a decision: “Add an AnnotatePolicy entry for MS.EXO.3.1v1 with a Comment and a RemediationDate, then show me the diff of the YAML before saving.”
  • Omit or exclude: “Add an OmitPolicy entry with a Rationale and Expiration, or a CapExclusions entry for our emergency access group.” Only record exclusions and omissions that your risk process has approved, because they create blind spots.

Annotations take Comment, RemediationDate and IncorrectResult. Omissions take Rationale and Expiration. Keep the config in version control and have a human approve every change to it.

Running it every week

Step one is the unattended run on the Windows computer. Create a script, C:\Scuba\Run-Scuba.ps1. Put the organisation, app ID and thumbprint in your config file, with Organization, AppID and CertificateThumbprint as the keys, and protect that file:

Import-Module ScubaGear
Invoke-SCuBA -ConfigFilePath C:\Scuba\scuba-config.yaml `
  -OutPath "$env:USERPROFILE\OneDrive\Scuba\Results" -Quiet -SilenceBODWarnings

Then register a weekly task, here Monday at 5am, running as the user whose certificate store holds the certificate:

$action  = New-ScheduledTaskAction -Execute 'powershell.exe' -Argument '-NoProfile -ExecutionPolicy Bypass -File C:\Scuba\Run-Scuba.ps1'
$trigger = New-ScheduledTaskTrigger -Weekly -DaysOfWeek Monday -At 5:00am
Register-ScheduledTask -TaskName 'ScubaGear weekly' -Action $action -Trigger $trigger

The computer needs to be on and the task needs a test run before you trust it. Each run creates a new time-stamped folder under the output path, so history builds up by itself. Step two is the Grok Bot routine, set to run at 7am on Mondays in local time:

Every Monday at 7am Sydney time: look in the OneDrive folder Scuba\Results and find the two newest run folders. If the newest one is older than 24 hours, tell me the scheduled run may have failed and stop. Otherwise read both ScubaResults JSON files and the newest ActionPlan.csv, compare them, and summarise what newly failed, what was fixed and the current counts of passes and failures per product. Post the summary to the Security channel in Teams, or email secops@contoso.com if Teams is unavailable. Don’t change anything anywhere.

This keeps the supervised and unattended parts honest. The Windows task runs without you. The routine reads files and reports, and needs no approval on your computer. Anything that needs the Windows computer, such as checking certificate expiry with Get-ScubaGearAppCert, still asks you to approve it.

Troubleshooting

  • Module will not install or load: check you are in Windows PowerShell 5.1, not PowerShell 7.
  • OPA or MSAL missing: run Install-OPAforSCuBA or Install-MsalForScuBA.
  • Non-interactive sign-in fails: check AppID, CertificateThumbprint and Organization are all supplied, the certificate is in Cert:\CurrentUser\My for the task’s user, and run Get-ScubaGearAppPermission.
  • Wrong tenant: run Get-ScubaGearContext, and Disconnect-SCuBATenant before switching tenants.
  • Power Platform or Power BI errors: these need licences, a one-time registration or a tenant setting. See the product pages in the troubleshooting docs.
  • Old product names: defender is no longer a product name. Use securitysuite, and see the Defender to Security Suite transition guide.

ScubaGear or Maester?

I use both for different reasons. ScubaGear gives you the CISA baselines, with a formal exclusion and annotation model, but it only runs on Windows PowerShell 5.1. Maester runs on PowerShell 7.4 or later, including on Grok Bot’s own computer, so it is simpler to run unattended. They overlap but are not the same set of checks.

Wrap-up

ScubaGear is a strong baseline tool with a Windows requirement that shapes the whole design. Let a Windows computer and a scheduled task do the assessing, and let Grok Bot do the reading, comparing and reporting. Start with four read-only products and a human-approved config, and widen it when you trust the output.

Sources (checked 30 November 2026)

What Australian privacy law allows, and doesn’t, when you monitor a customer’s Microsoft 365 tenant

Documentary photograph of a closed ledger and a padlock on a timber desk, with a closed laptop in the background

If you monitor an Australian customer’s Microsoft 365 tenant, you are handling personal information. Sign-in logs carry names, usernames, locations and IP addresses. Device records in Intune or Entra show hardware and ownership details. Defender and Sentinel alerts can point at a mailbox, a Teams chat or a OneDrive file. Sometimes an investigation means you have to open the content itself.

A lot of MSPs treat that as a purely technical job. It is also a privacy job. The Privacy Act 1988 and the 13 Australian Privacy Principles sit over the work, whether you are reviewing risky sign-ins, triaging an alert, or helping a customer respond to a suspected breach. This post is about how that law actually applies, what you can do, and what you should not do. It is general information, not legal advice. If a job is finely balanced, get advice that fits the facts.

Who is accountable, and who is bound

The customer is usually the organisation that collected the information in the first place: staff, clients, suppliers and the people in the audit logs. If the Privacy Act covers that customer, it is the accountable APP entity. You are its service provider. You still handle the same personal information, and you are bound by the contract. If your own turnover is more than $3 million, or one of the exceptions below applies to you, you may also be an APP entity in your own right.

That split matters when something goes wrong. The customer cannot outsource its privacy obligations and forget about them. You cannot pretend the data is “theirs” and therefore none of your concern.

The small business exemption is still in force

This needs to be said plainly, because a lot of commentary has it wrong.

Most businesses with an annual turnover of $3 million or less are not covered by the Privacy Act. The exemption is in section 6D, and the OAIC’s small business guidance still describes it as current. It has not been repealed.

That does not mean every small MSP, or every small customer, is outside the Act. Regardless of turnover, the OAIC says the Privacy Act covers a business that is:

  • a health service provider
  • trading in personal information
  • a contractor providing services under a Commonwealth contract
  • an operator of a residential tenancy database
  • a credit reporting body
  • a reporting entity under the Anti-Money Laundering and Counter-Terrorism Financing Act 2006
  • an employee association registered or recognised under the Fair Work (Registered Organisations) Act 2009
  • a business that conducts protection action ballots
  • accredited under the Consumer Data Right system
  • related to a business the Privacy Act already covers
  • prescribed by the Privacy Regulation 2013
  • a business that has opted in

The OAIC checklist also covers some telecommunications data-retention providers. If you are not sure, use that checklist, or get advice. Do not assume a dentist, an accountant or a medical practice is “too small” to be covered.

What changed in 2025 and 2026, and what did not

From 1 July 2026, tranche 2 of the AML/CTF reforms made a new group of businesses into reporting entities. The OAIC lists real estate professionals, dealers in precious stones, metals and products, and professional service providers such as lawyers, conveyancers, accountants and trust and company service providers. Those firms are covered by the Privacy Act for the personal information they handle for AML/CTF obligations, even if their turnover is under $3 million. They are not automatically covered for every other activity unless another exception applies. That is still a large slice of a typical MSP book: the accountant, the conveyancer, the real estate agency.

A different date is being widely misread. From 10 December 2026, APP entities that use a computer program to make, or substantially and directly inform, a decision that could significantly affect a person’s rights or interests must disclose that automated decision-making in their privacy policy. That obligation comes from the Privacy and Other Legislation Amendment Act 2024. It is not the date the small business exemption ends.

Two other changes already apply more widely than the APPs. A statutory tort for serious invasions of privacy commenced on 10 June 2025. The OAIC says it is broader than the Privacy Act and extends to individuals and other entities that may not be APP entities. The elements are specific: a reasonable expectation of privacy, an intentional or reckless intrusion on seclusion or misuse of information, a serious invasion, and a public interest balance. It is not a blank cheque to sue over every log review, but it is a reason not to treat “we’re a small MSP” as a complete defence. Separately, doxxing is a criminal offence. The Criminal Code offences in sections 474.17C and 474.17D commenced on 11 December 2024, the day after the amending Act received Royal Assent, not on the same day as the tort.

There is also a draft bill, and it is only a draft. On 31 August 2026 the Attorney-General’s Department released an exposure draft of the Privacy Amendment (Personal Data Protection) Bill 2026. Consultation closed on 18 September 2026. The ministerial announcement describes a proposed “fair and reasonable” test and measures aimed at trading in personal information. Practitioner analyses, including Herbert Smith Freehills Kramer and Digital Advisors, note that the draft does not remove the small business exemption or the employee records exemption. The consultation page says the Bill remains subject to further consideration by government. It has no start date in the materials I have seen, and it has not been introduced to Parliament. Do not run a customer conversation as if that draft were already law.

The Notifiable Data Breaches scheme

If the Privacy Act covers an entity, the Notifiable Data Breaches scheme applies as well. A suspected eligible data breach must be assessed, and the entity must take all reasonable steps to finish that assessment within 30 calendar days. The OAIC treats 30 days as a maximum, not a target. An eligible breach is unauthorised access, disclosure or loss of personal information that is likely to cause serious harm, where remedial action has not removed that likely risk. If it is eligible, the entity must notify the OAIC and the affected people as soon as practicable, unless an exception applies.

In a typical MSP relationship, you are often the one who detects the incident: a mailbox compromise, a shared-link leak, a compromised admin account. The customer usually has the most direct relationship with the people affected. The OAIC says that where more than one entity holds the information, only one notification is required, and the entities decide who notifies. It suggests the entity with the most direct relationship should generally do it. That is usually the customer. It is not a reason for you to sit on the information, and it is not a reason for the customer to ignore you. Put the assessment and notification roles in the contract. Report a suspected breach to the customer promptly. Do not hide it, and do not quietly decide, on the customer’s behalf, that nobody needs to be told.

What you can do

You can monitor the tenant for the purpose you were engaged to perform, if that purpose is defined and the people affected have been told.

Picture a monthly security watch. You review Entra sign-in risk, Defender incidents, audit logs and configuration drift. You do not open mailboxes. The contract says that is the scope. The customer has told staff, in a privacy notice or an IT policy, that an MSP monitors sign-ins, devices and security alerts. That is the kind of arrangement APP 1 and APP 5 are aiming at: open handling, and a collection notice that is actually given.

You can investigate a suspected incident, looking only at what you need. If a risky sign-in is followed by a rule that forwards mail offsite, you may need to inspect that rule and the affected mailbox metadata, and perhaps a sample of messages, to contain the harm. You should not use the same incident as an excuse to browse the rest of the tenant.

You can keep logs and investigation files for an agreed retention period, then delete or de-identify them when they are no longer needed. That is the direction of APP 11.2. Agree the period in the contract. “We might need it one day” is not a retention policy.

You can use an offshore tool or an offshore SOC, but only with your eyes open. APP 8 does not ban overseas disclosure. It requires reasonable steps to ensure the overseas recipient does not breach the APPs, and, subject to exceptions, the Australian APP entity remains accountable for what that recipient does. The customer should know where the work is done, including any subcontractor or tool that will see tenant data. If you use a cloud assistant or a monitoring bot that processes data outside Australia, say so. I have written separately about what Grok Bot’s security model means for customer Microsoft 365 data and about Privacy Mode. Privacy Mode is a training setting, not an Australian residency setting. Do not tell a customer that a US-hosted tool keeps their data in Australia.

You can, and should, report a suspected breach to the customer as soon as you have enough to be useful, without waiting for a perfect report.

What you can’t, or shouldn’t, do

You should not open a staff mailbox, a Teams chat or a OneDrive library “just to check”, or for a purpose that was never agreed. APP 6 limits use and disclosure to the primary purpose of collection, or a related secondary purpose the person would reasonably expect, unless an exception applies. “We have Global Admin, so we can look” is not an exception.

You should not use customer tenant data for your own marketing or analytics, and you should not reuse one customer’s logs, exports or screenshots to help another customer. The information was collected for that customer’s security or operations, not for yours.

You should not hand tenant administration to a subcontractor or to offshore staff without the customer knowing, and you should not leave a standing Global Administrator relationship in place when a narrower permission would do. APP 11 is about taking reasonable steps to protect the information. In Microsoft 365 terms, that means granular delegated admin privileges, multifactor authentication, and least privilege, not a permanent Global Admin login shared around the service desk.

You should not keep PSTs, audit exports, mailbox samples or screenshots after the job is finished. If you needed them to close an incident, retain them for the agreed period, then delete them. A folder of old customer exports on a laptop is a breach waiting for a name.

You should not decide the customer’s notification for them, and you should not hide a breach because it is embarrassing or because you hope it will blow over.

You should not ignore state and territory workplace surveillance laws. They are separate from the Privacy Act, and they are not the same in every jurisdiction. In New South Wales, the Workplace Surveillance Act 2005 requires an employer to give written notice, generally at least 14 days, before computer surveillance of an employee starts, unless the employee agrees to less notice. There are extra requirements for a computer surveillance policy. If you are monitoring mail, web or device activity of staff in NSW, the customer needs to have done that notice properly. Check the equivalent rules where the staff actually work.

What I would put in the contract, and in daily practice

Write the scope down. Say what you will monitor, what you will not open, where the data may be processed, how long you will keep it, and how quickly you will escalate a suspected breach. Say who completes the NDB assessment and who notifies the OAIC and affected people if notification is required.

Have the customer tell their staff. A privacy policy that never mentions the MSP, or an IT policy that staff have never seen, is a weak foundation for ongoing sign-in and device monitoring.

Log your own access to customer data. If you cannot show who looked at what, and why, you will struggle to defend the access later.

Apply the same discipline to every customer, including the small ones. The statutory tort is not limited to APP entities. Many smaller firms are now covered for at least their AML/CTF handling. The safest operating model is one standard of least privilege, retention, logging and breach escalation, used everywhere, not a looser practice for “the small accounts”.

And say the quiet part in the first meeting: monitoring a tenant is not a licence to read people’s mail. It is a defined security function, with a defined purpose, a defined retention period, and a defined way to raise a hand when something looks wrong.

This article is general information about Australian privacy law as it stood when it was written. It is not legal advice, and it is not a substitute for advice on a particular contract, incident or customer.

How to Run SMB1001 Assessments on a Regular Basis with Grok Bot

Black-and-white photograph of a stepped brutalist concrete building rising in tiers against a cloudy sky with a diagonal shaft of light

Most small businesses treat a cybersecurity standard like an annual tax return. Somebody gathers the evidence in a panic, signs the form, and the paperwork goes in a drawer until next year. The trouble is that a tenant does not stay still for twelve months. A conditional access policy gets edited, a new admin appears, a backup job quietly stops. This post explains how I use Grok Bot to run SMB1001 assessments on a regular basis, so the answer to “are we still compliant?” is a fresh report and not a guess.

The part I want to highlight is how it runs without anyone babysitting it. I converted the SMB1001 controls into structured JSON files and keep them in my own private GitHub repository, so a bot can pull a machine-readable control set on every run. Those files are private and not available publicly. Others can do the same for themselves, and I will show you how.

What SMB1001 is, in brief

I checked the official sources on 1 December 2026. SMB1001 is a multi-tiered cybersecurity certification standard for small and medium-sized businesses, developed by Dynamic Standards International (DSI), which describes itself as a not-for-profit. The DSI page I checked is titled SMB1001:2026 International Edition and shows a publication date of 1 September 2025. There are five levels, which DSI says progressively increase in complexity and maturity. The certifier’s site names them Bronze, Silver, Gold, Platinum and Diamond (Levels 1 to 5). A business can start at the level that matches where it is, and does not need to complete all five.

DSI groups the requirements into five areas: technology management, access management, backup and recovery, policies and processes, and education and training. Level 1 covers the basics such as a firewall, antivirus on all devices, automatic updates, password hygiene and a backup and recovery strategy. I am deliberately not going to list the controls beyond that, because the standard is a document you purchase from DSI, and the control text is theirs.

On how certification works, DSI says it maintains the standard but does not issue certificates. An authorised certifier does that, and CyberCert is currently the official one. A submission to the Australian Department of Home Affairs from the standard’s original body describes Levels 1 to 3 as director (or equivalent) attestation, and Levels 4 and 5 as attestation plus an external audit by an independent verification organisation. It says all levels are valid for 12 months. DSI names BSI Group as an independent verification organisation, and the CyberCert certification page confirms each subscription includes 12 months of portal access. DSI also says the standard is updated annually, so the target moves each year.

Why assess regularly

  • The certificate has a 12-month life. If you only look once a year, you find out about problems on the worst possible day.
  • A director signs the attestation. At the lower levels it is the director’s name on the declaration. I want that person signing against evidence collected this month, not a recollection of last year.
  • Tenants drift. Settings change for good reasons, and then nobody revisits the reason. A regular comparison catches the change while it is still a conversation, not an audit finding.
  • The standard changes annually. A control set you can version and diff makes the move to a new edition far less painful.

What Grok Bot does, and what it does not

Grok Bot has its own persistent computer, connectors to the services you give it, and routines that run a saved prompt on a schedule. For SMB1001 I use that in a simple way: on a schedule, a run loads the controls, reads evidence from the places the evidence lives, compares what it finds against each control, writes a report, and flags gaps. It is read-only by design. It reports. It does not change configuration.

It is also a readiness and self-assessment aid. It is not certification, it does not replace the director’s attestation, and it cannot stand in for an independent audit at the higher levels. Treat its output as a well-organised starting point for human review, and I would keep a person approving anything that follows from it. I wrote about that principle in AI With a Human in Control Beats AI on Its Own.

The headless trick: the controls as JSON in a private repo

A bot that runs on a schedule has nobody to paste things into it. If the controls only exist in a PDF, every run has to find the document, extract the text and guess at structure, and the result is slightly different each time. That is fragile and it makes comparing one run with the next unreliable.

So I converted the SMB1001 controls into structured JSON files and uploaded them to a private GitHub repository that I own. Now a routine can pull the control set at the start of each run, with stable identifiers, a known structure and a version history. Nobody scrapes anything and nobody types anything in. Git gives me history for free: when I refine how a control is checked, the change is a reviewable diff, and the bot’s reports can state which version of the control set they used.

Here is the important caveat. Those JSON files are in my own private repository and are not available publicly. The standard is a purchased document with its own copyright, and I am not republishing it. I am also not going to name the repository or describe its exact contents here. If you hold a licence to the standard and want the same capability, you can build your own set from your own copy, keep it private and point your bot at it. Check the licence terms of your copy first, and keep the repository private, because the files should not be shared beyond what the terms allow.

An illustrative schema

This is a shape you could use, not a copy of mine. The control below is entirely fictional, and the summary is in made-up words. When you build your own, write the intent in your own words and refer to the control by its identifier, and do not paste the licensed text into the file.

{
  "schemaVersion": 1,
  "standard": "SMB1001",
  "edition": "<the edition you hold>",
  "controls": [
    {
      "id": "EX-ACC-001",
      "domain": "access_management",
      "tier": 2,
      "title": "Example: staff sign-ins need a second factor",
      "intent": "Written in your own words: stolen passwords alone should not be enough to get in.",
      "assessment": "technical",
      "automatable": true,
      "evidenceSources": [
        { "system": "entra", "artefact": "conditional-access-policies", "access": "read-only" },
        { "system": "entra", "artefact": "authentication-method-registration", "access": "read-only" }
      ],
      "checkMethod": "Confirm an enabled policy requires multi-factor authentication for all users, list exclusions and compare registration against the user list.",
      "passCriteria": "Policy enabled for all users. Exclusions are documented. No active user is unregistered.",
      "humanEvidence": [],
      "notes": "Fictional example for illustration only."
    },
    {
      "id": "EX-POL-001",
      "domain": "policies_and_processes",
      "tier": 3,
      "title": "Example: a written plan exists for responding to a security incident",
      "intent": "Written in your own words: people know who does what when something goes wrong.",
      "assessment": "document",
      "automatable": false,
      "evidenceSources": [
        { "system": "sharepoint", "artefact": "policy-library", "access": "read-only" }
      ],
      "checkMethod": "Find the current plan, check the review date and the named owner.",
      "passCriteria": "Plan exists, reviewed within the last 12 months, owner named.",
      "humanEvidence": ["Director confirms the plan has been communicated to staff"],
      "notes": "Fictional example for illustration only."
    }
  ]
}

A few choices in that shape are worth explaining:

  • id is your own stable key. It is what lets a report say “this control changed from pass to fail since last month”.
  • tier and domain let you ask for “just the level I am certifying at” or “just access management”.
  • automatable and assessment are honest about what a bot can and cannot decide. Many controls are about people and paperwork, and the bot should mark them “needs human evidence”, not pretend.
  • evidenceSources tells the bot where to look and with what access, which doubles as your least-privilege checklist.
  • checkMethod and passCriteria are what make two runs comparable. Without them, the model improvises the test every time.

Setting it up

1. A private repository

Create a private GitHub repository for your control files. Do not make it public, and do not put customer data, tenant IDs or secrets in it. Version the files and note which edition of the standard they were written against, since DSI updates the standard annually.

2. Connect GitHub to Grok Bot

Ask Grok Bot to connect GitHub and approve the authorisation on GitHub’s side. Where GitHub lets you choose, grant access to only the one repository the bot needs, and read access is enough for assessments. I have not described the exact GitHub permission screens here because they change, so follow what GitHub shows you and keep the scope as narrow as it allows.

3. Give it read-only tenant access

For Microsoft 365, use a read-only route to Microsoft Graph and the other services your controls point at. For a one-off first look, a read-only role and an interactive sign-in is fine. For scheduled runs, I prefer a dedicated app registration with read-only application permissions and a certificate, which means the bot never holds a person’s password and never has write access. I covered that pattern, including the secret handling, in Configuring Maester v3 with Grok Bot. If you are new to giving a bot access to a tenant, start with How to Set Up a Microsoft 365 Help Desk Bot in Grok Bot Safely.

Prompts you can use

These are starting points. Adjust the names and tiers for your situation. Where I use a tenant, it is the fictional Contoso.

1. Setup: connect and load the controls

Connect to GitHub and read the private repository named in my message. Confirm you can see the SMB1001 control files and show me the edition, the schema version and the number of controls per domain and per tier. Don’t print the control text. Don’t write to the repository.

2. Confirm read-only access to the tenant

For the Contoso tenant, list every evidence source named in the control files, and for each one tell me whether you can currently read it and what access you have. Flag any source where you would need more than read access. Don’t change anything in the tenant. Ask me for secrets using a masked request, never in chat.

3. First assessment

Run a first SMB1001 readiness assessment for Contoso at Level 2. Load the controls up to and including that level, read the evidence for every control marked automatable, and mark each control Met, Not met, Partially met or Needs human evidence. Quote the evidence you used. Never mark a control as met without evidence. Produce a report as a page with a summary at the top, then the gaps grouped by domain. Make it clear that this is a self-assessment aid and not certification.

4. Create the routine

Create a routine that runs on the first weekday of each month at about 7am. Each run should load the current control files from the private repository, assess Contoso at the Level 2 target, compare the result with the previous run, and report the changes. Read-only throughout. Give me the summary here in this chat, and say plainly when nothing has changed.

Because each run starts fresh and sees only its saved prompt, put everything it needs in the prompt: which repository, which target level, what the output should contain and who receives it. Describe the intent, not the exact tool calls, so the routine keeps working when a connector changes. For a lighter touch, add a weekly routine that only checks the controls marked automatable and reports changes.

5. Drift and delta report

Compare this month’s SMB1001 assessment with last month’s. List controls that changed status, with the date range, the evidence before and after, and the likely cause if you can see it. Put regressions first. Do not suggest fixes yet.

6. Evidence pack for certification

Prepare an evidence pack for the director to review before attesting at Level 2. For each control, list the status, the evidence collected (with date and source), and anything a human must confirm. Mark controls that rely on documents or on staff behaviour as needing human evidence. Don’t submit anything anywhere. The director attests, not you.

7. Remediation plan, with a human approving

For each Not met control, write a remediation plan: what to change, the business impact, the risk of making the change, the rollback and a suggested owner. Order them by effort versus benefit. Don’t make any change. I will approve each item before anyone acts on it.

What the bot cannot do for you

  • Controls about people and paper. Policies, training and procedures need human evidence. The bot can find the document and check its date. It cannot tell you whether staff follow it.
  • Controls outside the tenant. A firewall, a backup system or an endpoint tool lives in other systems. Unless you have given the bot read access to them, those controls stay on the human list.
  • Judgement on applicability. Some controls may not apply to a particular business. That decision belongs to the director and your certifier, not to the model.
  • The attestation and the audit. The bot prepares. The director signs. At the higher levels, an independent auditor checks.

Guardrails I would keep

  • Read-only access everywhere, and only to the sources the controls name.
  • Secrets entered through masked requests, never pasted into chat or stored in the repository.
  • A person reviews every report before it goes to a client or into an attestation.
  • Any remediation is proposed, approved by a human and carried out as a separate, deliberate step.
  • The control files stay private, with their edition and licence noted next to them.

The takeaway

A certification is only as honest as the evidence behind it, and evidence goes stale. Putting the controls into a structured, private, versioned form lets a bot do the dull part, which is checking the same things the same way every month, so people can do the part that needs judgement. Start small: one target level, a handful of automatable controls and a monthly routine. Then let the reports tell you which controls are worth automating next.

Sources (checked 1 December 2026)

How to Find the AI Apps Hiding on Your Windows Devices with a Free PowerShell Script

Antique natural-history plate with neatly arranged hand-painted leaves, ferns, seed pods, beetles and butterflies on aged parchment

Ask most business owners which AI tools their staff use and you will get the answer that is in the policy. Ask the laptops and you will get a different one. People install a desktop chat app, add a browser extension that rewrites their emails, or drop an AI assistant into their code editor, and none of it goes through IT. I wrote a PowerShell script to answer the laptop version of the question: ai-apps-report.ps1. This post covers what it looks at, how to run it, how to read the report and what it will not tell you.

Everything below comes from the script itself and from the Windows AI Application Inventory documentation, which I re-read on 30 November 2026. Where I add my own suggestions, I say so.

Why inventory AI apps at all

You cannot govern what you cannot see. If you are working through Copilot readiness, data classification or an AI use policy, the first question is simple: what is already on these devices? Staff who paste client data into a tool you have never heard of are a data protection problem whether or not the tool is any good. An inventory will not tell you what people typed into those tools, but it does tell you which tools are present, on which machine, under which user. That is enough to start the right conversation.

What the script is, and what it is not

It is a local, read-only inventory for Windows endpoints. According to the script header and the documentation:

  • It installs no software and no modules, and changes no system settings.
  • It does not mount unloaded user registry hives, and it does not upload device data. The only network use is the optional catalog refresh, covered below.
  • It writes a self-contained HTML report that works offline, and opens it in your default browser unless you tell it not to.
  • It needs Windows PowerShell 5.1 or PowerShell 7 on Windows, with no additional modules. The script checks the operating system and stops with an error on anything other than Windows.
  • It runs as a standard user. Administrator is optional, and I cover why you would want it in a moment.

It is not a block list, an enforcement tool or proof of usage. It reports evidence that something AI-related is present. I will come back to the limits, because they matter for how you use the results.

What it looks at: six stages

The console shows progress through six numbered stages. Here is what each one covers, based on the script and the documentation:

StageWhat it inspects
1/6 Installed applications and Store packagesThe HKLM and HKCU Uninstall registrations (including the 32-bit view), other user hives that are already loaded, and Microsoft Store packages. Store packages are read for all users when elevated, and for the current user when not.
2/6 Running processesA snapshot of running processes, checking the name, path, file description and file version.
3/6 Portable and per-user locationsProgram Files, Program Files (x86) and ProgramData, plus per-profile folders such as AppData\Local\Programs, Desktop and Downloads. It also looks for command-line tools on the PATH. The default list is ollama, aider, claude, codex, gemini, gpt4all, lmstudio, goose, open-webui, llama-cli and koboldcpp, plus any the catalog adds.
4/6 Start Menu and web app shortcutsStart Menu shortcuts for all users and each profile, including browser web apps (PWAs) launched with an app ID. These are labelled as an application shortcut or a browser web app shortcut.
5/6 Browser extensionsExtensions across Chromium-based browsers (Chrome, Edge, Brave, Arc, Perplexity Comet, Vivaldi, Opera and others) and Firefox-based browsers (Firefox and Zen). It reads whether each extension is enabled or disabled where the browser records that.
6/6 Code editor extensionsExtensions installed for Visual Studio Code and the Insiders build, Cursor, Windsurf and Trae.

The documentation lists 16 browser variants in total, with Chrome Stable, Beta and Canary and Edge Stable, Beta, Dev and Canary counted separately. That is a lot of ground for one script, and it is the part I find most useful, because browser and editor extensions are exactly where AI tools turn up unannounced.

How it decides something is AI

Detection is catalog driven. Every finding carries a match type, and the two types mean different things:

  • Known AI-capable product. A name or identifier matched a rule in the catalog. The built-in catalog in the current script (version 2026.11.30-builtin) has 74 product rules, covering things like ChatGPT, Claude, Copilot, Gemini, Grok, DeepSeek, Mistral, Perplexity, Ollama, LM Studio, Cursor, Windsurf, Grammarly and ComfyUI. The rules use word boundaries and anchors to keep false positives down.
  • Possible AI product. No product rule matched, but a keyword pattern did. It looks for phrases such as artificial intelligence, generative AI, large language model, AI assistant and powered by AI in the name, description, publisher or comments. The phrase that matched is shown in the Evidence column, so you can judge it yourself.

The catalog is layered. The script ships with the built-in offline baseline. If an ai-apps-catalog.json file sits next to the script, or you point -CatalogPath at your own, its entries are merged with the built-in rules, and if the file is missing or unreadable the script falls back to the built-in rules. Add -UpdateCatalog and the script downloads the latest catalog over HTTPS first, with a 15 second timeout, saves it to the catalog path if that location is writable and falls back if you are offline. The script rejects a catalog address that is not HTTPS.

A custom catalog is a JSON file with a version, an updated date, a list of products (each with a name and a regular expression) and optionally extra command-line tools. Invalid regular expressions are skipped and reported as scan warnings rather than stopping the run. This is handy if you want to flag a line-of-business tool, or an AI product that is not yet in the shared catalog.

Getting it and running it

Download the script and, ideally, the catalog into the same folder. This download snippet is my suggestion, built from the repository paths in the links above:

$dest = 'C:\Tools\AI-Inventory'
New-Item -ItemType Directory -Path $dest -Force | Out-Null
$base = 'https://raw.githubusercontent.com/directorcia/Office365/master'
Invoke-WebRequest "$base/ai-apps-report.ps1"   -OutFile "$dest\ai-apps-report.ps1"
Invoke-WebRequest "$base/ai-apps-catalog.json" -OutFile "$dest\ai-apps-catalog.json"
Unblock-File "$dest\ai-apps-report.ps1"

Windows may block a downloaded script depending on your execution policy, which is why I added Unblock-File. Read the script before you run it, as you should with anything you pull from the internet, including mine. Then the simplest run is:

cd C:\Tools\AI-Inventory
.\ai-apps-report.ps1

That scans the current user, writes AI-apps-<yyyyMMdd-HHmmss>.html in the current folder and opens it. These are the parameters:

ParameterWhat it does
-OutputPathWhere to save the report. Defaults to a timestamped file in the current folder. It must end in .html or .htm, and missing parent folders are created.
-NoLaunchSaves the report without opening the browser. Use it for anything unattended.
-ElevateAsks Windows for administrator rights (a UAC prompt) before scanning. If you decline, the script reports that and does not run a partial scan.
-CatalogPathPath to a JSON catalog. Defaults to ai-apps-catalog.json next to the script.
-UpdateCatalogDownloads the latest catalog before scanning, as described above.
-CatalogUriThe HTTPS address used by -UpdateCatalog. Defaults to the catalog in the same GitHub repository.
-PassThruReturns a summary object to the pipeline: the report path, evidence count, distinct name count, warning count, catalog version and source, and the full list of findings.

A few examples, taken from the documentation:

# Refresh the catalog first, then scan
.\ai-apps-report.ps1 -UpdateCatalog

# Broader coverage: other users' profiles and all-user Store packages
.\ai-apps-report.ps1 -Elevate

# Unattended run (the documentation labels this for RMM or Intune execution)
.\ai-apps-report.ps1 -OutputPath 'C:\Reports\AI-inventory.html' -NoLaunch

# Use your own catalog and work with the results in PowerShell
$summary = .\ai-apps-report.ps1 -CatalogPath 'C:\Config\custom-ai-catalog.json' -NoLaunch -PassThru
$summary.Findings | Format-Table Name, Kind, Version, User, Confidence

Standard user or administrator?

Both work, but they see different things. As a standard user, the script scans your own profile and reports a permissions warning, because other profiles and all-user Store packages may be out of reach. On a shared PC or a server, that is a real gap. When the script is not elevated, it prints two options in the console and saves the same text in the report: re-run with -Elevate, or open PowerShell with Run as administrator and run the command it prints. The second option writes a separate AI-apps-admin-<timestamp>.html in the same folder and keeps flags such as -NoLaunch and a custom catalog path. For a single-user laptop, the standard run is usually enough to get started.

Reading the report

The HTML report is the main deliverable. It has summary cards for evidence records, known AI-capable matches, possible matches, distinct matched names, coverage warnings and scan duration. Below that is a table you can search, filter by evidence type and match type, and sort by name, type, version, user, source, match type, evidence, state, ID or location. You can export the filtered rows to CSV or JSON, switch between light and dark themes and print to PDF. The CSV export is built to be safe to open in a spreadsheet.

A few habits make the results easier to act on:

  • Evidence records are not apps. One product can appear several times, for example as an installed app, a running process and a Start Menu shortcut. Use the distinct names count to see how many different products you are dealing with.
  • Start with Known matches. Those are the rules someone has deliberately written. Treat the Possible matches as leads and read the Evidence column before you decide.
  • Check the State column for extensions. A disabled browser extension is a different conversation from an enabled one.
  • Read the scan warnings and source coverage. Each source shows as scanned, partial or partial / failed. A report with warnings is telling you where the blind spots are, so do not skip it.

The console also prints a summary by evidence type (installed application, store application, running process, application path candidate, command-line tool, browser extension and editor extension), so you can see the shape of a run before you open the file.

Running it across a fleet

The documentation shows the unattended pattern (-OutputPath with -NoLaunch) and describes it as suitable for RMM or Intune execution. It does not describe a fleet collection or reporting process, so the rest of this section is my own suggestion rather than anything in the docs, and I have not tested it:

  • Deploy the script and catalog through your RMM or Intune as a script or a scheduled task, and run it with -NoLaunch so nothing pops up on a user screen.
  • Write each report to a path that includes the device name, or have your tool collect the file, since the script names the report by timestamp only. The report records the computer name inside it.
  • Use -PassThru if you want counts and findings returned to your tooling instead of reading HTML. The findings carry Name, Kind, Version, User and Confidence, which is enough to build a simple cross-device view.
  • Check how your tool runs the script. Whether it runs as the signed-in user or as SYSTEM changes whose profile is scanned, and I would test that on a pilot device before trusting the numbers.
  • Run it on a schedule, monthly to start with, and compare the distinct names from one run to the next. New names are your conversation starters.

If you use an agent such as Grok Bot to help with reporting, a sensible job is to read the collected summaries, list names that are new since last time and draft the questions to ask the client. Keep a human deciding what to do about them.

Limits and privacy

The documentation is upfront about what an inventory like this cannot see, and I would repeat it to every client before they read the report as gospel:

  • Presence is not use. An app on the disk does not prove anyone opened it, paid for it or sent data to it.
  • Websites are invisible unless there is a local trace. An AI site that someone just visits in a browser, with no extension or web app shortcut, will not show up, and neither will browser history or bookmarks.
  • Some locations are out of scope: custom portable paths, extensions installed outside the standard profile folders, WSL distributions, Docker containers, Python virtual environments and AI features built silently into general software.
  • It is a point in time snapshot, and the catalog is only as current as the rules in it.

On privacy, the report contains the computer name, local usernames and file and registry paths. According to the documentation it does not contain credentials, browser history, prompts, messages or document contents. That is still information about your people and their machines, so store and share reports in line with your security policy. If you are an MSP, that includes how you handle them across clients.

Where it fits with Intune, Defender and Purview

This is my view, not a feature of the script. It does not enforce anything and it does not feed Intune, Defender or Purview. What it gives you is a quick, vendor-neutral look at what is on a device, including editor extensions and browser web apps, that you can run without onboarding the device to anything. I use that kind of snapshot to decide where to point the tools that do enforce: which apps to allow or block, which users need a conversation, and whether the AI use policy matches reality. Run it first, decide second, then configure your management and data protection tools to match the decision.

The takeaway

Shadow AI is not a technology problem to solve with a block list on day one. It is a visibility problem, and visibility is cheap. One script, no modules, no installs and no uploads gets you a report you can put in front of a client and say: here is what is actually on your machines. Start with a pilot on a few devices, read the coverage warnings, and decide what you want to do about the names you did not expect. If you spot a missing product or a false positive, the catalog is the place to fix it.

Sources (checked 30 November 2026)

Configuring Maester v3 with Grok Bot: Setup, Prompts and a Weekly Routine

Op art painting of flowing wavy lines in navy, teal and gold with one gold line standing out

Checking a Microsoft 365 tenant once is easy. Checking it every week, and noticing the one setting somebody quietly changed, is where most of us fall over. Maester is an open source PowerShell framework built for exactly that job, and Maester 3 is a big change. This post covers how I would set it up with Grok Bot, what to ask it, and how to run it on a schedule.

One honest note first. I checked the official sources on 30 November 2026. The stable release on the PowerShell Gallery is still 2.3.0, and Maester 3 is published as a pre-release, currently 3.0.0-rc83 (12 November 2026). The Maester docs describe the 3.0 preview, which is what this article follows. Check the Gallery for the current version before you start.

Why Maester, and why with an agent

Maester runs a large library of read-only security checks against your tenant and gives you an HTML report. It is the kind of work an agent is good at: install the tooling, run it, read a long report, explain the failures and do the same thing again next week. You still decide what to change. Grok Bot has its own persistent Linux computer, so it can install PowerShell 7 and the Maester module, keep the results between runs and report back in chat, Teams or email. If you are new to giving a bot access to Microsoft 365, read How to Set Up a Microsoft 365 Help Desk Bot in Grok Bot Safely first.

What is new in Maester 3

The official 3.0 announcement and the upgrade guide cover the detail. The changes that matter for a bot-run deployment:

  • PowerShell 7.4 or later. Windows PowerShell 5.1 is no longer supported.
  • Its own test engine. The built-in tests ship inside the module and run from it. Updating the module updates the tests, so you no longer need a tests folder. Updating your tests explains it.
  • Pester is optional. Maester no longer depends on it. You need Pester 5.7.1 or later only if you have Pester-format custom tests.
  • Microsoft.Graph.Authentication is the one required module, version 2.27.0 or later according to the Gallery listing.
  • New ways to select tests with -Product, -Feature, -Area, -Severity, -Suite and -TestId, plus -DryRun to see what would run.
  • Errors are reported separately. A built-in test that throws is now Error, not Failed, so your failed count can drop while errors rise.
  • Change tracking between runs, including a changes-since-last-run view in the HTML report.
  • Native custom tests that you can create with New-MtTest.

If Maester 2.x is already installed anywhere, remove it first. Both versions side by side can cause PowerShell to load the wrong one.

Prerequisites and the Entra app registration

For a first test, a Global Reader account and device code sign-in is fine. For scheduled runs I recommend a dedicated Entra app registration with read-only application permissions and a certificate. That way the bot never holds a person’s credentials and never gets write access.

Have an admin create the app, not the bot. Maester documents the portal steps, and also ships New-MtMaesterApp to create the app and grant the permissions. Once the app exists, upload the certificate’s public key (.cer) under Certificates & secrets. The bot keeps only the private key, as a secret.

WhatPermission or roleNeeded for
Microsoft Graph (application, read-only)The 27 read permissions returned by Get-MtGraphScope, such as Directory.Read.All, Policy.Read.All, Policy.Read.ConditionalAccess, AuditLog.Read.All and Reports.Read.AllEntra ID and most other tests
Graph, preview testsAgentIdentity.Read.All, AgentIdentityBlueprint.Read.All, AgentIdentityBlueprintPrincipal.Read.All, Application.Read.All, IdentityRiskyUser.Read.AllOnly if you run preview tests
Exchange Online (optional)Exchange.ManageAsApp, plus the View-Only Configuration role assigned to the appExchange tests
Teams (optional)Teams Reader role assigned to the appTeams tests
Azure (optional)Reader role at the scopes described in the docsAzure tests
Email results (optional)Mail.Send, limited to one mailbox with RBAC for Applications (-MailUserId is required with app permissions)Invoke-Maester -MailRecipient
Teams message (optional)A Teams webhook workflow, or delegated ChannelMessage.Send with a signed-in user-TeamChannelWebhookUri, or -TeamId with -TeamChannelId

Start with the Graph permissions only. Everything else is optional, and tests for services you have not connected are reported as Skipped, not failed. I would also let Grok Bot do the posting to Teams or email through its own connectors, so the Maester app never needs Mail.Send. The full lists are in the Connect-Maester guide, the email alerts guide and the Teams alerts guide.

Step-by-step setup, with prompts to give Grok Bot

1. Install PowerShell 7 and Maester 3

Check whether PowerShell 7.4 or later is installed on your computer, and install it if not. Then remove any Maester 2.x modules, install the latest Maester 3.x release (pre-release is fine, pin the exact version) with Install-Module Maester -AllowPrerelease -Scope CurrentUser, and tell me the exact version and the output of Get-Module Maester. Don’t connect to anything yet.

If you want to see the commands, they are:

Install-Module Maester -AllowPrerelease -Scope CurrentUser
Get-Module Maester -ListAvailable | Select-Object Name, Version
# only if you have Pester-format custom tests:
Install-Module Pester -MinimumVersion 5.7.1 -SkipPublisherCheck -Force -Scope CurrentUser

2. First run with device code

Run Connect-Maester -UseDeviceCode against the Contoso tenant. Show me the sign-in code and link, and wait. When I confirm, run Invoke-Maester -NonInteractive -PassThru -OutputFolder ./maester-results and summarise the counts of Passed, Failed, Error, Skipped and Investigate. Don’t change anything in the tenant.

If the sign-in says Approval required, a Global Administrator needs to consent once to the Maester permissions, as the Connect-Maester guide explains.

3. Switch to the app and certificate

I have created an Entra app for Maester with read-only application permissions. Create a certificate for it, give me the public .cer file to upload, and keep the private key as a secret. Then ask me for the tenant ID and client ID using a masked secret request. Never ask me to paste secrets in chat.

The bot then connects the way Maester documents for automation, authenticating within Microsoft Graph and skipping Maester’s own sign-in:

$bytes = [Convert]::FromBase64String($env:MAESTER_CERT_PFX_BASE64)
$cert  = [System.Security.Cryptography.X509Certificates.X509Certificate2]::new($bytes)
Connect-MgGraph -AppId $env:MAESTER_CLIENT_ID -Certificate $cert -TenantId $env:MAESTER_TENANT_ID -NoWelcome
Invoke-Maester -SkipGraphConnect -NonInteractive -PassThru -OutputFolder ./maester-results

4. Tell Maester about your tenant

Create a maester-config.json with my emergency access (break glass) account listed under GlobalSettings, EmergencyAccessAccounts. Use breakglass@contoso.com as the placeholder until I give you the real one in a secret. Then run Invoke-Maester -Path ./maester again.

Many Conditional Access tests depend on that setting, and the Getting started guide covers it. Add test exceptions only for decisions you have made, with a reason.

5. Triage the first report

Read the latest Maester JSON results. List the failed tests with severity Critical and High first. For each, give me the test ID, what failed, the business impact in plain English and the fix. Mark anything that looks like a quick win. Don’t apply any fix.

Day-to-day prompts

  • Explain a failure: “Explain why MT.1005 failed in our tenant, what an attacker could do with it, and what changes if we fix it.”
  • Compare: “Compare this week’s results with the previous run. What newly failed, what was fixed, and what is new because the tests changed?”
  • Draft remediation: “Draft step-by-step remediation for the top three failures as a change request I can review. Do not run anything.”
  • Focus the run: “Run only the Entra tests with severity Critical or High using -Product entra -Severity Critical, High.”
  • Preview a run: “Run with -DryRun -PassThru first and tell me which tests would run.”
  • Custom test: “Write a custom Maester test that checks guests cannot invite other guests. Use New-MtTest, follow the first custom test guide, and check it with Get-MtTest before running it.”

For custom tests, the official first custom test guide and the guide to writing a test with AI are worth pointing the bot at. Maester’s own advice is to verify what the AI writes against the Microsoft Learn documentation, and I agree.

Running it regularly

Grok Bot routines are saved prompts that run on a schedule and report back in chat or to channels. Here is the one I would use. The cron expression runs it at 7am Monday, in local time:

0 7 * * 1

Every Monday at 7am Sydney time: use the Maester app secrets to connect with the certificate. Install the pinned Maester version I last approved, and tell me if a newer 3.x version exists but don’t install it. Run Invoke-Maester -SkipGraphConnect -NonInteractive -PassThru -OutputFolder ./maester-results -RedactUserIdentity HtmlOnly. Keep the HTML report. Maester compares the run with the newest earlier results file in that folder, so always use the same folder. Summarise what newly failed, what was fixed and the current counts, then post the summary to the Security channel in Teams. If the run errors out, tell me why instead of posting a partial result.

There are a few reasons for the shape of that prompt. Pinning a version means a new release changes your results only when you choose, which the installation guide recommends for scheduled runs. To approve a new version, use Update-Module Maester and then start a new session, as updating tests describes. In Maester 3 you do not run Update-MaesterTests for that, because it is only for tidying up 2.x copies. Redacting identities in the HTML report is optional but sensible if the report is shared.

If you would rather run it outside Grok Bot, the official monitoring guides cover GitHub Actions (with workload identity federation, which avoids secrets altogether), Azure DevOps and Azure Automation. For GitHub Actions, the docs use maester_major_version: "3" in the Maester action. You can still ask Grok Bot to read the results from those runs.

Troubleshooting

  • Module will not load: check $PSVersionTable.PSVersion is 7.4 or later.
  • Wrong version running: a leftover 2.x install. Remove it with Uninstall-Module Maester -MaximumVersion 2.99.99 -AllVersions and open a new session.
  • Approval required, or User canceled authentication: an admin has to consent. See the Connect-Maester guide.
  • Lots of Skipped: a service is not connected, a module is missing or a permission was not granted. The reason is in the report.
  • Pester errors: custom Pester-format tests need Pester 5.7.1 or later.
  • Teams webhook or email not arriving: email with app permissions needs -MailUserId, and the webhook address should be treated as a secret.
  • Telemetry: Maester sends run events to api.maester.dev unless you add -DisableTelemetry or set MAESTER_DISABLE_TELEMETRY to 1. Decide what your clients are comfortable with.

The security caveats

The bot only gets read permissions, but the report still contains your tenant’s configuration, so treat it as sensitive. Store the certificate and IDs as secrets, never in chat. Review the report and any remediation before acting, and keep a human in control of every change, as I argued in AI With a Human in Control Beats AI On Its Own.

Wrap-up

Maester 3 is simpler to deploy than 2.x: PowerShell 7.4, one module, no tests folder. Pair it with a bot that can run it every Monday, compare it with last time and explain the diff, and a security check becomes a habit instead of a project. Start with the device code run, move to a certificate when you trust the output, and pin the version.

Sources (checked 30 November 2026)

There Are 2 Very Different Ways the Next Few Months Can Go

A watercolour painting of a country road forking into two paths

There are 2 very different ways the next few months can go.

If you want to hang on and survive until January, go into the break stressed about money, and lose all the momentum you’ve worked so hard to build…

Don’t change a thing.

You’re right on track!

That path is comfortable. It is also how a decent year goes quiet.

But if you’d rather sign more clients in the next 3 months than you have in the last 6, there are three things you need to get sorted.

  1. Your campaigns. Have the right campaigns for November, December and January, so you’re signing clients while everyone else is winding down.
  2. Your offers. Wrap what you already sell in a promise that speaks to what people want right now, so they’re excited to buy.
  3. Your objection-busters. Handle the reasons people normally put things off, so they stop saying “let’s talk next year” and start saying “let’s get started.”

That’s as true for an MSP as it is for anyone selling Microsoft 365, Copilot, AI or advisory work. The work does not have to be new. The next few months do have to be deliberate.

Your campaigns

These do not need to be big launches. A short sequence in Outlook or Teams is enough if the theme matches the month. November can be a year-end licence and Copilot review: what they have, what is actually being used in Teams, Outlook and Word, and what should be tidied before the shutdown. December is the quiet-office window, a short security clean-up or tenant hygiene pass while people are already away. January is the new-year kick-off, a planning session for Copilot or advisory work so the year does not start with a blank page. I have written about pushing when the road is clear. This is that stretch of road. Don’t wait until mid-December to start the conversation.

Your offers

The product has not changed. The conversation in their head has. Some want one last win before Christmas. Others are determined not to have another year like the one they’ve just had. You do not need a new product line. A December discovery, a security hygiene pass, or a January Copilot kick-off is still the work you already do. Wrap the December work as a last win. Wrap the January kick-off as a different year. If the first sentence of the offer still reads like a mid-year capability list, rewrite it. Making your business easier to buy often starts with saying that clearly.

Your objection-busters

Too busy, staff are away, the budget’s gone, wait until January. If you wait for those lines to arrive on a call, you will agree to follow up after the holidays. Write the better next step into the campaign, the workshop and the sales process before they show up. A quiet office is a reason to do the clean-up now. A January start date locked in December is a reason to do discovery now. “Let’s talk next year” does not have to be the end of the conversation.

The three work together. A campaign without a reframed offer gets scrolled past. An offer without objection-busters stalls at “let’s talk next year.” Get all three sorted, and you have a path through November, December and January that does not depend on hope.

I’ve already got the systems, campaigns and swipe files for all three sitting right here on my computer.

If this is the path you want for the next few months, get in touch. I’ll walk you through what I have.

Need to Know podcast – Episode 374

In this episode, I cover the Microsoft news and updates from Ignite and the weeks since: Copilot Home, Autopilot, people and org context in Work IQ, Claude Fable 5.2 and GPT-6.2 in Copilot, and GPT-6.2 generally available in Microsoft Foundry. On security and identity, Baseline security mode 2026 is generally available, Reject Direct Send is generally available, and Microsoft has published details on a phishing campaign that used the recent Microsoft 365 outage as bait, plus the SCKit worm abusing ScreenConnect. I also cover a breach at N-able and a flaw in Entra Connect Health. For Microsoft 365 and partners, there’s multi-tenant management in the admin centre, SharePoint governance for Copilot rollouts, the Exchange Web Services countdown, Australian dollar cloud pricing dropping from 1 January, and Microsoft’s November partner updates, including Copilot Business promotions.

In my editorial, I ask whether Microsoft is automating the MSP security business away. Baseline security mode 2026 is now generally available, with a phased rollout, 24 new settings, a new Applications category and simulation mode. My view is that it kills the lazy version of MSP security: the one where turning on the checklist is the whole service. The value moves to judgement, change management and evidence. What do you think?

Brought to you by www.ciaopspatron.com

you can listen directly to this episode at:

https://ciaops.podbean.com/e/episode-375-checklist/

Subscribe via iTunes at:

https://itunes.apple.com/au/podcast/ciaops-need-to-know-podcasts/id406891445?mt=2

or Spotify:

https://open.spotify.com/show/7ejj00cOuw8977GnnE2lPb

Don’t forget to give the show a rating as well as send me any feedback or suggestions you may have for the show

Resources

CIAOPS Need to Know podcast – CIAOPS – Need to Know podcasts | CIAOPS

X – https://www.twitter.com/directorcia

director@ciaops.com

CIAOPS Blog

Join my Teams Shared Channel – CIAOPS

Become a CIAOPS Patron

CIAOPS AI Dojo

CIAOPS weekly news update – CIA Brief – CIAOPS

CIAOPS Labs – The Special Activities Division of the CIAOPS

Support CIAOPS

Get your M365 questions answered via email

Join my email list

A special thanks to the CIAOPS Patron community for making this podcast possible. You can find the benefits of a subscription to the community and become a member at https://www.ciaopspatron.com

Copilot & AI

Security & Identity

Microsoft 365 & Teams

Partners & Licensing

From CIAOPS

Editorial