Microsoft 365 penetration testing methodology

A Microsoft 365 penetration test validates how your tenant, identities and connected services hold up against an attacker, within Microsoft's cloud testing rules. This page explains the phases, standards, costs and deliverables.

On this page

Microsoft 365 penetration testing methodology: what it validates and why buyers commission it

A Microsoft 365 penetration test validates whether your tenant's defenses hold against an attacker who is already trying to get in. Buyers usually commission one because a compliance framework, a customer's security review, a product launch, an insurer or an acquisition due diligence asks for evidence that the tenant has been tested, not only configured. Microsoft describes penetration testing as a methodology that uses ethical hacking techniques to validate the security defenses of a system. For Microsoft 365, that means checking whether the identity layer, tenant configuration, email, collaboration services such as SharePoint and Teams, and connected apps and consented third-party integrations can be abused in ways that expose mail, files or administrative control. The main risks are account takeover through weak sign-in controls, privilege escalation through over-broad admin roles or app permissions, and data exposure through external sharing and misconfigured mail flow.

A tester working in this area has to stay inside Microsoft's rules. Microsoft requires tests of its cloud services to follow the Microsoft Cloud Penetration Testing Rules of Engagement, so the method cannot include anything those rules prohibit, such as denial-of-service attacks or attacks against Microsoft's own infrastructure. Before work starts, confirm with the provider which tenant assets are in scope, which test accounts will be used, and whether any third-party connected apps belong to your organization or to a vendor whose terms you must also respect. Ask the provider to show, in writing, how each planned technique maps to those rules.

Expect the work to split into configuration review against published baselines and attacker-style validation of the paths that matter most. The configuration side is where ScubaGear and the CIS Microsoft 365 benchmark usually feed the report, while the validation side tests whether a finding is actually exploitable in your tenant. Ask the provider to explain which findings were validated and which were only observed, and confirm how test accounts, logs and any changes made during testing will be documented and cleaned up afterward.

What can be in scope for a Microsoft 365 penetration test

A Microsoft 365 test covers more than one service, and each decision point changes what the tester may touch and what the findings mean. The cards below cover the tenant and workloads, the assets and accounts you own, the identities used for testing, hybrid links, connected apps and rules of engagement. Agree each one in writing before any work starts.

Tenant and core workloads

Decide which Microsoft 365 workloads sit in scope: Exchange Online, SharePoint Online, OneDrive, Teams and Entra ID. Each workload has its own sharing, mail flow, external access and guest settings, so a tester needs the list to plan both configuration review and hands-on validation. Ask the provider to confirm which workloads are covered by the test and which are reviewed only from configuration exports.

Enterprise access model

Your own assets and accounts

Testing stays on tenants, domains, mailboxes and applications your organization owns or is authorized to test. Name each tenant ID, verified domain and test mailbox in the scope document. Anything hosted by a partner, reseller or customer tenant needs that party's written permission before testing starts.

Test identities and roles

Choose the account levels the tester will use: a guest account, a standard licensed user and, where justified, a privileged role. Each level answers a different question, such as what an external collaborator can reach or what an administrator can change. Record which accounts are created for the test, who holds their credentials and when they are removed.

Hybrid links to on-premises AD

If the tenant syncs with on-premises Active Directory, decide whether the sync servers, sign-in method and federation trust are in scope. Entra Connect and Cloud Sync servers hold credentials and can act as paths into the cloud. Confirm with the provider whether those servers are tested in this engagement or in a separate Active Directory test.

Entra Connect overview

Third-party connected apps

List the OAuth applications, enterprise apps and consent grants that connect to the tenant. Decide whether the test covers only consent settings and permissions, or also the security of the third-party vendor's own service. Vendor-hosted systems usually need the vendor's agreement, so ask early whether one is needed.

Dynamics 365 and Power Platform

Where the organization uses Dynamics 365 or Power Platform, decide whether those environments are part of the same test. Each has its own environments, connectors, data loss prevention policies and admin roles. Microsoft's Power Platform guidance treats penetration testing as work done by security experts outside the application team, so agree who runs it and when.

Power Platform testing guidance

Rules of engagement

