Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
2f71159
feat(disa): add DISA STIG frameworks for Entra ID and Intune with 19 …
merill Nov 9, 2026
34e16ef
fix(intune): name the Trellix connector in MT.1098 (#2753)
julien-ly Nov 9, 2026
6884881
fix(website): move the organisation sponsor block to the bottom of th…
merill Nov 10, 2026
5086b8f
feat(report,website): sort test lists by column and choose their colu…
merill Nov 10, 2026
c6177d1
Fix: Keep an existing ADOPS session when Connect-Maester -Service Azu…
SamErde Nov 10, 2026
fce5f9f
chore(deps): combine Dependabot updates (#2778)
merill Nov 10, 2026
0fd2a67
chore: update public suffix list (#2749)
maester-bot[bot] Nov 10, 2026
80f8cb5
Docs: getting started, choosing a baseline, and making the case for M…
jusso-dev Nov 10, 2026
8dbb86d
fix(entra): escape Markdown in agent check results (#2774)
FiraSenax Nov 10, 2026
471ff2e
feat(engine): bind test parameters to shared settings and enforce par…
merill Nov 11, 2026
b378640
feat(cisa)!: take parked domains from the ParkedDomains setting in th…
merill Nov 11, 2026
7cbc156
fix: the recorded command no longer renders an object through its own…
earbona23 Nov 11, 2026
0b93219
docs(website): explain packs, list them in Guides and link sponsors t…
merill Nov 11, 2026
77f3bdc
feat(packs): reach a private pack without a token in an environment v…
merill Nov 11, 2026
02a220b
docs(packs): remove the duplicated Private packs section and correct …
merill Nov 11, 2026
2d659e8
docs: Invoke-Maester and report guides, and reordered Invoke-Maester …
merill Nov 12, 2026
7d0232a
fix(ad): reconcile consolidation with current main
FiraSenax Nov 17, 2026
38bd4f9
fix(ad): preserve typed OU modification dates
FiraSenax Nov 17, 2026
92405fc
build: refresh authoring data after AD consolidation
FiraSenax Nov 17, 2026
809eda8
fix(ad): normalize LDAP certificate byte projections
FiraSenax Nov 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 62 additions & 10 deletions .github/skills/maester-test-expert/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ background to avoid user confusion.
| `Test.<ID>.ps1` | `tests/<suite>/[<service>/]` | One function with a `[MaesterTest(...)]` attribute. Reads the tenant, decides, calls `Add-MtTestResultDetail`, returns `$true`/`$false`. |
| `Test.<ID>.md` | Same folder, same base name | Description, `#### Remediation action`, optional `#### Related links`, then `<!--- Results --->` and `%TestResult%`. Shown in the report. |
| `suite.json` | Each suite folder (already exists) | The suite's ID, name, `Source` and help URL template. Do not edit for a single check. |
| `frameworks/<key>.json` | Beside the `suite.json` of the CIS, CISA and ASD suites | The catalogue of the benchmark: its name and version, and one entry per requirement with its level, profiles or criticality (ASD: maturity level and strategy, or ISM guideline, section and applicability). It does not list tests. A CIS, CISA or ASD check names its requirement in `Control`; add the requirement here in the same pull request if it is new, or the build fails. The ASD files are generated by `build/asd/Update-AsdFramework.ps1`. |
| `frameworks/<key>.json` | Beside the `suite.json` of the CIS, CISA, ASD and DISA suites | The catalogue of the benchmark: its name and version, and one entry per requirement with its level, profiles or criticality (ASD: maturity level and strategy, or ISM guideline, section and applicability). It does not list tests. A CIS, CISA or ASD check names its requirement in `Control`; add the requirement here in the same pull request if it is new, or the build fails. The ASD files are generated by `build/asd/Update-AsdFramework.ps1`. |

Suite folders: `tests/maester/<service>/` (`MT.xxxx`; services such as `entra`, `exchange`, `teams`, `defender`,
`azure`, `intune`, and `xspm` for exposure management, which has its own `suite.json`), `tests/cisa/<service>/`
(`CISA.MS.*`), `tests/cis/` (`CIS.M365.*`), `tests/asd/<service>/` (`ASD.ISM-xxxx`, named after the ISM control the
check implements), `tests/ad/<area>/` (`AD-*`), and the generated `tests/eidsca/` and
check implements), `tests/disa/` (`DISA.V-xxxxxx`, named after the STIG rule), `tests/ad/<area>/` (`AD-*`), and the generated `tests/eidsca/` and
`tests/orca/`. Every folder name is lowercase kebab-case; see the repository layout in
[the contributing guide](../../../website/docs/contributing.md#repository-layout).

Expand All @@ -104,8 +104,18 @@ New-MtTest -Id MT.1234 -Title 'At least one Conditional Access policy blocks dev
```

Only `-Id` and `-Title` are required, so you can scaffold first and set the other values once the `.md` is
written (see [Choosing the attribute values](#choosing-the-attribute-values)). `New-MtTest` does not write
`Author`; add it.
written (see [Choosing the attribute values](#choosing-the-attribute-values)). `New-MtTest` is made for custom
tests, so for a built-in check finish what it leaves:

- It warns that the `MT`, `CIS`, `CISA`, `ASD` and other built-in prefixes are reserved. For a check that ships
with Maester the warning is expected; ignore it.
- It names the function after the ID (`Test-MT1234`). Rename it to say what it checks
(`Test-MtCaBlockDeviceCodeFlow`), with the `Mt` prefix and an approved verb.
- `-Setting EmergencyAccessAccounts` (one or more registered settings) writes the bound parameter for each, with
the registry's type, default and allowed values. Other parameters are added by hand; the
[test builder](https://maester.dev/test-builder) writes them and checks their names.
- It does not write `Author`. Add the contributor's GitHub handle; ask if you do not know it, and do not take it
from the git email address.

```powershell
function Test-MtCaBlockDeviceCodeFlow {
Expand Down Expand Up @@ -235,6 +245,10 @@ Licence tokens: `AAD_PREMIUM` (Entra ID P1 or better), `AAD_PREMIUM_P2`, `Entra_
that kind exist). Never return `$null` to mean "not applicable".
- Never use `NotConnected*` or `NotLicensed*` skip codes in a built-in check; declare `Service` /
`License`.
- A check that needs a setting the organisation has not filled in, such as `EmergencyAccessAccounts`, must not
fail and must not pass: skip with `-SkippedBecause Custom -SkippedCustomReason '<what to set and where>'`, naming
the setting and linking its configuration page (see `tests/maester/global-secure-access/Test.MT.1191.ps1`).
`NotApplicable` is for tenant state, not for missing configuration.
- Checks that need delegated permissions skip with `-SkippedBecause NotSupportedAppPermission` when
`(Get-MgContext).AuthType -ne 'Delegated'`.

Expand All @@ -254,8 +268,12 @@ param(
)
```

- Types: `int`, `bool`, `switch`, `string`, `string[]`. Constant defaults. Nothing mandatory: the check must run
with no config.
- Types: `int`, `bool`, `switch`, `string`, `string[]` (and `object[]` only when bound to a setting). Constant
defaults. Nothing mandatory: the check must run with no config.
- Names follow the rubric's "Parameter names": PascalCase; `Maximum`/`Minimum` + what + unit
(`MaximumInactiveDays`, never `MaxInactiveDays` or `...InDays`); plural lists (`ExcludedGroups`); say what is
measured. Reuse a name other tests already use for the same idea (`Get-MtTest` lists them). Unit tests
(`TestParameterNames.Tests.ps1`) and the attribute review enforce this.
- Every parameter has a **one-line** `#` comment directly above it (only the nearest comment line is read), or
`.PARAMETER` help. The unit tests require a description.
- Thresholds get `ValidateRange`; choices get `ValidateSet`.
Expand All @@ -279,8 +297,34 @@ Each instance object has `Id` (required, unique, `^[A-Za-z0-9][A-Za-z0-9._-]{0,1

### Settings

Read tenant-wide settings with `Get-MtSetting -Name <name>` (for example `EmergencyAccessAccounts`). New settings
Maester itself reads go in `powershell/assets/MaesterSettings.psd1` with a type, default and description.
A tenant-wide setting (`EmergencyAccessAccounts`, `ParkedDomains`, ...) reaches a check as a parameter bound to it,
never through `Get-MtSetting` in the check:

```powershell
param(
# Emergency access (break glass) accounts and groups, from the EmergencyAccessAccounts setting.
[MaesterParameter(Setting = 'EmergencyAccessAccounts')]
[object[]] $EmergencyAccessAccounts = @()
)
```

The engine binds `GlobalSettings.<Setting>` when the test's `TestSettings` row does not set the parameter, and
records `Source = 'Setting'`. Pass the value on to helpers (`Get-MtEmergencyAccessAccount -Account
$EmergencyAccessAccounts`). Bind only a fact about the tenant or a choice made once for all tests; a value a
benchmark sets stays a plain parameter. A new built-in setting goes in `powershell/assets/MaesterSettings.psd1`
with its `Type`, default, description, `AllowedValues`, `Items` (for a list of objects) and, for IDs or domains,
`Kind`. The parameter's type, default and `ValidateSet` must match the registry entry, because the config is
checked against the registry once before a run.

- A built-in test never calls `Get-MtSetting`, and a helper never reads a setting that tests bind.
- A shim declares each bound parameter of the test it calls and passes it on
(`return Test-MtX -EmergencyAccessAccounts $EmergencyAccessAccounts`); otherwise the called test runs with the
default.
- A connection or transport setting that a connect command or data helper needs is read with `Get-MtSetting` and
must still be registered; the read is recorded on the result as `SettingsRead`.
- A pack declares its `Namespace.Key` settings under `Settings` in `maester-pack.json`.

`powershell/tests/general/TestParameterNames.Tests.ps1` and `TestShims.Tests.ps1` enforce these.

## Data Retrieval

Expand Down Expand Up @@ -531,8 +575,16 @@ the rubric. When you review a check yourself, follow "Reviewing a test's attribu
rules of a custom test, so it does not report a missing attribute or a key that is not in the taxonomy.
9. **Run against a tenant**: `Connect-Maester; Invoke-MtTest -Path <file>` (or `Invoke-MtTest -Id <ID>`). Try
`-Parameter @{...}` for each parameter. Check the row's `Result`, `ReasonCode`, `ResultDetail.TestResult`.
10. **Run the unit tests**: `./powershell/tests/pester.ps1`. `powershell/tests/general/NativeTestLint.Tests.ps1`
and `powershell/tests/general/NativeTestAttributes.Tests.ps1` check every built-in test.
10. **Update the golden fixture.** A new built-in test changes the number of tests each selection returns, so
`powershell/tests/general/Golden.Tests.ps1` fails until you run `./build/golden/Export-MtGoldenFixture.ps1` and
commit `powershell/tests/fixtures/golden/selection.json`. Commit only that file: on macOS and Windows the
script can also rewrite the case of a path in `config-layouts/`, which you revert.
11. **Update the pages that list the tests of a setting.** If the check binds `EmergencyAccessAccounts`, add it to
"Related Tests" in `website/docs/configuration/emergency-access-accounts.md`.
12. **Run the unit tests**: `./powershell/tests/pester.ps1`. `powershell/tests/general/NativeTestLint.Tests.ps1`
and `powershell/tests/general/NativeTestAttributes.Tests.ps1` check every built-in test. A new `.ps1` file
needs a UTF-8 byte order mark (`FileEncoding.Tests.ps1`); the test only sees files git tracks, so `git add`
the new files before the run.

## Converting a User's Pester-format Test

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/blog-cards.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
run: node scripts/blog-cards/generate-blog-cards.mjs --suggest

- name: Create pull request
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
uses: peter-evans/create-pull-request@15733dbdfeedb4f7fdb73d13c6f5ac83b710fab8 # v8.1.2
with:
token: ${{ steps.app-token.outputs.token }}
branch: automation/blog-cards
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-engine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
with:
persist-credentials: false

- uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
- uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
global-json-file: src/global.json

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ jobs:
# uses: actions/setup-example@v1
- name: Setup .NET
if: matrix.language == 'csharp'
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
global-json-file: src/global.json

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4
uses: github/codeql-action/init@33d7b85da1a04171e211befe2c739303b9a4c066 # v4
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
Expand All @@ -109,6 +109,6 @@ jobs:
run: dotnet build Maester.Engine.csproj -c Release -o "$RUNNER_TEMP/maester-engine" -nologo

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4
uses: github/codeql-action/analyze@33d7b85da1a04171e211befe2c739303b9a4c066 # v4
with:
category: "/language:${{matrix.language}}"
2 changes: 1 addition & 1 deletion .github/workflows/eidsca-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
# With no changes against main, the action closes an open pull request and deletes its branch.
- name: Create or update the sync pull request
id: pr
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
uses: peter-evans/create-pull-request@15733dbdfeedb4f7fdb73d13c6f5ac83b710fab8 # v8.1.2
with:
token: ${{ steps.app-token.outputs.token }}
commit-message: 'chore: update EIDSCA tests from the EIDSCA config'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-module-manualversionupdate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:
run: node ./build/Update-WebsiteReleaseVersion.mjs "$MODULE_VERSION"

- name: Create website release version pull request
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
uses: peter-evans/create-pull-request@15733dbdfeedb4f7fdb73d13c6f5ac83b710fab8 # v8.1.2
with:
token: ${{ steps.app-token.outputs.token }}
commit-message: 'ci(docs): update website release version ${{ steps.moduleversion.outputs.tag }}'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-module.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:
run: node ./build/Update-WebsiteReleaseVersion.mjs "$MODULE_VERSION"

- name: Create website release version pull request
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
uses: peter-evans/create-pull-request@15733dbdfeedb4f7fdb73d13c6f5ac83b710fab8 # v8.1.2
with:
token: ${{ steps.app-token.outputs.token }}
commit-message: 'ci(docs): update website release version ${{ steps.moduleversion.outputs.tag }}'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-eam-classification.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ jobs:

- name: Create Pull Request
if: steps.diff.outputs.changed == 'true'
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
uses: peter-evans/create-pull-request@15733dbdfeedb4f7fdb73d13c6f5ac83b710fab8 # v8.1.2
with:
token: ${{ steps.app-token.outputs.token }}
commit-message: 'chore: update EAM role classification'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-license-service-plans.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
permission-pull-requests: write

- name: Create Pull Request
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
uses: peter-evans/create-pull-request@15733dbdfeedb4f7fdb73d13c6f5ac83b710fab8 # v8.1.2
with:
token: ${{ steps.app-token.outputs.token }}
add-paths: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-public-suffix-list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
permission-pull-requests: write

- name: Create Pull Request
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
uses: peter-evans/create-pull-request@15733dbdfeedb4f7fdb73d13c6f5ac83b710fab8 # v8.1.2
with:
token: ${{ steps.app-token.outputs.token }}
commit-message: 'chore: update public suffix list'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-role-definitions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:

- name: Create Pull Request
if: success()
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
uses: peter-evans/create-pull-request@15733dbdfeedb4f7fdb73d13c6f5ac83b710fab8 # v8.1.2
with:
token: ${{ steps.app-token.outputs.token }}
title: Update Entra ID role definitions
Expand Down
16 changes: 11 additions & 5 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ maester.dev), `report/` (React app that builds the HTML report template).

## Commands

- Unit tests: `./powershell/tests/pester.ps1` — run before pushing. These enforce
- New built-in test: `git add` its files, then `./build/golden/Export-MtGoldenFixture.ps1` and commit
`powershell/tests/fixtures/golden/selection.json` (the selection counts change); the unit tests fail otherwise.
- Unit tests: `./powershell/tests/pester.ps1` — run before pushing. Some checks (file encoding) only see files
git tracks, so `git add` new files first. These enforce
naming, exports, help, and PSScriptAnalyzer conventions; fix what they flag.
- Build module: `./build/Build-MaesterModule.ps1`; validate: `./build/Test-MaesterModuleOutput.ps1`
- Website: `cd website && npm ci && npm start` · Report: `cd report && npm ci && npm run build`
Expand All @@ -51,17 +54,20 @@ maester.dev), `report/` (React app that builds the HTML report template).
- A test is mapped to a framework in one place: the `Control` attribute, `<framework-key>:<requirement-id>`. A
CIS test carries `Control = 'cis-m365:5.1.5.1'`, a CISA test `Control = 'cisa-scuba:MS.AAD.3.1'`, and any other
test may name the same requirements. An ASD test carries `Control = 'essential-eight:ISM-1504'` (or `ism:<id>` for a
control outside the maturity model). Every test in `tests/cis`, `tests/cisa` and `tests/asd` must name a requirement of its
control outside the maturity model). A DISA test carries the STIG rule it checks, `Control = 'disa-stig-entra-id:V-270233'`.
Every test in `tests/cis`, `tests/cisa`, `tests/asd` and `tests/disa` must name a requirement of its
suite's framework. The engine builds `Benchmark` from the first `Control` that a framework file knows and adds
that requirement's `Related` references to `Control`; do not repeat those, and do not add benchmark tags.
- A framework file is a catalogue, not a list of tests: `tests/<suite>/frameworks/<key>.json`
(`tests/cis/frameworks/cis-m365.json`, `tests/cis/frameworks/cis-github.json`,
`tests/cisa/frameworks/cisa-scuba.json`, and the generated `tests/asd/frameworks/essential-eight.json` and
`tests/asd/frameworks/ism.json`, written by `build/asd/Update-AsdFramework.ps1` from the ISM OSCAL release),
`tests/asd/frameworks/ism.json`, written by `build/asd/Update-AsdFramework.ps1` from the ISM OSCAL release, and
the DISA STIG files `tests/disa/frameworks/disa-stig-entra-id.json`, `disa-stig-intune-mdm.json` and
`disa-stig-intune-desktop.json`),
declared in the suite's `suite.json` (`Frameworks`: `Key`,
`Version`). It holds the framework's name and version and each requirement's `Id` and facts (CIS `Level` and
`Profile`; CISA `Criticality`, `Upstream` and `Related` NIST references; Essential Eight `Level` and `Strategy`;
ISM `Guideline`, `Section` and `Applicability`), never the text of a benchmark and
ISM `Guideline`, `Section` and `Applicability`; DISA STIG `Category`, `RuleId` and `StigId`), never the text of a benchmark and
never a `Tests` list. When a new test implements a requirement the file does not have, add the requirement in
the same commit, or `./build/Build-MaesterModule.ps1` and the unit tests fail.
- Checks read through the session cache. A run reports on one snapshot of the tenant, so no check, pack or helper
Expand All @@ -87,7 +93,7 @@ enforces them. When writing or reviewing a change, check every added, moved or r
framework files, `frameworks/<key>.json` beside its `suite.json` (lowercase key; nothing else goes in a
`frameworks/` folder).
Suites: `maester/<service>/` (plus `drift/`; `maester/xspm/` has its own suite.json),
`cis/`, `cisa/<service>/`, `asd/<service>/`, `ad/<area>/`, generated `eidsca/` and `orca/`, and `custom/`
`cis/`, `cisa/<service>/`, `asd/<service>/`, `disa/`, `ad/<area>/`, generated `eidsca/` and `orca/`, and `custom/`
(reserved for users; never commit tests there).
- `powershell/public/` (exported) is grouped by job: `run/`, `connect/`, `report/`, `app/`,
`packs/`, `services/<service>/`. `powershell/internal/` uses `engine/`, `session/`, `connect/`,
Expand Down
Loading
Loading