Skip to content

Research: Exposure Management initiatives and metrics API #2520

Open

Description

@merill

Summary

Microsoft Security Exposure Management groups posture into initiatives (Identity security, Ransomware protection, Business email compromise, Cloud security, …) with a score and metrics per initiative. Discussion #810 asks how Maester compares. Importing initiative scores would show Maester results in the same framing.

Opt-in. Like everything under #2510, this does not run by default; users turn it on explicitly, and any extra permission it needs is only requested then.

Questions

  • Is there a supported API for initiative and metric scores today? If only the portal has them, track until one ships.
  • Which metrics map to existing Maester checks or to Secure Score controls (overlap with Map Maester tests to Secure Score controls to avoid double counting #2512)?
  • Can critical asset classification (ExposureGraphNodes criticality) raise the severity of Maester findings on those assets?

Outcome: a short write-up and, if an API exists, a follow-up issue.


Generated by Claude Code

Activity

  1. added
    enhancement
    on Oct 23, 2026
  2. added
    question
    product: defender
    and removed on Oct 23, 2026
  3. Dfrank77 commented on Nov 6, 2026

    @Dfrank77
    Contributor

    I'll take this one. It overlaps with #2512, which I've picked up, and question 3 lines up with the attack path work I've been doing. I'll post a write-up here covering whether there's a supported API for initiative and metric scores, which metrics map to Maester checks or Secure Score controls, and whether ExposureGraphNodes criticality can be used to raise severity.

  4. Dfrank77 commented on Nov 6, 2026

    @Dfrank77
    Contributor

    Here's the write-up for this one. Everything below comes from my own test tenant, so treat the coverage numbers as one tenant's view, not Microsoft's full catalog.

    1. Is there a supported API for initiative and metric scores?

    No. I pulled Graph's $metadata for v1.0 and beta and searched it for initiative, metric, exposure management and exposure score. Nothing came back for initiative or metric scores. The only near hit was criticalAssetManagementClassificationRecord, which is about classification records, not scores. The Exposure Management docs only show these scores in the Defender portal. So per the issue, this is "track until one ships," and there's no follow-up issue.

    1. Which metrics map to Maester checks or Secure Score controls?

    Since there's no API, I exported each initiative's recommendation lists and each metric's PDF from the portal. 5 of the 12 domain initiatives have data in my tenant: Identity Security, CIS M365 Foundations Benchmark, Business Email Compromise, SaaS Security and Zero Trust (Foundational). The other 7, including Ransomware Protection and Cloud Security, show no data.

    262 unique recommendations. All 262 match a Secure Score control by title (from /security/secureScoreControlProfiles).
    84 have a matching Maester test, 18 partly match, 160 have no match. Most of the 160 are third-party SaaS through Defender for Cloud Apps (99, things like Salesforce, ServiceNow, GitHub and Okta's own settings) and Defender for Identity items (45, mostly on-prem AD like ADCS ESC1 to ESC15 and Entra Connect accounts, plus Okta and PingOne privileged accounts).
    44 metrics have data. 19 are fully covered by existing Maester tests, 25 are partly covered, and none have zero coverage.

    A few examples:

    "Users without MFA enabled" has 1 recommendation, covered by CIS.M365.5.2.2.2.
    "Non compliant Impersonation Protection controls" has 11. 9 are covered by ORCA tests and 2 partly.
    "Missing best practices to ensure effective password hygiene" is mostly on-prem. 5 are covered, 3 partly, 6 not at all.

    For #2512: 102 recommendations have both a Maester test (full or partial) and a Secure Score control. MT.1264, which I have open in #2672, reports Secure Score controls, so once it's merged these are the ones that could show up twice. Each row in the mapping file has the Secure Score control ID next to the Maester test ID, so it should work as a starting list.

    1. Can criticality raise the severity of Maester findings?

    The data part works. Criticality is readable, and Maester already reads it in Get-MtXspmUnifiedIdentityInfo.

    The severity part doesn't work today. On MT.1262 I saw that -Severity on Add-MtTestResultDetail is ignored in a single-result native test, and the writing-tests docs say the same. The xspm tests (MT.1079, MT.1086, MT.1087, MT.1088) pass -Severity that way, so it has no effect there. In a family (InstanceSource), each instance can carry its own Severity, which applies unless the config sets one. So raising severity on critical assets would need those tests to become families.

    Limits

    One test tenant. Recommendations Microsoft doesn't show for my tenant aren't in here.
    Matches are based on reading the test titles, descriptions and some of the test code, not on running each test against each recommendation.
    3 metric PDFs list one fewer recommendation than the portal shows (password hygiene 14 of 15, BEC sensitive data 4 of 5, BEC Outlook 16 of 17). I'm not sure why.

    Files attached:

    2520-metrics.csv: one row per metric with coverage counts
    2520-metric-detail.csv: every recommendation in each metric, with its Maester test and Secure Score ID
    2520-mapping.csv: all 262 recommendations

    2520-metrics.csv

    2520-metric-detail.csv

    2520-mapping.csv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementproduct: defenderquestion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions