An Azure penetration testing checklist sets out the security risks a tester should try to exploit across your Microsoft Azure environment, and the preparation needed to test it safely. A thorough checklist covers ten areas:
- Microsoft Entra ID identities and Conditional Access
- role-based access control (RBAC) across subscriptions and resources
- managed identities, service principals and app registrations
- storage accounts and data exposure
- Key Vault and secrets management
- network exposure and segmentation
- virtual machines, App Service and Azure Functions
- containers, including AKS and Azure Container Registry
- databases and PaaS services
- logging, monitoring and detection
Most serious Azure breaches don’t start with an unpatched server. They start with an over-privileged identity, an exposed secret or a misconfigured permission that lets an attacker move from one foothold to full control of a subscription. This checklist explains what to test in each area, how to prepare under Microsoft’s rules, and what to do with the results.
Why Azure penetration testing is different
Traditional penetration testing focuses on networks and hosts. Azure testing has to account for two things on-premises testing doesn’t.
The shared responsibility model. Microsoft secures the physical data centres and underlying platform. You’re responsible for how you configure identities, permissions, networks, data and the applications you deploy. A penetration test focuses on your side of that line.
Identity is the new perimeter. In Azure, an attacker who compromises the right account, service principal or managed identity often doesn’t need to exploit any vulnerability at all. The most damaging findings are usually attack paths: a chain of permissions that turns a low-level foothold into Owner access or data exfiltration.
That’s why an Azure penetration test should combine an external view of what’s exposed to the internet with an assumed-breach view of what an attacker could do with a compromised account.
Before you test: Microsoft's rules of engagement
Microsoft hasn’t required pre-approval for penetration testing of Azure resources since June 2017. However, you and any third party testing on your behalf must follow the Microsoft Cloud Unified Penetration Testing Rules of Engagement.
The key boundaries for your test plan:
- Test only what you own or are authorised to test. You can test your own Azure resources, but not storage accounts or other resources belonging to someone else.
- No denial of service testing. This includes any test designed to simulate or demonstrate a denial of service attack.
- No excessive traffic. Network-intensive fuzzing and automated testing that generates excessive traffic are prohibited.
- Stop if you access data that isn’t yours. Stop immediately, report it to Microsoft, delete the data and don’t share it.
- Third parties are bound too. The rules apply equally to the resource owner and to anyone they authorise, so your testing provider must follow them as well.
Microsoft updates these rules from time to time, so confirm the current version with your provider before testing starts.
Scoping checklist
Good scoping determines whether the test finds real risk or just surface noise.
- List the tenant, management groups and subscriptions in scope, and anything explicitly excluded
- Identify production, staging and development environments, and decide where testing will run
- Confirm whether hybrid identity (Entra Connect or similar) and on-premises Active Directory are in scope
- Decide on the testing approach: external only, assumed breach with a low-privileged account, or both
- Provide test accounts, such as a standard user and an account with the Reader role, for grey-box testing
- Agree testing windows, emergency contacts and a stop procedure
- Tell your internal security team or managed service provider, so alerts aren’t treated as a real incident
- Record written authorisation from the resource owne
Key Azure security risks to assess
| Area | Common risks a tester should try to exploit |
|---|---|
| Microsoft Entra ID | Accounts without MFA, legacy authentication, Conditional Access gaps, excessive guest access, weak password policies |
| RBAC and subscriptions | Too many Owners or Contributors, standing privileged access, roles assigned at overly broad scopes, risky custom roles |
| Managed identities and service principals | Over-privileged identities, long-lived client secrets, app registrations with high-risk API permissions |
| Storage accounts | Anonymous blob access, exposed account keys, long-lived or over-scoped SAS tokens, public network access |
| Key Vault | Broad access policies or roles, secrets readable by too many identities, missing soft delete or purge protection |
| Network | RDP or SSH open to the internet, permissive network security groups, public IPs on internal resources, flat virtual networks |
| Compute | Secrets in VM extensions, App Service settings or Function code, token theft through the Instance Metadata Service, unpatched images |
| Containers | AKS clusters with public API servers, weak Kubernetes RBAC, Container Registry admin accounts enabled |
| Databases and PaaS | Firewall rules allowing broad access, public endpoints where private endpoints should be used, weak authentication |
| Logging and detection | Missing diagnostic logs, Activity Log gaps, Defender for Cloud alerts not monitored, no alerting on privileged changes |
The Azure penetration testing checklist by area
1. Microsoft Entra ID and identity
- Test for accounts, including administrators and service accounts, that can sign in without MFA
- Check whether legacy authentication protocols can bypass Conditional Access
- Look for Conditional Access exclusions, trusted location gaps and policies in report-only mode
- Review guest user permissions and what external users can enumerate
- Test password spray resistance and lockout behaviour within the rules of engagement
- Check whether Privileged Identity Management (PIM) is used for just-in-time admin access
- Assess hybrid identity risks, such as the Entra Connect sync account and on-premises paths into the cloud
2. Role-based access control
- Map who holds Owner, Contributor and User Access Administrator at each scope
- Identify roles assigned at management group or subscription level that should be narrower
- Look for custom roles that allow permission changes or broad wildcard actions
- Test whether a compromised low-privileged account can escalate through role assignments
3. Managed identities, service principals and app registrations
- Identify managed identities with more permissions than their workload needs
- Check service principals for long-lived secrets and certificates, and where those credentials are stored
- Review app registrations granted high-risk Microsoft Graph permissions
- Test whether compromising one workload’s identity gives access to other resources
4. Storage accounts
- Test for containers allowing anonymous public read access
- Check whether account keys are enabled, rotated and exposed in code or configuration
- Review SAS tokens for long expiry, broad permissions or public sharing
- Confirm whether storage accounts accept traffic from the public internet when they shouldn’t
5. Key Vault and secrets
- Review which users and identities can read secrets, keys and certificates
- Test whether access policies or RBAC roles are broader than intended
- Check that soft delete and purge protection are enabled
- Search other resources, such as App Service settings, pipelines and automation accounts, for secrets that should be in Key Vault
6. Network exposure
- Scan internet-facing endpoints for exposed management ports, such as RDP and SSH
- Review network security groups for overly permissive inbound and outbound rules
- Check whether internal resources have public IP addresses
- Test segmentation between virtual networks, subnets and peered networks
- Confirm whether Azure Bastion or just-in-time access is used for administration
7. Virtual machines, App Service and Azure Functions
- Test hosted applications for common web vulnerabilities, with a web application penetration test and API penetration test where they’re in scope
- Check whether a compromised VM or app can obtain tokens through the Instance Metadata Service and use them elsewhere
- Look for secrets in VM extensions, startup scripts, app settings and Function code
- Review patching of VM images and exposed function keys
8. Containers and Kubernetes
- Check whether the AKS API server is publicly reachable and how it’s protected
- Test Kubernetes RBAC and namespace isolation for privilege escalation
- Review how pods authenticate to Azure resources and what they can reach
- Confirm the Container Registry admin account is disabled and images come from trusted sources
9. Databases and other PaaS services
- Review firewall rules on Azure SQL, Cosmos DB and other data services, including broad “allow Azure services” settings
- Check whether services use private endpoints instead of public access
- Test authentication methods, preferring Entra ID authentication over shared keys or SQL logins
- Review Logic Apps, automation accounts and integration services for stored credentials
10. Logging, monitoring and detection
- Confirm diagnostic settings send logs from key resources to a central workspace
- Check that Activity Log and Entra ID sign-in and audit logs are retained and reviewed
- Test whether privileged actions, such as role assignments or Key Vault access, trigger alerts
- Confirm Defender for Cloud and Microsoft Sentinel alerts, where used, are actually monitored and acted on
Penetration testing vs Defender for Cloud and posture tools
Tools such as Microsoft Defender for Cloud and other cloud security posture management products are valuable, but they answer a different question from a penetration test.
| Comparison | Posture management tools | Azure penetration test |
|---|---|---|
| How it works | Continuously checks configuration against benchmarks | Skilled testers attempt to exploit weaknesses like an attacker |
| What it finds | Individual misconfigurations and policy gaps | Chained attack paths, privilege escalation and real business impact |
| Frequency | Continuous | Periodic, and after significant changes |
| Best use | Ongoing hygiene and drift detection | Validating that controls actually stop an attack |
The strongest approach uses both: posture tools for continuous coverage, and a penetration test to prove what an attacker could actually achieve.
After the test: remediation and validation
- Prioritise attack paths, not just individual findings. Fix the permissions or secrets that unlock the most access first.
- Remove standing privilege. Move administrators to just-in-time access and reduce broad role assignments.
- Rotate exposed credentials. Treat any secret found during testing as compromised.
- Retest fixes. Confirm each issue is resolved and request an updated report.
- Feed results into your compliance programs. Findings and remediation provide evidence for ISO 27001, SOC 2, PCI DSS and Essential Eight requirements.
How often should you test Azure?
Test at least annually, and again after significant changes, such as:
- migrating major workloads into Azure
- new subscriptions, tenants or landing zones
- major application releases or new public endpoints
- mergers or acquisitions that join tenants
- a security incident involving cloud identities
Because Azure environments change constantly, many organisations pair annual testing with continuous posture monitoring between tests.
Choosing an Azure penetration testing provider
Look for a provider that:
- tests identity and permission attack paths, not just exposed ports
- follows Microsoft’s rules of engagement and documents authorisation
- combines manual testing with tooling, rather than relying on an automated scan
- maps findings to the compliance frameworks you work under
- includes retesting so you can prove issues are fixed
Our penetration testing cost guide explains what drives the price of a cloud test, and our penetration testing checklist for Australian businesses covers general preparation.
Frequently asked questions Azure penetration testing
No. Microsoft hasn't required pre-approval since June 2017, but you and your testing provider must follow the Microsoft Cloud Unified Penetration Testing Rules of Engagement, which prohibit activities such as denial of service testing and accessing resources you don't own.
It should cover Entra ID and Conditional Access, RBAC, managed identities and service principals, storage, Key Vault, network exposure, compute services, containers, databases and PaaS services, and logging and detection, as well as scoping and rules of engagement.
The most common are over-privileged identities and role assignments, accounts without strong MFA, exposed secrets and storage keys, public access to storage and databases, and management ports open to the internet.
No. Defender for Cloud identifies configuration issues continuously, but a penetration test shows how those issues can be chained into a real attack and what an attacker could ultimately access.
Only if it's agreed in scope. Azure and Microsoft 365 share Entra ID, so many organisations test them together, but this should be confirmed during scoping.
Find out what an attacker could do in your Azure environment
As a CREST ANZ Approved Member Company, Cyber Forte delivers human-led Azure penetration testing covering Entra ID, permissions, storage, networks and workloads. Every engagement includes compliance-ready reporting and free re-testing.
Ready to book? Explore our CREST ANZ penetration testing services.