Write down the testing window, permitted techniques, prohibited actions, emergency contacts and the method for reporting findings. Microsoft requires tests of its cloud services to follow the Microsoft Cloud Penetration Testing Rules of Engagement, so the document must reflect those limits. Ask the provider to show how it will stay within them and to sign the agreed scope before work begins.

Planning phase basis
NIST SP 800-115

How the testing phases run under NIST SP 800-115

The sequence moves from agreed rules and documented approval through tenant discovery and controlled validation to a written report and a retest, so each phase produces evidence the next one depends on.

  1. Identify rules and document management approval

    The tester and your team agree the tenant, workloads, accounts, test windows and prohibited actions, then record them in a rules of engagement document built from the template in Appendix B of NIST SP 800-115. Microsoft's Cloud Penetration Testing Rules of Engagement apply to every cloud test, so the tester confirms the method stays inside them. The step is complete when a named executive has approved the document in writing and the tester has confirmed the permitted techniques back to you.

  2. Collect tenant and service configuration

    Under the planning and conducting phases of NIST SP 800-115, the tester starts with review techniques. These include reading tenant settings, licensing, administrative role assignments, identity policies, and the configuration of Exchange Online, SharePoint, Teams and endpoint management that your administrators provided or that the tester can view with the agreed accounts. Review of documentation and interviews with administrators usually runs alongside this work. The step closes when the tester has an inventory of in-scope services and a list of configuration questions to test.

  3. Enumerate tenant and service exposure

    The tester applies target identification and analysis techniques to map what an external or authenticated user can reach: tenant domains, federated and synchronized identities, exposed sign-in endpoints, shared links, and integrated third-party apps and consents. Each item is tied to the owner and the workload it belongs to, so findings are traceable. The step is complete when the target list is reconciled with the rules of engagement and anything out of bounds is removed or flagged for approval before validation begins.

  4. Validate identity and access weaknesses

    This is the target vulnerability validation phase under NIST SP 800-115. The tester checks, in a controlled way, whether weaknesses such as legacy authentication, gaps in multifactor enforcement, overly broad privileged roles, risky app consent and external sharing can be used to reach data or administrative functions. Test accounts are used where agreed, actions are logged, and the tester stops at the point the rules of engagement allow. The step is done when each validated weakness has a recorded reproduction path, affected scope and the evidence needed to show the impact.

  5. Check configuration against published baselines

    Configuration findings are compared with recognized baselines, such as the CISA secure configuration baselines for Microsoft 365 workloads and the CIS Microsoft 365 benchmark, so each deviation has a reference point your auditor or customer can follow. Where the tester uses an automated assessment tool, its output is checked by hand for false positives and for settings that the tenant's license or business use makes acceptable. The step closes when every finding has a status of confirmed, accepted with reason or not applicable.

  6. Evaluate impact and write the report

    NIST SP 800-115 treats evaluation as its own phase, so the tester ranks each confirmed weakness by likelihood and business impact, then writes an executive summary, a technical narrative of the validated paths, and remediation guidance for each item. Evidence such as screenshots, configuration exports and log references is attached and sanitized of tenant data. You know the step is complete when a report reviewer from your side has accepted the findings wording and the evidence is filed for your records.

  7. Retest the remediated findings

    After your team applies fixes, the tester repeats the validation steps for each finding that was marked for remediation and records whether the weakness is closed, partly closed or still open. Retests are typically scoped as a separate agreed item in the written scope, so you should confirm with the provider how many retest rounds are included and what happens to new findings discovered during the retest. The step is done when a retest report confirms the status of every finding and any residual risk is accepted in writing.

Which weakness categories a Microsoft 365 test looks for

This table maps the main weakness categories a Microsoft 365 penetration test examines, showing what each looks like inside a tenant and why it matters to the business. Read each row as a question to ask a provider: where in the tenant will you look, and what evidence will you bring back. The common thread is that identity, consent and sync settings often decide how far an attacker can travel once a single account is compromised.

Weakness categoryWhat it looks like in a tenantWhy it matters
Sign-in and MFA gapsUsers or groups excluded from MFA, weak second factors such as SMS, or MFA that can be bypassed through alternate sign-in pathsA single phished password can become full mailbox and file access when the second factor does not hold
Legacy authenticationProtocols such as basic-auth IMAP, POP or older SMTP still enabled, often because a line-of-business app or device still depends on themLegacy protocols commonly skip modern MFA checks, so a stolen password may work there even when the portal enforces MFA
Conditional Access coveragePolicies that apply to some apps, roles or locations but leave gaps, such as guest users, service accounts or unmanaged devicesCoverage gaps decide whether controls protect the paths attackers actually use, not just the ones listed in the policy design
Privileged role sprawlStanding Global Administrator or other high-privilege roles assigned to many accounts, shared admin accounts or admins without separate cloud-only identitiesEach standing privileged account widens the blast radius of a single credential theft and makes oversight harder
Risky third-party app consentUsers or apps granted broad delegated or application permissions, such as mail or file read-all, through tenant-wide or user consentA consented app can read data without the user's password, and such grants often persist after the user changes credentials
Mail flow and forwarding exposureAuto-forwarding rules to external addresses, permissive transport rules, or inbound and outbound connectors that accept mail from unverified sourcesSilent forwarding lets an attacker keep reading mail after a password reset, and weak mail flow controls make spoofing and phishing easier
External sharing and guest accessAnonymous links or broad external sharing on SharePoint and OneDrive, and guest accounts with access to sensitive sites or teamsOvershared content is often the easiest data path, and guest accounts may sit outside the controls applied to employees
Sync-related control plane riskOn-premises Entra Connect servers with excessive rights, unsupported installations or unmanaged admin access to the sync host. Entra Connect V1 was retired on 31 August 2022 and is no longer supported, and Microsoft names Entra Cloud Sync as the successorA sync server can hold a path from on-premises Active Directory into the cloud tenant, so compromise there can become cloud administrative control

Which compliance frameworks expect this testing

A Microsoft 365 test does not satisfy network penetration testing requirements by default. PCI DSS requirement 11.4.1 defines internal penetration testing as testing from inside the network, including inside the cardholder data environment (CDE) and into it from trusted and untrusted internal networks, and external testing as testing the exposed perimeter and critical systems reachable from public networks. If Microsoft 365 tenants, Entra Connect or Cloud Sync servers, or hybrid identity paths can reach systems in the CDE, or if sign-in and sync services sit on the internal network, the assessor will expect those paths to be covered by the internal test under requirements 11.4.2 and 11.4.3. Confirm with your QSA or internal assessor whether Microsoft 365 is in scope for the CDE before you write the scope statement, because the answer decides whether a tenant review alone is enough.

The same logic applies to segmentation. Requirement 11.4.5 calls for penetration testing of segmentation controls at least every 12 months and after changes, and requirement 11.4.6 raises that to every six months for service providers. For a Microsoft 365 workstream, the question to settle is whether any identity, mail, or collaboration path, such as a synced privileged account, a hybrid service connection, or a shared administrative host, could bridge the boundary. CIS Controls v8.1 Safeguard 18.2 (external penetration testing) and Safeguard 18.5 (internal penetration testing) ask for annual tests, and either may be clear box or opaque box. Your scope document should state which of those modes applies to each test, and why. DeployOpen prepares the evidence an assessor or customer will ask for, including the scope rationale, test results and retest records, but it does not issue audit reports, attestations or certifications. Those come from your independent assessor or certification body.

What the client receives and whether an auditor or customer will accept it

A Microsoft 365 penetration test produces several separate outputs, and each one answers a different question for the people who read it. Auditors and customer security teams decide whether the combined package is sufficient, so confirm the expected contents and format with them before scoping.

Executive summary and scope statement

The summary states which tenants, workloads and identities were in scope, the dates of testing, the rules of engagement followed and the testing approach, in language a non-specialist can read. It also records what was excluded and why, such as workloads the vendor does not permit testing against or systems outside the agreed boundary. Check that the scope statement matches the signed rules of engagement, because an assessor will compare the two. Under NIST SP 800-115, planning documents the rules and management approval, so the summary should point back to that approval record.

NIST SP 800-115

Tenant configuration results against baselines

This section records each configuration check against the CISA SCuBA baselines and the CIS Microsoft 365 benchmark, organized by workload such as Exchange Online, Entra ID, Teams and SharePoint. For each check, the report should show the expected setting, the observed setting, the pass or fail result and the baseline version used. Ask the tester which version of each baseline was applied and whether any checks were marked not applicable, with the reason. Auditors will look for this mapping because it shows that results trace to published controls rather than to the tester's own opinion.

ScubaGear output as supporting evidence

ScubaGear is CISA's tool for assessing Microsoft 365 tenant settings against the SCuBA baselines. Its output can be attached to the report as raw evidence of the configuration state at the time of testing, which lets a reviewer check individual results without relying on the tester's narrative. Confirm the tool version, the account and permissions used to run it, and the date of the run. Output alone does not explain risk or exploitability, so the report should interpret it, not just include it. Agree with the tester in advance whether raw output will be delivered to the client or only summarized, since it can contain tenant-specific names and settings.

Findings with risk ratings

Each finding should include a description, the affected asset or workload, the evidence supporting it, a severity rating and specific remediation steps. The rating method matters as much as the rating itself, so ask which scale the tester uses and whether it is documented in the report. Where the tester also uses CVSS v4.0 for technical issues, check that the base scores are shown with their vector strings. Findings that come from configuration drift and findings from attacker-style testing should be labeled separately, so the client can see which results depend on an exploitable path.

Validated attack paths

An attack path shows how several weaknesses combine, for example a mailbox permission issue that exposes a service identity with a broad role. The report should describe each step at the level needed to understand the risk, with the evidence that the step was validated, and should not include working exploit code or reproduction commands. Ask the tester to state which paths were confirmed inside the Microsoft rules and which were only inferred from configuration. A short illustrative path in the report helps executives understand impact, while the detailed evidence stays in the technical appendix.

Remediation guidance and retest results

Remediation guidance should assign each finding a priority, an owner role, the expected configuration change and the verification step that proves it is closed. Retest results record, for each finding, whether the fix was confirmed, partially fixed or not fixed, with the date of the retest and the evidence reviewed. Confirm whether a retest is included in the fixed-scope quote, how many rounds are covered and the window for requesting one. An auditor will usually want to see the original finding and the retest outcome side by side, so ask for a format that keeps both visible.

How the test differs for cloud-only and hybrid tenants

In a cloud-only tenant, identities are created and managed directly in Microsoft Entra ID, with no on-premises directory feeding it. The control plane is therefore the tenant itself: privileged role assignments, Conditional Access policies, app registrations and consent grants, and administrative units. The test focuses on who can change those settings and what a compromised user or guest can reach from the browser and the APIs behind Microsoft 365. There is no sync server to test, which shortens the infrastructure part of the scope but does not reduce the identity part.

  • Privileged role sprawl: Check which accounts hold Global Administrator and other high-impact roles, whether they are permanent or eligible, and whether they are separate from daily mailbox accounts.
  • Conditional Access coverage: Confirm which policies apply to administrators, guests and service accounts, and whether any path to sign-in bypasses them.
  • App consent and registrations: Review user consent settings, admin consent workflows and app permissions that grant mail, file or directory access.
  • Legacy authentication: Confirm whether protocols that cannot enforce MFA are still enabled for any account.
  • Emergency access accounts: Confirm how break-glass accounts are protected, monitored and excluded from policies in a documented way.

Before the test, ask the tester to list every role and policy in writing so that the tenant review can be checked against your own export.

What your team prepares before a Microsoft 365 test starts

Before any Microsoft 365 test begins, your team needs to settle who the testers will be inside the tenant, who owns decisions when something unexpected happens, and who has authority to approve the work. Start with test accounts and roles. Agree in writing which accounts the testers will use, whether they are standard users, guest users or a dedicated test identity, and which roles, if any, they will hold. Confirm that these accounts are excluded from any automated disablement or risk-based blocking rules that would otherwise end the test early, and record who can reset their credentials. Name a single technical contact and an escalation path to a person with authority over the tenant, with a stated way to reach them outside business hours.

Next, prepare the security operations team so tested activity can be told apart from a real intrusion. Notify the SOC, and any managed detection provider, of the test window, the source addresses the testers will use and the account names involved, and ask them to log the activity rather than suppress it. Where a change freeze applies to Exchange Online, Entra ID conditional access or Defender policy, agree its scope so the test is not blocked or, worse, left half finished. Obtain written approval from the tenant owner that covers the specific tenant, the workloads in scope and the rules of engagement. Microsoft requires tests of its cloud services to follow its Microsoft Cloud Penetration Testing Rules of Engagement, so confirm with the provider that the approved plan stays inside those rules.

Finally, decide which third-party applications are in scope. List the enterprise applications, app registrations and consented OAuth grants the tester may examine, and mark any SaaS integrations owned by another vendor as out of scope unless that vendor has agreed. Agree a stop process before work starts: who can halt testing, the signal that triggers a halt (for example, an unplanned service impact or a suspected live incident), how the tester confirms that all test accounts and temporary changes are reverted, and how the halt is recorded. Ask your provider to show how this process appears in their rules of engagement document, and confirm the exact test window and any timing limits with them directly, since these depend on your agreement and not on a published rate.

What to check before choosing a Microsoft 365 testing provider

Each card is a question to put to a provider in writing before you sign. Together they test whether the provider can run a Microsoft 365 test inside Microsoft's rules, document a method, and give you findings you can verify and retest.

Familiarity with Microsoft's testing rules

Ask the provider to confirm in writing that its method follows the Microsoft Cloud Penetration Testing Rules of Engagement, which Microsoft requires for tests of its cloud services. Ask which permitted and prohibited activities the provider has built into its test plan, and how it will stop if a test reaches a Microsoft-hosted service or another tenant. A vague answer here is a reason to stop the conversation.

Microsoft testing guidance

A documented method tied to NIST

Ask for the method in writing, mapped to the planning, discovery, attack and reporting phases described in NIST SP 800-115. The document should name the tools and checks used in each phase and show where the rules of engagement sit in planning. A provider that cannot explain its phases against a public standard is hard to audit later.

NIST SP 800-115

Experience with hybrid identity

Many Microsoft 365 tenants depend on on-premises Active Directory through a synchronization server, so ask whether the provider tests the link as well as the cloud tenant. Confirm it will review Entra Connect or Cloud Sync servers, sign-in methods and privileged synchronized accounts, and ask which of those reviews its own engineers have performed on comparable environments.

Clear rules of engagement

Ask for a rules of engagement document signed before testing starts. It should list the tenants, domains and user accounts in scope, the test accounts used, any tests that are excluded, permitted hours, emergency contacts and how findings are passed to you during the test. Confirm who can change these terms and how a change is recorded.

Report samples and evidence

Request a redacted sample report so you can judge the detail before you buy. Check that each finding names the tenant setting or configuration evidence behind it, states a risk rating with its basis, and gives a remediation step your administrators can act on. Ask whether the report can be given to your auditor or customer without rewriting.

Retest terms and independence

Ask whether a retest is included, how many rounds it covers and whether it is time limited, and get the answer in the written scope. Ask also whether the tester was involved in configuring the tenant or in its administration. A tester that configured the tenant is reviewing its own work, so ask for an independent tester or a documented separation of duties.

Microsoft 365 penetration testing questions buyers ask before they commission a test

How much does a Microsoft 365 penetration test cost?

The price of a Microsoft 365 penetration test follows from the written scope, and DeployOpen does not publish a price list, so a quote is built from the scope. The main drivers are the workloads in scope (such as Exchange Online, SharePoint and OneDrive, Teams, Entra ID sign-in, Power Platform or Dynamics 365), the number of tenants and user roles to examine, and whether the work is a configuration review or an attacker-style test that validates weaknesses. Ask the provider to itemize effort per workload, separate the initial test from any retest, and list what is excluded. Because most engagements are fixed-scope, these terms should be agreed in writing before work starts.

How long does a Microsoft 365 penetration test take?

Duration depends mostly on how many workloads are in scope, how many tenants and identity sources are involved, and how much access the testers receive. A configuration review of one tenant takes less time than a test that also covers sign-in attack paths, mail flow and validation of findings in a non-production tenant. Scheduling adds time: approval cycles under the testing rules, change freezes and the time the client's team needs to triage findings all extend the calendar. Ask for a timeline that separates planning, testing, reporting and the results readout, and confirm whether any remediation window falls between the report and the retest. Timelines should come from the written scope, not from a generic template.

What does our team need to provide for a Microsoft 365 test?

The client's team mainly provides authority, access and decisions. The work normally needs:

  • A named sponsor who approves the scope, the testing windows and the rules of engagement in writing.
  • Test accounts and the admin roles the agreed scope requires, along with a named contact for each workload owner.
  • Confirmation of which tenants, domains, licensed services and third-party connected apps are in scope, and which belong to someone else.
  • Time from your security and operations staff to answer questions, watch for alerts that the test triggers and review findings before the readout.

Request a written list of these inputs from the provider before the engagement is signed, so gaps are found during scoping rather than mid-test.

Can our own IT team run a Microsoft 365 penetration test internally?

Your team can review its own tenant configuration, and that work has value for hardening. Whether internal testing satisfies a formal requirement depends on the framework. PCI DSS requirements 11.4.2 and 11.4.3 allow penetration testing by a qualified internal resource or a qualified external third party with organizational independence, so an internal tester must meet the qualification and independence test, and the assessor must accept the arrangement. Customers reviewing your product often expect an external party. Confirm with your assessor or customer which tester type they accept before you choose an internal or external test, and ask any provider to document the qualifications of the people doing the work.

Do we need to notify Microsoft before testing our Microsoft 365 tenant?

Confirm this against Microsoft's current rules before any testing begins. Microsoft requires tests of its cloud services to follow the Microsoft Cloud Penetration Testing Rules of Engagement, so the method must stay inside those rules. Whether a particular activity needs prior notice or approval depends on the rules and on the activity itself. Your contract with the provider should name the rules that apply, state who verifies that the planned activities comply with them, and list the activities that are excluded. Testing should target assets your organization owns and controls within your tenant, and the rules of engagement should record that boundary in writing.

Does a Secure Score or ScubaGear run replace a penetration test?

No. A Secure Score or a ScubaGear run checks configuration state, while a penetration test examines how an attacker could move through sign-in, consent, mail, sharing and privileged roles to reach data or administration. Secure Score visibility and scoring depend on the admin roles in your tenant and on the features you license, so confirm those details in your environment before relying on the number. ScubaGear compares tenant settings with CISA's secure configuration baselines and produces output a tester can use as evidence. The two work well together: baseline results document configuration, and the penetration test shows which weaknesses are exploitable and in what order.

How is a retest of Microsoft 365 findings priced?

A retest checks whether the fixes for specific findings work, so its price follows the number of findings, the workloads they touch and the effort needed to validate each fix. Retests are usually quoted separately from the initial test. Ask whether the quote is fixed or based on time, how many retest rounds are included, and whether a fix that changes one workload is checked for effects on others. Confirm whether any retest is included in the original scope. Recurring re-checks after tenant changes can be handled under a retainer, which DeployOpen offers for ongoing support and continuous testing.

How DeployOpen scopes, tests, reports and retests Microsoft 365 environments

DeployOpen is a Chainscore Labs company that runs security testing across applications, cloud, AI systems and infrastructure. For Microsoft 365 work, we agree a written scope first, test within Microsoft's cloud testing rules, and hand over findings, fixes and a retest so the result can be reviewed by your security team and your auditor.

How we scope

  • We agree the tenant, workloads and admin scope in writing before any testing starts.
  • We confirm that every target is one your organization owns or administers, staying within Microsoft's cloud testing rules.
  • We record the rules of engagement, approvals, testing windows and contacts so both sides know the limits.

How we test

  • We run the planning, discovery, attack and reporting phases of NIST SP 800-115, adapted to a cloud tenant.
  • We check identity and sign-in controls, admin roles, sharing settings, mail flow and app consent against the agreed scope.
  • We validate findings with evidence from the tenant rather than relying on configuration scores alone.

How we hand over

  • You receive a findings report with a risk rating, affected workloads, evidence and specific remediation steps for each finding.
  • Tenant configuration results are mapped to the baselines in scope, so your team can trace each control to its result.
  • We walk your security and administration staff through the findings and agree which items are fixed and how each fix will be verified.

How we support

  • Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • A retest checks the findings you have remediated and documents the status of each one in writing.
  • Ongoing support, upgrades and continuous testing are available as a retainer if your tenant changes often.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.