Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
030523f
feat(defender): add MT.1264 - one result per Microsoft Secure Score i…
Dfrank77 Nov 3, 2026
df3ead8
chore: regenerate golden fixtures and test builder data for MT.1264
Dfrank77 Nov 3, 2026
b8ce826
fix(defender): MT.1264 review fixes - exposure-management feature, Me…
Dfrank77 Nov 3, 2026
88faee6
fix(defender): MT.1264 report scored controls with no profile instead…
Dfrank77 Nov 3, 2026
2296a1c
fix: remove duplicate preview scope, add instance-to-skip test for MT…
Dfrank77 Nov 3, 2026
e36f951
Merge branch 'main' into feat/mt1264-secure-score
merill Nov 4, 2026
a4925cd
Regenerate the golden selection fixture after merging main
merill Nov 4, 2026
84648c6
Merge remote-tracking branch 'upstream/main' into feat/mt1264-secure-…
Dfrank77 Nov 5, 2026
d226517
chore: regenerate golden fixture after merging main
Dfrank77 Nov 5, 2026
cd17d67
fix: keep preview scopes in alphabetical order
Dfrank77 Nov 5, 2026
d9fd1c8
chore: re-run CI
Dfrank77 Nov 5, 2026
81c5ed1
chore: re-run CI
Dfrank77 Nov 5, 2026
db1d02a
fix(defender): MT.1264 declare supported clouds and add BOM
Dfrank77 Nov 5, 2026
6d01652
MT.1264: place each action under its own product
Dfrank77 Nov 7, 2026
7a8cc35
fix(defender): MT.1264 turns control names into valid instance IDs
merill Nov 8, 2026
316201b
Merge remote-tracking branch 'upstream/main' into feat/mt1264-secure-…
Dfrank77 Nov 8, 2026
97578d2
Merge branch 'feat/mt1264-secure-score' of https://github.com/Dfrank7…
Dfrank77 Nov 8, 2026
d30f91a
MT.1264: escape updatedBy like the comment next to it
Dfrank77 Nov 8, 2026
742a5eb
feat(defender): MT.1264 show the Secure Score snapshot date in each r…
Dfrank77 Nov 13, 2026
e7cb545
Merge remote-tracking branch 'upstream/main' into feat/mt1264-secure-…
Dfrank77 Nov 16, 2026
38578c0
fix(defender): MT.1264 keep decoded markup from reaching the report a…
Dfrank77 Nov 16, 2026
ea33c24
Merge remote-tracking branch 'upstream/main' into feat/mt1264-secure-…
Dfrank77 Nov 18, 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
1 change: 1 addition & 0 deletions powershell/public/connect/Get-MtGraphScope.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
'AgentIdentityBlueprintPrincipal.Read.All'
'Application.Read.All'
'IdentityRiskyUser.Read.All'
'SecurityEvents.Read.All'
)

if ($IncludePreview) {
Expand Down
9 changes: 6 additions & 3 deletions powershell/tests/fixtures/golden/selection.json
Original file line number Diff line number Diff line change
Expand Up @@ -1951,7 +1951,7 @@
"AD"
]
},
"SelectedCount": 609,
"SelectedCount": 610,
"SelectedFamilies": [
"MT.1024",
"MT.1059",
Expand Down Expand Up @@ -2499,6 +2499,7 @@
"MT.1252",
"MT.1259",
"MT.1260",
"MT.1264",
"MT.1265",
"ORCA.100",
"ORCA.101",
Expand Down Expand Up @@ -2581,7 +2582,7 @@
"AD"
]
},
"SelectedCount": 639,
"SelectedCount": 640,
"SelectedFamilies": [
"MT.1024",
"MT.1033",
Expand Down Expand Up @@ -3161,6 +3162,7 @@
"MT.1252",
"MT.1259",
"MT.1260",
"MT.1264",
"MT.1265",
"ORCA.100",
"ORCA.101",
Expand Down Expand Up @@ -4006,7 +4008,7 @@
"AD"
]
},
"SelectedCount": 595,
"SelectedCount": 596,
"SelectedFamilies": [
"MT.1024",
"MT.1033",
Expand Down Expand Up @@ -4542,6 +4544,7 @@
"MT.1252",
"MT.1259",
"MT.1260",
"MT.1264",
"MT.1265",
"ORCA.100",
"ORCA.101",
Expand Down
2 changes: 2 additions & 0 deletions powershell/tests/functions/Get-MtGraphScope.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
$scopes | Should -Not -Contain 'AgentIdentityBlueprint.Read.All'
$scopes | Should -Not -Contain 'AgentIdentityBlueprintPrincipal.Read.All'
$scopes | Should -Not -Contain 'Application.Read.All'
$scopes | Should -Not -Contain 'SecurityEvents.Read.All'
$scopes | Should -Not -Contain 'IdentityRiskyUser.Read.All'
$scopes | Should -Contain 'Directory.Read.All'
$scopes | Should -Not -Contain 'User.ReadBasic.All'
Expand All @@ -41,6 +42,7 @@
$scopes | Should -Contain 'AgentIdentity.Read.All'
$scopes | Should -Contain 'AgentIdentityBlueprint.Read.All'
$scopes | Should -Contain 'AgentIdentityBlueprintPrincipal.Read.All'
$scopes | Should -Contain 'SecurityEvents.Read.All'
$scopes | Should -Contain 'Application.Read.All'
$scopes | Should -Contain 'IdentityRiskyUser.Read.All'
$scopes | Should -Contain 'AuditLog.Read.All'
Expand Down
431 changes: 431 additions & 0 deletions powershell/tests/functions/Test-MtSecureScoreControl.Tests.ps1

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions tests/maester/defender/Test.MT.1264.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Microsoft Secure Score improvement actions should be completed.

Microsoft Secure Score measures a tenant's security posture as points earned across a list of recommended improvement actions, such as requiring multifactor authentication for administrators or turning on Safe Links. Maester reads the tenant's latest Secure Score and creates one result per improvement action the tenant is scored on (MT.1264.<control name>). Improvement actions that are not part of the tenant's score are not reported.

These results are not native Maester checks. The improvement actions, their points and the status details come from Microsoft Secure Score. A change made in the tenant usually takes 24 to 48 hours to show in Secure Score, and some Microsoft Teams and Microsoft Entra improvement actions refresh less often.

An improvement action passes when it has all of its points and fails when it has fewer, showing the points earned. The severity of each result comes from the action's maximum points: 8 or more is High, 4 to 7 is Medium, and below 4 is Low. Improvement actions that an administrator has set to **Risk accepted**, **Resolved through third party** or **Resolved through alternate mitigation** in the Microsoft Defender portal, or that carry the older **Reviewed** state, are skipped, with the status, who set it and their note, so decisions already made in the portal are respected. Improvement actions set to **Planned** are still checked, since the work is not done yet.

Some improvement actions, such as multifactor authentication for administrators, are also Entra recommendations reported by MT.1024. Maester matches them by name against the tenant's Entra recommendations, and those results note the overlap.

The check needs the Microsoft Graph permission `SecurityEvents.Read.All`, which Maester does not request by default. Without it the check is skipped. Connect with `Connect-Maester -IncludePreview`, or grant the permission to the app registration that runs Maester.

#### Remediation action

Open each failed improvement action in the [Microsoft Secure Score](https://security.microsoft.com/securescore) page of the Microsoft Defender portal and follow its implementation steps. If an improvement action does not apply to your tenant, or is already covered by another product, set its status to **Risk accepted**, **Resolved through third party** or **Resolved through alternate mitigation** in the Defender portal; Maester then skips it on the next run. Improvement actions in the Device category can't be given a status there; Microsoft directs you to the matching Defender Vulnerability Management recommendation instead.

#### Related links

- [Microsoft Secure Score](https://learn.microsoft.com/defender-xdr/microsoft-secure-score)
- [Assess your security posture with Microsoft Secure Score](https://learn.microsoft.com/defender-xdr/microsoft-secure-score-improvement-actions)
- [Microsoft Secure Score - Microsoft Defender portal](https://security.microsoft.com/securescore)

<!--- Results --->
%TestResult%
Loading
Loading