CIS Microsoft Azure Foundations Benchmark v2.1.0
CIS Microsoft Azure Foundations Benchmark v2.1.0
Foundations Benchmark
v2.1.0 - 02-13-2024
Terms of Use
Please see the below link for our current terms of use:
https://www.cisecurity.org/cis-securesuite/cis-securesuite-membership-terms-of-use/
Page 1
Table of Contents
Terms of Use ................................................................................................................. 1
Table of Contents .......................................................................................................... 2
Overview ........................................................................................................................ 8
Intended Audience................................................................................................................10
Consensus Guidance ...........................................................................................................11
Typographical Conventions .................................................................................................12
Recommendation Definitions ..................................................................................... 13
Title ........................................................................................................................................13
Assessment Status...............................................................................................................13
Automated ............................................................................................................................................ 13
Manual ................................................................................................................................................... 13
Profile ....................................................................................................................................13
Description ............................................................................................................................13
Rationale Statement .............................................................................................................13
Impact Statement ..................................................................................................................14
Audit Procedure ....................................................................................................................14
Remediation Procedure........................................................................................................14
Default Value .........................................................................................................................14
References ............................................................................................................................14
CIS Critical Security Controls® (CIS Controls®) ..................................................................14
Additional Information..........................................................................................................14
Profile Definitions .................................................................................................................15
Acknowledgements ..............................................................................................................16
Recommendations ...................................................................................................... 19
1 Identity and Access Management.....................................................................................19
1.1 Security Defaults............................................................................................................................ 20
1.1.1 Ensure Security Defaults is enabled on Microsoft Entra ID (Manual) ............................. 21
1.1.2 Ensure that 'Multi-Factor Auth Status' is 'Enabled' for all Privileged Users (Manual) ..... 23
1.1.3 Ensure that 'Multi-Factor Auth Status' is 'Enabled' for all Non-Privileged Users (Manual)
.................................................................................................................................................. 27
1.1.4 Ensure that 'Allow users to remember multi-factor authentication on devices they trust' is
Disabled (Manual) ..................................................................................................................... 30
1.2 Conditional Access ........................................................................................................................ 32
1.2.1 Ensure Trusted Locations Are Defined (Manual) ............................................................ 33
1.2.2 Ensure that an exclusionary Geographic Access Policy is considered (Manual) ............ 36
1.2.3 Ensure that A Multi-factor Authentication Policy Exists for Administrative Groups
(Manual) .................................................................................................................................... 41
Page 2
1.2.4 Ensure that A Multi-factor Authentication Policy Exists for All Users (Manual) ............... 44
1.2.5 Ensure Multi-factor Authentication is Required for Risky Sign-ins (Manual) ................... 47
1.2.6 Ensure Multifactor Authentication is Required for Windows Azure Service Management
API (Manual) ............................................................................................................................. 50
1.2.7 Ensure Multifactor Authentication is Required to access Microsoft Admin Portals
(Manual) .................................................................................................................................... 53
1.3 Ensure that 'Restrict non-admin users from creating tenants' is set to 'Yes' (Manual) ...... 56
1.4 Ensure Guest Users Are Reviewed on a Regular Basis (Manual) ..................................... 58
1.5 Ensure That 'Number of methods required to reset' is set to '2' (Manual) .......................... 62
1.6 Ensure that a Custom Bad Password List is set to 'Enforce' for your Organization (Manual)
.................................................................................................................................................. 64
1.7 Ensure that 'Number of days before users are asked to re-confirm their authentication
information' is not set to '0' (Manual) ........................................................................................ 67
1.8 Ensure that 'Notify users on password resets?' is set to 'Yes' (Manual) ............................ 69
1.9 Ensure That 'Notify all admins when other admins reset their password?' is set to 'Yes'
(Manual) .................................................................................................................................... 71
1.10 Ensure `User consent for applications` is set to `Do not allow user consent` (Manual) ... 73
1.11 Ensure ‘User consent for applications’ Is Set To ‘Allow for Verified Publishers’ (Manual)
.................................................................................................................................................. 75
1.12 Ensure that 'Users can add gallery apps to My Apps' is set to 'No' (Manual) .................. 78
1.13 Ensure That ‘Users Can Register Applications’ Is Set to ‘No’ (Manual) ........................... 80
1.14 Ensure That 'Guest users access restrictions' is set to 'Guest user access is restricted to
properties and memberships of their own directory objects' (Manual) ..................................... 83
1.15 Ensure that 'Guest invite restrictions' is set to "Only users assigned to specific admin
roles can invite guest users" (Manual) ...................................................................................... 87
1.16 Ensure That 'Restrict access to Microsoft Entra admin center' is Set to 'Yes' (Manual) .. 90
1.17 Ensure that 'Restrict user ability to access groups features in the Access Pane' is Set to
'Yes' (Manual) ........................................................................................................................... 92
1.18 Ensure that 'Users can create security groups in Azure portals, API or PowerShell' is set
to 'No' (Manual) ......................................................................................................................... 94
1.19 Ensure that 'Owners can manage group membership requests in the Access Panel' is set
to 'No' (Manual) ......................................................................................................................... 96
1.20 Ensure that 'Users can create Microsoft 365 groups in Azure portals, API or PowerShell'
is set to 'No' (Manual) ............................................................................................................... 98
1.21 Ensure that 'Require Multi-Factor Authentication to register or join devices with Microsoft
Entra ID' is set to 'Yes' (Manual) ............................................................................................. 100
1.22 Ensure That No Custom Subscription Administrator Roles Exist (Automated) .............. 102
1.23 Ensure a Custom Role is Assigned Permissions for Administering Resource Locks
(Manual) .................................................................................................................................. 105
1.24 Ensure That `Subscription leaving Microsoft Entra ID directory` and `Subscription
entering Microsoft Entra ID directory` Is Set To ‘Permit No One’ (Manual) ............................ 108
1.25 Ensure fewer than 5 users have global administrator assignment (Manual) ................. 110
2 Microsoft Defender ..........................................................................................................112
2.1 Microsoft Defender for Cloud ..................................................................................................... 113
2.1.1 Ensure That Microsoft Defender for Servers Is Set to 'On' (Automated)....................... 114
2.1.2 Ensure That Microsoft Defender for App Services Is Set To 'On' (Automated) ............ 117
2.1.3 Ensure That Microsoft Defender for (Managed Instance) Azure SQL Databases Is Set
To 'On' (Automated) ................................................................................................................ 120
2.1.4 Ensure That Microsoft Defender for SQL Servers on Machines Is Set To 'On'
(Automated) ............................................................................................................................ 123
2.1.5 Ensure That Microsoft Defender for Open-Source Relational Databases Is Set To 'On'
(Automated) ............................................................................................................................ 126
2.1.6 Ensure That Microsoft Defender for Azure Cosmos DB Is Set To 'On' (Automated) .... 129
2.1.7 Ensure That Microsoft Defender for Storage Is Set To 'On' (Automated) ..................... 132
2.1.8 Ensure That Microsoft Defender for Containers Is Set To 'On' (Automated) ................ 135
Page 3
2.1.9 Ensure That Microsoft Defender for Key Vault Is Set To 'On' (Automated) .................. 138
2.1.10 [LEGACY] Ensure That Microsoft Defender for DNS Is Set To 'On' (Automated) ...... 141
2.1.11 Ensure That Microsoft Defender for Resource Manager Is Set To 'On' (Automated) . 144
2.1.12 Ensure that Microsoft Defender Recommendation for 'Apply system updates' status is
'Completed' (Automated) ........................................................................................................ 147
2.1.13 Ensure that Microsoft Cloud Security Benchmark policies are not set to 'Disabled'
(Manual) .................................................................................................................................. 149
2.1.14 Ensure that Auto provisioning of 'Log Analytics agent for Azure VMs' is Set to 'On'
(Automated) ............................................................................................................................ 152
2.1.15 Ensure that Auto provisioning of 'Vulnerability assessment for machines' is Set to 'On'
(Manual) .................................................................................................................................. 155
2.1.16 Ensure that Auto provisioning of 'Microsoft Defender for Containers components' is Set
to 'On' (Automated) ................................................................................................................. 157
2.1.17 Ensure That 'All users with the following roles' is set to 'Owner' (Automated) ............ 159
2.1.18 Ensure 'Additional email addresses' is Configured with a Security Contact Email
(Automated) ............................................................................................................................ 162
2.1.19 Ensure That 'Notify about alerts with the following severity' is Set to 'High' (Automated)
................................................................................................................................................ 165
2.1.20 Ensure that Microsoft Defender for Cloud Apps integration with Microsoft Defender for
Cloud is Selected (Manual) ..................................................................................................... 168
2.1.21 Ensure that Microsoft Defender for Endpoint integration with Microsoft Defender for
Cloud is selected (Manual) ..................................................................................................... 172
2.1.22 Ensure that Microsoft Defender External Attack Surface Monitoring (EASM) is enabled
(Manual) .................................................................................................................................. 176
2.2 Microsoft Defender for IoT .......................................................................................................... 179
2.2.1 Ensure That Microsoft Defender for IoT Hub Is Set To 'On' (Manual) ........................... 180
3 Storage Accounts ............................................................................................................182
3.1 Ensure that 'Secure transfer required' is set to 'Enabled' (Automated) ............................ 183
3.2 Ensure that ‘Enable Infrastructure Encryption’ for Each Storage Account in Azure Storage
is Set to ‘enabled’ (Automated) ............................................................................................... 185
3.3 Ensure that 'Enable key rotation reminders' is enabled for each Storage Account (Manual)
................................................................................................................................................ 188
3.4 Ensure that Storage Account Access Keys are Periodically Regenerated (Manual) ....... 191
3.5 Ensure Storage Logging is Enabled for Queue Service for 'Read', 'Write', and 'Delete'
requests (Automated) ............................................................................................................. 194
3.6 Ensure that Shared Access Signature Tokens Expire Within an Hour (Manual) ............. 197
3.7 Ensure that 'Public Network Access' is `Disabled' for storage accounts (Automated) ..... 199
3.8 Ensure Default Network Access Rule for Storage Accounts is Set to Deny (Automated) 202
3.9 Ensure 'Allow Azure services on the trusted services list to access this storage account' is
Enabled for Storage Account Access (Automated) ................................................................ 205
3.10 Ensure Private Endpoints are used to access Storage Accounts (Automated) ............. 208
3.11 Ensure Soft Delete is Enabled for Azure Containers and Blob Storage (Automated) .... 213
3.12 Ensure Storage for Critical Data are Encrypted with Customer Managed Keys (CMK)
(Manual) .................................................................................................................................. 216
3.13 Ensure Storage logging is Enabled for Blob Service for 'Read', 'Write', and 'Delete'
requests (Automated) ............................................................................................................. 219
3.14 Ensure Storage Logging is Enabled for Table Service for 'Read', 'Write', and 'Delete'
Requests (Automated) ............................................................................................................ 222
3.15 Ensure the "Minimum TLS version" for storage accounts is set to "Version 1.2"
(Automated) ............................................................................................................................ 225
3.16 Ensure 'Cross Tenant Replication' is not enabled (Automated) ..................................... 228
3.17 Ensure that `Allow Blob Anonymous Access` is set to `Disabled` (Automated) ............ 230
4 Database Services ...........................................................................................................233
4.1 SQL Server - Auditing.................................................................................................................. 234
4.1.1 Ensure that 'Auditing' is set to 'On' (Automated) ........................................................... 235
Page 4
4.1.2 Ensure no Azure SQL Databases allow ingress from 0.0.0.0/0 (ANY IP) (Automated) 238
4.1.3 Ensure SQL server's Transparent Data Encryption (TDE) protector is encrypted with
Customer-managed key (Automated) ..................................................................................... 242
4.1.4 Ensure that Microsoft Entra authentication is Configured for SQL Servers (Automated)
................................................................................................................................................ 246
4.1.5 Ensure that 'Data encryption' is set to 'On' on a SQL Database (Automated) .............. 249
4.1.6 Ensure that 'Auditing' Retention is 'greater than 90 days' (Automated) ........................ 252
4.3 PostgreSQL Database Server ..................................................................................................... 255
4.3.1 Ensure 'Enforce SSL connection' is set to 'ENABLED' for PostgreSQL Database Server
(Automated) ............................................................................................................................ 256
4.3.2 Ensure Server Parameter 'log_checkpoints' is set to 'ON' for PostgreSQL Database
Server (Automated) ................................................................................................................. 259
4.3.3 Ensure server parameter 'log_connections' is set to 'ON' for PostgreSQL Database
Server (Automated) ................................................................................................................. 262
4.3.4 Ensure server parameter 'log_disconnections' is set to 'ON' for PostgreSQL Database
Server (Automated) ................................................................................................................. 265
4.3.5 Ensure server parameter 'connection_throttling' is set to 'ON' for PostgreSQL Database
Server (Automated) ................................................................................................................. 268
4.3.6 Ensure Server Parameter 'log_retention_days' is greater than 3 days for PostgreSQL
Database Server (Automated) ................................................................................................ 271
4.3.7 Ensure 'Allow access to Azure services' for PostgreSQL Database Server is disabled
(Automated) ............................................................................................................................ 274
4.3.8 Ensure 'Infrastructure double encryption' for PostgreSQL Database Server is 'Enabled'
(Automated) ............................................................................................................................ 276
4.4 MySQL Database.......................................................................................................................... 279
4.4.1 Ensure 'Enforce SSL connection' is set to 'Enabled' for Standard MySQL Database
Server (Automated) ................................................................................................................. 280
4.4.2 Ensure 'TLS Version' is set to 'TLSV1.2' (or higher) for MySQL flexible Database Server
(Automated) ............................................................................................................................ 282
4.4.3 Ensure server parameter 'audit_log_enabled' is set to 'ON' for MySQL Database Server
(Manual) .................................................................................................................................. 285
4.4.4 Ensure server parameter 'audit_log_events' has 'CONNECTION' set for MySQL
Database Server (Manual) ...................................................................................................... 287
4.5 Cosmos DB ................................................................................................................................... 289
4.5.1 Ensure That 'Firewalls & Networks' Is Limited to Use Selected Networks Instead of All
Networks (Automated) ............................................................................................................ 290
4.5.2 Ensure That Private Endpoints Are Used Where Possible (Automated)....................... 293
4.5.3 Use Entra ID Client Authentication and Azure RBAC where possible. (Manual) .......... 296
5 Logging and Monitoring ..................................................................................................298
5.1 Configuring Diagnostic Settings ................................................................................................ 299
5.1.1 Ensure that a 'Diagnostic Setting' exists for Subscription Activity Logs (Manual) ......... 300
5.1.2 Ensure Diagnostic Setting captures appropriate categories (Automated) .................... 305
5.1.3 Ensure the storage account containing the container with activity logs is encrypted with
Customer Managed Key (CMK) (Automated) ......................................................................... 308
5.1.4 Ensure that logging for Azure Key Vault is 'Enabled' (Automated) ............................... 311
5.1.5 Ensure that Network Security Group Flow logs are captured and sent to Log Analytics
(Manual) .................................................................................................................................. 316
5.1.6 Ensure that logging for Azure AppService 'HTTP logs' is enabled (Manual) ................ 319
5.2 Monitoring using Activity Log Alerts ......................................................................................... 321
5.2.1 Ensure that Activity Log Alert exists for Create Policy Assignment (Automated) .......... 322
5.2.2 Ensure that Activity Log Alert exists for Delete Policy Assignment (Automated) .......... 326
5.2.3 Ensure that Activity Log Alert exists for Create or Update Network Security Group
(Automated) ............................................................................................................................ 329
5.2.4 Ensure that Activity Log Alert exists for Delete Network Security Group (Automated) . 332
Page 5
5.2.5 Ensure that Activity Log Alert exists for Create or Update Security Solution (Automated)
................................................................................................................................................ 335
5.2.6 Ensure that Activity Log Alert exists for Delete Security Solution (Automated) ............ 338
5.2.7 Ensure that Activity Log Alert exists for Create or Update SQL Server Firewall Rule
(Automated) ............................................................................................................................ 341
5.2.8 Ensure that Activity Log Alert exists for Delete SQL Server Firewall Rule (Automated)
................................................................................................................................................ 345
5.2.9 Ensure that Activity Log Alert exists for Create or Update Public IP Address rule
(Automated) ............................................................................................................................ 349
5.2.10 Ensure that Activity Log Alert exists for Delete Public IP Address rule (Automated) .. 353
5.3 Configuring Application Insights ............................................................................................... 357
5.3.1 Ensure Application Insights are Configured (Automated) ............................................. 358
5.4 Ensure that Azure Monitor Resource Logging is Enabled for All Services that Support it
(Manual) .................................................................................................................................. 361
5.5 Ensure that SKU Basic/Consumption is not used on artifacts that need to be monitored
(Particularly for Production Workloads) (Manual) ................................................................... 366
6 Networking .......................................................................................................................369
6.1 Ensure that RDP access from the Internet is evaluated and restricted (Automated) ....... 370
6.2 Ensure that SSH access from the Internet is evaluated and restricted (Automated) ....... 373
6.3 Ensure that UDP access from the Internet is evaluated and restricted (Automated) ....... 376
6.4 Ensure that HTTP(S) access from the Internet is evaluated and restricted (Automated) 379
6.5 Ensure that Network Security Group Flow Log retention period is 'greater than 90 days'
(Automated) ............................................................................................................................ 382
6.6 Ensure that Network Watcher is 'Enabled' (Automated)................................................... 384
6.7 Ensure that Public IP addresses are Evaluated on a Periodic Basis (Manual) ................ 387
7 Virtual Machines ..............................................................................................................389
7.1 Ensure an Azure Bastion Host Exists (Automated) .......................................................... 390
7.2 Ensure Virtual Machines are utilizing Managed Disks (Automated) ................................. 393
7.3 Ensure that 'OS and Data' disks are encrypted with Customer Managed Key (CMK)
(Automated) ............................................................................................................................ 396
7.4 Ensure that 'Unattached disks' are encrypted with 'Customer Managed Key' (CMK)
(Automated) ............................................................................................................................ 399
7.5 Ensure that Only Approved Extensions Are Installed (Manual) ....................................... 402
7.6 Ensure that Endpoint Protection for all Virtual Machines is installed (Manual) ................ 405
7.7 [Legacy] Ensure that VHDs are Encrypted (Manual) ........................................................ 407
7.8 Ensure only MFA enabled identities can access privileged Virtual Machine (Automated)
................................................................................................................................................ 411
7.9 Ensure Trusted Launch is enabled on Virtual Machines (Automated) ............................. 414
8 Key Vault ..........................................................................................................................416
8.1 Ensure that the Expiration Date is set for all Keys in RBAC Key Vaults (Automated) ..... 417
8.2 Ensure that the Expiration Date is set for all Keys in Non-RBAC Key Vaults. (Automated)
................................................................................................................................................ 420
8.3 Ensure that the Expiration Date is set for all Secrets in RBAC Key Vaults (Automated) . 423
8.4 Ensure that the Expiration Date is set for all Secrets in Non-RBAC Key Vaults (Automated)
................................................................................................................................................ 426
8.5 Ensure the Key Vault is Recoverable (Automated) .......................................................... 429
8.6 Enable Role Based Access Control for Azure Key Vault (Manual) .................................. 432
8.7 Ensure that Private Endpoints are Used for Azure Key Vault (Manual) ........................... 435
8.8 Ensure Automatic Key Rotation is Enabled Within Azure Key Vault for the Supported
Services (Manual) ................................................................................................................... 440
9 AppService .......................................................................................................................445
9.1 Ensure App Service Authentication is set up for apps in Azure App Service (Automated)
................................................................................................................................................ 446
Page 6
9.2 Ensure Web App Redirects All HTTP traffic to HTTPS in Azure App Service (Automated)
................................................................................................................................................ 450
9.3 Ensure Web App is using the latest version of TLS encryption (Automated) ................... 453
9.4 Ensure that Register with Entra ID is enabled on App Service (Automated) ................... 456
9.5 Ensure That 'PHP version' is the Latest, If Used to Run the Web App (Manual) ............. 459
9.6 Ensure that 'Python version' is the Latest Stable Version, if Used to Run the Web App
(Manual) .................................................................................................................................. 463
9.7 Ensure that 'Java version' is the latest, if used to run the Web App (Manual) ................. 467
9.8 Ensure that 'HTTP Version' is the Latest, if Used to Run the Web App (Automated) ...... 471
9.9 Ensure FTP deployments are Disabled (Automated) ....................................................... 474
9.10 Ensure Azure Key Vaults are Used to Store Secrets (Manual) ...................................... 477
10 Miscellaneous ................................................................................................................482
10.1 Ensure that Resource Locks are set for Mission-Critical Azure Resources (Manual) .... 483
Appendix: Summary Table ....................................................................................... 486
Appendix: CIS Controls v7 IG 1 Mapped Recommendations ................................ 498
Appendix: CIS Controls v7 IG 2 Mapped Recommendations ................................ 501
Appendix: CIS Controls v7 IG 3 Mapped Recommendations ................................ 509
Appendix: CIS Controls v7 Unmapped Recommendations ................................... 518
Appendix: CIS Controls v8 IG 1 Mapped Recommendations ................................ 519
Appendix: CIS Controls v8 IG 2 Mapped Recommendations ................................ 524
Appendix: CIS Controls v8 IG 3 Mapped Recommendations ................................ 532
Appendix: CIS Controls v8 Unmapped Recommendations ................................... 541
Appendix: Change History ....................................................................................... 542
Page 7
Overview
All CIS Benchmarks focus on technical configuration settings used to maintain and/or
increase the security of the addressed technology, and they should be used in
conjunction with other essential cyber hygiene tasks like:
• Monitoring the base operating system for vulnerabilities and quickly updating with
the latest security patches
• Monitoring applications and libraries for vulnerabilities and quickly updating with
the latest security patches
In the end, the CIS Benchmarks are designed as a key component of a comprehensive
cybersecurity program.
• App Service
• Application Gateway
• Microsoft Entra ID
• Azure Advisor
• Azure Cosmos DB
• Azure Disk Storage
• Azure Files
• Azure Monitor
• Azure Policy
• Azure Private Link
• Azure Resource Manager
• Azure Service Health
• Azure SQL
• Azure SQL Database
• Key Vault
• Microsoft Azure portal
• Microsoft Defender for Cloud
• Static Web Apps
• Storage Accounts
• Virtual Machines
• Virtual Network
Page 8
Multiple Methods of Audit and Remediation
Throughout the Benchmark, Audit and Remediation procedures are prescribed using up
to four different methods. These multiple methods are presented for the convenience of
readers who will be coming from different technical and experiential backgrounds. To
perform any given Audit or Remediation, only one method needs to be performed. Not
every method is available for every recommendation, and many that are available are
not yet written for every recommendation. The methods presented in the Benchmark
are formatted and titled as follows:
1. Global Reader
2. Security Reader
3. Subscription Contributor
4. Key Vault Get/List privileges on Keys, Secrets, Certificates, and Certificate
Authorities
5. Network allow listing for any source IP address performing the audit activities
6. Permissions to use PowerShell and Azure CLI
Page 9
Authenticating with Azure CLI
Run the following command from either PowerShell or command prompt:
az login --tenant <tenant id> --subscription <subscription ID>
Authenticating with PowerShell
Login to the Azure tenant and subscription using the following command:
Connect-AzAccount -Subscription <subscription ID> -Tenant <Tenant ID>
Connect-MgGraph
Connect-MsolService
Connect-AzureAD
NOTE: This will store session information within the PowerShell environment and may
persist after closing PowerShell. Please take all necessary precautions to shorten the
lifespan of this session and protect it from unauthorized access.
Latest Version
To obtain the latest version of this guide, please visit https://www.cisecurity.org/cis-
benchmarks/.
Feedback
If you have questions, comments, or have identified ways to improve this guide, please
write us at [email protected].
Intended Audience
This document is intended for system and application administrators, security
specialists, auditors, help desk, and platform deployment personnel who plan to
develop, deploy, assess, or secure solutions that incorporate Microsoft Azure.
Page 10
Consensus Guidance
This CIS Benchmark was created using a consensus review process comprised of a
global community of subject matter experts. The process combines real world
experience with data-based information to create technology specific guidance to assist
users to secure their environments. Consensus participants provide perspective from a
diverse set of backgrounds including consulting, software development, audit and
compliance, security research, operations, government, and legal.
Each CIS Benchmark undergoes two phases of consensus review. The first phase
occurs during initial Benchmark development. During this phase, subject matter experts
convene to discuss, create, and test working drafts of the Benchmark. This discussion
occurs until consensus has been reached on Benchmark recommendations. The
second phase begins after the Benchmark has been published. During this phase, all
feedback provided by the Internet community is reviewed by the consensus team for
incorporation in the Benchmark. If you are interested in participating in the consensus
process, please visit https://workbench.cisecurity.org/.
Page 11
Typographical Conventions
The following typographical conventions are used throughout this guide:
Convention Meaning
Page 12
Recommendation Definitions
The following defines the various components included in a CIS recommendation as
applicable. If any of the components are not applicable it will be noted or the
component will not be included in the recommendation.
Title
Concise description for the recommendation's intended configuration.
Assessment Status
An assessment status is included for every recommendation. The assessment status
indicates whether the given recommendation can be automated or requires manual
steps to implement. Both statuses are equally important and are determined and
supported as defined below:
Automated
Represents recommendations for which assessment of a technical control can be fully
automated and validated to a pass/fail state. Recommendations will include the
necessary information to implement automation.
Manual
Represents recommendations for which assessment of a technical control cannot be
fully automated and requires all or some manual steps to validate that the configured
state is set as expected. The expected state can vary depending on the environment.
Profile
A collection of recommendations for securing a technology or a supporting platform.
Most benchmarks include at least a Level 1 and Level 2 Profile. Level 2 extends Level 1
recommendations and is not a standalone profile. The Profile Definitions section in the
benchmark provides the definitions as they pertain to the recommendations included for
the technology.
Description
Detailed information pertaining to the setting with which the recommendation is
concerned. In some cases, the description will include the recommended value.
Rationale Statement
Detailed reasoning for the recommendation to provide the user a clear and concise
understanding on the importance of the recommendation.
Page 13
Impact Statement
Any security, functionality, or operational consequences that can result from following
the recommendation.
Audit Procedure
Systematic instructions for determining if the target system complies with the
recommendation.
Remediation Procedure
Systematic instructions for applying recommendations to the target system to bring it
into compliance according to the recommendation.
Default Value
Default value for the given setting in this recommendation, if known. If not known, either
not configured or not defined will be applied.
References
Additional documentation relative to the recommendation.
Additional Information
Supplementary information that does not correspond to any other field but may be
useful to the user.
Page 14
Profile Definitions
The following configuration profiles are defined by this Benchmark:
• Level 1
• Level 2
This profile extends the "Level 1" profile. Items in this profile exhibit one or more
of the following characteristics:
o are intended for environments or use cases where security is more critical
than manageability and usability
o acts as defense in depth measure
o may impact the utility or performance of the technology
o may include additional licensing, cost, or addition of third party software
Page 15
Acknowledgements
This Benchmark exemplifies the great things a community of users, vendors, and
subject matter experts can accomplish through consensus collaboration. The CIS
community thanks the entire consensus team with special recognition to the following
individuals who contributed greatly to the creation of this guide:
Page 16
Contributor
Mike Wicks
Zeeshan Mustafa
Nathan Young
Mark Weaver
Marc Garcia
Jim Cheng
Stephen Keller
Gururaj Pandurangi
Felix Simmons
Pravin Goyal
Pradeep R B
Robin Drake
Shobha H D
Rahul Khengare
Jesse Mrasek
Kesten Broughton
Himalay Kondekar
JR Aquino
Jeremie Kass
Sujit Singh
Clément Bonnet
Lewis Matlock
Clifford Moten
Sean Decker
Phil White
Ronit Reger
Lewis Hardy
Gareth Boyes
Ellie Goggin
Sagar Chhatrala
Jeffrey Lemmermann
Apostolos Gioulis
Richard Rives
Nirbhay Kumar
Andrew Thompson
Michael Howard
Omer Tal
Thierry Agassis
Bhushan Bhat
Jordan Pitcairn
Harshal Khachane
Pavol Ilko
Erik Keehn
Karan Ahuja
Page 17
Avantika Gupta
Reed Rising
Logan McMillan
Editor
Rachel Rice
Ben Layer
Parag Patil
Niclas Madsen
Zan Liffick
Iben Rodriguez
Steve Johnson
Luke Schultheis
Rahul Pareek
Ian McRee
Robert Burton
Michael Born
Page 18
Recommendations
1 Identity and Access Management
This section covers security recommendations to set identity and access management
policies on an Azure Subscription. Identity and Access Management policies are the
first step towards a defense-in-depth approach to securing an Azure Cloud Platform
environment.
Many of the recommendations from this section are marked as "Manual" while the
existing Azure CLI and Azure AD PowerShell support through the Azure AD Graph are
being depreciated. It is now recommended to use the new Microsoft Graph in
replacement of Azure AD Graph for PowerShell and API level access. From a security
posture standpoint, these recommendations are still very important and should not be
discounted because they are "Manual." As automation capability using Rest API is
developed for this Benchmark, the related recommendations will be updated with the
respective audit and remediation steps and changed to an "automated" assessment
status.
If any problems are encountered running Azure CLI or PowerShell methodologies,
please refer to the Overview for this benchmark where you will find additional detail on
permission and required cmdlets.
Page 19
1.1 Security Defaults
Page 20
1.1.1 Ensure Security Defaults is enabled on Microsoft Entra ID
(Manual)
Profile Applicability:
• Level 1
Description:
Security defaults in Microsoft Entra ID make it easier to be secure and help protect your
organization. Security defaults contain preconfigured security settings for common
attacks.
Security defaults is available to everyone. The goal is to ensure that all organizations
have a basic level of security enabled at no extra cost. You may turn on security
defaults in the Azure portal.
Rationale:
Security defaults provide secure default settings that we manage on behalf of
organizations to keep customers safe until they are ready to manage their own identity
security settings.
For example, doing the following:
Impact:
This recommendation should be implemented initially and then may be overridden by
other service/product specific CIS Benchmarks. Administrators should also be aware
that certain configurations in Microsoft Entra ID may impact other Microsoft services
such as Microsoft 365.
Audit:
From Azure Portal
To ensure security defaults is enabled in your directory:
Page 21
Remediation:
From Azure Portal
To enable security defaults in your directory:
Default Value:
If your tenant was created on or after October 22, 2019, security defaults may already
be enabled in your tenant.
References:
1. https://docs.microsoft.com/en-us/azure/active-directory/fundamentals/concept-
fundamentals-security-defaults
2. https://techcommunity.microsoft.com/t5/azure-active-directory-
identity/introducing-security-defaults/ba-p/1061414
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-identity-
management#im-2-protect-identity-and-authentication-systems
Additional Information:
This recommendation differs from the Microsoft 365 Benchmark. This is because the
potential impact associated with disabling Security Defaults is dependent upon the
security settings implemented in the environment. It is recommended that organizations
disabling Security Defaults implement appropriate security settings to replace the
settings configured by Security Defaults.
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 22
1.1.2 Ensure that 'Multi-Factor Auth Status' is 'Enabled' for all
Privileged Users (Manual)
Profile Applicability:
• Level 1
Description:
Enable multi-factor authentication for all roles, groups, and users that have write access
or permissions to Azure resources. These include custom created objects or built-in
roles such as;
• Service Co-Administrators
• Subscription Owners
• Contributors
Rationale:
Multi-factor authentication requires an individual to present a minimum of two separate
forms of authentication before access is granted. Multi-factor authentication provides
additional assurance that the individual attempting to gain access is who they claim to
be. With multi-factor authentication, an attacker would need to compromise at least two
different authentication mechanisms, increasing the difficulty of compromise and thus
reducing the risk.
Impact:
Users would require two forms of authentication before any access is granted.
Additional administrative time will be required for managing dual forms of authentication
when enabling multi-factor authentication.
Audit:
From Azure Portal
Page 23
1. List All Users Using Microsoft Graph API:
GET https://graph.microsoft.com/v1.0/users
Capture id and corresponding userPrincipalName ('$uid', '$userPrincipalName')
https://management.azure.com/subscriptions/:subscriptionId/providers/Microsof
t.Authorization/roleDefinitions?api-version=2017-05-01
Capture Role Definition IDs/Name ('$name') and role names ('$properties/roleName')
where "properties/roleName" contains (Owner or *contributor or admin )
GET
https://management.azure.com/subscriptions/:subscriptionId/providers/Microsof
t.Authorization/roleassignments?api-version=2017-10-01-preview
Find all administrative roles ($B.name) in "Properties/roleDefinitionId" mapped with
user ids ($A.id) in "Properties/principalId" where "Properties/principalType" ==
"User"
Page 24
Remediation:
From Azure Portal
1. https://docs.microsoft.com/en-us/azure/multi-factor-authentication/multi-factor-
authentication
2. https://stackoverflow.com/questions/41156206/azure-active-directory-premium-
mfa-attributes-via-graph-api
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-identity-
management#im-4-authenticate-server-and-services
Additional Information:
Please note that at the time of writing, there is no API, Azure CLI or Powershell
mechanism available to programmatically conduct security assessment or remediation
for this recommendation. The only option is MSOL.
Page 25
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 26
1.1.3 Ensure that 'Multi-Factor Auth Status' is 'Enabled' for all
Non-Privileged Users (Manual)
Profile Applicability:
• Level 2
Description:
Enable multi-factor authentication for all non-privileged users.
Rationale:
Multi-factor authentication requires an individual to present a minimum of two separate
forms of authentication before access is granted. Multi-factor authentication provides
additional assurance that the individual attempting to gain access is who they claim to
be. With multi-factor authentication, an attacker would need to compromise at least two
different authentication mechanisms, increasing the difficulty of compromise and thus
reducing the risk.
Impact:
Users would require two forms of authentication before any access is granted. Also, this
requires an overhead for managing dual forms of authentication.
Audit:
From Azure Portal
GET https://graph.microsoft.com/v1.0/users
Capture id and corresponding userPrincipalName ($uid, $userPrincipalName)
Page 27
2. List all Role Definitions Using Azure management API:
https://management.azure.com/subscriptions/<subscriptionId>/providers/Microso
ft.Authorization/roleDefinitions?api-version=2017-05-01
Capture Role Definition IDs/Name ($name) and role names ($properties/roleName)
where "properties/roleName" does NOT contain (Owner or *contributor or admin )
GET
https://management.azure.com/subscriptions/<subscriptionId>/providers/Microso
ft.Authorization/roleassignments?api-version=2017-10-01-preview
Find all non-administrative roles ($B.name) in "Properties/roleDefinationId" mapped
with user ids ($A.id) in "Properties/principalId" where "Properties/principalType"
== "User"
D> Now Match ($CProperties/principalId) with $A.uid and get $A.userPrincipalName
save this as D.userPrincipleName
•
Policy ID: 81b3ccb4-e6e8-4e4a-8d05-5df25cd29fd4 - Name: 'Accounts with
read permissions on Azure resources should be MFA enabled'
Page 28
Remediation:
Follow Microsoft Azure documentation and enable multi-factor authentication in your
environment.
https://docs.microsoft.com/en-us/azure/active-directory/authentication/tutorial-enable-
azure-mfa
Enabling and configuring MFA is a multi-step process. Here are some additional
resources on the process within Microsoft Entra ID:
https://learn.microsoft.com/en-us/entra/identity/conditional-access/howto-conditional-
access-policy-admin-mfa
https://learn.microsoft.com/en-us/entra/identity/authentication/howto-mfa-
getstarted#enable-multi-factor-authentication-with-conditional-access
https://learn.microsoft.com/en-us/entra/identity/authentication/howto-mfa-mfasettings
Default Value:
By default, multi-factor authentication is disabled for all users.
References:
1. https://docs.microsoft.com/en-us/azure/multi-factor-authentication/multi-factor-
authentication
2. https://learn.microsoft.com/en-us/entra/identity/authentication/howto-mfa-
userstates
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-identity-
management#im-4-authenticate-server-and-services
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 29
1.1.4 Ensure that 'Allow users to remember multi-factor
authentication on devices they trust' is Disabled (Manual)
Profile Applicability:
• Level 1
Description:
Do not allow users to remember multi-factor authentication on devices.
Rationale:
Remembering Multi-Factor Authentication (MFA) for devices and browsers allows users
to have the option to bypass MFA for a set number of days after performing a
successful sign-in using MFA. This can enhance usability by minimizing the number of
times a user may need to perform two-step verification on the same device. However, if
an account or device is compromised, remembering MFA for trusted devices may affect
security. Hence, it is recommended that users not be allowed to bypass MFA.
Impact:
For every login attempt, the user will be required to perform multi-factor authentication.
Audit:
From Azure Portal
Remediation:
From Azure Portal
Page 30
Default Value:
By default, Allow users to remember multi-factor authentication on devices they
trust is disabled.
References:
1. https://learn.microsoft.com/en-us/entra/identity/authentication/howto-mfa-
mfasettings#remember-multi-factor-authentication-for-devices-that-users-trust
2. https://docs.microsoft.com/en-us/security/benchmark/azure/security-controls-v3-
identity-management#im-4-use-strong-authentication-controls-for-all-azure-
active-directory-based-access
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-identity-
management#im-6-use-strong-authentication-controls
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 31
1.2 Conditional Access
For most Azure tenants, and certainly for organizations with a significant use of
Microsoft Entra ID, Conditional Access policies are recommended and preferred. To use
conditional access policies, a licensing plan is required, and Security Defaults must be
disabled.
Conditional Access requires one of the following plans:
• Microsoft Entra ID P1 or P2
• Microsoft 365 Business Premium
• Microsoft 365 E3 or E5
• Microsoft 365 F1, F3, F5 Security and F5 Security + Compliance
• Enterprise Mobility & Security E3 or E5
Page 32
1.2.1 Ensure Trusted Locations Are Defined (Manual)
Profile Applicability:
• Level 1
Description:
Microsoft Entra ID Conditional Access allows an organization to configure Named
locations and configure whether those locations are trusted or untrusted. These
settings provide organizations the means to specify Geographical locations for use in
conditional access policies, or define actual IP addresses and IP ranges and whether or
not those IP addresses and/or ranges are trusted by the organization.
Rationale:
Defining trusted source IP addresses or ranges helps organizations create and enforce
Conditional Access policies around those trusted or untrusted IP addresses and ranges.
Users authenticating from trusted IP addresses and/or ranges may have less access
restrictions or access requirements when compared to users that try to authenticate to
Microsoft Entra ID from untrusted locations or untrusted source IP addresses/ranges.
Impact:
When configuring Named locations, the organization can create locations using
Geographical location data or by defining source IP addresses or ranges. Configuring
Named locations using a Country location does not provide the organization the ability
to mark those locations as trusted, and any Conditional Access policy relying on those
Countries location setting will not be able to use the All trusted locations setting
within the Conditional Access policy. They instead will have to rely on the Select
locations setting. This may add additional resource requirements when configuring,
and will require thorough organizational testing.
In general, Conditional Access policies may completely prevent users from
authenticating to Microsoft Entra ID, and thorough testing is recommended. To avoid
complete lockout, a 'Break Glass' account with full Global Administrator rights is
recommended in the event all other administrators are locked out of authenticating to
Microsoft Entra ID. This 'Break Glass' account should be excluded from Conditional
Access Policies and should be configured with the longest pass phrase feasible. This
account should only be used in the event of an emergency and complete administrator
lockout.
Audit:
From Azure Portal
Page 33
Ensure there are IP ranges location settings configured and marked as Trusted
From PowerShell
Get-AzureADMSNamedLocationPolicy
In the output from the above command, for each Named location group, make sure at
least one entry contains the IsTrusted parameter with a value of True. Otherwise, if
there is no output as a result of the above command or all of the entries contain the
IsTrusted parameter with an empty value, a NULL value, or a value of False, the results
are out of compliance with this check.
Remediation:
From Azure Portal
From PowerShell
Create a new trusted IP-based Named location policy
[System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.IpRange]]$ipR
anges = @()
$ipRanges.Add("<first IP range in CIDR notation>")
$ipRanges.Add("<second IP range in CIDR notation>")
$ipRanges.Add("<third IP range in CIDR notation>")
New-AzureADMSNamedLocationPolicy -OdataType
"#microsoft.graph.ipNamedLocation" -DisplayName "<name of IP Named location
policy> -IsTrusted $true -IpRanges $ipRanges
Set an existing IP-based Named location policy to trusted
Set-AzureADMSNamedLocationPolicy -PolicyId "<ID of the policy>" -OdataType
"#microsoft.graph.ipNamedLocation" -IsTrusted $true
Default Value:
By default, no locations are configured under the Named locations blade within the
Microsoft Entra ID Conditional Access blade.
Page 34
References:
1. https://docs.microsoft.com/en-us/azure/active-directory/conditional-
access/location-condition
2. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-identity-
management#im-7-restrict-resource-access-based-on--conditions
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 35
1.2.2 Ensure that an exclusionary Geographic Access Policy is
considered (Manual)
Profile Applicability:
• Level 1
Description:
CAUTION: If these policies are created without first auditing and testing the result,
misconfiguration can potentially lock out administrators or create undesired access
issues.
Conditional Access Policies can be used to block access from geographic locations that
are deemed out-of-scope for your organization or application. The scope and variables
for this policy should be carefully examined and defined.
Rationale:
Conditional Access, when used as a deny list for the tenant or subscription, is able to
prevent ingress or egress of traffic to countries that are outside of the scope of interest
(e.g.: customers, suppliers) or jurisdiction of an organization. This is an effective way to
prevent unnecessary and long-lasting exposure to international threats such as APTs.
Impact:
Microsoft Entra ID P1 or P2 is required. Limiting access geographically will deny access
to users that are traveling or working remotely in a different part of the world. A point-to-
site or site to site tunnel such as a VPN is recommended to address exceptions to
geographic access policies.
Audit:
From Azure Portal
1. From Azure Home open the Portal menu in the top left, and select Microsoft
Entra ID.
2. Scroll down in the menu on the left, and select Security.
3. Select on the left side Conditional Access.
4. Select the policy you wish to audit, then:
o Under Assignments, Review the Users and Groups for the personnel the
policy will apply to
o Under Assignments, Review the Cloud apps or actions for the systems
the policy will apply to
o Under Conditions, Review the Include locations for those that should be
blocked
Page 36
o Under Conditions, Review the Exclude locations for those that should be
allowed (Note: locations set up in the previous recommendation for
Trusted Location should be in the Exclude list.)
o Under Access Controls > Grant - Confirm that Block Access is selected.
1. From Azure Home open the portal menu in the top left, and select Microsoft
Entra ID.
2. Scroll down in the menu on the left, and select Security.
3. Select on the left side Conditional Access.
4. Click the + New policy button, then:
5. Provide a name for the policy.
6. Under Assignments, select Users or workload identities then:
o Under Include, select All users
o Under Exclude, check Users and groups and only select emergency
access accounts and service accounts (NOTE: Service accounts are
excluded here because service accounts are non-interactive and cannot
complete MFA)
7. Under Assignments, select Cloud apps or actions then:
o Under Include, select All cloud apps
o Leave Exclude blank unless you have a well defined exception
8. Under Conditions, select Locations then:
o Select Include, then add entries for locations for those that should be
blocked
o Select Exclude, then add entries for those that should be allowed
(IMPORTANT: Ensure that all Trusted Locations are in the Exclude list.)
Page 37
9. Under Access Controls, select Grant and Confirm that Block Access is selected.
10. Set Enable policy to Report-only.
11. Click Create.
NOTE: The policy is not yet 'live,' since Report-only is being used to audit the effect of
the policy.
Part 2 of 2 - Confirm that the policy is not blocking access that should be granted, then
toggle to On.
1. With your policy now in report-only mode, return to the Microsoft Entra blade and
click on Sign-in logs.
2. Review the recent sign-in events - click an event then review the event details
(specifically the Report-only tab) to ensure:
o The sign-in event you're reviewing occurred after turning on the policy in
report-only mode
o The policy name from step 5 above is listed in the Policy Name column
o The Result column for the new policy shows that the policy was Not
applied (indicating the location origin was not blocked)
3. If the above conditions are present, navigate back to the policy name in
Conditional Access and open it.
4. Toggle the policy from Report-only to On.
5. Click Save.
From PowerShell
First, set up the conditions objects values before updating an existing conditional
access policy or before creating a new one. You may need to use additional PowerShell
cmdlets to retrieve specific IDs such as the Get-AzureADMSNamedLocationPolicy which
outputs the Location IDs for use with conditional access policies.
Page 38
$conditions = New-Object -TypeName
Microsoft.Open.MSGraph.Model.ConditionalAccessConditionSet
Default Value:
This policy does not exist by default.
Page 39
References:
1. https://docs.microsoft.com/en-us/azure/active-directory/conditional-
access/howto-conditional-access-policy-location
2. https://docs.microsoft.com/en-us/azure/active-directory/conditional-
access/concept-conditional-access-report-only
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-identity-
management#im-7-restrict-resource-access-based-on--conditions
Additional Information:
These policies should be tested by using the What If tool in the References. Setting
these can and will create issues with logging in for users until they use an MFA device
linked to their accounts. Further testing can also be done via the insights and reporting
resource in References which monitors Azure sign ins.
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 40
1.2.3 Ensure that A Multi-factor Authentication Policy Exists for
Administrative Groups (Manual)
Profile Applicability:
• Level 1
Description:
For designated users, they will be prompted to use their multi-factor authentication
(MFA) process on login.
Rationale:
Enabling multi-factor authentication is a recommended setting to limit the use of
Administrative accounts to authenticated personnel.
Impact:
There is an increased cost, as Conditional Access policies require Microsoft Entra ID
P1. Similarly, MFA may require additional overhead to maintain. There is also a
potential scenario in which the multi-factor authentication method can be lost, and
administrative users are no longer able to log in. For this scenario, there should be an
emergency access account. Please see References for creating this.
Audit:
From Azure Portal
1. From Azure Home open the Portal Menu in the top left, and select Microsoft
Entra ID.
2. Select Security.
3. Select Conditional Access.
4. Select the policy you wish to audit.
5. View under Users and Groups the corresponding users and groups to whom the
policy is applied. Be certain the emergency access account is not in the list.
6. View under Exclude to determine which Users and groups to whom the policy is
not applied.
Remediation:
From Azure Portal
1. From Azure Home open the Portal Menu in top left, and select Microsoft Entra
ID.
2. Select Security.
3. Select Conditional Access.
4. Click + New policy.
Page 41
5. Enter a name for the policy.
6. Select Users or workload identities.
7. Check Users and groups.
8. Select administrative groups this policy should apply to and click Select.
9. Under Exclude, check Users and groups.
10. Select users this policy not should apply to and click Select.
11. Select Cloud apps or actions.
12. Select All cloud apps.
13. Select Grant.
14. Under Grant access, check Require multifactor authentication and click
Select.
15. Set Enable policy to Report-only.
16. Click Create.
After testing the policy in report-only mode, update the Enable policy setting from
Report-only to On.
Default Value:
By default, MFA is not enabled for any administrative accounts.
References:
1. https://docs.microsoft.com/en-us/azure/active-directory/conditional-
access/howto-conditional-access-policy-admin-mfa
2. https://docs.microsoft.com/en-us/azure/active-directory/roles/security-
emergency-access
3. https://docs.microsoft.com/en-us/azure/active-directory/conditional-
access/troubleshoot-conditional-access-what-if
4. https://docs.microsoft.com/en-us/azure/active-directory/conditional-
access/howto-conditional-access-insights-reporting
5. https://docs.microsoft.com/en-us/azure/active-directory/conditional-access/plan-
conditional-access
6. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-identity-
management#im-7-restrict-resource-access-based-on--conditions
Additional Information:
These policies should be tested by using the What If tool in the References. Setting
these can and will create issues with logging in for users until they use an MFA device
linked to their accounts. Further testing can also be done via the insights and reporting
resource in References which monitors Azure sign ins.
Page 42
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 43
1.2.4 Ensure that A Multi-factor Authentication Policy Exists for All
Users (Manual)
Profile Applicability:
• Level 1
Description:
For designated users, they will be prompted to use their multi-factor authentication
(MFA) process on logins.
Rationale:
Enabling multi-factor authentication is a recommended setting to limit the potential of
accounts being compromised and limiting access to authenticated personnel.
Impact:
There is an increased cost, as Conditional Access policies require Microsoft Entra ID P1
or P2. Similarly, this may require additional overhead to maintain if users lose access to
their MFA.
Audit:
From Azure Portal
1. From Azure Home open the Portal Menu in the top left, and select Microsoft
Entra ID.
2. Scroll down in the menu on the left, and select Security.
3. Select on the left side Conditional Access.
4. Select the policy you wish to audit.
5. View under Users and Groups the corresponding users and groups to whom the
policy is applied.
6. View under Exclude to determine which users and groups to whom the policy is
not applied.
Remediation:
From Azure Portal
1. From Azure Home open Portal menu in the top left, and select Microsoft Entra
ID.
2. Select Security.
3. Select Conditional Access.
4. Click + New policy.
5. Enter a name for the policy.
6. Select Users or workload identities.
Page 44
7. Under Include, select All users.
8. Under Exclude, check Users and groups.
9. Select users this policy should not apply to and click Select.
10. Select Cloud apps or actions.
11. Select All cloud apps.
12. Select Grant.
13. Under Grant access, check Require multifactor authentication and click
Select.
14. Set Enable policy to Report-only.
15. Click Create.
After testing the policy in report-only mode, update the Enable policy setting from
Report-only to On.
Default Value:
MFA is not enabled by default.
References:
1. https://docs.microsoft.com/en-us/azure/active-directory/conditional-
access/howto-conditional-access-policy-all-users-mfa
2. https://docs.microsoft.com/en-us/azure/active-directory/conditional-
access/troubleshoot-conditional-access-what-if
3. https://docs.microsoft.com/en-us/azure/active-directory/conditional-
access/howto-conditional-access-insights-reporting
4. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-identity-
management#im-7-restrict-resource-access-based-on--conditions
Additional Information:
These policies should be tested by using the What If tool in the References. Setting
these can and will create issues with logging in for users until they use an MFA device
linked to their accounts. Further testing can also be done via the insights and reporting
resource the in References which monitors Azure sign ins.
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 45
Controls
Control IG 1 IG 2 IG 3
Version
Page 46
1.2.5 Ensure Multi-factor Authentication is Required for Risky
Sign-ins (Manual)
Profile Applicability:
• Level 1
Description:
For designated users, they will be prompted to use their multi-factor authentication
(MFA) process on login.
Rationale:
Enabling multi-factor authentication is a recommended setting to limit the potential of
accounts being compromised and limiting access to authenticated personnel.
Impact:
There is an increased cost, as Conditional Access policies require Microsoft Entra ID P1
or P2. Similarly, they may require additional overhead to maintain if users lose access
to their MFA.
Audit:
From Azure Portal
1. From Azure Home select the Portal Menu in the top left, and select Microsoft
Entra ID.
2. Select Security.
3. Select on the left side Conditional Access.
4. Select the policy you wish to audit.
5. View under Users and Groups the corresponding users and groups to whom the
policy is applied.
6. View under Exclude to determine which users and groups to whom the policy is
not applied.
Remediation:
From Azure Portal
1. From Azure Home select the Portal Menu in the top left, and select Microsoft
Entra ID.
2. Select Security
3. Select Conditional Access.
4. Click + New policy.
5. Enter a name for the policy.
6. Select Users or workload identities.
Page 47
7. Under Include, select All users.
8. Under Exclude, check Users and groups.
9. Select users this policy should not apply to and click Select.
10. Select Cloud apps or actions.
11. Select All cloud apps.
12. Select Conditions.
13. Select Sign-in risk.
14. Update the Configure toggle to Yes.
15. Check the sign-in risk level this policy should apply to, e.g. High and Medium.
16. Select Done.
17. Click the blue text under Grant access and check Require multifactor
authentication then click the Select button.
18. Click the blue text under Session then check Sign-in frequency and select
Every time and click the Select button.
19. Set Enable policy to Report-only.
20. Click Create.
After testing the policy in report-only mode, update the Enable policy setting from
Report-only to On.
Default Value:
MFA is not enabled by default.
References:
1. https://docs.microsoft.com/en-us/azure/active-directory/conditional-
access/howto-conditional-access-policy-risk
2. https://docs.microsoft.com/en-us/azure/active-directory/conditional-
access/troubleshoot-conditional-access-what-if
3. https://docs.microsoft.com/en-us/azure/active-directory/conditional-
access/howto-conditional-access-insights-reporting
4. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-identity-
management#im-7-restrict-resource-access-based-on--conditions
Additional Information:
These policies should be tested by using the What If tool in the References. Setting
these can and will create issues with logging in for users until they use an MFA device
linked to their accounts. Further testing can also be done via the insights and reporting
resource the in References which monitors Azure sign ins.
Page 48
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 49
1.2.6 Ensure Multifactor Authentication is Required for Windows
Azure Service Management API (Manual)
Profile Applicability:
• Level 1
Description:
This recommendation ensures that users accessing the Windows Azure Service
Management API (i.e. Azure Powershell, Azure CLI, Azure Resource Manager API,
etc.) are required to use multifactor authentication (MFA) credentials when accessing
resources through the Windows Azure Service Management API.
Rationale:
Administrative access to the Windows Azure Service Management API should be
secured with a higher level of scrutiny to authenticating mechanisms. Enabling
multifactor authentication is recommended to reduce the potential for abuse of
Administrative actions, and to prevent intruders or compromised admin credentials from
changing administrative settings.
IMPORTANT: While this recommendation allows exceptions to specific Users or
Groups, they should be very carefully tracked and reviewed for necessity on a regular
interval through an Access Review process. It is important that this rule be built to
include "All Users" to ensure that all users not specifically excepted will be required to
use MFA to access the Azure Service Management API.
Impact:
Conditional Access policies require Microsoft Entra ID P1 or P2 licenses. Similarly, they
may require additional overhead to maintain if users lose access to their MFA. Any
users or groups which are granted an exception to this policy should be carefully
tracked, be granted only minimal necessary privileges, and conditional access
exceptions should be regularly reviewed or investigated.
Audit:
From Azure Portal
1. From the Azure Admin Portal dashboard, open Microsoft Entra ID.
2. In the menu on the left of the Entra ID blade, click Security.
3. In the menu on the left of the Security blade, click Conditional Access.
4. In the menu on the left of the Conditional Access blade, click Policies.
5. Click on the name of the policy you wish to audit.
6. Click the blue text under Users.
7. Under the Include section of Users, review Users and Groups to ensure that All
Users is selected.
Page 50
8. Under the Exclude section of Users, review the Users and Groups that are
excluded from the policy (NOTE: this should be limited to break-glass emergency
access accounts, non-interactive service accounts, and other carefully
considered exceptions).
9. On the left side, click the blue text under Target Resources.
10. Select what this policy applies to should have Cloud apps selected.
11. Under the Include section of Target Resources, the Select apps radio button
should be selected.
12. Click the blue text under Select.
13. From the select prompt that appears, the checkbox for Windows Azure Service
Management API should be checked.
Remediation:
From Azure Portal
1. From the Azure Admin Portal dashboard, open Microsoft Entra ID.
2. Click Security in the Entra ID blade.
3. Click Conditional Access in the Security blade.
4. Click Policies in the Conditional Access blade.
5. Click + New policy.
6. Enter a name for the policy.
7. Click the blue text under Users.
8. Under Include, select All users.
9. Under Exclude, check Users and groups.
10. Select users or groups to be exempted from this policy (e.g. break-glass
emergency accounts, and non-interactive service accounts) then click the Select
button.
11. Click the blue text under Target Resources.
12. Under Include, click the Select apps radio button.
13. Click the blue text under Select.
14. Check the box next to Windows Azure Service Management APIs then click the
Select button.
15. Click the blue text under Grant.
16. Under Grant access check the box for Require multifactor authentication
then click the Select button.
17. Before creating, set Enable policy to Report-only.
18. Click Create.
After testing the policy in report-only mode, update the Enable policy setting from
Report-only to On.
Default Value:
MFA is not enabled by default for administrative actions.
Page 51
References:
1. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-identity-
management#im-7-restrict-resource-access-based-on--conditions
2. https://docs.microsoft.com/en-us/azure/active-directory/conditional-
access/concept-conditional-access-users-groups
3. https://learn.microsoft.com/en-us/entra/identity/conditional-access/howto-
conditional-access-policy-azure-management
4. https://learn.microsoft.com/en-us/entra/identity/conditional-access/concept-
conditional-access-cloud-apps#windows-azure-service-management-api
Additional Information:
These policies should be tested by using the What If tool in the References. Setting
these can and will create issues with administrators changing settings until they use an
MFA device linked to their accounts. An emergency access account is recommended
for this eventuality if all administrators are locked out. Please see the documentation in
the references for further information. Similarly further testing can also be done via the
insights and reporting resource in References which monitors Azure sign ins.
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 52
1.2.7 Ensure Multifactor Authentication is Required to access
Microsoft Admin Portals (Manual)
Profile Applicability:
• Level 1
Description:
This recommendation ensures that users accessing Microsoft Admin Portals (i.e.
Microsoft 365 Admin, Microsoft 365 Defender, Exchange Admin Center, Azure Portal,
etc.) are required to use multifactor authentication (MFA) credentials when logging into
an Admin Portal.
Rationale:
Administrative Portals for Microsoft Azure should be secured with a higher level of
scrutiny to authenticating mechanisms. Enabling multifactor authentication is
recommended to reduce the potential for abuse of Administrative actions, and to
prevent intruders or compromised admin credentials from changing administrative
settings.
IMPORTANT: While this recommendation allows exceptions to specific Users or
Groups, they should be very carefully tracked and reviewed for necessity on a regular
interval through an Access Review process. It is important that this rule be built to
include "All Users" to ensure that all users not specifically excepted will be required to
use MFA to access Admin Portals.
Impact:
Conditional Access policies require Microsoft Entra ID P1 or P2 licenses. Similarly, they
may require additional overhead to maintain if users lose access to their MFA. Any
users or groups which are granted an exception to this policy should be carefully
tracked, be granted only minimal necessary privileges, and conditional access
exceptions should be reviewed or investigated.
Audit:
From Azure Portal
1. From the Azure Admin Portal dashboard, open Microsoft Entra ID.
2. In the menu on the left of the Entra ID blade, click Security.
3. In the menu on the left of the Security blade, click Conditional Access.
4. In the menu on the left of the Conditional Access blade, click Policies.
5. Click on the name of the policy you wish to audit.
6. Click the blue text under Users.
7. Under the Include section of Users, review Users and Groups to ensure that All
Users is selected.
Page 53
8. Under the Exclude section of Users, review the Users and Groups that are
excluded from the policy (NOTE: this should be limited to break-glass emergency
access accounts, non-interactive service accounts, and other carefully
considered exceptions).
9. On the left side, click the blue text under Target Resources.
10. Select what this policy applies to should have Cloud apps selected.
11. Under the Include section of Target Resources, the Select apps radio button
should be selected.
12. Click the blue text under Select.
13. From the select prompt that appears, the checkbox for Microsoft Admin Portals
should be checked.
Remediation:
From Azure Portal
1. From the Azure Admin Portal dashboard, open Microsoft Entra ID.
2. Click Security in the Entra ID blade.
3. Click Conditional Access in the Security blade.
4. Click Policies in the Conditional Access blade.
5. Click + New policy.
6. Enter a name for the policy.
7. Click the blue text under Users.
8. Under Include, select All users.
9. Under Exclude, check Users and groups.
10. Select users or groups to be exempted from this policy (e.g. break-glass
emergency accounts, and non-interactive service accounts) then click the Select
button.
11. Click the blue text under Target Resources.
12. Under Include, click the Select apps radio button.
13. Click the blue text under Select.
14. Check the box next to Microsoft Admin Portals then click the Select button.
15. Click the blue text under Grant.
16. Under Grant access check the box for Require multifactor authentication
then click the Select button.
17. Before creating, set Enable policy to Report-only.
18. Click Create.
After testing the policy in report-only mode, update the Enable policy setting from
Report-only to On.
Default Value:
MFA is not enabled by default for administrative actions.
Page 54
References:
1. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-identity-
management#im-7-restrict-resource-access-based-on--conditions
2. https://docs.microsoft.com/en-us/azure/active-directory/conditional-
access/concept-conditional-access-users-groups
3. https://learn.microsoft.com/en-us/entra/identity/conditional-access/how-to-policy-
mfa-admin-portals
Additional Information:
These policies should be tested by using the What If tool in the References. Setting
these can and will create issues with administrators changing settings until they use an
MFA device linked to their accounts. An emergency access account is recommended
for this eventuality if all administrators are locked out. Please see the documentation in
the references for further information. Similarly further testing can also be done via the
insights and reporting resource in References which monitors Azure sign ins.
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 55
1.3 Ensure that 'Restrict non-admin users from creating tenants' is
set to 'Yes' (Manual)
Profile Applicability:
• Level 1
Description:
Require administrators or appropriately delegated users to create new tenants.
Rationale:
It is recommended to only allow an administrator to create new tenants. This prevent
users from creating new Microsoft Entra ID or Azure AD B2C tenants and ensures that
only authorized users are able to do so.
Impact:
Enforcing this setting will ensure that only authorized users are able to create new
tenants.
Audit:
From Azure Portal
From PowerShell
Import-Module Microsoft.Graph.Identity.SignIns
Connect-MgGraph -Scopes 'Policy.ReadWrite.Authorization'
Get-MgPolicyAuthorizationPolicy | Select-Object -ExpandProperty
DefaultUserRolePermissions | Format-List
Review the "DefaultUserRolePermissions" section of the output. Ensure that
AllowedToCreateTenants is not "True".
Remediation:
From Azure Portal
Page 56
5. Set Restrict non-admin users from creating tenants to Yes
From PowerShell
Import-Module Microsoft.Graph.Identity.SignIns
$params = @{
DefaultUserRolePermissions = @{
AllowedToCreateTenants = $false
}
}
References:
1. https://learn.microsoft.com/en-us/azure/active-directory/fundamentals/users-
default-permissions
2. https://learn.microsoft.com/en-us/azure/active-directory/roles/permissions-
reference#tenant-creator
3. https://blog.admindroid.com/disable-users-creating-new-azure-ad-tenants-in-
microsoft-365/
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 57
1.4 Ensure Guest Users Are Reviewed on a Regular Basis
(Manual)
Profile Applicability:
• Level 1
Description:
Microsoft Entra ID is extended to include Azure AD B2B collaboration, allowing you to
invite people from outside your organization to be guest users in your cloud account and
sign in with their own work, school, or social identities. Guest users allow you to share
your company's applications and services with users from any other organization, while
maintaining control over your own corporate data.
Work with external partners, large or small, even if they don't have Azure AD or an IT
department. A simple invitation and redemption process lets partners use their own
credentials to access your company's resources as a guest user.
Guest users in every subscription should be review on a regular basis to ensure that
inactive and unneeded accounts are removed.
Rationale:
Guest users in the Microsoft Entra ID are generally required for collaboration purposes
in Office 365, and may also be required for Azure functions in enterprises with multiple
Azure tenants. Guest users are typically added outside your employee on-boarding/off-
boarding process and could potentially be overlooked indefinitely, leading to a potential
vulnerability. To prevent this, guest users should be reviewed on a regular basis. During
this audit, guest users should also be determined to not have administrative privileges.
Impact:
Before removing guest users, determine their use and scope. Like removing any user,
there may be unforeseen consequences to systems if it is deleted.
Audit:
From Azure Portal
Page 58
From Azure CLI
az ad user list --query "[?userType=='Guest']"
Ensure all users listed are still required and not inactive.
From Azure PowerShell
Get-AzureADUser |Where-Object {$_.UserType -like "Guest"} |Select-Object
DisplayName, UserPrincipalName, UserType -Unique
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal
Page 59
From Azure PowerShell
Before deleting the user, set it to inactive using the ID from the Audit Procedure to
determine if there are any dependent systems.
Set-AzureADUser -ObjectId "<[email protected]>" -AccountEnabled
false
After determining that there are no dependent systems delete the user.
PS C:\>Remove-AzureADUser -ObjectId <[email protected]>
Default Value:
By default no guest users are created.
References:
1. https://docs.microsoft.com/en-us/azure/active-directory/b2b/user-properties
2. https://docs.microsoft.com/en-us/azure/active-directory/fundamentals/add-users-
azure-active-directory#delete-a-user
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-privileged-
access#pa-4-review-and-reconcile-user-access-regularly
4. https://www.microsoft.com/en-us/security/business/identity-access-
management/azure-ad-pricing
5. https://docs.microsoft.com/en-us/azure/active-directory/reports-monitoring/howto-
manage-inactive-user-accounts
6. https://docs.microsoft.com/en-us/azure/active-directory/fundamentals/active-
directory-users-restore
Additional Information:
It is good practice to use a dynamic security group to manage guest users.
To create the dynamic security group:
Page 60
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 61
1.5 Ensure That 'Number of methods required to reset' is set to '2'
(Manual)
Profile Applicability:
• Level 1
Description:
Ensures that two alternate forms of identification are provided before allowing a
password reset.
Rationale:
A Self-service Password Reset (SSPR) through Azure Multi-factor Authentication (MFA)
ensures the user's identity is confirmed using two separate methods of identification.
With multiple methods set, an attacker would have to compromise both methods before
they could maliciously reset a user's password.
Impact:
There may be administrative overhead, as users who lose access to their secondary
authentication methods will need an administrator with permissions to remove it. There
will also need to be organization-wide security policies and training to teach
administrators to verify the identity of the requesting user so that social engineering can
not render this setting useless.
Audit:
From Azure Portal
Remediation:
From Azure Portal
Page 62
Default Value:
By default, the Number of methods required to reset is set to "2".
References:
1. https://docs.microsoft.com/en-us/azure/active-directory/authentication/tutorial-
enable-sspr
2. https://docs.microsoft.com/en-us/azure/active-directory/authentication/concept-
registration-mfa-sspr-combined
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-identity-
management#im-6-use-strong-authentication-controls
4. https://docs.microsoft.com/en-us/azure/active-directory/active-directory-
passwords-faq#password-reset-registration
5. https://docs.microsoft.com/en-us/azure/active-directory/authentication/howto-
sspr-deployment
6. https://docs.microsoft.com/en-us/azure/active-directory/authentication/concept-
authentication-methods
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 63
1.6 Ensure that a Custom Bad Password List is set to 'Enforce' for
your Organization (Manual)
Profile Applicability:
• Level 1
Description:
Microsoft Azure provides a Global Banned Password policy that applies to Azure
administrative and normal user accounts. This is not applied to user accounts that are
synced from an on-premise Active Directory unless Microsoft Entra ID Connect is used
and you enable EnforceCloudPasswordPolicyForPasswordSyncedUsers. Please see
the list in default values on the specifics of this policy. To further password security, it is
recommended to further define a custom banned password policy.
Rationale:
Enabling this gives your organization further customization on what secure passwords
are allowed. Setting a bad password list enables your organization to fine-tune its
password policy further, depending on your needs. Removing easy-to-guess passwords
increases the security of access to your Azure resources.
Impact:
Increasing needed password complexity might increase overhead on administration of
user accounts. Licensing requirement for Global Banned Password List and Custom
Banned Password list requires Microsoft Entra ID P1 or P2. On-premises Active
Directory Domain Services users that are not synchronized to Microsoft Entra ID also
benefit from Microsoft Entra ID Password Protection based on existing licensing for
synchronized users.
Audit:
From Azure Portal
Page 64
Remediation:
From Azure Portal
Default Value:
By default the custom bad password list is not 'Enabled'. Organizational-specific terms
can be added to the custom banned password list, such as the following examples:
• Brand names
• Product names
• Locations, such as company headquarters
• Company-specific internal terms
• Abbreviations that have specific company meaning
• Months and weekdays with your company's local languages
The default Azure bad password policy is already applied to your resources which
applies the following basic requirements:
Characters allowed:
• Uppercase characters (A - Z)
• Lowercase characters (a - z)
• Numbers (0 - 9)
• Symbols:
• @#$%^&*-_!+=[]{}|\:',.?/`~"();<>
• blank space
• Unicode characters
• Password length Passwords require
• A minimum of eight characters
• A maximum of 256 characters
Password complexity: Passwords require three out of four of the following categories:
• Uppercase characters
• Lowercase characters
Page 65
• Numbers
• Symbols Note: Password complexity check isn't required for Education tenants.
• When a user changes or resets their password, the new password can't be the
same as the current or recently used passwords.
• Password isn't banned by Entra ID Password Protection.
• The password can't be on the global list of banned passwords for Azure AD
Password Protection, or on the customizable list of banned passwords specific to
your organization.
References:
1. https://learn.microsoft.com/en-us/entra/identity/authentication/concept-password-
ban-bad-combined-policy
2. https://learn.microsoft.com/en-us/entra/identity/authentication/concept-password-
ban-bad
3. https://docs.microsoft.com/en-us/powershell/module/Azuread/
4. https://www.microsoft.com/en-us/research/publication/password-guidance/
5. https://learn.microsoft.com/en-us/entra/identity/authentication/tutorial-configure-
custom-password-protection
6. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-identity-
management#im-6-use-strong-authentication-controls
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 66
1.7 Ensure that 'Number of days before users are asked to re-
confirm their authentication information' is not set to '0' (Manual)
Profile Applicability:
• Level 1
Description:
Ensure that the number of days before users are asked to re-confirm their
authentication information is not set to 0.
Rationale:
This setting is necessary if you have setup 'Require users to register when signing in
option'. If authentication re-confirmation is disabled, registered users will never be
prompted to re-confirm their existing authentication information. If the authentication
information for a user changes, such as a phone number or email, then the password
reset information for that user reverts to the previously registered authentication
information.
Impact:
Users will be prompted for their multifactor authentication at the duration set here.
Audit:
From Azure Portal
Remediation:
From Azure Portal
Page 67
Default Value:
By default, the Number of days before users are asked to re-confirm their
authentication information is set to "180 days".
References:
1. https://docs.microsoft.com/en-us/azure/active-directory/active-directory-
passwords-how-it-works#registration
2. https://docs.microsoft.com/en-us/azure/active-directory/authentication/howto-
sspr-deployment
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-governance-
strategy#gs-6-define-and-implement-identity-and-privileged-access-strategy
4. https://docs.microsoft.com/en-us/azure/active-directory/authentication/concept-
authentication-methods
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 68
1.8 Ensure that 'Notify users on password resets?' is set to 'Yes'
(Manual)
Profile Applicability:
• Level 1
Description:
Ensure that users are notified on their primary and secondary emails on password
resets.
Rationale:
User notification on password reset is a proactive way of confirming password reset
activity. It helps the user to recognize unauthorized password reset activities.
Impact:
Users will receive emails alerting them to password changes to both their primary and
secondary emails.
Audit:
From Azure Portal
Remediation:
From Azure Portal
Default Value:
By default, Notify users on password resets? is set to "Yes".
Page 69
References:
1. https://docs.microsoft.com/en-us/azure/active-directory/authentication/tutorial-
enable-sspr#set-up-notifications-and-customizations
2. https://docs.microsoft.com/en-us/azure/active-directory/active-directory-
passwords-how-it-works#notifications
3. https://docs.microsoft.com/en-us/azure/active-directory/authentication/howto-
sspr-deployment
4. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-governance-
strategy#gs-6-define-and-implement-identity-and-privileged-access-strategy
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 70
1.9 Ensure That 'Notify all admins when other admins reset their
password?' is set to 'Yes' (Manual)
Profile Applicability:
• Level 1
Description:
Ensure that all Global Administrators are notified if any other administrator resets their
password.
Rationale:
Global Administrator accounts are sensitive. Any password reset activity notification,
when sent to all Global Administrators, ensures that all Global administrators can
passively confirm if such a reset is a common pattern within their group. For example, if
all Global Administrators change their password every 30 days, any password reset
activity before that may require administrator(s) to evaluate any unusual activity and
confirm its origin.
Impact:
All Global Administrators will receive a notification from Azure every time a password is
reset. This is useful for auditing procedures to confirm that there are no out of the
ordinary password resets for Global Administrators. There is additional overhead,
however, in the time required for Global Administrators to audit the notifications. This
setting is only useful if all Global Administrators pay attention to the notifications, and
audit each one.
Audit:
From Azure Portal
Remediation:
From Azure Portal
Page 71
3. Select Users
4. Select Password reset
5. Under Manage, select Notifications
6. Set Notify all admins when other admins reset their password? to Yes
Default Value:
By default, Notify all admins when other admins reset their password? is set to
"No".
References:
1. https://docs.microsoft.com/en-us/azure/active-directory/active-directory-
passwords-how-it-works#notifications
2. https://docs.microsoft.com/en-us/azure/active-directory/authentication/howto-
sspr-deployment
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-governance-
strategy#gs-6-define-and-implement-identity-and-privileged-access-strategy
4. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-privileged-
access#pa-1-separate-and-limit-highly-privilegedadministrative-users
5. https://docs.microsoft.com/en-us/azure/active-directory/authentication/tutorial-
enable-sspr#set-up-notifications-and-customizations
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 72
1.10 Ensure `User consent for applications` is set to `Do not allow
user consent` (Manual)
Profile Applicability:
• Level 1
Description:
Require administrators to provide consent for applications before use.
Rationale:
If Microsoft Entra ID is running as an identity provider for third-party applications,
permissions and consent should be limited to administrators or pre-approved. Malicious
applications may attempt to exfiltrate data or abuse privileged user accounts.
Impact:
Enforcing this setting may create additional requests that administrators need to review.
Audit:
From Azure Portal
From PowerShell
Connect-MsolService
Get-MsolCompanyInformation | Select-Object
UsersPermissionToUserConsentToAppEnabled
Command should return UsersPermissionToUserConsentToAppEnabled with the value of
False
Remediation:
From Azure Portal
Page 73
6. Set User consent for applications to Do not allow user consent
7. Click save
Default Value:
By default, Users consent for applications is set to Allow user consent for apps.
References:
1. https://nicksnettravels.builttoroam.com/post/2017/01/24/Admin-Consent-for-
Permissions-in-Azure-Active-Directory.aspx
2. https://docs.microsoft.com/en-us/azure/active-directory/manage-apps/configure-
user-consent#configure-user-consent-to-applications
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-privileged-
access#pa-1-separate-and-limit-highly-privilegedadministrative-users
4. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-governance-
strategy#gs-2-define-and-implement-enterprise-segmentationseparation-of-
duties-strategy
5. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-governance-
strategy#gs-6-define-and-implement-identity-and-privileged-access-strategy
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 74
1.11 Ensure ‘User consent for applications’ Is Set To ‘Allow for
Verified Publishers’ (Manual)
Profile Applicability:
• Level 2
Description:
Allow users to provide consent for selected permissions when a request is coming from
a verified publisher.
Rationale:
If Microsoft Entra ID is running as an identity provider for third-party applications,
permissions and consent should be limited to administrators or pre-approved. Malicious
applications may attempt to exfiltrate data or abuse privileged user accounts.
Impact:
Enforcing this setting may create additional requests that administrators need to review.
Audit:
From Azure Portal
From PowerShell
Connect-MsolService
Get-MsolCompanyInformation | Select-Object
UsersPermissionToUserConsentToAppEnabled
Command should return UsersPermissionToUserConsentToAppEnabled with the value of
False
Remediation:
From Azure Portal
Page 75
4. Select Consent and permissions
5. Select User consent settings
6. Under User consent for applications, select Allow user consent for apps
from verified publishers, for selected permissions
7. Select Save
From PowerShell
Connect-MsolService
Set-MsolCompanyInformation --UsersPermissionToUserConsentToAppEnabled $False
Default Value:
By default, User consent for applications is set to Allow user consent for apps.
References:
1. https://docs.microsoft.com/en-us/azure/active-directory/manage-apps/configure-
user-consent#configure-user-consent-to-applications
2. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-privileged-
access#pa-1-separate-and-limit-highly-privilegedadministrative-users
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-governance-
strategy#gs-2-define-and-implement-enterprise-segmentationseparation-of-
duties-strategy
4. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-governance-
strategy#gs-6-define-and-implement-identity-and-privileged-access-strategy
5. https://docs.microsoft.com/en-us/powershell/module/msonline/set-
msolcompanysettings?view=azureadps-1.0
6. https://docs.microsoft.com/en-us/powershell/module/msonline/get-
msolcompanyinformation?view=azureadps-1.0
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 76
Controls
Control IG 1 IG 2 IG 3
Version
Page 77
1.12 Ensure that 'Users can add gallery apps to My Apps' is set to
'No' (Manual)
Profile Applicability:
• Level 1
Description:
Require administrators to provide consent for the apps before use.
Rationale:
Unless Microsoft Entra ID is running as an identity provider for third-party applications,
do not allow users to use their identity outside of your cloud environment. User profiles
contain private information such as phone numbers and email addresses which could
then be sold off to other third parties without requiring any further consent from the user.
Impact:
Can cause additional requests to administrators that need to be fulfilled quite often.
Audit:
From Azure Portal
Remediation:
From Azure Portal
Default Value:
By default, Users can add gallery apps to My Apps is set to No.
Page 78
References:
1. https://blogs.msdn.microsoft.com/exchangedev/2014/06/05/managing-user-
consent-for-applications-using-office-365-apis/
2. https://nicksnettravels.builttoroam.com/post/2017/01/24/Admin-Consent-for-
Permissions-in-Azure-Active-Directory.aspx
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-governance-
strategy#gs-6-define-and-implement-identity-and-privileged-access-strategy
4. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-privileged-
access#pa-1-separate-and-limit-highly-privilegedadministrative-users
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 79
1.13 Ensure That ‘Users Can Register Applications’ Is Set to ‘No’
(Manual)
Profile Applicability:
• Level 1
Description:
Require administrators or appropriately delegated users to register third-party
applications.
Rationale:
It is recommended to only allow an administrator to register custom-developed
applications. This ensures that the application undergoes a formal security review and
approval process prior to exposing Microsoft Entra ID data. Certain users like
developers or other high-request users may also be delegated permissions to prevent
them from waiting on an administrative user. Your organization should review your
policies and decide your needs.
Impact:
Enforcing this setting will create additional requests for approval that will need to be
addressed by an administrator. If permissions are delegated, a user may approve a
malevolent third party application, potentially giving it access to your data.
Audit:
From Azure Portal
From PowerShell
Connect-MsolService
Get-MsolCompanyInformation | Select-Object
UsersPermissionToCreateLOBAppsEnabled
Command should return UsersPermissionToCreateLOBAppsEnabled with the value of
False
Page 80
Remediation:
From Azure Portal
From PowerShell
Connect-MsolService
Set-MsolCompanyInformation -UsersPermissionToCreateLOBAppsEnabled $False
Default Value:
By default, Users can register applications is set to "Yes".
References:
1. https://docs.microsoft.com/en-us/azure/active-directory/roles/delegate-app-
roles#restrict-who-can-create-applications
2. https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-
how-applications-are-added#who-has-permission-to-add-applications-to-my-
azure-ad-instance
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-governance-
strategy#gs-6-define-and-implement-identity-and-privileged-access-strategy
4. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-privileged-
access#pa-1-separate-and-limit-highly-privilegedadministrative-users
5. https://blogs.msdn.microsoft.com/exchangedev/2014/06/05/managing-user-
consent-for-applications-using-office-365-apis/
6. https://nicksnettravels.builttoroam.com/post/2017/01/24/Admin-Consent-for-
Permissions-in-Azure-Active-Directory.aspx
7. https://docs.microsoft.com/en-us/powershell/module/msonline/get-
msolcompanyinformation?view=azureadps-1.0
8. https://docs.microsoft.com/en-us/powershell/module/msonline/set-
msolcompanysettings?view=azureadps-1.0
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 81
Controls
Control IG 1 IG 2 IG 3
Version
Page 82
1.14 Ensure That 'Guest users access restrictions' is set to 'Guest
user access is restricted to properties and memberships of their
own directory objects' (Manual)
Profile Applicability:
• Level 1
Description:
Limit guest user permissions.
Rationale:
Limiting guest access ensures that guest accounts do not have permission for certain
directory tasks, such as enumerating users, groups or other directory resources, and
cannot be assigned to administrative roles in your directory. Guest access has three
levels of restriction.
The recommended option is the 3rd, most restrictive: "Guest user access is restricted to
their own directory object".
Impact:
This may create additional requests for permissions to access resources that
administrators will need to approve.
According to https://learn.microsoft.com/en-us/azure/active-directory/enterprise-
users/users-restrict-guest-permissions#services-currently-not-supported
Service without current support might have compatibility issues with the new guest
restriction setting.
• Forms
• Project
• Yammer
• Planner in SharePoint
Page 83
Audit:
From Azure Portal
From PowerShell
Id : authorizationPolicy
OdataType :
Description : Used to manage
authorization related settings across the company.
DisplayName : Authorization Policy
EnabledPreviewFeatures : {}
GuestUserRoleId : 10dae51f-b6af-4016-8d66-
8c2a99b929b3
PermissionGrantPolicyIdsAssignedToDefaultUserRole : {user-default-legacy}
If the GuestUserRoleID property does not equal 2af84b1e-32c8-42b7-82bc-
daa82404023b then it is not set to most restrictive.
Remediation:
From Azure Portal
From PowerShell
Page 84
Default Value:
By default, Guest user access restrictions is set to Guest users have limited
access to properties and memberships of directory objects.
References:
1. https://docs.microsoft.com/en-us/azure/active-directory/fundamentals/users-
default-permissions#member-and-guest-users
2. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-privileged-
access#pa-3-manage-lifecycle-of-identities-and-entitlements
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-governance-
strategy#gs-2-define-and-implement-enterprise-segmentationseparation-of-
duties-strategy
4. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-governance-
strategy#gs-6-define-and-implement-identity-and-privileged-access-strategy
5. https://docs.microsoft.com/en-us/azure/active-directory/enterprise-users/users-
restrict-guest-permissions
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 85
Controls
Control IG 1 IG 2 IG 3
Version
Page 86
1.15 Ensure that 'Guest invite restrictions' is set to "Only users
assigned to specific admin roles can invite guest users" (Manual)
Profile Applicability:
• Level 2
Description:
Restrict invitations to users with specific administrative roles only.
Rationale:
Restricting invitations to users with specific administrator roles ensures that only
authorized accounts have access to cloud resources. This helps to maintain "Need to
Know" permissions and prevents inadvertent access to data.
By default the setting Guest invite restrictions is set to Anyone in the
organization can invite guest users including guests and non-admins. This would
allow anyone within the organization to invite guests and non-admins to the tenant,
posing a security risk.
Impact:
With the option of Only users assigned to specific admin roles can invite guest
users selected, users with specific admin roles will be in charge of sending invitations to
the external users, requiring additional overhead by them to manage user accounts.
This will mean coordinating with other departments as they are onboarding new users.
Audit:
From Azure Portal
• Anyone in the organization can invite guest users including guests and non-
admins (most inclusive),
• Member users and users assigned to specific admin roles can invite guest users
including guests with member permissions,
Page 87
• Only users assigned to specific admin roles can invite guest users,
• No one in the organization can invite guest users including admins (most
restrictive).
Remediation:
From Azure Portal
Default Value:
By default, Guest invite restrictions is set to Anyone in the organization can
invite guest users including guests and non-admins
References:
1. https://docs.microsoft.com/en-us/azure/active-directory/active-directory-b2b-
delegate-invitations
2. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-governance-
strategy#gs-6-define-and-implement-identity-and-privileged-access-strategy
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-governance-
strategy#gs-2-define-and-implement-enterprise-segmentationseparation-of-
duties-strategy
4. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-privileged-
access#pa-3-manage-lifecycle-of-identities-and-entitlements
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 88
Controls
Control IG 1 IG 2 IG 3
Version
Page 89
1.16 Ensure That 'Restrict access to Microsoft Entra admin
center' is Set to 'Yes' (Manual)
Profile Applicability:
• Level 1
Description:
Restrict access to the Microsoft Entra ID administration center to administrators only.
NOTE: This only affects access to the Entra ID administrator's web portal. This setting
does not prohibit privileged users from using other methods such as Rest API or
Powershell to obtain sensitive information from Microsoft Entra ID.
Rationale:
The Microsoft Entra ID administrative center has sensitive data and permission settings.
All non-administrators should be prohibited from accessing any Microsoft Entra ID data
in the administration center to avoid exposure.
Impact:
All administrative tasks will need to be done by Administrators, causing additional
overhead in management of users and resources.
Audit:
From Azure Portal
Remediation:
From Azure Portal
Default Value:
By default, Restrict access to Microsoft Entra admin center is set to No
Page 90
References:
1. https://docs.microsoft.com/en-us/azure/active-directory/active-directory-assign-
admin-roles-azure-portal
2. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-governance-
strategy#gs-2-define-and-implement-enterprise-segmentationseparation-of-
duties-strategy
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-governance-
strategy#gs-6-define-and-implement-identity-and-privileged-access-strategy
4. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-privileged-
access#pa-1-separate-and-limit-highly-privilegedadministrative-users
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 91
1.17 Ensure that 'Restrict user ability to access groups features in
the Access Pane' is Set to 'Yes' (Manual)
Profile Applicability:
• Level 2
Description:
Restrict access to group web interface in the Access Panel portal.
Rationale:
Self-service group management enables users to create and manage security groups or
Office 365 groups in Microsoft Entra ID. Unless a business requires this day-to-day
delegation for some users, self-service group management should be disabled. Any
user can access the Access Panel, where they can reset their passwords, view their
information, etc. By default, users are also allowed to access the Group feature, which
shows groups, members, related resources (SharePoint URL, Group email address,
Yammer URL, and Teams URL). By setting this feature to 'Yes', users will no longer
have access to the web interface, but still have access to the data using the API. This is
useful to prevent non-technical users from enumerating groups-related information, but
technical users will still be able to access this information using APIs.
Impact:
Setting to Yes could create administrative overhead by customers seeking certain group
memberships that will have to be manually managed by administrators with appropriate
permissions.
Audit:
From Azure Portal
Remediation:
From Azure Portal
Page 92
4. Select General under Settings
5. Ensure that Restrict user ability to access groups features in My Groups
is set to Yes
Default Value:
By default, Restrict user ability to access groups features in the Access Pane
is set to No
References:
1. https://docs.microsoft.com/en-us/azure/active-directory/active-directory-
accessmanagement-self-service-group-management
2. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-privileged-
access#pa-1-separate-and-limit-highly-privilegedadministrative-users
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-privileged-
access#pa-3-manage-lifecycle-of-identities-and-entitlements
4. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-governance-
strategy#gs-2-define-and-implement-enterprise-segmentationseparation-of-
duties-strategy
5. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-governance-
strategy#gs-6-define-and-implement-identity-and-privileged-access-strategy
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 93
1.18 Ensure that 'Users can create security groups in Azure
portals, API or PowerShell' is set to 'No' (Manual)
Profile Applicability:
• Level 2
Description:
Restrict security group creation to administrators only.
Rationale:
When creating security groups is enabled, all users in the directory are allowed to
create new security groups and add members to those groups. Unless a business
requires this day-to-day delegation, security group creation should be restricted to
administrators only.
Impact:
Enabling this setting could create a number of requests that would need to be managed
by an administrator.
Audit:
From Azure Portal
Remediation:
From Azure Portal
Page 94
Default Value:
By default, Users can create security groups in Azure portals, API or
PowerShell is set to Yes
References:
1. https://docs.microsoft.com/en-us/azure/active-directory/active-directory-
accessmanagement-self-service-group-management#making-a-group-available-
for-end-user-self-service
2. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-governance-
strategy#gs-6-define-and-implement-identity-and-privileged-access-strategy
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-governance-
strategy#gs-2-define-and-implement-enterprise-segmentationseparation-of-
duties-strategy
4. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-privileged-
access#pa-1-separate-and-limit-highly-privilegedadministrative-users
5. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-privileged-
access#pa-3-manage-lifecycle-of-identities-and-entitlements
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 95
1.19 Ensure that 'Owners can manage group membership
requests in the Access Panel' is set to 'No' (Manual)
Profile Applicability:
• Level 2
Description:
Restrict security group management to administrators only.
Rationale:
Restricting security group management to administrators only prohibits users from
making changes to security groups. This ensures that security groups are appropriately
managed and their management is not delegated to non-administrators.
Impact:
Group Membership for user accounts will need to be handled by Admins and cause
administrative overhead.
Audit:
From Azure Portal
Remediation:
From Azure Portal
Default Value:
By default, Owners can manage group membership requests in the Access Panel is
set to No.
Page 96
References:
1. https://docs.microsoft.com/en-us/azure/active-directory/active-directory-
accessmanagement-self-service-group-management#making-a-group-available-
for-end-user-self-service
2. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-privileged-
access#pa-1-separate-and-limit-highly-privilegedadministrative-users
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-privileged-
access#pa-3-manage-lifecycle-of-identities-and-entitlements
4. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-privileged-
access#pa-8-determine-access-process-for-cloud-provider-support
5. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-governance-
strategy#gs-2-define-and-implement-enterprise-segmentationseparation-of-
duties-strategy
6. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-governance-
strategy#gs-6-define-and-implement-identity-and-privileged-access-strategy
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 97
1.20 Ensure that 'Users can create Microsoft 365 groups in Azure
portals, API or PowerShell' is set to 'No' (Manual)
Profile Applicability:
• Level 2
Description:
Restrict Microsoft 365 group creation to administrators only.
Rationale:
Restricting Microsoft 365 group creation to administrators only ensures that creation of
Microsoft 365 groups is controlled by the administrator. Appropriate groups should be
created and managed by the administrator and group creation rights should not be
delegated to any other user.
Impact:
Enabling this setting could create a number of requests that would need to be managed
by an administrator.
Audit:
From Azure Portal
Remediation:
From Azure Portal
Page 98
Default Value:
By default, Users can create Microsoft 365 groups in Azure portals, API or
PowerShell is set to Yes.
References:
1. https://whitepages.unlimitedviz.com/2017/01/disable-office-365-groups-2/
2. https://support.office.com/en-us/article/Control-who-can-create-Office-365-
Groups-4c46c8cb-17d0-44b5-9776-005fced8e618
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-governance-
strategy#gs-6-define-and-implement-identity-and-privileged-access-strategy
4. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-governance-
strategy#gs-2-define-and-implement-enterprise-segmentationseparation-of-
duties-strategy
5. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-privileged-
access#pa-1-separate-and-limit-highly-privilegedadministrative-users
6. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-privileged-
access#pa-3-manage-lifecycle-of-identities-and-entitlements
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 99
1.21 Ensure that 'Require Multi-Factor Authentication to register
or join devices with Microsoft Entra ID' is set to 'Yes' (Manual)
Profile Applicability:
• Level 1
Description:
Joining or registering devices to Microsoft Entra ID should require Multi-factor
authentication.
Rationale:
Multi-factor authentication is recommended when adding devices to Microsoft Entra ID.
When set to Yes, users who are adding devices from the internet must first use the
second method of authentication before their device is successfully added to the
directory. This ensures that rogue devices are not added to the domain using a
compromised user account. Note: Some Microsoft documentation suggests to use
conditional access policies for joining a domain from certain whitelisted networks or
devices. Even with these in place, using Multi-Factor Authentication is still
recommended, as it creates a process for review before joining the domain.
Impact:
A slight impact of additional overhead, as Administrators will now have to approve every
access to the domain.
Audit:
From Azure Portal
Remediation:
From Azure Portal
Page 100
5. Set Require Multi-Factor Authentication to register or join devices with
Microsoft Entra to Yes
Default Value:
By default, Require Multi-Factor Authentication to register or join devices
with Microsoft Entra is set to No.
References:
1. https://blogs.technet.microsoft.com/janketil/2016/02/29/azure-mfa-for-enrollment-
in-intune-and-azure-ad-device-registration-explained/
2. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-identity-
management#im-6-use-strong-authentication-controls
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 101
1.22 Ensure That No Custom Subscription Administrator Roles
Exist (Automated)
Profile Applicability:
• Level 1
Description:
The principle of least privilege should be followed and only necessary privileges should
be assigned instead of allowing full administrative access.
Rationale:
Classic subscription admin roles offer basic access management and include Account
Administrator, Service Administrator, and Co-Administrators. It is recommended the
least necessary permissions be given initially. Permissions can be added as needed by
the account holder. This ensures the account holder cannot perform actions which were
not intended.
Impact:
Subscriptions will need to be handled by Administrators with permissions.
Audit:
From Azure Portal
Page 102
From PowerShell
Connect-AzAccount
Get-AzRoleDefinition |Where-Object {($_.IsCustom -eq $true) -and
($_.Actions.contains('*'))}
Check the output for AssignableScopes value set to the subscription.
Remediation:
From Azure Portal
Page 103
References:
1. https://docs.microsoft.com/en-us/azure/billing/billing-add-change-azure-
subscription-administrator
2. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-privileged-
access#pa-1-separate-and-limit-highly-privilegedadministrative-users
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-privileged-
access#pa-3-manage-lifecycle-of-identities-and-entitlements
4. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-governance-
strategy#gs-2-define-and-implement-enterprise-segmentationseparation-of-
duties-strategy
5. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-governance-
strategy#gs-6-define-and-implement-identity-and-privileged-access-strategy
6. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-privileged-
access#pa-7-follow-just-enough-administration-least-privilege-principle
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 104
1.23 Ensure a Custom Role is Assigned Permissions for
Administering Resource Locks (Manual)
Profile Applicability:
• Level 2
Description:
Resource locking is a powerful protection mechanism that can prevent inadvertent
modification/deletion of resources within Azure subscriptions/Resource Groups and is a
recommended NIST configuration.
Rationale:
Given the resource lock functionality is outside of standard Role Based Access
Control(RBAC), it would be prudent to create a resource lock administrator role to
prevent inadvertent unlocking of resources.
Impact:
By adding this role, specific permissions may be granted for managing just resource
locks rather than needing to provide the wide Owner or User Access Administrator role,
reducing the risk of the user being able to do unintentional damage.
Audit:
From Azure Portal
1. In the Azure portal, open a subscription or resource group where you want to
view assigned roles.
2. Select Access control (IAM)
3. Select Roles
4. Search for the custom role named <role_name> Ex. from remediation Resource
Lock Administrator
5. Ensure that the role is assigned to the appropriate users.
Remediation:
From Azure Portal
1. In the Azure portal, open a subscription or resource group where you want the
custom role to be assigned.
2. Select Access control (IAM).
3. Click Add.
4. Select Add custom role.
5. In the Custom Role Name field enter Resource Lock Administrator.
6. In the Description field enter Can Administer Resource Locks.
Page 105
7. For Baseline permissions select Start from scratch
8. Select next.
9. In the Permissions tab select Add permissions.
10. In the Search for a permission box, type in Microsoft.Authorization/locks to
search for permissions.
11. Select the check box next to the permission Microsoft.Authorization/locks.
12. Select Add.
13. Select Review + create.
14. Select Create.
15. Assign the newly created role to the appropriate user.
From PowerShell:
Below is a power shell definition for a resource lock administrator role created at an
Azure Management group level
Import-Module Az.Accounts
Connect-AzAccount
$role.AssignableScopes.Add("/providers/Microsoft.Management/managementGroups/
MG-Name")
References:
1. https://docs.microsoft.com/en-us/azure/role-based-access-control/custom-roles
2. https://docs.microsoft.com/en-us/azure/role-based-access-control/check-access
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-privileged-
access#pa-1-separate-and-limit-highly-privilegedadministrative-users
4. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-privileged-
access#pa-7-follow-just-enough-administration-least-privilege-principle
5. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-privileged-
access#pa-3-manage-lifecycle-of-identities-and-entitlements
6. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-governance-
strategy#gs-2-define-and-implement-enterprise-segmentationseparation-of-
duties-strategy
7. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-governance-
strategy#gs-6-define-and-implement-identity-and-privileged-access-strategy
Page 106
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 107
1.24 Ensure That `Subscription leaving Microsoft Entra ID
directory` and `Subscription entering Microsoft Entra ID directory`
Is Set To ‘Permit No One’ (Manual)
Profile Applicability:
• Level 2
Description:
Users who are set as subscription owners are able to make administrative changes to
the subscriptions and move them into and out of Microsoft Entra ID.
Rationale:
Permissions to move subscriptions in and out of Microsoft Entra ID directory must only
be given to appropriate administrative personnel. A subscription that is moved into an
Microsoft Entra ID directory may be within a folder to which other users have elevated
permissions. This prevents loss of data or unapproved changes of the objects within by
potential bad actors.
Impact:
Subscriptions will need to have these settings turned off to be moved.
Audit:
From Azure Portal
Remediation:
From Azure Portal
Page 108
Default Value:
By default Subscription leaving Microsoft Entra ID directory and Subscription
entering Microsoft Entra ID directory are set to Allow everyone (default)
References:
1. https://docs.microsoft.com/en-us/azure/cost-management-
billing/manage/manage-azure-subscription-policy
2. https://docs.microsoft.com/en-us/azure/active-directory/fundamentals/active-
directory-how-subscriptions-associated-directory
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-identity-
management#im-2-protect-identity-and-authentication-systems
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 109
1.25 Ensure fewer than 5 users have global administrator
assignment (Manual)
Profile Applicability:
• Level 1
Description:
This recommendation aims to maintain a balance between security and operational
efficiency by ensuring that a minimum of 2 and a maximum of 4 users are assigned the
Global Administrator role in Microsoft Entra ID. Having at least two Global
Administrators ensures redundancy, while limiting the number to four reduces the risk of
excessive privileged access.
Rationale:
The Global Administrator role has extensive privileges across all services in Microsoft
Entra ID. The Global Administrator role should never be used in regular daily activities;
administrators should have a regular user account for daily activities, and a separate
account for administrative responsibilities. Limiting the number of Global Administrators
helps mitigate the risk of unauthorized access, reduces the potential impact of human
error, and aligns with the principle of least privilege to reduce the attack surface of an
Azure tenant. Conversely, having at least two Global Administrators ensures that
administrative functions can be performed without interruption in case of unavailability of
a single admin.
Impact:
Implementing this recommendation may require changes in administrative workflows or
the redistribution of roles and responsibilities. Adequate training and awareness should
be provided to all Global Administrators.
Audit:
Remediation:
If more 4 users are assigned:
1. Remove Global Administrator role for users which do not or no longer require the
role.
Page 110
2. Assign Global Administrator role via PIM which can be activated when required.
3. Assign more granular roles to users to conduct their duties.
1. Provide the Global Administrator role to a trusted user or create a break glass
admin account.
References:
1. https://learn.microsoft.com/en-us/entra/identity/role-based-access-control/best-
practices#5-limit-the-number-of-global-administrators-to-less-than-5
2. https://learn.microsoft.com/en-us/microsoft-365/admin/add-users/about-admin-
roles?view=o365-worldwide#security-guidelines-for-assigning-roles
3. https://learn.microsoft.com/en-us/entra/identity/role-based-access-
control/security-emergency-access
4. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-privileged-
access#pa-1-separate-and-limit-highly-privilegedadministrative-users
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 111
2 Microsoft Defender
This section covers recommendations to consider for tenant-wide security policies and
plans related to Microsoft Defender. Please note that because Microsoft Defender
products require additional licensing, all Microsoft Defender plan recommendations in
subsection 2.1 are assigned as “Level 2.”
Microsoft Defender products addressed in this section include:
Page 112
2.1 Microsoft Defender for Cloud
Page 113
2.1.1 Ensure That Microsoft Defender for Servers Is Set to 'On'
(Automated)
Profile Applicability:
• Level 2
Description:
Turning on Microsoft Defender for Servers enables threat detection for Servers,
providing threat intelligence, anomaly detection, and behavior analytics in the Microsoft
Defender for Cloud.
Rationale:
Enabling Microsoft Defender for Servers allows for greater defense-in-depth, with threat
detection provided by the Microsoft Security Response Center (MSRC).
Impact:
Turning on Microsoft Defender for Servers in Microsoft Defender for Cloud incurs an
additional cost per resource.
Audit:
From Azure Portal
From PowerShell
Run the following command:
Get-AzSecurityPricing -Name 'VirtualMachines' |Select-Object Name,PricingTier
If the tenant is licensed and enabled, the -PricingTier parameter will indicate Standard
Page 114
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal
Default Value:
By default, Microsoft Defender plan is off.
References:
1. https://docs.microsoft.com/en-us/azure/security-center/security-center-detection-
capabilities
2. https://docs.microsoft.com/en-us/rest/api/securitycenter/pricings/list
3. https://docs.microsoft.com/en-us/rest/api/securitycenter/pricings/update
4. https://docs.microsoft.com/en-us/powershell/module/az.security/get-
azsecuritypricing
5. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-endpoint-
security#es-1-use-endpoint-detection-and-response-edr
Page 115
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 116
2.1.2 Ensure That Microsoft Defender for App Services Is Set To
'On' (Automated)
Profile Applicability:
• Level 2
Description:
Turning on Microsoft Defender for App Service enables threat detection for App Service,
providing threat intelligence, anomaly detection, and behavior analytics in the Microsoft
Defender for Cloud.
Rationale:
Enabling Microsoft Defender for App Service allows for greater defense-in-depth, with
threat detection provided by the Microsoft Security Response Center (MSRC).
Impact:
Turning on Microsoft Defender for App Service incurs an additional cost per resource.
Audit:
From Azure Portal
From PowerShell
Run the following command:
Get-AzSecurityPricing -Name 'AppServices' |Select-Object Name,PricingTier
Ensure the -PricingTier is set to Standard
Page 117
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal
Default Value:
By default, Microsoft Defender plan is off.
References:
1. https://docs.microsoft.com/en-us/azure/security-center/security-center-detection-
capabilities
2. https://docs.microsoft.com/en-us/rest/api/securitycenter/pricings/list
3. https://docs.microsoft.com/en-us/rest/api/securitycenter/pricings/update
4. https://docs.microsoft.com/en-us/powershell/module/az.security/get-
azsecuritypricing
5. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-1-enable-threat-detection-capabilities
Page 118
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 119
2.1.3 Ensure That Microsoft Defender for (Managed Instance)
Azure SQL Databases Is Set To 'On' (Automated)
Profile Applicability:
• Level 2
Description:
Turning on Microsoft Defender for Azure SQL Databases enables threat detection for
Managed Instance Azure SQL databases, providing threat intelligence, anomaly
detection, and behavior analytics in Microsoft Defender for Cloud.
Rationale:
Enabling Microsoft Defender for Azure SQL Databases allows for greater defense-in-
depth, includes functionality for discovering and classifying sensitive data, surfacing and
mitigating potential database vulnerabilities, and detecting anomalous activities that
could indicate a threat to your database.
Impact:
Turning on Microsoft Defender for Azure SQL Databases incurs an additional cost per
resource.
Audit:
From Azure Portal
From PowerShell
Run the following command:
Get-AzSecurityPricing -Name 'SqlServers' | Select-Object Name,PricingTier
Ensure the -PricingTier is set to Standard
Page 120
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal
Default Value:
By default, Microsoft Defender plan is off.
References:
1. https://docs.microsoft.com/en-us/azure/security-center/security-center-detection-
capabilities
2. https://docs.microsoft.com/en-us/rest/api/securitycenter/pricings/list
3. https://docs.microsoft.com/en-us/rest/api/securitycenter/pricings/update
4. https://docs.microsoft.com/en-us/powershell/module/az.security/get-
azsecuritypricing
5. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-data-
protection#dp-2-monitor-anomalies-and-threats-targeting-sensitive-data
Page 121
6. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-1-enable-threat-detection-capabilities
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 122
2.1.4 Ensure That Microsoft Defender for SQL Servers on
Machines Is Set To 'On' (Automated)
Profile Applicability:
• Level 2
Description:
Turning on Microsoft Defender for SQL servers on machines enables threat detection
for SQL servers on machines, providing threat intelligence, anomaly detection, and
behavior analytics in Microsoft Defender for Cloud.
Rationale:
Enabling Microsoft Defender for SQL servers on machines allows for greater defense-
in-depth, functionality for discovering and classifying sensitive data, surfacing and
mitigating potential database vulnerabilities, and detecting anomalous activities that
could indicate a threat to your database.
Impact:
Turning on Microsoft Defender for SQL servers on machines incurs an additional cost
per resource.
Audit:
From Azure Portal
From PowerShell
Run the following command:
Get-AzSecurityPricing -Name 'SqlServerVirtualMachines' | Select-Object
Name,PricingTier
Ensure the 'PricingTier' is set to 'Standard'
Page 123
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal
Default Value:
By default, Microsoft Defender plan is off.
References:
1. https://docs.microsoft.com/en-us/azure/security-center/defender-for-sql-usage
2. https://docs.microsoft.com/en-us/azure/security-center/security-center-detection-
capabilities
3. https://docs.microsoft.com/en-us/rest/api/securitycenter/pricings/update
4. https://docs.microsoft.com/en-us/powershell/module/az.security/get-
azsecuritypricing
Page 124
5. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-data-
protection#dp-2-monitor-anomalies-and-threats-targeting-sensitive-data
6. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-1-enable-threat-detection-capabilities
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 125
2.1.5 Ensure That Microsoft Defender for Open-Source Relational
Databases Is Set To 'On' (Automated)
Profile Applicability:
• Level 2
Description:
Turning on Microsoft Defender for Open-source relational databases enables threat
detection for Open-source relational databases, providing threat intelligence, anomaly
detection, and behavior analytics in the Microsoft Defender for Cloud.
Rationale:
Enabling Microsoft Defender for Open-source relational databases allows for greater
defense-in-depth, with threat detection provided by the Microsoft Security Response
Center (MSRC).
Impact:
Turning on Microsoft Defender for Open-source relational databases incurs an
additional cost per resource.
Audit:
From Azure Portal
From PowerShell
Get-AzSecurityPricing | Where-Object {$_.Name -eq
'OpenSourceRelationalDatabases'} | Select-Object Name, PricingTier
Ensure output for Name PricingTier is OpenSourceRelationalDatabases Standard
Page 126
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal
Default Value:
By default, Microsoft Defender plan is off.
References:
1. https://docs.microsoft.com/en-us/azure/security-center/security-center-detection-
capabilities
2. https://docs.microsoft.com/en-us/rest/api/securitycenter/pricings/update
3. https://docs.microsoft.com/en-us/powershell/module/az.security/get-
azsecuritypricing
4. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-data-
protection#dp-2-monitor-anomalies-and-threats-targeting-sensitive-data
5. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-1-enable-threat-detection-capabilities
Page 127
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 128
2.1.6 Ensure That Microsoft Defender for Azure Cosmos DB Is
Set To 'On' (Automated)
Profile Applicability:
• Level 2
Description:
Microsoft Defender for Azure Cosmos DB scans all incoming network requests for
threats to your Azure Cosmos DB resources.
Rationale:
In scanning Azure Cosmos DB requests within a subscription, requests are compared to
a heuristic list of potential security threats. These threats could be a result of a security
breach within your services, thus scanning for them could prevent a potential security
threat from being introduced.
Impact:
Enabling Microsoft Defender for Azure Cosmos DB requires enabling Microsoft
Defender for your subscription. Both will incur additional charges.
Audit:
From Azure Portal
From PowerShell
Get-AzSecurityPricing -Name 'CosmosDbs' | Select-Object Name,PricingTier
Ensure output of -PricingTier is Standard
Page 129
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal
Default Value:
By default, Microsoft Defender for Azure Cosmos DB is not enabled.
References:
1. https://azure.microsoft.com/en-us/pricing/details/defender-for-cloud/
2. https://docs.microsoft.com/en-us/azure/defender-for-cloud/enable-enhanced-
security
3. https://docs.microsoft.com/en-us/azure/defender-for-cloud/alerts-overview
4. https://docs.microsoft.com/en-us/security/benchmark/azure/baselines/cosmos-
db-security-baseline
5. https://docs.microsoft.com/en-us/azure/defender-for-cloud/quickstart-enable-
database-protections
6. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-1-enable-threat-detection-capabilities
Page 130
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 131
2.1.7 Ensure That Microsoft Defender for Storage Is Set To 'On'
(Automated)
Profile Applicability:
• Level 2
Description:
Turning on Microsoft Defender for Storage enables threat detection for Storage,
providing threat intelligence, anomaly detection, and behavior analytics in the Microsoft
Defender for Cloud.
Rationale:
Enabling Microsoft Defender for Storage allows for greater defense-in-depth, with threat
detection provided by the Microsoft Security Response Center (MSRC).
Impact:
Turning on Microsoft Defender for Storage incurs an additional cost per resource.
Audit:
From Azure Portal
From PowerShell
Get-AzSecurityPricing -Name 'StorageAccounts' | Select-Object
Name,PricingTier
Ensure output for Name PricingTier is StorageAccounts Standard
Page 132
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure. If referencing a printed copy, you can search
Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal
From PowerShell
Set-AzSecurityPricing -Name 'StorageAccounts' -PricingTier 'Standard'
Default Value:
By default, Microsoft Defender plan is off.
References:
1. https://docs.microsoft.com/en-us/azure/security-center/security-center-detection-
capabilities
2. https://docs.microsoft.com/en-us/rest/api/securitycenter/pricings/list
3. https://docs.microsoft.com/en-us/rest/api/securitycenter/pricings/update
4. https://docs.microsoft.com/en-us/powershell/module/az.security/get-
azsecuritypricing
5. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-1-enable-threat-detection-capabilities
Page 133
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 134
2.1.8 Ensure That Microsoft Defender for Containers Is Set To
'On' (Automated)
Profile Applicability:
• Level 2
Description:
Turning on Microsoft Defender for Containers enables threat detection for Container
Registries including Kubernetes, providing threat intelligence, anomaly detection, and
behavior analytics in the Microsoft Defender for Cloud. The following services will be
enabled for container instances:
Rationale:
Enabling Microsoft Defender for Container Registries allows for greater defense-in-
depth, with threat detection provided by the Microsoft Security Response Center
(MSRC).
Impact:
Turning on Microsoft Defender for Containers incurs an additional cost per resource.
Audit:
From Azure Portal
Page 135
From PowerShell
Ensure the output of the commands below indicates Standard pricing.
For legacy Defender for Container Registries instances:
Get-AzSecurityPricing -Name 'ContainerRegistry' | Select-Object
Name,PricingTier
For new Defender for Containers instances:
Get-AzSecurityPricing -Name 'Containers' | Select-Object Name,PricingTier
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal
Default Value:
By default, Microsoft Defender for Containers is off.
References:
1. https://docs.microsoft.com/en-us/azure/security-center/security-center-detection-
capabilities
2. https://docs.microsoft.com/en-us/rest/api/securitycenter/pricings/list
Page 136
3. https://docs.microsoft.com/en-us/rest/api/securitycenter/pricings/update
4. https://docs.microsoft.com/en-us/powershell/module/az.security/get-
azsecuritypricing
5. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-1-enable-threat-detection-capabilities
6. https://docs.microsoft.com/en-us/azure/defender-for-cloud/defender-for-
containers-introduction?tabs=defender-for-container-arch-aks
Additional Information:
Deprecation of previous product plans 'Container registries' and 'Kubernetes' plans
for Microsoft Defender are being deprecated and replaced with 'Containers' or Microsoft
Defender for Containers.
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 137
2.1.9 Ensure That Microsoft Defender for Key Vault Is Set To 'On'
(Automated)
Profile Applicability:
• Level 2
Description:
Turning on Microsoft Defender for Key Vault enables threat detection for Key Vault,
providing threat intelligence, anomaly detection, and behavior analytics in the Microsoft
Defender for Cloud.
Rationale:
Enabling Microsoft Defender for Key Vault allows for greater defense-in-depth, with
threat detection provided by the Microsoft Security Response Center (MSRC).
Impact:
Turning on Microsoft Defender for Key Vault incurs an additional cost per resource.
Audit:
From Azure Portal
From PowerShell
Get-AzSecurityPricing -Name 'KeyVaults' | Select-Object Name,PricingTier
Ensure output for PricingTier is Standard
Page 138
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal
Default Value:
By default, Microsoft Defender plan is off.
References:
1. https://docs.microsoft.com/en-us/azure/security-center/security-center-detection-
capabilities
2. https://docs.microsoft.com/en-us/rest/api/securitycenter/pricings/list
3. https://docs.microsoft.com/en-us/rest/api/securitycenter/pricings/update
4. https://docs.microsoft.com/en-us/powershell/module/az.security/get-
azsecuritypricing
5. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-1-enable-threat-detection-capabilities
Page 139
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 140
2.1.10 [LEGACY] Ensure That Microsoft Defender for DNS Is Set
To 'On' (Automated)
Profile Applicability:
• Level 2
Description:
[NOTE: As of August 1, customers with an existing subscription to Defender for DNS
can continue to use the service, but new subscribers will receive alerts about suspicious
DNS activity as part of Defender for Servers P2.]
Microsoft Defender for DNS scans all network traffic exiting from within a subscription.
Rationale:
DNS lookups within a subscription are scanned and compared to a dynamic list of
websites that might be potential security threats. These threats could be a result of a
security breach within your services, thus scanning for them could prevent a potential
security threat from being introduced.
Impact:
Enabling Microsoft Defender for DNS requires enabling Microsoft Defender for your
subscription. Both will incur additional charges, with Defender for DNS being a small
amount per million queries.
Audit:
From Azure Portal
From PowerShell
Get-AzSecurityPricing --Name 'DNS' | Select-Object Name,PricingTier
Ensure output of PricingTier is Standard
Page 141
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal
From Powershell
Enable Standard pricing tier for DNS:
az security pricing create -n 'DNS' --tier 'Standard'
From PowerShell
Enable Standard pricing tier for DNS:
Set-AzSecurityPricing -Name 'DNS' -PricingTier 'Standard'
Default Value:
By default, Microsoft Defender for DNS is not enabled.
References:
1. https://azure.microsoft.com/en-us/pricing/details/defender-for-cloud/
2. https://docs.microsoft.com/en-us/security/benchmark/azure/baselines/dns-
security-baseline
3. https://docs.microsoft.com/en-us/azure/defender-for-cloud/defender-for-dns-
alerts
4. https://docs.microsoft.com/en-us/azure/defender-for-cloud/enable-enhanced-
security
5. https://docs.microsoft.com/en-us/azure/defender-for-cloud/alerts-overview
6. https://docs.microsoft.com/en-us/security/benchmark/azure/security-controls-v3-
network-security#ns-10-ensure-domain-name-system-dns-security
7. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-1-enable-threat-detection-capabilities
Page 142
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 143
2.1.11 Ensure That Microsoft Defender for Resource Manager Is
Set To 'On' (Automated)
Profile Applicability:
• Level 2
Description:
Microsoft Defender for Resource Manager scans incoming administrative requests to
change your infrastructure from both CLI and the Azure portal.
Rationale:
Scanning resource requests lets you be alerted every time there is suspicious activity in
order to prevent a security threat from being introduced.
Impact:
Enabling Microsoft Defender for Resource Manager requires enabling Microsoft
Defender for your subscription. Both will incur additional charges.
Audit:
From Azure Portal
Page 144
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal
Default Value:
By default, Microsoft Defender for Resource Manager is not enabled.
References:
1. https://docs.microsoft.com/en-us/azure/defender-for-cloud/enable-enhanced-
security
2. https://docs.microsoft.com/en-us/azure/defender-for-cloud/defender-for-resource-
manager-introduction
3. https://azure.microsoft.com/en-us/pricing/details/defender-for-cloud/
4. https://docs.microsoft.com/en-us/azure/defender-for-cloud/alerts-overview
5. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-1-enable-threat-detection-capabilities
Page 145
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 146
2.1.12 Ensure that Microsoft Defender Recommendation for
'Apply system updates' status is 'Completed' (Automated)
Profile Applicability:
• Level 1
Description:
Ensure that the latest OS patches for all virtual machines are applied.
Rationale:
Windows and Linux virtual machines should be kept updated to:
Microsoft Defender for Cloud retrieves a list of available security and critical updates
from Windows Update or Windows Server Update Services (WSUS), depending on
which service is configured on a Windows VM. The security center also checks for the
latest updates in Linux systems. If a VM is missing a system update, the security center
will recommend system updates be applied.
Impact:
Running Microsoft Defender for Cloud incurs additional charges for each resource
monitored. Please see attached reference for exact charges per hour.
Audit:
From Azure Portal
Alternatively, you can employ your own patch assessment and management tool to
periodically assess, report and install the required security patches for your OS.
Page 147
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
Follow Microsoft Azure documentation to apply security patches from the security
center. Alternatively, you can employ your own patch assessment and management tool
to periodically assess, report, and install the required security patches for your OS.
Default Value:
By default, patches are not automatically deployed.
References:
1. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-posture-
vulnerability-management#pv-6-rapidly-and-automatically-remediate-
vulnerabilities
2. https://azure.microsoft.com/en-us/pricing/details/defender-for-cloud/
3. https://docs.microsoft.com/en-us/azure/defender-for-cloud/deploy-vulnerability-
assessment-vm
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 148
2.1.13 Ensure that Microsoft Cloud Security Benchmark policies
are not set to 'Disabled' (Manual)
Profile Applicability:
• Level 1
Description:
The Microsoft Cloud Security Benchmark (or "MCSB") is an Azure Policy Initiative
containing many security policies to evaluate resource configuration against best
practice recommendations. If a policy in the MCSB is set with effect type Disabled, it is
not evaluated and may prevent administrators from being informed of valuable security
recommendations.
Rationale:
A security policy defines the desired configuration of resources in your environment and
helps ensure compliance with company or regulatory security requirements. The MCSB
Policy Initiative a set of security recommendations based on best practices and is
associated with every subscription by default. When a policy "Effect" is set to Audit,
policies in the MCSB ensure that Defender for Cloud evaluates relevant resources for
supported recommendations. To ensure that policies within the MCSB are not being
missed when the Policy Initiative is evaluated, none of the policies should have an
Effect of Disabled.
Impact:
Policies within the MCSB default to an effect of Audit and will evaluate - but not enforce
- policy recommendations. Ensuring these policies are set to Audit simply ensures that
the evaluation occurs to allow administrators to understand where an improvement may
be possible. Administrators will need to determine if the recommendations are relevant
and desirable for their environment, then manually take action to resolve the status if
desired.
Audit:
From Azure Portal
Page 149
If no Policies are shown, no Policies are in Disabled status and no remediation is
necessary.
If any Policies remain in the list, the policy Effect should be changed to Audit.
Remediation:
From Azure Portal
Part A - List all disabled policies
1. Click the blue ellipses ... to the right of the policy name
2. Click Manage effect and parameters
3. Under Policy Effect, select the Audit radio button
4. Click Save
5. Click Refresh
Repeat "Part B - Remediate Policy Effect" until no more policies are listed.
Default Value:
By default, the MCSB policy initiative is associated to all subscriptions and most
policies will have an effect of Audit. Some policies will have a default effect of Disabled.
References:
1. https://docs.microsoft.com/en-us/azure/security-center/security-center-policies
2. https://docs.microsoft.com/en-us/azure/security-center/security-center-enable-
transparent-data-encryption
3. https://msdn.microsoft.com/en-us/library/mt704062.aspx
4. https://msdn.microsoft.com/en-us/library/mt704063.aspx
5. https://docs.microsoft.com/en-us/rest/api/policy/policy-assignments/get
6. https://docs.microsoft.com/en-us/rest/api/policy/policy-assignments/create
7. https://docs.microsoft.com/en-in/azure/security-center/tutorial-security-policy
Page 150
8. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-governance-
strategy#gs-7-define-and-implement-logging-threat-detection-and-incident-
response-strategy
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 151
2.1.14 Ensure that Auto provisioning of 'Log Analytics agent for
Azure VMs' is Set to 'On' (Automated)
Profile Applicability:
• Level 1
Description:
Enable automatic provisioning of the monitoring agent to collect security data.
Rationale:
When Log Analytics agent for Azure VMs is turned on, Microsoft Defender for Cloud
provisions the Microsoft Monitoring Agent on all existing supported Azure virtual
machines and any new ones that are created. The Microsoft Monitoring Agent scans for
various security-related configurations and events such as system updates, OS
vulnerabilities, endpoint protection, and provides alerts.
Audit:
From Azure Portal
Page 152
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal
Default Value:
By default, Automatic provisioning of monitoring agent is set to On.
Page 153
References:
1. https://docs.microsoft.com/en-us/azure/security-center/security-center-data-
security
2. https://docs.microsoft.com/en-us/azure/security-center/security-center-enable-
data-collection
3. https://msdn.microsoft.com/en-us/library/mt704062.aspx
4. https://msdn.microsoft.com/en-us/library/mt704063.aspx
5. https://docs.microsoft.com/en-
us/rest/api/securitycenter/autoprovisioningsettings/list
6. https://docs.microsoft.com/en-
us/rest/api/securitycenter/autoprovisioningsettings/create
7. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-5-centralize-security-log-management-and-analysis
8. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-3-enable-logging-for-security-investigation
9. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-incident-
response#ir-2-preparation---setup-incident-notification
Additional Information:
• Excluding any of the entries in input.json may disable the specific setting by
default
• Microsoft has recently changed APIs to get and Update Automatic Provisioning
Setting. This recommendation is updated accordingly.
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 154
2.1.15 Ensure that Auto provisioning of 'Vulnerability assessment
for machines' is Set to 'On' (Manual)
Profile Applicability:
• Level 2
Description:
Enable automatic provisioning of vulnerability assessment for machines on both Azure
and hybrid (Arc enabled) machines.
Rationale:
Vulnerability assessment for machines scans for various security-related configurations
and events such as system updates, OS vulnerabilities, and endpoint protection, then
produces alerts on threat and vulnerability findings.
Impact:
Additional licensing is required and configuration of Azure Arc introduces complexity
beyond this recommendation.
Audit:
From Azure Portal
Page 155
Default Value:
By default, Automatic provisioning of monitoring agent is set to Off.
References:
1. https://docs.microsoft.com/en-us/azure/defender-for-cloud/enable-data-
collection?tabs=autoprovision-va
2. https://msdn.microsoft.com/en-us/library/mt704062.aspx
3. https://msdn.microsoft.com/en-us/library/mt704063.aspx
4. https://docs.microsoft.com/en-
us/rest/api/securitycenter/autoprovisioningsettings/list
5. https://docs.microsoft.com/en-
us/rest/api/securitycenter/autoprovisioningsettings/create
6. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-posture-
vulnerability-management#pv-5-perform-vulnerability-assessments
Additional Information:
While this feature is generally available as of publication, it is not yet available for Azure
Government tenants.
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 156
2.1.16 Ensure that Auto provisioning of 'Microsoft Defender for
Containers components' is Set to 'On' (Automated)
Profile Applicability:
• Level 2
Description:
Enable automatic provisioning of the Microsoft Defender for Containers components.
Rationale:
As with any compute resource, Container environments require hardening and run-time
protection to ensure safe operations and detection of threats and vulnerabilities.
Impact:
Microsoft Defender for Containers will require additional licensing.
Audit:
From Azure Portal
1. From the Azure Portal Home page, select Microsoft Defender for Cloud
2. Under Management select Environment Settings
3. Select a subscription
4. Ensure that Containers is set to On
Remediation:
From Azure Portal
1. From the Azure Portal Home page, select Microsoft Defender for Cloud
2. Under Management, select Environment Settings
3. Select a subscription
4. Set Containers to On
Page 157
Default Value:
By default, Microsoft Defender for Containers is disabled. If Defender for Containers is
enabled from the Microsoft Defender for Cloud portal, auto provisioning will be enabled.
References:
1. https://docs.microsoft.com/en-us/azure/defender-for-cloud/defender-for-
containers-introduction
2. https://docs.microsoft.com/en-us/azure/defender-for-cloud/enable-data-
collection?tabs=autoprovision-containers
3. https://msdn.microsoft.com/en-us/library/mt704062.aspx
4. https://msdn.microsoft.com/en-us/library/mt704063.aspx
5. https://docs.microsoft.com/en-
us/rest/api/securitycenter/autoprovisioningsettings/list
6. https://docs.microsoft.com/en-
us/rest/api/securitycenter/autoprovisioningsettings/create
7. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-incident-
response#ir-2-preparation---setup-incident-notification
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 158
2.1.17 Ensure That 'All users with the following roles' is set to
'Owner' (Automated)
Profile Applicability:
• Level 1
Description:
Enable security alert emails to subscription owners.
Rationale:
Enabling security alert emails to subscription owners ensures that they receive security
alert emails from Microsoft. This ensures that they are aware of any potential security
issues and can mitigate the risk in a timely fashion.
Audit:
From Azure Portal
Remediation:
From Azure Portal
Page 159
From Azure CLI
Use the below command to set Send email also to subscription owners to On.
az account get-access-token --query
"{subscription:subscription,accessToken:accessToken}" --out tsv | xargs -L1
bash -c 'curl -X PUT -H "Authorization: Bearer $1" -H "Content-Type:
application/json"
https://management.azure.com/subscriptions/$0/providers/Microsoft.Security/se
curityContacts/default1?api-version=2017-08-01-preview -d@"input.json"'
Where input.json contains the data below, replacing validEmailAddress with a single
email address or multiple comma-separated email addresses:
{
"id":
"/subscriptions/<Your_Subscription_Id>/providers/Microsoft.Security/securityC
ontacts/default1",
"name": "default1",
"type": "Microsoft.Security/securityContacts",
"properties": {
"email": "<validEmailAddress>",
"alertNotifications": "On",
"alertsToAdmins": "On",
"notificationsByRole": "Owner"
}
}
Default Value:
By default, Owner is selected
References:
1. https://docs.microsoft.com/en-us/azure/security-center/security-center-provide-
security-contact-details
2. https://docs.microsoft.com/en-us/rest/api/securitycenter/securitycontacts/list
3. https://docs.microsoft.com/en-us/rest/api/securitycenter/security-contacts
4. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-incident-
response#ir-2-preparation---setup-incident-notification
Additional Information:
Excluding any entries in the input.json properties block disables the specific setting by
default.
Page 160
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 161
2.1.18 Ensure 'Additional email addresses' is Configured with a
Security Contact Email (Automated)
Profile Applicability:
• Level 1
Description:
Microsoft Defender for Cloud emails the subscription owners whenever a high-severity
alert is triggered for their subscription. You should provide a security contact email
address as an additional email address.
Rationale:
Microsoft Defender for Cloud emails the Subscription Owner to notify them about
security alerts. Adding your Security Contact's email address to the 'Additional email
addresses' field ensures that your organization's Security Team is included in these
alerts. This ensures that the proper people are aware of any potential compromise in
order to mitigate the risk in a timely fashion.
Audit:
From Azure Portal
Page 162
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal
Default Value:
By default, there are no additional email addresses entered.
Page 163
References:
1. https://docs.microsoft.com/en-us/azure/security-center/security-center-provide-
security-contact-details
2. https://docs.microsoft.com/en-us/rest/api/securitycenter/securitycontacts/list
3. https://docs.microsoft.com/en-us/rest/api/securitycenter/security-contacts
4. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-incident-
response#ir-2-preparation---setup-incident-notification
Additional Information:
Excluding any entries in the input.json properties block disables the specific setting by
default.
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 164
2.1.19 Ensure That 'Notify about alerts with the following severity'
is Set to 'High' (Automated)
Profile Applicability:
• Level 1
Description:
Enables emailing security alerts to the subscription owner or other designated security
contact.
Rationale:
Enabling security alert emails ensures that security alert emails are received from
Microsoft. This ensures that the right people are aware of any potential security issues
and are able to mitigate the risk.
Audit:
From Azure Portal
Page 165
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal
Page 166
Default Value:
By default, Notify about alerts with the following severity (or higher): is set to
High.
References:
1. https://docs.microsoft.com/en-us/azure/security-center/security-center-provide-
security-contact-details
2. https://docs.microsoft.com/en-us/rest/api/securitycenter/securitycontacts/list
3. https://docs.microsoft.com/en-us/rest/api/securitycenter/security-contacts
4. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-incident-
response#ir-2-preparation---setup-incident-notification
Additional Information:
Excluding any entries in the input.json properties block disables the specific setting by
default. This recommendation has been updated to reflect recent changes to Microsoft
REST APIs for getting and updating security contact information.
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 167
2.1.20 Ensure that Microsoft Defender for Cloud Apps integration
with Microsoft Defender for Cloud is Selected (Manual)
Profile Applicability:
• Level 2
Description:
This integration setting enables Microsoft Defender for Cloud Apps (formerly 'Microsoft
Cloud App Security' or 'MCAS' - see additional info) to communicate with Microsoft
Defender for Cloud.
Rationale:
Microsoft Defender for Cloud offers an additional layer of protection by using Azure
Resource Manager events, which is considered to be the control plane for Azure. By
analyzing the Azure Resource Manager records, Microsoft Defender for Cloud detects
unusual or potentially harmful operations in the Azure subscription environment. Several
of the preceding analytics are powered by Microsoft Defender for Cloud Apps. To
benefit from these analytics, subscription must have a Cloud App Security license.
Microsoft Defender for Cloud Apps works only with Standard Tier subscriptions.
Impact:
Microsoft Defender for Cloud Apps works with Standard pricing tier Subscription.
Choosing the Standard pricing tier of Microsoft Defender for Cloud incurs an additional
cost per resource.
Audit:
From Azure Portal
Page 168
az account get-access-token --query
"{subscription:subscription,accessToken:accessToken}" --out tsv | xargs -L1
bash -c 'curl -X GET -H "Authorization: Bearer $1" -H "Content-Type:
application/json"
https://management.azure.com/subscriptions/<subscription_ID>/providers/Micros
oft.Security/settings?api-version=2021-06-01' | jq '.|.value[] |
select(.name=="MCAS")'|jq '.properties.enabled'
From PowerShell
Run the following series of commands to audit this configuration
Get-AzAccount
Set-AzContext -Subscription <subscription ID>
Get-AzSecuritySetting | Select-Object name,enabled |where-object {$_.name -eq
"MCAS"}
PowerShell Output - Non-Compliant
Name Enabled
---- -------
MCAS False
PowerShell Output - Compliant
Name Enabled
---- -------
MCAS True
Remediation:
From Azure Portal
Where input.json contains the Request body json data as mentioned below.
Page 169
"id":
"/subscriptions/<Your_Subscription_Id>/providers/Microsoft.Security/settings/
MCAS",
"kind": "DataExportSetting",
"type": "Microsoft.Security/settings",
"properties": {
"enabled": true
Default Value:
With Cloud App Security license, these alerts are enabled by default.
References:
1. https://docs.microsoft.com/en-in/azure/security-center/security-center-alerts-
service-layer#azure-management-layer-azure-resource-manager-preview
2. https://docs.microsoft.com/en-us/rest/api/securitycenter/settings/list
3. https://docs.microsoft.com/en-us/rest/api/securitycenter/settings/update
4. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-identity-
management#im-9-secure-user-access-to--existing-applications
Additional Information:
NOTE: "Microsoft Defender for Cloud Apps" ("MDCA") is formerly known as "Microsoft
Cloud App Security" ("MCAS"). There are a number of places (e.g. Azure CLI) where
the "MCAS" acronym is still used within Azure.
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 170
Controls
Control IG 1 IG 2 IG 3
Version
Page 171
2.1.21 Ensure that Microsoft Defender for Endpoint integration
with Microsoft Defender for Cloud is selected (Manual)
Profile Applicability:
• Level 2
Description:
This integration setting enables Microsoft Defender for Endpoint (formerly 'Advanced
Threat Protection' or 'ATP' or 'WDATP' - see additional info) to communicate with
Microsoft Defender for Cloud.
IMPORTANT: When enabling integration between DfE & DfC it needs to be taken into
account that this will have some side effects that may be undesirable.
1. For server 2019 & above if defender is installed (default for these server SKU's)
this will trigger a deployment of the new unified agent and link to any of the
extended configuration in the Defender portal.
2. If the new unified agent is required for server SKU's of Win 2016 or Linux and
lower there is additional integration that needs to be switched on and agents
need to be aligned.
Rationale:
Microsoft Defender for Endpoint integration brings comprehensive Endpoint Detection
and Response (EDR) capabilities within Microsoft Defender for Cloud. This integration
helps to spot abnormalities, as well as detect and respond to advanced attacks on
endpoints monitored by Microsoft Defender for Cloud.
MDE works only with Standard Tier subscriptions.
Impact:
Microsoft Defender for Endpoint works with Standard pricing tier Subscription. Choosing
the Standard pricing tier of Microsoft Defender for Cloud incurs an additional cost per
resource.
Audit:
From Azure Portal
Page 172
6. Ensure setting Allow Microsoft Defender for Endpoint to access my data is
selected.
Remediation:
From Azure Console
Page 173
az account get-access-token --query
"{subscription:subscription,accessToken:accessToken}" --out tsv | xargs -L1
bash -c 'curl -X PUT -H "Authorization: Bearer $1" -H "Content-Type:
application/json"
https://management.azure.com/subscriptions/<subscriptionID>/providers/Microso
ft.Security/settings/WDATP?api-version=2021-06-01 -d@"input.json"'
Where input.json contains the Request body json data as mentioned below.
{
"id":
"/subscriptions/<Your_Subscription_Id>/providers/Microsoft.Security/settings/
WDATP",
"kind": "DataExportSettings",
"type": "Microsoft.Security/settings",
"properties": {
"enabled": true
}
}
References:
1. https://docs.microsoft.com/en-in/azure/defender-for-cloud/integration-defender-
for-endpoint?tabs=windows
2. https://docs.microsoft.com/en-us/rest/api/securitycenter/settings/list
3. https://docs.microsoft.com/en-us/rest/api/securitycenter/settings/update
4. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-endpoint-
security#es-1-use-endpoint-detection-and-response-edr
5. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-endpoint-
security#es-2-use-modern-anti-malware-software
Additional Information:
IMPORTANT: When enabling integration between DfE & DfC it needs to be taken into
account that this will have some side effects that may be undesirable.
1. For server 2019 & above if defender is installed (default for these server SKU's)
this will trigger a deployment of the new unified agent and link to any of the
extended configuration in the Defender portal.
2. If the new unified agent is required for server SKU's of Win 2016 or Linux and
lower there is additional integration that needs to be switched on and agents
need to be aligned.
NOTE: "Microsoft Defender for Endpoint (MDE)" was formerly known as "Windows
Defender Advanced Threat Protection (WDATP)." There are a number of places (e.g.
Azure CLI) where the "WDATP" acronym is still used within Azure.
Page 174
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 175
2.1.22 Ensure that Microsoft Defender External Attack Surface
Monitoring (EASM) is enabled (Manual)
Profile Applicability:
• Level 2
Description:
An organization's attack surface is the collection of assets with a public network
identifier or URI that an external threat actor can see or access from outside your cloud.
It is the set of points on the boundary of a system, a system element, system
component, or an environment where an attacker can try to enter, cause an effect on, or
extract data from, that system, system element, system component, or environment.
The larger the attack surface, the harder it is to protect.
This tool can be configured to scan your organization's online infrastructure such as
specified domains, hosts, CIDR blocks, and SSL certificates, and store them in an
Inventory. Inventory items can be added, reviewed, approved, and removed, and may
contain enrichments ("insights") and additional information collected from the tool's
different scan engines and open-source intelligence sources.
A Defender EASM workspace will generate an Inventory of publicly exposed assets by
crawling and scanning the internet using Seeds you provide when setting up the tool.
Seeds can be FQDNs, IP CIDR blocks, and WHOIS records.
Defender EASM will generate Insights within 24-48 hours after Seeds are provided, and
these insights include vulnerability data (CVEs), ports and protocols, and weak or
expired SSL certificates that could be used by an attacker for reconnaisance or
exploitation.
Results are classified High/Medium/Low and some of them include proposed
mitigations.
Rationale:
This tool can monitor the externally exposed resources of an organization, provide
valuable insights, and export these findings in a variety of formats (including CSV) for
use in vulnerability management operations and red/purple team exercises.
Impact:
Microsoft Defender EASM workspaces are currently available as Azure Resources with
a 30-day free trial period but can quickly accrue significant charges. The costs are
calculated daily as (Number of "billable" inventory items) x (item cost per day;
approximately: $0.017).
Estimated cost is not provided within the tool, and users are strongly advised to contact
their Microsoft sales representative for pricing and set a calendar reminder for the end
of the trial period.
Page 176
For an EASM workspace having an Inventory of 5k-10k billable items (IP addresses,
hostnames, SSL certificates, etc) a typical cost might be approximiately $85-170 per
day or $2500-5000 USD/month at the time of publication.
If the workspace is deleted by the last day of a free trial period, no charges are billed.
Audit:
To view Defender EASM workspaces created for your Subscriptions, search for EASM
in the Azure Portal using the search box.
Remediation:
To begin remediation, a Microsoft Defender EASM workspace must be created. The
resources and inventory items added to this workspace will depend on your
environment.
Default Value:
Microsoft Defender EASM is an optional, paid Azure Resource that must be created and
configured inside a Subscription and Resource Group.
References:
1. https://learn.microsoft.com/en-us/azure/external-attack-surface-management/
2. https://learn.microsoft.com/en-us/azure/external-attack-surface-
management/deploying-the-defender-easm-azure-
resource?source=recommendations
3. https://www.microsoft.com/en-us/security/blog/2022/08/02/microsoft-announces-
new-solutions-for-threat-intelligence-and-attack-surface-management/
Additional Information:
Microsoft added its Defender for External Attack Surface management (EASM) offering
to Azure following its 2022 acquisition of EASM SaaS tool company RiskIQ.
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 177
Page 178
2.2 Microsoft Defender for IoT
Page 179
2.2.1 Ensure That Microsoft Defender for IoT Hub Is Set To 'On'
(Manual)
Profile Applicability:
• Level 2
Description:
Microsoft Defender for IoT acts as a central security hub for IoT devices within your
organization.
Rationale:
IoT devices are very rarely patched and can be potential attack vectors for enterprise
networks. Updating their network configuration to use a central security hub allows for
detection of these breaches.
Impact:
Enabling Microsoft Defender for IoT will incur additional charges dependent on the level
of usage.
Audit:
From Azure Portal
1. Go to IoT Hub.
2. Select a IoT Hub to validate.
3. Select Overview in Defender for IoT.
4. The Threat prevention and Threat detection screen will appear, if Defender for
IoT is Enabled.
Remediation:
From Azure Portal
1. Go to IoT Hub.
2. Select a IoT Hub to validate.
3. Select Overview in Defender for IoT.
4. Click on Secure your IoT solution, and complete the onboarding.
Default Value:
By default, Microsoft Defender for IoT is not enabled.
References:
1. https://azure.microsoft.com/en-us/services/iot-defender/#overview
Page 180
2. https://docs.microsoft.com/en-us/azure/defender-for-iot/
3. https://azure.microsoft.com/en-us/pricing/details/iot-defender/
4. https://docs.microsoft.com/en-us/security/benchmark/azure/baselines/defender-
for-iot-security-baseline
5. https://docs.microsoft.com/en-us/cli/azure/iot?view=azure-cli-latest
6. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-1-enable-threat-detection-capabilities
7. https://learn.microsoft.com/en-us/azure/defender-for-iot/device-
builders/quickstart-onboard-iot-hub
Additional Information:
There are additional configurations for Microsoft Defender for IoT that allow for types of
deployments called hybrid or local. Both run on your physical infrastructure. These are
complicated setups and are primarily outside of the scope of a purely Azure benchmark.
Please see the references to consider these options for your organization.
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 181
3 Storage Accounts
This section covers security recommendations to follow to set storage account policies
on an Azure Subscription. An Azure storage account provides a unique namespace to
store and access Azure Storage data objects.
Page 182
3.1 Ensure that 'Secure transfer required' is set to 'Enabled'
(Automated)
Profile Applicability:
• Level 1
Description:
Enable data encryption in transit.
Rationale:
The secure transfer option enhances the security of a storage account by only allowing
requests to the storage account by a secure connection. For example, when calling
REST APIs to access storage accounts, the connection must use HTTPS. Any requests
using HTTP will be rejected when 'secure transfer required' is enabled. When using the
Azure files service, connection without encryption will fail, including scenarios using
SMB 2.1, SMB 3.0 without encryption, and some flavors of the Linux SMB client.
Because Azure storage doesn’t support HTTPS for custom domain names, this option is
not applied when using a custom domain name.
Audit:
From Azure Portal
1. Go to Storage Accounts
2. For each storage account, go to Configuration
3. Ensure that Secure transfer required is set to Enabled
Page 183
Remediation:
From Azure Portal
1. Go to Storage Accounts
2. For each storage account, go to Configuration
3. Set Secure transfer required to Enabled
Default Value:
By default, Secure transfer required is set to Disabled.
References:
1. https://docs.microsoft.com/en-us/azure/storage/blobs/security-
recommendations#encryption-in-transit
2. https://docs.microsoft.com/en-us/cli/azure/storage/account?view=azure-cli-
latest#az_storage_account_list
3. https://docs.microsoft.com/en-us/cli/azure/storage/account?view=azure-cli-
latest#az_storage_account_update
4. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-data-
protection#dp-3-encrypt-sensitive-data-in-transit
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 184
3.2 Ensure that ‘Enable Infrastructure Encryption’ for Each
Storage Account in Azure Storage is Set to ‘enabled’ (Automated)
Profile Applicability:
• Level 2
Description:
Enabling encryption at the hardware level on top of the default software encryption for
Storage Accounts accessing Azure storage solutions.
Rationale:
Azure Storage automatically encrypts all data in a storage account at the network level
using 256-bit AES encryption, which is one of the strongest, FIPS 140-2-compliant block
ciphers available. Customers who require higher levels of assurance that their data is
secure can also enable 256-bit AES encryption at the Azure Storage infrastructure level
for double encryption. Double encryption of Azure Storage data protects against a
scenario where one of the encryption algorithms or keys may be compromised.
Similarly, data is encrypted even before network transmission and in all backups. In this
scenario, the additional layer of encryption continues to protect your data. For the most
secure implementation of key based encryption, it is recommended to use a Customer
Managed asymmetric RSA 2048 Key in Azure Key Vault.
Impact:
The read and write speeds to the storage will be impacted if both default encryption and
Infrastructure Encryption are checked, as a secondary form of encryption requires more
resource overhead for the cryptography of information. This performance impact should
be considered in an analysis for justifying use of the feature in your environment.
Customer-managed keys are recommended for the most secure implementation,
leading to overhead of key management. The key will also need to be backed up in a
secure location, as loss of the key will mean loss of the information in the storage.
Audit:
From Azure Portal
1. From Azure Portal select the portal menu in the top left.
2. Select Storage Accounts.
3. Click on each storage account within each resource group you wish to audit.
4. In the overview, under Security, ensure Infrastructure encryption is set to
Enabled.
Page 185
From Azure CLI
az storage blob show \
--account-name <storage-account> \
--container-name <container> \
--name <blob> \
--query "properties.serverEncrypted"
From PowerShell
$account = Get-AzStorageAccount -ResourceGroupName <resource-group> `
-Name <storage-account>
$blob = Get-AzStorageBlob -Context $account.Context `
-Container <container> `
-Blob <blob>
$blob.ICloudBlob.Properties.IsServerEncrypted
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal
1. During Storage Account creation, in the Encryption tab, check the box next to
Enable infrastructure encryption.
Page 186
Enabling Infrastructure Encryption after Storage Account Creation
If infrastructure encryption was not enabled on blob storage creation, there is no official
way to enable it. Please see the additional information section.
Default Value:
By default, Infrastructure Encryption is disabled in blob creation.
References:
1. https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-encryption-
status
2. https://docs.microsoft.com/en-us/azure/storage/common/storage-service-
encryption
3. https://docs.microsoft.com/en-us/azure/storage/common/infrastructure-
encryption-enable
4. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-data-
protection#dp-4-enable-data-at-rest-encryption-by-default
Additional Information:
The default service side encryption for Azure Storage is enabled on every block blob,
append blob, or page blob that was written to Azure Storage after October 20, 2017.
Hardware encryption, however, cannot be enabled on a blob storage after its creation.
There are ways to copy all data from a blob storage into another or download and
reupload into another blob storage. This could result in data loss and is not
recommended.
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 187
3.3 Ensure that 'Enable key rotation reminders' is enabled for
each Storage Account (Manual)
Profile Applicability:
• Level 1
Description:
Access Keys authenticate application access requests to data contained in Storage
Accounts. A periodic rotation of these keys is recommended to ensure that potentially
compromised keys cannot result in a long-term exploitable credential. The "Rotation
Reminder" is an automatic reminder feature for a manual procedure.
Rationale:
Reminders such as those generated by this recommendation will help maintain a
regular and healthy cadence for activities which improve the overall efficacy of a
security program.
Cryptographic key rotation periods will vary depending on your organization's security
requirements and the type of data which is being stored in the Storage Account. For
example, PCI DSS mandates that cryptographic keys be replaced or rotated 'regularly,'
and advises that keys for static data stores be rotated every 'few months.'
For the purposes of this recommendation, 90 days will prescribed for the reminder.
Review and adjustment of the 90 day period is recommended, and may even be
necessary. Your organization's security requirements should dictate the appropriate
setting.
Impact:
This recommendation only creates a periodic reminder to regenerate access keys.
Regenerating access keys can affect services in Azure as well as the organization's
applications that are dependent on the storage account. All clients that use the access
key to access the storage account must be updated to use the new key.
Audit:
From Azure Portal
1. Go to Storage Accounts
2. For each Storage Account, go to Access keys
3. Click Set rotation reminder
If the checkbox for Enable key rotation reminders is already checked, that Storage
Account is compliant. Review the Remind me every field for a desirable periodic setting
that fits your security program's needs.
Page 188
From Powershell
$rgName = <resource group name for the storage>
$accountName = <storage account name>
$account = Get-AzStorageAccount -ResourceGroupName $rgName -Name $accountName
1. Go to Storage Accounts
2. For each Storage Account that is not compliant, go to Access keys
3. Click Set rotation reminder
4. Check Enable key rotation reminders
5. In the Send reminders field select Custom, then set the Remind me every field to
90 and the period drop down to Days.
6. Click Save
From Powershell
$rgName = <resource group name for the storage>
$accountName = <storage account name>
$account = Get-AzStorageAccount -ResourceGroupName $rgName -Name $accountName
if ($account.KeyCreationTime.Key1 -eq $null -or $account.KeyCreationTime.Key2
-eq $null){
Write-output ("You must regenerate both keys at least once before
setting expiration policy")
} else {
$account = Set-AzStorageAccount -ResourceGroupName $rgName -Name
$accountName -KeyExpirationPeriodInDay 90
}
$account.KeyPolicy.KeyExpirationPeriodInDays
Default Value:
By default, Key rotation reminders is not configured.
Page 189
References:
1. https://docs.microsoft.com/en-us/azure/storage/common/storage-create-storage-
account#regenerate-storage-access-keys
2. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-privileged-
access#pa-1-separate-and-limit-highly-privilegedadministrative-users
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-identity-
management#im-3-manage-application-identities-securely-and-automatically
4. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-governance-
strategy#gs-6-define-and-implement-identity-and-privileged-access-strategy
5. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-identity-
management#im-8-restrict-the-exposure-of-credentials-and-secrets
6. https://www.pcidssguide.com/pci-dss-key-rotation-requirements/
7. https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-57pt1r5.pdf
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 190
3.4 Ensure that Storage Account Access Keys are Periodically
Regenerated (Manual)
Profile Applicability:
• Level 1
Description:
For increased security, regenerate storage account access keys periodically.
Rationale:
When a storage account is created, Azure generates two 512-bit storage access keys
which are used for authentication when the storage account is accessed. Rotating these
keys periodically ensures that any inadvertent access or exposure does not result from
the compromise of these keys.
Cryptographic key rotation periods will vary depending on your organization's security
requirements and the type of data which is being stored in the Storage Account. For
example, PCI DSS mandates that cryptographic keys be replaced or rotated 'regularly,'
and advises that keys for static data stores be rotated every 'few months.'
For the purposes of this recommendation, 90 days will prescribed for the reminder.
Review and adjustment of the 90 day period is recommended, and may even be
necessary. Your organization's security requirements should dictate the appropriate
setting.
Impact:
Regenerating access keys can affect services in Azure as well as the organization's
applications that are dependent on the storage account. All clients who use the access
key to access the storage account must be updated to use the new key.
Audit:
From Azure Portal
1. Go to Storage Accounts
2. For each Storage Account, go to Access keys
3. Review the date in the Last rotated field for each key.
If the Last rotated field indicates value greater than 90 day [or greater than your
organization's period of validity], the key should be rotated.
From Azure CLI
1. Get a list of storage accounts
Page 191
az storage account list --subscription <subscription-id>
Make a note of id, name and resourceGroup.
2. For every storage account make sure that key is regenerated in past 90 days.
Remediation:
From Azure Portal
1. Go to Storage Accounts
2. For each Storage Account with outdated keys, go to Access keys
3. Click Rotate key next to the outdated key, then click Yes to the prompt confirming
that you want to regenerate the access key.
After Azure regenerates the Access Key, you can confirm that Access keys reflects a
Last rotated date of (0 days ago).
Default Value:
By default, access keys are not regenerated periodically.
References:
1. https://docs.microsoft.com/en-us/azure/storage/common/storage-create-storage-
account#regenerate-storage-access-keys
2. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-privileged-
access#pa-1-separate-and-limit-highly-privilegedadministrative-users
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-identity-
management#im-2-protect-identity-and-authentication-systems
4. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-governance-
strategy#gs-6-define-and-implement-identity-and-privileged-access-strategy
5. https://www.pcidssguide.com/pci-dss-key-rotation-requirements/
6. https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-57pt1r5.pdf
Page 192
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 193
3.5 Ensure Storage Logging is Enabled for Queue Service for
'Read', 'Write', and 'Delete' requests (Automated)
Profile Applicability:
• Level 2
Description:
The Storage Queue service stores messages that may be read by any client who has
access to the storage account. A queue can contain an unlimited number of messages,
each of which can be up to 64KB in size using version 2011-08-18 or newer. Storage
Logging happens server-side and allows details for both successful and failed requests
to be recorded in the storage account. These logs allow users to see the details of read,
write, and delete operations against the queues. Storage Logging log entries contain the
following information about individual requests: Timing information such as start time,
end-to-end latency, and server latency, authentication details, concurrency information,
and the sizes of the request and response messages.
Rationale:
Storage Analytics logs contain detailed information about successful and failed requests
to a storage service. This information can be used to monitor individual requests and to
diagnose issues with a storage service. Requests are logged on a best-effort basis.
Storage Analytics logging is not enabled by default for your storage account.
Impact:
Enabling this setting can have a high impact on the cost of the log analytics service and
data storage used by logging more data per each request. Do not enable this without
determining your need for this level of logging, and do not forget to check in on data
usage and projected cost. Some users have seen their logging costs increase from $10
per month to $10,000 per month.
Audit:
From Azure Portal:
1. Go to Storage Accounts.
2. Select the specific Storage Account.
3. Click the Diagnostics settings under the Monitoring section in the left column.
4. Select the queue tab indented below the storage account. Then select the
diagnostic setting listed.
5. Ensure StorageRead, StorageWrite, and StorageDelete options are selected
under the Logs section and that they are sent to the correct destination.
Page 194
From Azure CLI
Ensure the below command's output contains properties delete, read and write set to
true.
az storage logging show --services q --account-name <storageAccountName>
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal
1. Go to Storage Accounts.
2. Select the specific Storage Account.
3. Click the Diagnostics settings under the Monitoring section in the left column.
4. Select the queue tab indented below the storage account.
5. Click + Add diagnostic setting.
6. Select StorageRead, StorageWrite and StorageDelete options under the Logs
section to enable Storage Logging for Queue service.
7. Select a destination for your logs to be sent to.
Default Value:
By default storage account queue services are not logged.
References:
1. https://docs.microsoft.com/en-us/rest/api/storageservices/about-storage-
analytics-logging
2. https://docs.microsoft.com/en-us/cli/azure/storage/logging?view=azure-cli-latest
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-4-enable-network-logging-for-security-investigation
4. https://docs.microsoft.com/en-us/azure/storage/queues/monitor-queue-
storage?tabs=azure-portal
Page 195
Additional Information:
We cannot practically generalize detailed audit log requirements for every queue due to
their nature and intent. This recommendation may be applicable to storage account
queue services where the security is paramount.
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 196
3.6 Ensure that Shared Access Signature Tokens Expire Within
an Hour (Manual)
Profile Applicability:
• Level 1
Description:
Expire shared access signature tokens within an hour.
Rationale:
A shared access signature (SAS) is a URI that grants restricted access rights to Azure
Storage resources. A shared access signature can be provided to clients who should
not be trusted with the storage account key but for whom it may be necessary to
delegate access to certain storage account resources. Providing a shared access
signature URI to these clients allows them access to a resource for a specified period of
time. This time should be set as low as possible and preferably no longer than an hour.
Audit:
Currently, SAS token expiration times cannot be audited. Until Microsoft makes token
expiration time a setting rather than a token creation parameter, this recommendation
would require a manual verification.
Remediation:
When generating shared access signature tokens, use start and end time such that it
falls within an hour.
From Azure Portal
1. Go to Storage Accounts
2. For each storage account, go to Shared access signature
3. Set Start and expiry date/time within an hour
Default Value:
By default, expiration for shared access signature is set to 8 hours.
References:
1. https://docs.microsoft.com/en-us/rest/api/storageservices/delegating-access-
with-a-shared-access-signature
2. https://docs.microsoft.com/en-us/azure/storage/common/storage-sas-overview
Page 197
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 198
3.7 Ensure that 'Public Network Access' is `Disabled' for storage
accounts (Automated)
Profile Applicability:
• Level 1
Description:
Disallowing public network access for a storage account overrides the public access
settings for individual containers in that storage account for Azure Resource Manager
Deployment Model storage accounts. Azure Storage accounts that use the classic
deployment model will be retired on August 31, 2024.
Rationale:
The default network configuration for a storage account permits a user with appropriate
permissions to configure public network access to containers and blobs in a storage
account. Keep in mind that public access to a container is always turned off by default
and must be explicitly configured to permit anonymous requests. It grants read-only
access to these resources without sharing the account key, and without requiring a
shared access signature. It is recommended not to provide public network access to
storage accounts until, and unless, it is strongly desired. A shared access signature
token or Azure AD RBAC should be used for providing controlled and timed access to
blob containers.
Impact:
Access will have to be managed using shared access signatures or via Azure AD
RBAC.
Audit:
From Azure Portal
1. Go to Storage Accounts
2. For each storage account, under the Security + networking section, click
Networking
3. Ensure the Public Network Access setting is set to Disabled.
Page 199
Get-AzStorageAccount -Name <storage account name> -ResourceGroupName
<resource group name> |select PublicNetworkAccess
Remediation:
From Azure Portal
First, follow Microsoft documentation and create shared access signature tokens for
your blob containers. Then,
1. Go to Storage Accounts
2. For each storage account, under the Security + networking section, click
Networking
3. Set Public Network Access to Disabled.
Default Value:
By default, Public Network Access is set to Enabled from all networks for the Storage
Account.
References:
1. https://docs.microsoft.com/en-us/azure/storage/blobs/storage-manage-access-to-
resources
2. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-governance-
strategy#gs-2-define-and-implement-enterprise-segmentationseparation-of-
duties-strategy
Page 200
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-network-
security#ns-2-secure-cloud-native-services-with-network-controls
4. https://docs.microsoft.com/en-us/azure/storage/blobs/assign-azure-role-data-
access
5. https://learn.microsoft.com/en-us/azure/storage/common/storage-network-
security?tabs=azure-portal
Additional Information:
For classic storage accounts (to be retired on August 31, 2024), each container in the
account must be configured to block anonymous access. Either configure all containers
or to configure at the storage account level, migrate to the Azure Resource Manager
deployment model.
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 201
3.8 Ensure Default Network Access Rule for Storage Accounts is
Set to Deny (Automated)
Profile Applicability:
• Level 1
Description:
Restricting default network access helps to provide a new layer of security, since
storage accounts accept connections from clients on any network. To limit access to
selected networks, the default action must be changed.
Rationale:
Storage accounts should be configured to deny access to traffic from all networks
(including internet traffic). Access can be granted to traffic from specific Azure Virtual
networks, allowing a secure network boundary for specific applications to be built.
Access can also be granted to public internet IP address ranges to enable connections
from specific internet or on-premises clients. When network rules are configured, only
applications from allowed networks can access a storage account. When calling from an
allowed network, applications continue to require proper authorization (a valid access
key or SAS token) to access the storage account.
Impact:
All allowed networks will need to be whitelisted on each specific network, creating
administrative overhead. This may result in loss of network connectivity, so do not turn
on for critical resources during business hours.
Audit:
From Azure Console
1. Go to Storage Accounts
2. For each storage account, Click on the Networking blade.
3. Click the Firewalls and virtual networks heading.
4. Ensure that Allow access from All networks is not selected.
Page 202
Connect-AzAccount
Set-AzContext -Subscription <subscription ID>
Get-AzStorageAccountNetworkRuleset -ResourceGroupName <resource group> -Name
<storage account name> |Select-Object DefaultAction
Remediation:
From Azure Console
1. Go to Storage Accounts
2. For each storage account, Click on the Networking blade
3. Click the Firewalls and virtual networks heading.
4. Ensure that you have elected to allow access from Selected networks
5. Add rules to allow traffic from specific network.
6. Click Save to apply your changes.
Default Value:
By default, Storage Accounts will accept connections from clients on any network.
References:
1. https://docs.microsoft.com/en-us/azure/storage/common/storage-network-
security
Page 203
2. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-governance-
strategy#gs-2-define-and-implement-enterprise-segmentationseparation-of-
duties-strategy
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-network-
security#ns-2-secure-cloud-native-services-with-network-controls
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 204
3.9 Ensure 'Allow Azure services on the trusted services list to
access this storage account' is Enabled for Storage Account
Access (Automated)
Profile Applicability:
• Level 2
Description:
Some Azure services that interact with storage accounts operate from networks that
can't be granted access through network rules. To help this type of service work as
intended, allow the set of trusted Azure services to bypass the network rules. These
services will then use strong authentication to access the storage account. If the Allow
trusted Azure services exception is enabled, the following services are granted access
to the storage account: Azure Backup, Azure Site Recovery, Azure DevTest Labs,
Azure Event Grid, Azure Event Hubs, Azure Networking, Azure Monitor, and Azure SQL
Data Warehouse (when registered in the subscription).
Rationale:
Turning on firewall rules for storage account will block access to incoming requests for
data, including from other Azure services. We can re-enable this functionality by
enabling "Trusted Azure Services" through networking exceptions.
Impact:
This creates authentication credentials for services that need access to storage
resources so that services will no longer need to communicate via network request.
There may be a temporary loss of communication as you set each Storage Account. It
is recommended to not do this on mission-critical resources during business hours.
Audit:
From Azure Portal
1. Go to Storage Accounts
2. For each storage account, Click on the Networking blade
3. Click on the Firewalls and virtual networks heading.
4. Ensure that Enabled from selected virtual networks and IP addresses is
selected.
5. Ensure that Allow Azure services on the trusted services list to access
this storage account is checked in Exceptions.
Page 205
az storage account list --query '[*].networkRuleSet'
From PowerShell
Connect-AzAccount
Set-AzContext -Subscription <subscription ID>
Get-AzStorageAccountNetworkRuleset -ResourceGroupName <resource group> -Name
<storage account name> |Select-Object Bypass
If the resultant output from the above command shows 'NULL', that storage account
configuration is out of compliance with this check. If the result of the above command
shows 'AzureServices', that storage account configuration is in compliance with this
check.
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal
1. Go to Storage Accounts
2. For each storage account, Click on the Networking blade
3. Click on the Firewalls and virtual networks heading.
4. Ensure that Enabled from selected virtual networks and IP addresses is
selected.
5. Under the 'Exceptions' label, enable check box for Allow Azure services on the
trusted services list to access this storage account.
6. Click Save to apply your changes.
Default Value:
By default, Storage Accounts will accept connections from clients on any network.
References:
1. https://docs.microsoft.com/en-us/azure/storage/common/storage-network-
security
Page 206
2. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-network-
security#ns-2-secure-cloud-native-services-with-network-controls
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 207
3.10 Ensure Private Endpoints are used to access Storage
Accounts (Automated)
Profile Applicability:
• Level 1
Description:
Use private endpoints for your Azure Storage accounts to allow clients and services to
securely access data located over a network via an encrypted Private Link. To do this,
the private endpoint uses an IP address from the VNet for each service. Network traffic
between disparate services securely traverses encrypted over the VNet. This VNet can
also link addressing space, extending your network and accessing resources on it.
Similarly, it can be a tunnel through public networks to connect remote infrastructures
together. This creates further security through segmenting network traffic and
preventing outside sources from accessing it.
Rationale:
Securing traffic between services through encryption protects the data from easy
interception and reading.
Impact:
There is no cost in deploying VNets between Azure resources. If improperly
implemented, it may result in loss of critical network traffic.
Audit:
From Azure Portal
Page 208
From PowerShell
$storageAccount = Get-AzStorageAccount -ResourceGroup '<ResourceGroupName>' -
Name '<storageaccountname>'
If the results of the second command returns information, the Storage Account is using
a Private Endpoint and complies with this Benchmark, otherwise if the results of the
second command are empty, the Storage Account generates a finding.
If the above command returns data, the Storage Account complies with this Benchmark,
otherwise if the results are empty, the Storage Account generates a finding.
Remediation:
From Azure Portal
Page 209
o Select the target sub-resource based on what type of storage resource
is being made available
o Click Next
8. In the 3 - Virtual Network tab/step:
o Select the Virtual network that your Storage Account will be connecting
to
o Select the Subnet that your Storage Account will be connecting to
o (Optional) Select other network settings as appropriate for your
environment
o Click Next
9. In the 4 - DNS tab/step:
o (Optional) Select other DNS settings as appropriate for your environment
o Click Next
10. In the 5 - Tags tab/step:
o (Optional) Set any tags that are relevant to your organization
o Click Next
11. In the 6 - Review + create tab/step:
o A validation attempt will be made and after a few moments it should
indicate Validation Passed - if it does not pass, double-check your
settings before beginning more in depth troubleshooting.
o If validation has passed, click Create then wait for a few minutes for the
scripted deployment to complete.
Repeat the above procedure for each Private Endpoint required within every Storage
Account.
Page 210
From PowerShell
$storageAccount = Get-AzStorageAccount -ResourceGroupName
'<ResourceGroupName>' -Name '<storageaccountname>'
$privateEndpointConnection = @{
Name = 'connectionName'
PrivateLinkServiceId = $storageAccount.Id
GroupID =
"blob|blob_secondary|file|file_secondary|table|table_secondary|queue|queue_se
condary|web|web_secondary|dfs|dfs_secondary"
}
$privateLinkServiceConnection = New-AzPrivateLinkServiceConnection
@privateEndpointConnection
$privateEndpoint = @{
ResourceGroupName = '<ResourceGroupName>'
Name = '<PrivateEndpointName>'
Location = '<location>'
Subnet = $virtualNetDetails.Subnets[0]
PrivateLinkServiceConnection =
$privateLinkServiceConnection
}
New-AzPrivateEndpoint @privateEndpoint
From Azure CLI
az network private-endpoint create --resource-group <ResourceGroupName --
location <location> --name <private endpoint name> --vnet-name <VNET Name> --
subnet <subnet name> --private-connection-resource-id <storage account ID> --
connection-name <private link service connection name> --group-id
<blob|blob_secondary|file|file_secondary|table|table_secondary|queue|queue_se
condary|web|web_secondary|dfs|dfs_secondary>
Default Value:
By default, Private Endpoints are not created for Storage Accounts.
References:
1. https://docs.microsoft.com/en-us/azure/storage/common/storage-private-
endpoints
2. https://docs.microsoft.com/en-us/azure/virtual-network/virtual-networks-overview
3. https://docs.microsoft.com/en-us/azure/private-link/create-private-endpoint-portal
4. https://docs.microsoft.com/en-us/azure/private-link/create-private-endpoint-
cli?tabs=dynamic-ip
Page 211
5. https://docs.microsoft.com/en-us/azure/private-link/create-private-endpoint-
powershell?tabs=dynamic-ip
6. https://docs.microsoft.com/en-us/azure/private-link/tutorial-private-endpoint-
storage-portal
7. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-network-
security#ns-2-secure-cloud-native-services-with-network-controls
Additional Information:
A NAT gateway is the recommended solution for outbound internet access.
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 212
3.11 Ensure Soft Delete is Enabled for Azure Containers and Blob
Storage (Automated)
Profile Applicability:
• Level 1
Description:
The Azure Storage blobs contain data like ePHI or Financial, which can be secret or
personal. Data that is erroneously modified or deleted by an application or other storage
account user will cause data loss or unavailability.
It is recommended that both Azure Containers with attached Blob Storage and
standalone containers with Blob Storage be made recoverable by enabling the soft
delete configuration. This is to save and recover data when blobs or blob snapshots are
deleted.
Rationale:
Containers and Blob Storage data can be incorrectly deleted. An attacker/malicious
user may do this deliberately in order to cause disruption. Deleting an Azure Storage
blob causes immediate data loss. Enabling this configuration for Azure storage ensures
that even if blobs/data were deleted from the storage account, Blobs/data objects are
recoverable for a particular time which is set in the "Retention policies," ranging from 7
days to 365 days.
Impact:
Additional storage costs may be incurred as snapshots are retained.
Audit:
From Azure Portal:
1. From the Azure home page, open the hamburger menu in the top left or click on
the arrow pointing right with 'More services' underneath.
2. Select Storage.
3. Select Storage Accounts.
4. For each Storage Account, navigate to Data protection in the left scroll column.
5. Ensure that soft delete is checked for both blobs and containers. Also check if
the retention period is a sufficient length for your organization.
Page 213
Azure Containers: Make certain that the --enable-container-delete-retention is 'true'.
az storage account blob-service-properties show
--account-name <StorageAccountName>
--account-key <accountkey>
--resource-group <resource_group>
Remediation:
From Azure Portal
1. From the Azure home page, open the hamburger menu in the top left or click on
the arrow pointing right with 'More services' underneath.
2. Select Storage.
3. Select Storage Accounts.
4. For each Storage Account, navigate to Data protection in the left scroll column.
5. Check soft delete for both blobs and containers. Set the retention period to a
sufficient length for your organization.
Default Value:
When a new storage account is created, soft delete for containers and blob storage is
by default disabled.
Page 214
References:
1. https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-soft-delete
2. https://docs.microsoft.com/en-us/azure/storage/blobs/soft-delete-container-
overview
3. https://docs.microsoft.com/en-us/azure/storage/blobs/soft-delete-container-
enable?tabs=azure-portal
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 215
3.12 Ensure Storage for Critical Data are Encrypted with
Customer Managed Keys (CMK) (Manual)
Profile Applicability:
• Level 2
Description:
Enable sensitive data encryption at rest using Customer Managed Keys (CMK) rather
than Microsoft Managed keys.
Rationale:
By default, data in the storage account is encrypted using Microsoft Managed Keys at
rest. All Azure Storage resources are encrypted, including blobs, disks, files, queues,
and tables. All object metadata is also encrypted. If you want to control and manage this
encryption key yourself, however, you can specify a customer-managed key. That key is
used to protect and control access to the key that encrypts your data. You can also
choose to automatically update the key version used for Azure Storage encryption
whenever a new version is available in the associated Key Vault.
Impact:
If the key expires by setting the 'activation date' and 'expiration date', the user must
rotate the key manually.
Using Customer Managed Keys may also incur additional man-hour requirements to
create, store, manage, and protect the keys as needed.
Audit:
From Azure Console:
1. Go to Storage Accounts
2. For each storage account, go to Encryption
3. Ensure that Encryption type is set to Customer Managed Keys
From PowerShell
Connect-AzAccount
Set-AzContext -Subscription <subscription id>
Get-AzStorageAccount |Select-Object -ExpandProperty Encryption
PowerShell Results - Non-Compliant
...
KeySource : Microsoft.Storage
...
Page 216
PowerShell Results - Compliant
...
KeySource : Microsoft.Keyvault
...
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal
1. Go to Storage Accounts
2. For each storage account, go to Encryption
3. Set Customer Managed Keys
4. Select the Encryption key and enter the appropriate setting value
5. Click Save
Default Value:
By default, Encryption type is set to Microsoft Managed Keys.
References:
1. https://docs.microsoft.com/en-us/azure/storage/common/storage-service-
encryption
2. https://docs.microsoft.com/en-us/azure/security/fundamentals/data-encryption-
best-practices#protect-data-at-rest
3. https://docs.microsoft.com/en-us/azure/storage/common/storage-service-
encryption#azure-storage-encryption-versus-disk-encryption
4. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-data-
protection#dp-5-use-customer-managed-key-option-in-data-at-rest-encryption-
when-required
Page 217
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 218
3.13 Ensure Storage logging is Enabled for Blob Service for
'Read', 'Write', and 'Delete' requests (Automated)
Profile Applicability:
• Level 2
Description:
The Storage Blob service provides scalable, cost-efficient object storage in the cloud.
Storage Logging happens server-side and allows details for both successful and failed
requests to be recorded in the storage account. These logs allow users to see the
details of read, write, and delete operations against the blobs. Storage Logging log
entries contain the following information about individual requests: timing information
such as start time, end-to-end latency, and server latency; authentication details;
concurrency information; and the sizes of the request and response messages.
Rationale:
Storage Analytics logs contain detailed information about successful and failed requests
to a storage service. This information can be used to monitor each individual request to
a storage service for increased security or diagnostics. Requests are logged on a best-
effort basis.
Storage Analytics logging is not enabled by default for your storage account.
Impact:
Being a level 2, enabling this setting can have a high impact on the cost of data storage
used for logging more data per each request. Do not enable this without determining
your need for this level of logging or forget to check in on data usage and projected
cost.
Audit:
From Azure Portal
Page 219
az storage logging show --services b --account-name <storageAccountName>
Remediation:
From Azure Portal
Default Value:
By default, storage account blob service logging is disabled for read, write, and delete
operations.
References:
1. https://docs.microsoft.com/en-us/rest/api/storageservices/about-storage-
analytics-logging
2. https://docs.microsoft.com/en-us/cli/azure/storage/logging?view=azure-cli-latest
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-3-enable-logging-for-security-investigation
Additional Information:
We cannot practically generalize detailed audit log requirements for every blob due to
their nature and intent. This recommendation may be applicable to storage account blob
service where the security is paramount.
Page 220
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 221
3.14 Ensure Storage Logging is Enabled for Table Service for
'Read', 'Write', and 'Delete' Requests (Automated)
Profile Applicability:
• Level 2
Description:
Azure Table storage is a service that stores structured NoSQL data in the cloud,
providing a key/attribute store with a schema-less design. Storage Logging happens
server-side and allows details for both successful and failed requests to be recorded in
the storage account. These logs allow users to see the details of read, write, and delete
operations against the tables. Storage Logging log entries contain the following
information about individual requests: timing information such as start time, end-to-end
latency, and server latency; authentication details; concurrency information; and the
sizes of the request and response messages.
Rationale:
Storage Analytics logs contain detailed information about successful and failed requests
to a storage service. This information can be used to monitor each individual request to
a storage service for increased security or diagnostics. Requests are logged on a best-
effort basis.
Storage Analytics logging is not enabled by default for your storage account.
Impact:
Being a level 2, enabling this setting can have a high impact on the cost of data storage
used for logging more data per each request. Do not enable this without determining
your need for this level of logging or forget to check in on data usage and projected
cost.
Audit:
From Azure Portal
Page 222
From Azure CLI
Ensure the below command's output contains properties delete, read and write set to
true.
az storage logging show --services t --account-name <storageAccountName>
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal
Default Value:
By default, storage account table service logging is disabled for read, write, an delete
operations
References:
1. https://docs.microsoft.com/en-us/rest/api/storageservices/about-storage-
analytics-logging
2. https://docs.microsoft.com/en-us/cli/azure/storage/logging?view=azure-cli-latest
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-3-enable-logging-for-security-investigation
Page 223
Additional Information:
We cannot practically generalize detailed audit log requirements for every table due to
their nature and intent. This recommendation may be applicable to storage account
table service where the security is paramount.
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 224
3.15 Ensure the "Minimum TLS version" for storage accounts is
set to "Version 1.2" (Automated)
Profile Applicability:
• Level 1
Description:
In some cases, Azure Storage sets the minimum TLS version to be version 1.0 by
default. TLS 1.0 is a legacy version and has known vulnerabilities. This minimum TLS
version can be configured to be later protocols such as TLS 1.2.
Rationale:
TLS 1.0 has known vulnerabilities and has been replaced by later versions of the TLS
protocol. Continued use of this legacy protocol affects the security of data in transit.
Impact:
When set to TLS 1.2 all requests must leverage this version of the protocol. Applications
leveraging legacy versions of the protocol will fail.
Audit:
From Azure Console
Page 225
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Console
Default Value:
If a storage account is created through the portal, the MinimumTlsVersion property for
that storage account will be set to TLS 1.2.
If a storage account is created through PowerShell or CLI, the MinimumTlsVersion
property for that storage account will not be set, and defaults to TLS 1.0.
References:
1. https://docs.microsoft.com/en-us/azure/storage/common/transport-layer-security-
configure-minimum-version?tabs=portal
2. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-data-
protection#dp-3-encrypt-sensitive-data-in-transit
Page 226
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 227
3.16 Ensure 'Cross Tenant Replication' is not enabled
(Automated)
Profile Applicability:
• Level 1
Description:
Cross Tenant Replication in Azure allows data to be replicated across multiple Azure
tenants. While this feature can be beneficial for data sharing and availability, it also
poses a significant security risk if not properly managed. Unauthorized data access,
data leakage, and compliance violations are potential risks. Disabling Cross Tenant
Replication ensures that data is not inadvertently replicated across different tenant
boundaries without explicit authorization.
Rationale:
Disabling Cross Tenant Replication minimizes the risk of unauthorized data access and
ensures that data governance policies are strictly adhered to. This control is especially
critical for organizations with stringent data security and privacy requirements, as it
prevents the accidental sharing of sensitive information.
Impact:
Disabling Cross Tenant Replication may affect data availability and sharing across
different Azure tenants. Ensure that this change aligns with your organizational data
sharing and availability requirements.
Audit:
From Azure Portal
Login to the Azure Portal using https://portal.azure.com
Page 228
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal
Default Value:
For new storage accounts created after Dec 15, 2023 cross tenant replication is not
enabled.
References:
1. https://learn.microsoft.com/en-us/azure/storage/blobs/object-replication-prevent-
cross-tenant-policies?tabs=portal
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 229
3.17 Ensure that `Allow Blob Anonymous Access` is set to
`Disabled` (Automated)
Profile Applicability:
• Level 1
Description:
The Azure Storage setting ‘Allow Blob Anonymous Access’ (aka
"allowBlobPublicAccess") controls whether anonymous access is allowed for blob data
in a storage account. When this property is set to True, it enables public read access to
blob data, which can be convenient for sharing data but may carry security risks. When
set to False, it disallows public access to blob data, providing a more secure storage
environment.
Rationale:
If "Allow Blob Anonymous Access" is enabled, blobs can be accessed by adding the
blob name to the URL to see the contents. An attacker can enumerate a blob using
methods, such as brute force, and access them.
Exfiltration of data by brute force enumeration of items from a storage account may
occur if this setting is set to 'Enabled'.
Impact:
Additional consideration may be required for exceptional circumstances where elements
of a storage account require public accessibility. In these circumstances, it is highly
recommended that all data stored in the public facing storage account be reviewed for
sensitive or potentially compromising data, and that sensitive or compromising data is
never stored in these storage accounts.
Audit:
From Azure Portal:
Page 230
From Azure CLI:
For every storage account in scope:
az storage account show --Name "<yourStorageAccountName>" --query
allowBlobPublicAccess
Ensure that every storage account in scope returns false for the
"allowBlobPublicAccess" setting.
Remediation:
From Azure Portal:
Default Value:
Disabled
References:
1. https://learn.microsoft.com/en-us/azure/storage/blobs/anonymous-read-access-
prevent?tabs=portal
2. https://learn.microsoft.com/en-us/azure/storage/blobs/anonymous-read-access-
prevent?source=recommendations&tabs=portal
3. Classic Storage Accounts: https://learn.microsoft.com/en-
us/azure/storage/blobs/anonymous-read-access-prevent-classic?tabs=portal
Page 231
Additional Information:
Azure Storage accounts that use the classic deployment model will be retired on August
31, 2024.
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 232
4 Database Services
This section covers security recommendations to follow to set general database
services policies on an Azure Subscription. Subsections will address specific database
types.
Page 233
4.1 SQL Server - Auditing
Auditing for Azure SQL Servers and SQL Databases tracks database events and writes
them to an audit log Azure storage account, Log Analytics workspace or Event Hubs.
Auditing helps to maintain regulatory compliance, understand database activity, and
gain insight into discrepancies and anomalies that could indicate business concerns or
suspected security violations. Auditing enables and facilitates adherence to compliance
standards, although it doesn't guarantee compliance.
The Default SQL Server Auditing profile set for SQL server is inherited by all the SQL
Databases which are part of the SQL server.
Page 234
4.1.1 Ensure that 'Auditing' is set to 'On' (Automated)
Profile Applicability:
• Level 1
Description:
Enable auditing on SQL Servers.
Rationale:
The Azure platform allows a SQL server to be created as a service. Enabling auditing at
the server level ensures that all existing and newly created databases on the SQL
server instance are audited. Auditing policy applied on the SQL database does not
override auditing policy and settings applied on the particular SQL server where the
database is hosted.
Auditing tracks database events and writes them to an audit log in the Azure storage
account. It also helps to maintain regulatory compliance, understand database activity,
and gain insight into discrepancies and anomalies that could indicate business concerns
or suspected security violations.
Audit:
From Azure Portal
1. Go to SQL servers
2. For each server instance
3. Click on Auditing
4. Ensure that Enable Azure SQL Auditing is set to On
From PowerShell
Get the list of all SQL Servers
Get-AzSqlServer
For each Server
Get-AzSqlServerAudit -ResourceGroupName <ResourceGroupName> -ServerName
<SQLServerName>
Ensure that BlobStorageTargetState, EventHubTargetState, or
LogAnalyticsTargetState is set to Enabled.
Page 235
Remediation:
From Azure Portal
1. Go to SQL servers
2. Select the SQL server instance
3. Under Security, click Auditing
4. Click the toggle next to Enable Azure SQL Auditing
5. Select an Audit log destination
6. Click Save
From PowerShell
Get the list of all SQL Servers
Get-AzSqlServer
For each Server, enable auditing and set the retention for at least 90 days.
Log Analytics Example
Set-AzSqlServerAudit -ResourceGroupName <resource group name> -ServerName
<SQL Server name> -RetentionInDays <Number of Days to retain the audit logs,
should be 90days minimum> -LogAnalyticsTargetState Enabled -
WorkspaceResourceId "/subscriptions/<subscription
ID>/resourceGroups/insights-
integration/providers/Microsoft.OperationalInsights/workspaces/<workspace
name>
Event Hub Example
Set-AzSqlServerAudit -ResourceGroupName "<resource group name>" -ServerName
"<SQL Server name>" -EventHubTargetState Enabled -EventHubName
"<Event Hub name>" -EventHubAuthorizationRuleResourceId "<Event Hub
Authorization Rule Resource ID>"
Blob Storage Example*
Set-AzSqlServerAudit -ResourceGroupName "<resource group name>" -ServerName
"<SQL Server name>" -BlobStorageTargetState Enabled
-StorageAccountResourceId
"/subscriptions/<subscription_ID>/resourceGroups/<Resource_Group>/providers/M
icrosoft.Stora
ge/storageAccounts/<Storage Account name>"
Default Value:
By default, Enable Azure SQL Auditing is set to Off.
References:
1. https://docs.microsoft.com/en-us/azure/security-center/security-center-enable-
auditing-on-sql-servers
2. https://docs.microsoft.com/en-us/powershell/module/azurerm.sql/get-
azurermsqlserverauditing?view=azurermps-5.2.0
Page 236
3. https://docs.microsoft.com/en-us/powershell/module/azurerm.sql/set-
azurermsqlserverauditingpolicy?view=azurermps-5.2.0
4. https://docs.microsoft.com/en-us/azure/sql-database/sql-database-auditing
5. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-3-enable-logging-for-security-investigation
Additional Information:
• A server policy applies to all existing and newly created databases on the server.
• If server blob auditing is enabled, it always applies to the database. The
database will be audited, regardless of the database auditing settings. Auditing
type table is already deprecated leaving only type blob available.
• Enabling blob auditing on the database, in addition to enabling it on the server,
does not override or change any of the settings of the server blob auditing. Both
audits will exist side by side. In other words, the database is audited twice in
parallel; once by the server policy and once by the database policy.
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 237
4.1.2 Ensure no Azure SQL Databases allow ingress from
0.0.0.0/0 (ANY IP) (Automated)
Profile Applicability:
• Level 1
Description:
Ensure that no SQL Databases allow ingress from 0.0.0.0/0 (ANY IP).
Rationale:
Azure SQL Server includes a firewall to block access to unauthorized connections.
More granular IP addresses can be defined by referencing the range of addresses
available from specific datacenters.
By default, for a SQL server, a Firewall exists with StartIp of 0.0.0.0 and EndIP of
0.0.0.0 allowing access to all the Azure services.
Additionally, a custom rule can be set up with StartIp of 0.0.0.0 and EndIP of
255.255.255.255 allowing access from ANY IP over the Internet.
In order to reduce the potential attack surface for a SQL server, firewall rules should be
defined with more granular IP addresses by referencing the range of addresses
available from specific datacenters.
Impact:
Disabling Allow Azure services and resources to access this server will break all
connections to SQL server and Hosted Databases unless custom IP specific rules are
added in Firewall Policy.
Audit:
From Azure Portal
1. Go to SQL servers
2. For each SQL server
3. Click on Networking
4. Ensure that Allow Azure services and resources to access this server is
Unchecked
5. Ensure that no firewall rule exists with
• Start IP of 0.0.0.0
• or other combinations which allows access to wider public IP ranges
Page 238
From Azure CLI
List all SQL servers
az sql server list
For each SQL server run the following command
az sql server firewall-rule list --resource-group <resource group name> --
server <sql server name>
Ensure the output does not contain any firewall allow rules with a source of 0.0.0.0, or
any rules named AllowAllWindowsAzureIps
From PowerShell
Get the list of all SQL Servers
Get-AzSqlServer
For each Server
Get-AzSqlServerFirewallRule -ResourceGroupName <resource group name> -
ServerName <server name>
Ensure that StartIpAddress is not set to 0.0.0.0, /0 or other combinations which allows
access to wider public IP ranges including Windows Azure IP ranges. Also ensure that
FirewallRuleName doesn't contain
AllowAllWindowsAzureIps which is the rule created when the Allow Azure services
and resources to access this server setting is enabled for that SQL Server.
Remediation:
From Azure Portal
1. Go to SQL servers
2. For each SQL server
3. Click on Networking
4. Uncheck the checkbox for Allow Azure services and resources to access this
server
5. Set firewall rules to limit access to only authorized connections
Page 239
From Azure CLI
Disable default firewall rule Allow access to Azure services:
az sql server firewall-rule delete --resource-group <resource group> --server
<sql server name> --name "AllowAllWindowsAzureIps"
Remove a custom firewall rule:
az sql server firewall-rule delete --resource-group <resource group> --server
<sql server name> --name <firewall rule name>
Create a firewall rule:
az sql server firewall-rule create --resource-group <resource group> --server
<sql server name> --name <firewall rule name> --start-ip-address "<IP Address
other than 0.0.0.0>" --end-ip-address "<IP Address other than 0.0.0.0 or
255.255.255.255>"
Update a firewall rule:
az sql server firewall-rule update --resource-group <resource group> --server
<sql server name> --name <firewall rule name> --start-ip-address "<IP Address
other than 0.0.0.0>" --end-ip-address "<IP Address other than 0.0.0.0 or
255.255.255.255>"
From PowerShell
Disable Default Firewall Rule Allow access to Azure services :
Remove-AzSqlServerFirewallRule -FirewallRuleName "AllowAllWindowsAzureIps" -
ResourceGroupName <resource group name> -ServerName <server name>
Remove a custom Firewall rule:
Remove-AzSqlServerFirewallRule -FirewallRuleName "<firewall rule name>" -
ResourceGroupName <resource group name> -ServerName <server name>
Set the appropriate firewall rules:
Set-AzSqlServerFirewallRule -ResourceGroupName <resource group name> -
ServerName <server name> -FirewallRuleName "<firewall rule name>" -
StartIpAddress "<IP Address other than 0.0.0.0>" -EndIpAddress "<IP Address
other than 0.0.0.0 or 255.255.255.255>"
Default Value:
By default, Allow access to Azure Services is set to NO.
References:
1. https://docs.microsoft.com/en-us/sql/database-engine/configure-
windows/configure-a-windows-firewall-for-database-engine-access?view=sql-
server-2017
2. https://docs.microsoft.com/en-us/powershell/module/azurerm.sql/get-
azurermsqlserverfirewallrule?view=azurermps-5.2.0
3. https://docs.microsoft.com/en-us/powershell/module/azurerm.sql/set-
azurermsqlserverfirewallrule?view=azurermps-5.2.0
Page 240
4. https://docs.microsoft.com/en-us/powershell/module/azurerm.sql/remove-
azurermsqlserverfirewallrule?view=azurermps-5.2.0
5. https://docs.microsoft.com/en-us/azure/sql-database/sql-database-firewall-
configure
6. https://docs.microsoft.com/en-us/sql/relational-databases/system-stored-
procedures/sp-set-database-firewall-rule-azure-sql-database?view=azuresqldb-
current
7. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-network-
security#ns-2-secure-cloud-native-services-with-network-controls
Additional Information:
Firewall rules configured on individual SQL Database using Transact-sql overrides the
rules set on SQL server. Azure does not provide any Powershell, API, CLI, Portal option
to check database level firewall rules, and so far Transact-SQL is the only way to check
for the same. For comprehensive control over egress traffic on SQL Databases, Firewall
rules should be checked using SQL client.
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 241
4.1.3 Ensure SQL server's Transparent Data Encryption (TDE)
protector is encrypted with Customer-managed key (Automated)
Profile Applicability:
• Level 2
Description:
Transparent Data Encryption (TDE) with Customer-managed key support provides
increased transparency and control over the TDE Protector, increased security with an
HSM-backed external service, and promotion of separation of duties.
With TDE, data is encrypted at rest with a symmetric key (called the database
encryption key) stored in the database or data warehouse distribution. To protect this
data encryption key (DEK) in the past, only a certificate that the Azure SQL Service
managed could be used. Now, with Customer-managed key support for TDE, the DEK
can be protected with an asymmetric key that is stored in the Azure Key Vault. The
Azure Key Vault is a highly available and scalable cloud-based key store which offers
central key management, leverages FIPS 140-2 Level 2 validated hardware security
modules (HSMs), and allows separation of management of keys and data for additional
security.
Based on business needs or criticality of data/databases hosted on a SQL server, it is
recommended that the TDE protector is encrypted by a key that is managed by the data
owner (Customer-managed key).
Rationale:
Customer-managed key support for Transparent Data Encryption (TDE) allows user
control of TDE encryption keys and restricts who can access them and when. Azure
Key Vault, Azure’s cloud-based external key management system, is the first key
management service where TDE has integrated support for Customer-managed keys.
With Customer-managed key support, the database encryption key is protected by an
asymmetric key stored in the Key Vault. The asymmetric key is set at the server level
and inherited by all databases under that server.
Impact:
Once TDE protector is encrypted with a Customer-managed key, it transfers entire
responsibility of respective key management on to you, and hence you should be more
careful about doing any operations on the particular key in order to keep data from
corresponding SQL server and Databases hosted accessible.
When deploying Customer Managed Keys, it is prudent to ensure that you also deploy
an automated toolset for managing these keys (this should include discovery and key
rotation), and Keys should be stored in an HSM or hardware backed keystore, such as
Azure Key Vault.
Page 242
As far as toolsets go, check with your cryptographic key provider, as they may well
provide one as an add-on to their service.
Audit:
From Azure Portal
1. Go to SQL servers
From PowerShell
Get-AzSqlServerTransparentDataEncryptionProtector -ServerName <ServerName> -
ResourceGroupName <ResourceGroupName>
Ensure the output of the command contains properties
Type set to AzureKeyVault
ServerKeyVaultKeyName set to KeyVaultName_KeyName_KeyIdentifierVersion
KeyId set to KeyIdentifier
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Page 243
Remediation:
From Azure Console
1. Go to SQL servers
From PowerShell
Use the below command to encrypt SQL server's TDE protector with a Customer-
managed Key Vault key
Set-AzSqlServerTransparentDataEncryptionProtector -Type AzureKeyVault -KeyId
<KeyIdentifier> -ServerName <ServerName> -ResourceGroupName
<ResourceGroupName>
Select Y when prompted
Default Value:
By Default, Microsoft managed TDE protector is enabled for a SQL server.
References:
1. https://docs.microsoft.com/en-us/sql/relational-
databases/security/encryption/transparent-data-encryption-byok-azure-sql
2. https://azure.microsoft.com/en-in/blog/preview-sql-transparent-data-encryption-
tde-with-bring-your-own-key-support/
3. https://winterdom.com/2017/09/07/azure-sql-tde-protector-keyvault
4. https://docs.microsoft.com/en-us/security/benchmark/azure/security-controls-v3-
data-protection#dp-5-use-customer-managed-key-option-in-data-at-rest-
encryption-when-required
5. https://docs.microsoft.com/en-us/azure/key-vault/general/basic-concepts
6. https://docs.microsoft.com/en-us/cli/azure/sql/server/tde-key?view=azure-cli-
latest
Page 244
7. https://learn.microsoft.com/en-us/powershell/module/az.sql/get-
azsqlservertransparentdataencryptionprotector?view=azps-9.2.0
8. https://learn.microsoft.com/en-us/powershell/module/az.sql/set-
azsqlservertransparentdataencryptionprotector?view=azps-9.2.0
Additional Information:
• This configuration is audited or can be done only on SQL server. The same
configuration will be in effect on SQL Databases hosted on SQL Server.
• Ensuring TDE is protected by a Customer-managed key on SQL Server does not
ensure the encryption of SQL Databases. Transparent Data Encryption : Data
Encryption (ON/OFF) setting on individual SQL Database decides whether
database is encrypted or not.
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 245
4.1.4 Ensure that Microsoft Entra authentication is Configured for
SQL Servers (Automated)
Profile Applicability:
• Level 1
Description:
Use Microsoft Entra authentication for authentication with SQL Database to manage
credentials in a single place.
Rationale:
Microsoft Entra authentication is a mechanism to connect to Microsoft Azure SQL
Database and SQL Data Warehouse by using identities in the Microsoft Entra ID
directory. With Entra ID authentication, identities of database users and other Microsoft
services can be managed in one central location. Central ID management provides a
single place to manage database users and simplifies permission management.
Impact:
This will create administrative overhead with user account and permission
management. For further security on these administrative accounts, you may want to
consider licensing which supports features like Multi Factor Authentication.
Page 246
Audit:
From Azure Portal
1. Go to SQL servers
2. For each SQL server, click on Microsoft Entra admin under the Settings section
3. Ensure that a value has been set for Admin Name under the Microsoft Entra
admin section
Remediation:
From Azure Portal
1. Go to SQL servers
2. For each SQL server, click on Microsoft Entra admin
3. Click on Set admin
4. Select an admin
5. Click Save
Page 247
From PowerShell
For each Server, set Entra ID Admin
Set-AzSqlServerActiveDirectoryAdministrator -ResourceGroupName <resource
group name> -ServerName <server name> -DisplayName "<Display name of AD
account to set as DB administrator>"
Default Value:
Entra ID Authentication for SQL Database/Server is not enabled by default
References:
1. https://learn.microsoft.com/en-us/azure/azure-sql/database/authentication-aad-
configure
2. https://docs.microsoft.com/en-us/azure/sql-database/sql-database-aad-
authentication
3. https://docs.microsoft.com/en-us/powershell/module/azurerm.sql/get-
azurermsqlserveractivedirectoryadministrator?view=azurermps-5.2.0
4. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-identity-
management#im-1-use-centralized-identity-and-authentication-system
5. https://docs.microsoft.com/en-us/cli/azure/sql/server/ad-admin?view=azure-cli-
latest#az_sql_server_ad_admin_list
Additional Information:
NOTE - Assigning an Administrator in Entra ID is just the first step. When using Entra ID
for central authentication there are many other groups and roles that need to be
configured base on the needs of your organization. The How-to Guides should be used
to determine what roles should be assigned and what groups should be created to
manage permissions and access to resources.
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 248
4.1.5 Ensure that 'Data encryption' is set to 'On' on a SQL
Database (Automated)
Profile Applicability:
• Level 1
Description:
Enable Transparent Data Encryption on every SQL server.
Rationale:
Azure SQL Database transparent data encryption helps protect against the threat of
malicious activity by performing real-time encryption and decryption of the database,
associated backups, and transaction log files at rest without requiring changes to the
application.
Audit:
From Azure Portal
1. Go to SQL databases
2. For each DB instance
3. Click on Transparent data encryption
4. Ensure that Data encryption is set to On
From PowerShell
Get a list of SQL Servers.
Get-AzSqlServer
For each server, list the databases.
Get-AzSqlDatabase -ServerName <SQL Server Name> -ResourceGroupName <Resource
Group Name>
For each database not listed as a Master database, check for Transparent Data
Encryption.
Get-AzSqlDatabaseTransparentDataEncryption -ResourceGroupName <Resource Group
Name> -ServerName <SQL Server Name> -DatabaseName <Database Name>
Make sure DataEncryption is Enabled for each database except the Master database.
Page 249
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal
1. Go to SQL databases
2. For each DB instance
3. Click on Transparent data encryption
4. Set Data encryption to On
• TDE cannot be used to encrypt the logical master database in SQL Database.
The master database contains objects that are needed to perform the TDE
operations on the user databases.
• Azure Portal does not show master databases per SQL server. However,
CLI/API responses will show master databases.
Default Value:
By default, Data encryption is set to On.
References:
1. https://docs.microsoft.com/en-us/sql/relational-
databases/security/encryption/transparent-data-encryption-with-azure-sql-
database
2. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-data-
protection#dp-4-enable-data-at-rest-encryption-by-default
Page 250
3. https://learn.microsoft.com/en-us/powershell/module/az.sql/set-
azsqldatabasetransparentdataencryption?view=azps-9.2.0
Additional Information:
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 251
4.1.6 Ensure that 'Auditing' Retention is 'greater than 90 days'
(Automated)
Profile Applicability:
• Level 1
Description:
SQL Server Audit Retention should be configured to be greater than 90 days.
Rationale:
Audit Logs can be used to check for anomalies and give insight into suspected
breaches or misuse of information and access.
Audit:
From Azure Portal
1. Go to SQL servers
2. For each server instance
3. Click on Auditing
4. If storage is selected, expand Advanced properties
5. Ensure Retention (days) setting is greater than 90 days or 0 for unlimited
retention.
From PowerShell
Get the list of all SQL Servers
Get-AzSqlServer
For each Server
Get-AzSqlServerAudit -ResourceGroupName <resource group name> -ServerName
<server name>
Ensure that RetentionInDays is set to more than 90
Note: If the SQL server is set with LogAnalyticsTargetState setting set to Enabled, run
the following additional command.
Get-AzOperationalInsightsWorkspace | Where-Object {$_.ResourceId -eq <SQL
Server WorkSpaceResourceId>}
Ensure that RetentionInDays is set to more than 90
Page 252
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal
1. Go to SQL servers
2. For each server instance
3. Click on Auditing
4. If storage is selected, expand Advanced properties
5. Set the Retention (days) setting greater than 90 days or 0 for unlimited
retention.
6. Select Save
From PowerShell
For each Server, set retention policy to more than 90 days
Log Analytics Example
Set-AzSqlServerAudit -ResourceGroupName <resource group name> -ServerName
<SQL Server name> -RetentionInDays <Number of Days to retain the audit logs,
should be more than 90 days> -LogAnalyticsTargetState Enabled -
WorkspaceResourceId "/subscriptions/<subscription
ID>/resourceGroups/insights-
integration/providers/Microsoft.OperationalInsights/workspaces/<workspace
name>
Event Hub Example
Set-AzSqlServerAudit -ResourceGroupName "<resource group name>" -ServerName
"<SQL Server name>" -EventHubTargetState Enabled -EventHubName
"<Event Hub name>" -EventHubAuthorizationRuleResourceId "<Event Hub
Authorization Rule Resource ID>"
Blob Storage Example*
Set-AzSqlServerAudit -ResourceGroupName "<resource group name>" -ServerName
"<SQL Server name>" -BlobStorageTargetState Enabled
-StorageAccountResourceId
"/subscriptions/<subscription_ID>/resourceGroups/<Resource_Group>/providers/M
icrosoft.Stora
ge/storageAccounts/<Storage Account name>"
Default Value:
By default, SQL Server audit storage is disabled.
Page 253
References:
1. https://docs.microsoft.com/en-us/azure/sql-database/sql-database-auditing
2. https://docs.microsoft.com/en-us/powershell/module/azurerm.sql/get-
azurermsqlserverauditing?view=azurermps-5.2.0
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-6-configure-log-storage-retention
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 254
4.3 PostgreSQL Database Server
Page 255
4.3.1 Ensure 'Enforce SSL connection' is set to 'ENABLED' for
PostgreSQL Database Server (Automated)
Profile Applicability:
• Level 1
Description:
Enable SSL connection on PostgreSQL Servers.
Rationale:
SSL connectivity helps to provide a new layer of security by connecting database
server to client applications using Secure Sockets Layer (SSL). Enforcing SSL
connections between database server and client applications helps protect against
"man in the middle" attacks by encrypting the data stream between the server and
application.
Audit:
From Azure Portal
From PowerShell
Ensure the output of the below command returns Enabled.
Get-AzPostgreSqlServer -ResourceGroupName <ResourceGroupName > -ServerName
<ServerName> | Select-Object SslEnforcement
Page 256
• Policy ID: d158790f-bfb0-486c-8631-2dc6b4e8e6af - Name: 'Enforce SSL
connection should be enabled for PostgreSQL database servers'
Remediation:
From Azure Portal
Default Value:
By default, secure connectivity is enforced, but some application frameworks may not
enable it during deployment.
References:
1. https://docs.microsoft.com/en-us/azure/postgresql/concepts-ssl-connection-
security
2. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-data-
protection#dp-4-enable-data-at-rest-encryption-by-default
3. https://learn.microsoft.com/en-us/powershell/module/az.postgresql/get-
azpostgresqlserver?view=azps-9.2.0#example-2-get-postgresql-server-by-
resource-group-and-server-name
4. https://learn.microsoft.com/en-us/powershell/module/az.postgresql/update-
azpostgresqlserver?view=azps-9.2.0#example-1-update-postgresql-server-by-
resource-group-and-server-name
Page 257
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 258
4.3.2 Ensure Server Parameter 'log_checkpoints' is set to 'ON' for
PostgreSQL Database Server (Automated)
Profile Applicability:
• Level 1
Description:
Enable log_checkpoints on PostgreSQL Servers.
Rationale:
Enabling log_checkpoints helps the PostgreSQL Database to Log each checkpoint in
turn generates query and error logs. However, access to transaction logs is not
supported. Query and error logs can be used to identify, troubleshoot, and repair
configuration errors and sub-optimal performance.
Audit:
From Azure Portal
From PowerShell
Ensure value is set to ON
Get-AzPostgreSqlConfiguration -ResourceGroupName <ResourceGroupName> -
ServerName <ServerName> -Name log_checkpoints
Page 259
• Policy ID: eb6f77b9-bd53-4e35-a23d-7f65d5f0e43d - Name: 'Log checkpoints
should be enabled for PostgreSQL database servers'
Remediation:
From Azure Portal
Default Value:
By default log_checkpoints is enabled (set to on).
References:
1. https://docs.microsoft.com/en-
us/rest/api/postgresql/singleserver/configurations/list-by-server
2. https://docs.microsoft.com/en-us/azure/postgresql/howto-configure-server-
parameters-using-portal
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-3-enable-logging-for-security-investigation
4. https://learn.microsoft.com/en-us/azure/postgresql/single-server/concepts-server-
logs#configure-logging
5. https://learn.microsoft.com/en-us/powershell/module/az.postgresql/get-
azpostgresqlconfiguration?view=azps-9.2.0#example-2-get-specified-postgresql-
configuration-by-name
6. https://learn.microsoft.com/en-us/powershell/module/az.postgresql/update-
azpostgresqlconfiguration?view=azps-9.2.0#example-1-update-postgresql-
configuration-by-name
Page 260
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 261
4.3.3 Ensure server parameter 'log_connections' is set to 'ON' for
PostgreSQL Database Server (Automated)
Profile Applicability:
• Level 1
Description:
Enable log_connections on PostgreSQL Servers.
Rationale:
Enabling log_connections helps PostgreSQL Database to log attempted connection to
the server, as well as successful completion of client authentication. Log data can be
used to identify, troubleshoot, and repair configuration errors and suboptimal
performance.
Audit:
From Azure Portal
From PowerShell
Ensure log_connections value is set to ON
Get-AzPostgreSqlConfiguration -ResourceGroupName <ResourceGroupName> -
ServerName <ServerName> -Name log_connections
Page 262
• Policy ID: eb6f77b9-bd53-4e35-a23d-7f65d5f0e442 - Name: 'Log connections
should be enabled for PostgreSQL database servers'
Remediation:
From Azure Portal
Default Value:
By default log_connections is enabled (set to on).
References:
1. https://docs.microsoft.com/en-us/rest/api/postgresql/configurations/listbyserver
2. https://docs.microsoft.com/en-us/azure/postgresql/howto-configure-server-
parameters-using-portal
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-3-enable-logging-for-security-investigation
4. https://learn.microsoft.com/en-us/powershell/module/az.postgresql/get-
azpostgresqlconfiguration?view=azps-9.2.0#example-2-get-specified-postgresql-
configuration-by-name
5. https://learn.microsoft.com/en-us/powershell/module/az.postgresql/update-
azpostgresqlconfiguration?view=azps-9.2.0#example-1-update-postgresql-
configuration-by-name
Page 263
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 264
4.3.4 Ensure server parameter 'log_disconnections' is set to 'ON'
for PostgreSQL Database Server (Automated)
Profile Applicability:
• Level 1
Description:
Enable log_disconnections on PostgreSQL Servers.
Rationale:
Enabling log_disconnections helps PostgreSQL Database to Logs end of a session,
including duration, which in turn generates query and error logs. Query and error logs
can be used to identify, troubleshoot, and repair configuration errors and sub-optimal
performance.
Impact:
Enabling this setting will enable a log of all disconnections. If this is enabled for a high
traffic server, the log may grow exponentially.
Audit:
From Azure Portal
Page 265
• Policy ID: eb6f77b9-bd53-4e35-a23d-7f65d5f0e446 - Name: 'Disconnections
should be logged for PostgreSQL database servers.'
Remediation:
From Azure Portal
Default Value:
By default log_disconnections is disabled (set to off).
References:
1. https://docs.microsoft.com/en-
us/rest/api/postgresql/singleserver/configurations/list-by-server
2. https://docs.microsoft.com/en-us/azure/postgresql/howto-configure-server-
parameters-using-portal
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-3-enable-logging-for-security-investigation
4. https://learn.microsoft.com/en-us/powershell/module/az.postgresql/get-
azpostgresqlconfiguration?view=azps-9.2.0#example-2-get-specified-postgresql-
configuration-by-name
5. https://learn.microsoft.com/en-us/powershell/module/az.postgresql/update-
azpostgresqlconfiguration?view=azps-9.2.0#example-1-update-postgresql-
configuration-by-name
Page 266
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 267
4.3.5 Ensure server parameter 'connection_throttling' is set to
'ON' for PostgreSQL Database Server (Automated)
Profile Applicability:
• Level 1
Description:
Enable connection_throttling on PostgreSQL Servers.
Rationale:
Enabling connection_throttling helps the PostgreSQL Database to Set the
verbosity of logged messages. This in turn generates query and error logs with
respect to concurrent connections that could lead to a successful Denial of Service
(DoS) attack by exhausting connection resources. A system can also fail or be
degraded by an overload of legitimate users. Query and error logs can be used to
identify, troubleshoot, and repair configuration errors and sub-optimal performance.
Audit:
From Azure Portal
Page 268
Remediation:
From Azure Portal
Default Value:
By default, connection_throttling is enabled (set to on).
References:
1. https://docs.microsoft.com/en-
us/rest/api/postgresql/singleserver/configurations/list-by-server
2. https://docs.microsoft.com/en-us/azure/postgresql/howto-configure-server-
parameters-using-portal
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-3-enable-logging-for-security-investigation
4. https://learn.microsoft.com/en-us/powershell/module/az.postgresql/get-
azpostgresqlconfiguration?view=azps-9.2.0#example-2-get-specified-postgresql-
configuration-by-name
5. https://learn.microsoft.com/en-us/powershell/module/az.postgresql/update-
azpostgresqlconfiguration?view=azps-9.2.0#example-1-update-postgresql-
configuration-by-name
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 269
Controls
Control IG 1 IG 2 IG 3
Version
Page 270
4.3.6 Ensure Server Parameter 'log_retention_days' is greater
than 3 days for PostgreSQL Database Server (Automated)
Profile Applicability:
• Level 1
Description:
Ensure log_retention_days on PostgreSQL Servers is set to an appropriate value.
Rationale:
Configuring log_retention_days determines the duration in days that Azure Database
for PostgreSQL retains log files. Query and error logs can be used to identify,
troubleshoot, and repair configuration errors and sub-optimal performance.
Impact:
Configuring this setting will result in logs being retained for the specified number of
days. If this is configured on a high traffic server, the log may grow quickly to occupy a
large amount of disk space. In this case you may want to set this to a lower number.
Audit:
From Azure Portal
From Powershell
Ensure log_retention_days value is greater than 3.
Get-AzPostgreSqlConfiguration -ResourceGroupName <ResourceGroupName> -
ServerName <ServerName> -Name log_retention_days
Page 271
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal
Default Value:
By default log_retention_days is set to 3.
References:
1. https://docs.microsoft.com/en-us/azure/postgresql/howto-configure-server-
parameters-using-portal
2. https://docs.microsoft.com/en-
us/rest/api/postgresql/singleserver/configurations/list-by-server
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-6-configure-log-storage-retention
4. https://learn.microsoft.com/en-us/powershell/module/az.postgresql/get-
azpostgresqlconfiguration?view=azps-9.2.0#example-2-get-specified-postgresql-
configuration-by-name
Page 272
5. https://learn.microsoft.com/en-us/powershell/module/az.postgresql/update-
azpostgresqlconfiguration?view=azps-9.2.0#example-1-update-postgresql-
configuration-by-name
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 273
4.3.7 Ensure 'Allow access to Azure services' for PostgreSQL
Database Server is disabled (Automated)
Profile Applicability:
• Level 1
Description:
Disable access from Azure services to PostgreSQL Database Server.
Rationale:
If access from Azure services is enabled, the server's firewall will accept connections
from all Azure resources, including resources not in your subscription. This is usually
not a desired configuration. Instead, set up firewall rules to allow access from specific
network ranges or VNET rules to allow access from specific virtual networks.
Audit:
From Azure Portal
Page 274
Remediation:
From Azure Portal
Default Value:
The Azure Postgres firewall is set to block all access by default.
References:
1. https://docs.microsoft.com/en-us/azure/postgresql/concepts-firewall-rules
2. https://docs.microsoft.com/en-us/azure/postgresql/howto-manage-firewall-using-
cli
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-network-
security#ns-1-establish-network-segmentation-boundaries
4. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-network-
security#ns-6-deploy-web-application-firewall
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 275
4.3.8 Ensure 'Infrastructure double encryption' for PostgreSQL
Database Server is 'Enabled' (Automated)
Profile Applicability:
• Level 1
Description:
Azure Database for PostgreSQL servers should be created with 'infrastructure double
encryption' enabled.
Rationale:
If Double Encryption is enabled, another layer of encryption is implemented at the
hardware level before the storage or network level. Information will be encrypted before
it is even accessed, preventing both interception of data in motion if the network layer
encryption is broken and data at rest in system resources such as memory or processor
cache. Encryption will also be in place for any backups taken of the database, so the
key will secure access the data in all forms. For the most secure implementation of key
based encryption, it is recommended to use a Customer Managed asymmetric RSA
2048 Key in Azure Key Vault.
Impact:
The read and write speeds to the database will be impacted if both default encryption
and Infrastructure Encryption are checked, as a secondary form of encryption requires
more resource overhead for the cryptography of information. This cost is justified for
information security. Customer managed keys are recommended for the most secure
implementation, leading to overhead of key management. The key will also need to be
backed up in a secure location, as loss of the key will mean loss of the information in
the database.
Audit:
From Azure Portal
Page 276
az postgres server configuration show --name <servername> --resource-group
<resourcegroup> --query 'properties.infrastructureEncryption' -o tsv
2. Verify that Infrastructure encryption is enabled.
Remediation:
It is not possible to enable 'infrastructure double encryption' on an existing Azure
Database for PostgreSQL server.
The remediation steps detail the creation of a new Azure Database for PostgreSQL
server with 'infrastructure double encryption' enabled.
From Azure Portal
Default Value:
By Default, Double Encryption is disabled.
References:
1. https://docs.microsoft.com/en-us/azure/postgresql/howto-double-encryption
2. https://docs.microsoft.com/en-us/azure/postgresql/concepts-infrastructure-
double-encryption
3. https://docs.microsoft.com/en-us/azure/postgresql/concepts-data-encryption-
postgresql
4. https://docs.microsoft.com/en-us/azure/key-vault/keys/byok-specification
5. https://docs.microsoft.com/en-us/azure/postgresql/howto-double-encryption
6. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-data-
protection#dp-4-enable-data-at-rest-encryption-by-default
Page 277
Additional Information:
Flexible PostgreSQL Database Servers are still in preview. A recommendation will be
created for Flexible Servers once the service is out of preview.
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 278
4.4 MySQL Database
Page 279
4.4.1 Ensure 'Enforce SSL connection' is set to 'Enabled' for
Standard MySQL Database Server (Automated)
Profile Applicability:
• Level 1
Description:
Enable SSL connection on MYSQL Servers.
Rationale:
SSL connectivity helps to provide a new layer of security by connecting database server
to client applications using Secure Sockets Layer (SSL). Enforcing SSL connections
between database server and client applications helps protect against "man in the
middle" attacks by encrypting the data stream between the server and application.
Audit:
From Azure Portal
Page 280
Remediation:
From Azure Portal
Default Value:
Azure Database for MySQL when provisioned through the Azure portal or CLI will
require SSL connections by default.
References:
1. https://docs.microsoft.com/en-us/azure/mysql/single-server/concepts-ssl-
connection-security
2. https://docs.microsoft.com/en-us/azure/mysql/single-server/how-to-configure-ssl
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-data-
protection#dp-3-encrypt-sensitive-data-in-transit
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 281
4.4.2 Ensure 'TLS Version' is set to 'TLSV1.2' (or higher) for
MySQL flexible Database Server (Automated)
Profile Applicability:
• Level 1
Description:
Ensure TLS version on MySQL flexible servers is set to use TLS version 1.2 or higher.
Rationale:
TLS connectivity helps to provide a new layer of security by connecting database server
to client applications using Transport Layer Security (TLS). Enforcing TLS connections
between database server and client applications helps protect against "man in the
middle" attacks by encrypting the data stream between the server and application.
Audit:
From Azure Portal
Page 282
"allowedValues": "TLSv1,TLSv1.1,TLSv1.2",
"dataType": "Set",
"defaultValue": "TLSv1.2",
"description": "Which protocols the server permits for encrypted
connections. By default, TLS 1.2 is enforced",
"id":
"/subscriptions/<subscriptionId>/resourceGroups/<resourceGroupName>/providers
/Microsoft.DBforMySQL/flexibleServers/<serverName>/configurations/tls_version
",
"isConfigPendingRestart": "False",
"isDynamicConfig": "False",
"isReadOnly": "False",
"name": "tls_version",
"resourceGroup": "<resourceGroupName>",
"source": "system-default",
"systemData": null,
"type": "Microsoft.DBforMySQL/flexibleServers/configurations",
"value": "TLSv1.2"
Remediation:
From Azure Portal
Default Value:
By default, TLS is set to v1.2 for MySQL Flexible servers.
Page 283
References:
1. https://docs.microsoft.com/en-us/azure/mysql/concepts-ssl-connection-security
2. https://docs.microsoft.com/en-us/azure/mysql/howto-configure-ssl
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-data-
protection#dp-4-enable-data-at-rest-encryption-by-default
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 284
4.4.3 Ensure server parameter 'audit_log_enabled' is set to 'ON'
for MySQL Database Server (Manual)
Profile Applicability:
• Level 2
Description:
Enable audit_log_enabled on MySQL Servers.
Rationale:
Enabling audit_log_enabled helps MySQL Database to log items such as connection
attempts to the server, DDL/DML access, and more. Log data can be used to identify,
troubleshoot, and repair configuration errors and suboptimal performance.
Impact:
There are further costs incurred for storage of logs. For high traffic databases these logs
will be significant. Determine your organization's needs before enabling.
Audit:
From Azure Portal
Remediation:
From Azure Portal
It may take up to 10 minutes for the logs to appear in the configured destination.
Page 285
Default Value:
audit_log_enabled is set to OFF by default
References:
1. https://docs.microsoft.com/en-us/azure/mysql/single-server/how-to-configure-
audit-logs-portal
2. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-3-enable-logging-for-security-investigation
Additional Information:
There is also a CLI version: https://docs.microsoft.com/en-us/azure/mysql/single-
server/how-to-configure-audit-logs-cli
There are numerous settings and event types and it might be helpful to discuss which of
these may be appropriate to have a separate check item for.
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 286
4.4.4 Ensure server parameter 'audit_log_events' has
'CONNECTION' set for MySQL Database Server (Manual)
Profile Applicability:
• Level 2
Description:
Set audit_log_enabled to include CONNECTION on MySQL Servers.
Rationale:
Enabling CONNECTION helps MySQL Database to log items such as successful and
failed connection attempts to the server. Log data can be used to identify, troubleshoot,
and repair configuration errors and suboptimal performance.
Impact:
There are further costs incurred for storage of logs. For high traffic databases these logs
will be significant. Determine your organization's needs before enabling.
Audit:
From Azure Portal
Remediation:
From Azure Portal
Page 287
It may take up to 10 minutes for the logs to appear in the configured destination.
Default Value:
By default audit_log_events is disabled.
References:
1. https://docs.microsoft.com/en-us/azure/mysql/single-server/how-to-configure-
audit-logs-portal
2. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-3-enable-logging-for-security-investigation
Additional Information:
There is also a CLI version: https://docs.microsoft.com/en-us/azure/mysql/single-
server/how-to-configure-audit-logs-cli
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 288
4.5 Cosmos DB
Page 289
4.5.1 Ensure That 'Firewalls & Networks' Is Limited to Use
Selected Networks Instead of All Networks (Automated)
Profile Applicability:
• Level 2
Description:
Limiting your Cosmos DB to only communicate on whitelisted networks lowers its attack
footprint.
Rationale:
Selecting certain networks for your Cosmos DB to communicate restricts the number of
networks including the internet that can interact with what is stored within the database.
Impact:
Failure to whitelist the correct networks will result in a connection loss.
Audit:
From Azure Portal
Page 290
Remediation:
From Azure Portal
Default Value:
By default, Cosmos DBs are set to have access all networks.
References:
1. https://docs.microsoft.com/en-us/azure/cosmos-db/how-to-configure-private-
endpoints
2. https://docs.microsoft.com/en-us/azure/cosmos-db/how-to-configure-vnet-
service-endpoint
3. https://docs.microsoft.com/en-us/cli/azure/cosmosdb?view=azure-cli-latest#az-
cosmosdb-show
4. https://docs.microsoft.com/en-us/cli/azure/cosmosdb/database?view=azure-cli-
latest#az-cosmosdb-database-list
5. https://docs.microsoft.com/en-us/powershell/module/az.cosmosdb/?view=azps-
8.1.0
6. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-network-
security#ns-2-secure-cloud-native-services-with-network-controls
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 291
Controls
Control IG 1 IG 2 IG 3
Version
Page 292
4.5.2 Ensure That Private Endpoints Are Used Where Possible
(Automated)
Profile Applicability:
• Level 2
Description:
Private endpoints limit network traffic to approved sources.
Rationale:
For sensitive data, private endpoints allow granular control of which services can
communicate with Cosmos DB and ensure that this network traffic is private. You set
this up on a case by case basis for each service you wish to be connected.
Impact:
Only whitelisted services will have access to communicate with the Cosmos DB.
Audit:
From Azure Portal
Page 293
Remediation:
From Azure Portal
Default Value:
By default Cosmos DB does not have private endpoints enabled and its traffic is public
to the network.
References:
1. https://docs.microsoft.com/en-us/azure/cosmos-db/how-to-configure-private-
endpoints
2. https://docs.microsoft.com/en-us/azure/private-link/tutorial-private-endpoint-
cosmosdb-portal
3. https://docs.microsoft.com/en-us/cli/azure/cosmosdb/private-endpoint-
connection?view=azure-cli-latest
4. https://docs.microsoft.com/en-us/cli/azure/network/private-endpoint?view=azure-
cli-latest#az-network-private-endpoint-create
5. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-network-
security#ns-2-secure-cloud-native-services-with-network-controls
Page 294
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 295
4.5.3 Use Entra ID Client Authentication and Azure RBAC where
possible. (Manual)
Profile Applicability:
• Level 1
Description:
Cosmos DB can use tokens or Entra ID for client authentication which in turn will use
Azure RBAC for authorization. Using Entra ID is significantly more secure because
Entra ID handles the credentials and allows for MFA and centralized management, and
the Azure RBAC better integrated with the rest of Azure.
Rationale:
Entra ID client authentication is considerably more secure than token-based
authentication because the tokens must be persistent at the client. Entra ID does not
require this.
Audit:
From Powershell:
$cosmosdbname = "<your-cosmos-db-account-name>"
$resourcegroup = "<your-resource-group-name>"
az cosmosdb show --name $cosmosdbname --resource-group $resourcegroup |
ConvertFrom-Json
In the resulting output, disableLocalAuth should be true
Remediation:
Map all the resources that currently access to the Azure Cosmos DB account with keys
or access tokens.
Create an Entra ID identity for each of these resources:
• For Azure resources, you can create a managed identity. You may choose
between system-assigned and user-assigned managed identities.
• For non-Azure resources, create an Entra ID identity. Grant each Entra ID
identity the minimum permission it requires. When possible, we recommend you
use one of the 2 built-in role definitions: Cosmos DB Built-in Data Reader or
Cosmos DB Built-in Data Contributor. Validate that the new resource is
functioning correctly. After new permissions are granted to identities, it may take
a few hours until they propagate. When all resources are working correctly with
the new identities, continue to the next step.
Page 296
From Powershell:
$cosmosdbname = "<your-cosmos-db-account-name>"
$resourcegroup = "<your-resource-group-name>"
az cosmosdb show --name $cosmosdbname --resource-group $resourcegroup |
ConvertFrom-Json
az resource update --ids $cosmosdb.id --set properties.disableLocalAuth=true
--latest-include-preview
Default Value:
The default is to use tokens/keys for client authentication.
References:
1. https://learn.microsoft.com/en-us/azure/cosmos-db/role-based-access-control
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 297
5 Logging and Monitoring
This section covers security recommendations to follow for logging and monitoring
policies on an Azure Subscription.
Scoping: A necessary exercise for effective and efficient use of Logging and
Monitoring
For recommendations contained in this section, it is crucial that your organization
consider and settle on the scope of application for each recommendation individually.
The scope of application cannot be realistically written in a generic prescriptive way
within these recommendations, so a scoping exercise is strongly recommended. A
scoping exercise will help you determine which resources are "in scope" and will receive
partial or complete logging and monitoring treatment, and which resources are "out of
scope" and will not receive any logging and monitoring treatment.
Your objectives with the scoping exercise should be to:
1. Production Environment
2. Staging Environment
3. Testing Environment
4. Development Environment
While resources considered in the scope of a Production Environment might have a full
set of recommendations applied for logging and monitoring, other release environments
might have a limited set of recommendations applied for the sake of accountability. The
names of these environments and which resources are in the scope of each
environment will vary from one organization to another.
Page 298
5.1 Configuring Diagnostic Settings
Page 299
5.1.1 Ensure that a 'Diagnostic Setting' exists for Subscription
Activity Logs (Manual)
Profile Applicability:
• Level 1
Description:
Enable Diagnostic settings for exporting activity logs. Diagnostic settings are available
for each individual resource within a subscription. Settings should be configured for all
appropriate resources for your environment.
Rationale:
A diagnostic setting controls how a diagnostic log is exported. By default, logs are
retained only for 90 days. Diagnostic settings should be defined so that logs can be
exported and stored for a longer duration in order to analyze security activities within an
Azure subscription.
Audit:
From Azure Portal
To identify Diagnostic Settings on a subscription:
1. Go to Monitor
2. Click Activity Log
3. Click Export Activity Logs
4. Select a Subscription
5. Ensure a Diagnostic settings exists for the selected Subscription
From PowerShell
To identify Diagnostic Settings on a Subscription:
Get-AzDiagnosticSetting -SubscriptionId <subscription ID>
To identify Diagnostic Settings on a specific resource:
Page 300
Get-AzDiagnosticSetting -ResourceId <resource ID>
Remediation:
From Azure Portal
To enable Diagnostic Settings on a Subscription:
1. Go to Monitor
2. Click on Activity Log
3. Click on Export Activity Logs
4. Click + Add diagnostic setting
5. Enter a Diagnostic setting name
6. Select Categories for the diagnostic settings
7. Select the appropriate Destination details (this may be Log Analytics, Storage
Account, Event Hub, or Partner solution)
8. Click Save
1. Go to Monitor
2. Click Diagnostic settings
3. Click on the resource that has a diagnostics status of disabled
4. Select Add Diagnostic Setting
5. Enter a Diagnostic setting name
6. Select the appropriate log, metric, and destination. (this may be Log Analytics,
Storage Account, Event Hub, or Partner solution)
7. Click save
Page 301
az monitor diagnostic-settings create --subscription <subscription ID> --
resource <resource ID> --name <diagnostic settings name> <[--event-hub <event
hub ID> --event-hub-rule <event hub auth rule ID>] [--storage-account
<storage account ID>] [--workspace <log analytics workspace ID>] --logs
<resource specific JSON encoded log settings> --metrics <metric settings
(shorthand|json-file|yaml-file)>
Page 302
From PowerShell
To configure Diagnostic Settings on a subscription:
$logCategories = @();
$logCategories += New-AzDiagnosticSettingSubscriptionLogSettingsObject -
Category Administrative -Enabled $true
$logCategories += New-AzDiagnosticSettingSubscriptionLogSettingsObject -
Category Security -Enabled $true
$logCategories += New-AzDiagnosticSettingSubscriptionLogSettingsObject -
Category ServiceHealth -Enabled $true
$logCategories += New-AzDiagnosticSettingSubscriptionLogSettingsObject -
Category Alert -Enabled $true
$logCategories += New-AzDiagnosticSettingSubscriptionLogSettingsObject -
Category Recommendation -Enabled $true
$logCategories += New-AzDiagnosticSettingSubscriptionLogSettingsObject -
Category Policy -Enabled $true
$logCategories += New-AzDiagnosticSettingSubscriptionLogSettingsObject -
Category Autoscale -Enabled $true
$logCategories += New-AzDiagnosticSettingSubscriptionLogSettingsObject -
Category ResourceHealth -Enabled $true
Repeat command and variable assignment for each Log category specific to the
resource where this Diagnostic Setting will get configured.
$metricCategories = @()
$metricCategories += New-AzDiagnosticSettingMetricSettingsObject -Enabled
$true [-Category <resource specific metric category | AllMetrics>] [-
RetentionPolicyDay <Integer>] [-RetentionPolicyEnabled $true]
Repeat command and variable assignment for each Metric category or use the
'AllMetrics' category.
Default Value:
By default, diagnostic setting is not set.
Page 303
References:
1. https://docs.microsoft.com/en-us/azure/monitoring-and-diagnostics/monitoring-
overview-activity-logs#export-the-activity-log-with-a-log-profile
2. https://learn.microsoft.com/en-us/cli/azure/monitor/diagnostic-
settings?view=azure-cli-latest
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-3-enable-logging-for-security-investigation
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 304
5.1.2 Ensure Diagnostic Setting captures appropriate categories
(Automated)
Profile Applicability:
• Level 1
Description:
Prerequisite: A Diagnostic Setting must exist. If a Diagnostic Setting does not exist, the
navigation and options within this recommendation will not be available. Please review
the recommendation at the beginning of this subsection titled: "Ensure that a 'Diagnostic
Setting' exists."
The diagnostic setting should be configured to log the appropriate activities from the
control/management plane.
Rationale:
A diagnostic setting controls how the diagnostic log is exported. Capturing the
diagnostic setting categories for appropriate control/management plane activities allows
proper alerting.
Audit:
From Azure Portal
1. Go to Azure Monitor
2. Click Activity log
3. Click on Export Activity Logs
4. Select the appropriate Subscription
5. If there is no Diagnostic Settings listed, generate a finding.
6. Otherwise, click on Edit Settings
7. Ensure that the following categories are checked: Administrative, Alert,
Policy, and Security
Page 305
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
• Policy ID: 3b980d31-7904-4bb7-8575-5665739a8052 - Name: 'An activity log
alert should exist for specific Security operations'
• Policy ID: b954148f-4c11-4c38-8221-be76711e194a - Name: 'An activity log
alert should exist for specific Administrative operations'
• Policy ID: c5447c04-a4d7-4ba8-a263-c9ee321a6858 - Name: 'An activity log
alert should exist for specific Policy operations'
Remediation:
From Azure Portal
1. Go to Azure Monitor
2. Click Activity log
3. Click on Export Activity Logs
4. Select the Subscription from the drop down menu
5. Click on Add diagnostic setting
6. Enter a name for your new Diagnostic Setting
7. Check the following categories: Administrative, Alert, Policy, and Security
8. Choose the destination details according to your organization's needs.
From Az CLI
az monitor diagnostic-settings subscription create --subscription
<subscription id> --name <diagnostic settings name> --location <location> <[-
-event-hub <event hub ID> --event-hub-auth-rule <event hub auth rule ID>] [--
storage-account <storage account ID>] [--workspace <log analytics workspace
ID>] --logs
"[{category:Security,enabled:true},{category:Administrative,enabled:true},{ca
tegory:Alert,enabled:true},{category:Policy,enabled:true}]"
From PowerShell
Page 306
$logCategories = @();
$logCategories += New-AzDiagnosticSettingSubscriptionLogSettingsObject -
Category Administrative -Enabled $true
$logCategories += New-AzDiagnosticSettingSubscriptionLogSettingsObject -
Category Security -Enabled $true
$logCategories += New-AzDiagnosticSettingSubscriptionLogSettingsObject -
Category Alert -Enabled $true
$logCategories += New-AzDiagnosticSettingSubscriptionLogSettingsObject -
Category Policy -Enabled $true
Default Value:
When the diagnostic setting is created using Azure Portal, by default no categories are
selected.
References:
1. https://docs.microsoft.com/en-us/azure/azure-monitor/platform/diagnostic-
settings
2. https://docs.microsoft.com/en-us/azure/azure-monitor/samples/resource-
manager-diagnostic-settings
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-3-enable-logging-for-security-investigation
4. https://learn.microsoft.com/en-us/cli/azure/monitor/diagnostic-
settings?view=azure-cli-latest
5. https://learn.microsoft.com/en-us/powershell/module/az.monitor/new-
azsubscriptiondiagnosticsetting?view=azps-9.2.0
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 307
5.1.3 Ensure the storage account containing the container with
activity logs is encrypted with Customer Managed Key (CMK)
(Automated)
Profile Applicability:
• Level 2
Description:
Storage accounts with the activity log exports can be configured to use Customer
Managed Keys (CMK).
Rationale:
Configuring the storage account with the activity log export container to use CMKs
provides additional confidentiality controls on log data, as a given user must have read
permission on the corresponding storage account and must be granted decrypt
permission by the CMK.
Impact:
NOTE: You must have your key vault setup to utilize this. All Audit Logs will be
encrypted with a key you provide. You will need to set up customer managed keys
separately, and you will select which key to use via the instructions here. You will be
responsible for the lifecycle of the keys, and will need to manually replace them at your
own determined intervals to keep the data secure.
Audit:
From Azure Portal
1. Go to Activity log
2. Select Export
3. Select Subscription
4. In section Storage Account, note the name of the Storage account
5. Close the Export Audit Logs blade. Close the Monitor - Activity Log blade.
6. In right column, Click service Storage Accounts to access Storage account blade
7. Click on the storage account name noted in step 4. This will open blade specific
to that storage account
8. Under Security + networking, click Encryption.
9. Ensure Customer-managed keys is selected and Key URI is set.
Page 308
2. Ensure the storage account is encrypted with CMK:
From PowerShell
Get-AzStorageAccount -ResourceGroupName <resource group name> -Name <storage
account name>|select-object -ExpandProperty encryption|format-list
Ensure the value of KeyVaultProperties is not null or empty, and ensure KeySource is
not set to Microsoft.Storage.
Remediation:
From Azure Portal
Page 309
Default Value:
By default, for a storage account keySource is set to Microsoft.Storage allowing
encryption with vendor Managed key and not a Customer Managed Key.
References:
1. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-data-
protection#dp-5-use-customer-managed-key-option-in-data-at-rest-encryption-
when-required
2. https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/activity-
log?tabs=cli#managing-legacy-log-profiles
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 310
5.1.4 Ensure that logging for Azure Key Vault is 'Enabled'
(Automated)
Profile Applicability:
• Level 1
Description:
Enable AuditEvent logging for key vault instances to ensure interactions with key vaults
are logged and available.
Rationale:
Monitoring how and when key vaults are accessed, and by whom, enables an audit trail
of interactions with confidential information, keys, and certificates managed by Azure
Key Vault. Enabling logging for Key Vault saves information in a user provided
destination of either an Azure storage account or Log Analytics workspace. The same
destination can be used for collecting logs for multiple Key Vaults.
Audit:
From Azure Portal
1. Go to Key vaults.
2. For each Key vault.
3. Go to Diagnostic settings.
4. Click Edit setting.
5. Ensure that a destination is configured.
6. Under Category groups, ensure that audit and allLogs are checked.
Page 311
"logs": [
{
"categoryGroup": "audit",
"enabled": true,
},
{
"categoryGroup": "allLogs",
"enabled": true,
}
From PowerShell
List the key vault(s) in the subscription
Get-AzKeyVault
For each key vault, run the following:
Get-AzDiagnosticSetting -ResourceId <key_vault_id>
Ensure that StorageAccountId, ServiceBusRuleId, MarketplacePartnerId, or
WorkspaceId is set as appropriate. Also, ensure that enabled is set to true, and that
categoryGroup reflects both audit and allLogs category groups.
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal
1. Go to Key vaults.
2. Select a Key vault.
3. Select Diagnostic settings.
4. Click Edit setting to update an existing diagnostic setting, or Add diagnostic
setting to create a new one.
5. If creating a new diagnostic setting, provide a name.
6. Configure an appropriate destination.
7. Under Category groups, check audit and allLogs.
8. Click Save.
Page 312
az monitor diagnostic-settings update --name "<diagnostic_setting_name>" --
resource <key_vault_id>
To create a new Diagnostic Settings
az monitor diagnostic-settings create --name "<diagnostic_setting_name>" --
resource <key_vault_id> --logs
"[{category:audit,enabled:true},{category:allLogs,enabled:true}]" --metrics
"[{category:AllMetrics,enabled:true}]" <[--event-hub <event_hub_ID> --event-
hub-rule <event_hub_auth_rule_ID> | --storage-account <storage_account_ID> |-
-workspace <log_analytics_workspace_ID> | --marketplace-partner-id
<solution_resource_ID>]>
Page 313
From PowerShell
Create the Log settings object
$logSettings = @()
$logSettings += New-AzDiagnosticSettingLogSettingsObject -Enabled $true -
Category audit
$logSettings += New-AzDiagnosticSettingLogSettingsObject -Enabled $true -
Category allLogs
Create the Metric settings object
$metricSettings = @()
$metricSettings += New-AzDiagnosticSettingMetricSettingsObject -Enabled $true
-Category AllMetrics
Create the Diagnostic Settings for each Key Vault
New-AzDiagnosticSetting -Name "<diagnostic_setting_name>" -ResourceId
<key_vault_id> -Log $logSettings -Metric $metricSettings [-StorageAccountId
<storage_account_ID> | -EventHubName <event_hub_name> -
EventHubAuthorizationRuleId <event_hub_auth_rule_ID> | -WorkSpaceId <log
analytics workspace ID> | -MarketPlacePartnerId <full resource ID for third-
party solution>]
Default Value:
By default, Diagnostic AuditEvent logging is not enabled for Key Vault instances.
References:
1. https://docs.microsoft.com/en-us/azure/key-vault/general/howto-logging
2. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-data-
protection#dp-8-ensure-security-of-key-and-certificate-repository
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-3-enable-logging-for-security-investigation
Additional Information:
DEPRECATION WARNING
Retention rules for Key Vault logging is being migrated to Azure Storage Lifecycle
Management. Retention rules should be set based on the needs of your organization
and security or compliance frameworks. Please visit https://learn.microsoft.com/en-
us/azure/azure-monitor/essentials/migrate-to-azure-storage-lifecycle-policy?tabs=portal
for detail on migrating your retention rules.
Microsoft has provided the following deprecation timeline:
March 31, 2023 – The Diagnostic Settings Storage Retention feature will no longer be
available to configure new retention rules for log data. This includes using the portal,
CLI PowerShell, and ARM and Bicep templates. If you have configured retention
settings, you'll still be able to see and change them in the portal.
Page 314
March 31, 2024 – You will no longer be able to use the API (CLI, Powershell, or
templates), or Azure portal to configure retention setting unless you're changing them to
0. Existing retention rules will still be respected.
September 30, 2025 – All retention functionality for the Diagnostic Settings Storage
Retention feature will be disabled across all environments.
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 315
5.1.5 Ensure that Network Security Group Flow logs are captured
and sent to Log Analytics (Manual)
Profile Applicability:
• Level 2
Description:
Ensure that network flow logs are captured and fed into a central log analytics
workspace.
Rationale:
Network Flow Logs provide valuable insight into the flow of traffic around your network
and feed into both Azure Monitor and Azure Sentinel (if in use), permitting the
generation of visual flow diagrams to aid with analyzing for lateral movement, etc.
Impact:
The impact of configuring NSG Flow logs is primarily one of cost and configuration. If
deployed, it will create storage accounts that hold minimal amounts of data on a 5-day
lifecycle before feeding to Log Analytics Workspace. This will increase the amount of
data stored and used by Azure Monitor.
Audit:
From Azure Portal
Page 316
Remediation:
From Azure Portal
Warning
The remediation policy creates remediation deployment and names them by
concatenating the subscription name and the resource group name. The MAXIMUM
permitted length of a deployment name is 64 characters. Exceeding this will cause the
remediation task to fail.
Default Value:
By default Network Security Group logs are not sent to Log Analytics.
References:
1. https://docs.microsoft.com/en-us/azure/network-watcher/network-watcher-nsg-
flow-logging-portal
2. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-4-enable-network-logging-for-security-investigation
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 317
Controls
Control IG 1 IG 2 IG 3
Version
Page 318
5.1.6 Ensure that logging for Azure AppService 'HTTP logs' is
enabled (Manual)
Profile Applicability:
• Level 2
Description:
Enable AppServiceHTTPLogs diagnostic log category for Azure App Service instances
to ensure all http requests are captured and centrally logged.
Rationale:
Capturing web requests can be important supporting information for security analysts
performing monitoring and incident response activities. Once logging, these logs can be
ingested into SIEM or other central aggregation point for the organization.
Impact:
Log consumption and processing will incur additional cost.
Audit:
From Azure Portal
1. Go to App Services
2. Go to Diagnostic Settings
3. Ensure that 'HTTP logs' is configured to log to a destination aligned to your
environments approach to log consumption (event hub, storage account, etc.
dependent on what is consuming the logs such as SIEM or other log aggregation
utility).
Remediation:
From Azure Portal
1. Go to App Services
2. Go to Diagnostic Settings
3. Click Add Diagnostic Setting
4. Check the checkbox next to 'HTTP logs'
Page 319
5. Configure a destination based on your specific logging consumption capability
(for example Stream to an event hub and then consuming with SIEM integration
for Event Hub logging).
Default Value:
Not configured.
References:
1. https://docs.microsoft.com/en-us/azure/app-service/troubleshoot-diagnostic-logs
2. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-3-enable-logging-for-security-investigation
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 320
5.2 Monitoring using Activity Log Alerts
• Metric Alerts
• Log Alerts
• Activity Log Alerts
• Smart Detection Alerts
All Azure services (Microsoft provided or otherwise) that can generate alerts are
assigned a "Resource provider namespace" when they are registered in an Azure
tenant. The recommendations in this section are in no way exhaustive of the plethora of
available "Providers" or "Resource Types." The Resource Providers that are registered
in your Azure Tenant can be located in your Subscription. Each registered Provider in
your environment may have available "Conditions" to raise alerts via Activity Log Alerts.
These providers should be considered for inclusion in Activity Log Alert rules of your
own making.
To view the registered resource providers in your Subscription(s), use this guide:
• https://docs.microsoft.com/en-us/azure/azure-resource-
manager/management/resource-providers-and-types
If you wish to create custom alerting rules for Activity Log Alerts or other alert types,
please refer to Microsoft documentation:
• https://docs.microsoft.com/en-us/azure/azure-monitor/alerts/alerts-create-new-
alert-rule
Page 321
5.2.1 Ensure that Activity Log Alert exists for Create Policy
Assignment (Automated)
Profile Applicability:
• Level 1
Description:
Create an activity log alert for the Create Policy Assignment event.
Rationale:
Monitoring for create policy assignment events gives insight into changes done in
"Azure policy - assignments" and can reduce the time it takes to detect unsolicited
changes.
Audit:
From Azure Portal
Page 322
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal
Page 323
From PowerShell
Create the conditions object.
$conditions = @()
$conditions += New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject -
Equal Administrative -Field category
$conditions += New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject -
Equal Microsoft.Authorization/policyAssignments/write -Field operationName
$conditions += New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject -
Equal Verbose -Field level
Get the Action Group information and store it in a variable, then create a new Action
object.
$actionGroup = Get-AzActionGroup -ResourceGroupName <resource group name> -
Name <action group name>
$actionObject = New-AzActivityLogAlertActionGroupObject -Id $actionGroup.Id
Create the Scope variable.
$scope = "/subscriptions/<subscription ID>"
Create the Activity Log Alert Rule for
Microsoft.Authorization/policyAssignments/write
Default Value:
By default, no monitoring alerts are created.
References:
1. https://azure.microsoft.com/en-us/updates/classic-alerting-monitoring-retirement
2. https://docs.microsoft.com/en-in/azure/azure-monitor/platform/alerts-activity-log
3. https://docs.microsoft.com/en-in/rest/api/monitor/activitylogalerts/createorupdate
4. https://docs.microsoft.com/en-
in/rest/api/monitor/activitylogalerts/listbysubscriptionid
5. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-3-enable-logging-for-security-investigation
6. https://docs.microsoft.com/en-in/rest/api/policy/policy-assignments
7. https://docs.microsoft.com/en-us/azure/azure-monitor/alerts/alerts-log
Page 324
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 325
5.2.2 Ensure that Activity Log Alert exists for Delete Policy
Assignment (Automated)
Profile Applicability:
• Level 1
Description:
Create an activity log alert for the Delete Policy Assignment event.
Rationale:
Monitoring for delete policy assignment events gives insight into changes done in "azure
policy - assignments" and can reduce the time it takes to detect unsolicited changes.
Audit:
From Azure Portal
Page 326
• Policy ID: c5447c04-a4d7-4ba8-a263-c9ee321a6858 - Name: 'An activity log
alert should exist for specific Policy operations'
Remediation:
From Azure Portal
Page 327
$actionGroup = Get-AzActionGroup -ResourceGroupName <resource group name> -
Name <action group name>
$actionObject = New-AzActivityLogAlertActionGroupObject -Id $actionGroup.Id
Create the Scope variable.
$scope = "/subscriptions/<subscription id>"
Default Value:
By default, no monitoring alerts are created.
References:
1. https://docs.microsoft.com/en-in/azure/azure-monitor/platform/alerts-activity-log
2. https://docs.microsoft.com/en-in/rest/api/monitor/activitylogalerts/createorupdate
3. https://docs.microsoft.com/en-
in/rest/api/monitor/activitylogalerts/listbysubscriptionid
4. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-3-enable-logging-for-security-investigation
5. https://azure.microsoft.com/en-us/services/blueprints/
Additional Information:
This log alert also applies for Azure Blueprints.
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 328
5.2.3 Ensure that Activity Log Alert exists for Create or Update
Network Security Group (Automated)
Profile Applicability:
• Level 1
Description:
Create an Activity Log Alert for the Create or Update Network Security Group event.
Rationale:
Monitoring for Create or Update Network Security Group events gives insight into
network access changes and may reduce the time it takes to detect suspicious activity.
Audit:
From Azure Portal
Page 329
• Policy ID: b954148f-4c11-4c38-8221-be76711e194a - Name: 'An activity log
alert should exist for specific Administrative operations'
Remediation:
From Azure Portal
Page 330
$actionGroup = Get-AzActionGroup -ResourceGroupName <resource group name> -
Name <action group name>
$actionObject = New-AzActivityLogAlertActionGroupObject -Id $actionGroup.Id
Create the Scope object
$scope = "/subscriptions/<subscription id>"
Default Value:
By default, no monitoring alerts are created.
References:
1. https://azure.microsoft.com/en-us/updates/classic-alerting-monitoring-retirement
2. https://docs.microsoft.com/en-in/azure/azure-monitor/platform/alerts-activity-log
3. https://docs.microsoft.com/en-in/rest/api/monitor/activitylogalerts/createorupdate
4. https://docs.microsoft.com/en-
in/rest/api/monitor/activitylogalerts/listbysubscriptionid
5. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-3-enable-logging-for-security-investigation
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 331
5.2.4 Ensure that Activity Log Alert exists for Delete Network
Security Group (Automated)
Profile Applicability:
• Level 1
Description:
Create an activity log alert for the Delete Network Security Group event.
Rationale:
Monitoring for "Delete Network Security Group" events gives insight into network access
changes and may reduce the time it takes to detect suspicious activity.
Audit:
From Azure Portal
Page 332
• Policy ID: b954148f-4c11-4c38-8221-be76711e194a - Name: 'An activity log
alert should exist for specific Administrative operations'
Remediation:
From Azure Portal
Page 333
$actionGroup = Get-AzActionGroup -ResourceGroupName <resource group name> -
Name <action group name>
$actionObject = New-AzActivityLogAlertActionGroupObject -Id $actionGroup.Id
Create the Scope object
$scope = "/subscriptions/<subscription id>"
Default Value:
By default, no monitoring alerts are created.
References:
1. https://azure.microsoft.com/en-us/updates/classic-alerting-monitoring-retirement
2. https://docs.microsoft.com/en-in/azure/azure-monitor/platform/alerts-activity-log
3. https://docs.microsoft.com/en-in/rest/api/monitor/activitylogalerts/createorupdate
4. https://docs.microsoft.com/en-
in/rest/api/monitor/activitylogalerts/listbysubscriptionid
5. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-3-enable-logging-for-security-investigation
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 334
5.2.5 Ensure that Activity Log Alert exists for Create or Update
Security Solution (Automated)
Profile Applicability:
• Level 1
Description:
Create an activity log alert for the Create or Update Security Solution event.
Rationale:
Monitoring for Create or Update Security Solution events gives insight into changes to
the active security solutions and may reduce the time it takes to detect suspicious
activity.
Audit:
From Azure Portal
Page 335
• Policy ID: b954148f-4c11-4c38-8221-be76711e194a - Name: 'An activity log
alert should exist for specific Administrative operations'
Remediation:
From Azure Portal
Page 336
$actionGroup = Get-AzActionGroup -ResourceGroupName <resource group name> -
Name <action group name>
$actionObject = New-AzActivityLogAlertActionGroupObject -Id $actionGroup.Id
Create the Scope object
$scope = "/subscriptions/<subscription ID>"
Default Value:
By default, no monitoring alerts are created.
References:
1. https://azure.microsoft.com/en-us/updates/classic-alerting-monitoring-retirement
2. https://docs.microsoft.com/en-in/azure/azure-monitor/platform/alerts-activity-log
3. https://docs.microsoft.com/en-in/rest/api/monitor/activitylogalerts/createorupdate
4. https://docs.microsoft.com/en-
in/rest/api/monitor/activitylogalerts/listbysubscriptionid
5. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-3-enable-logging-for-security-investigation
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 337
5.2.6 Ensure that Activity Log Alert exists for Delete Security
Solution (Automated)
Profile Applicability:
• Level 1
Description:
Create an activity log alert for the Delete Security Solution event.
Rationale:
Monitoring for Delete Security Solution events gives insight into changes to the active
security solutions and may reduce the time it takes to detect suspicious activity.
Audit:
From Azure Console
Page 338
• Policy ID: b954148f-4c11-4c38-8221-be76711e194a - Name: 'An activity log
alert should exist for specific Administrative operations'
Remediation:
From Azure Console
Page 339
$actionGroup = Get-AzActionGroup -ResourceGroupName <resource group name> -
Name <action group name>
$actionObject = New-AzActivityLogAlertActionGroupObject -Id $actionGroup.Id
Create the Scope object
$scope = "/subscriptions/<subscription ID>"
Default Value:
By default, no monitoring alerts are created.
References:
1. https://azure.microsoft.com/en-us/updates/classic-alerting-monitoring-retirement
2. https://docs.microsoft.com/en-in/azure/azure-monitor/platform/alerts-activity-log
3. https://docs.microsoft.com/en-in/rest/api/monitor/activitylogalerts/createorupdate
4. https://docs.microsoft.com/en-
in/rest/api/monitor/activitylogalerts/listbysubscriptionid
5. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-3-enable-logging-for-security-investigation
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 340
5.2.7 Ensure that Activity Log Alert exists for Create or Update
SQL Server Firewall Rule (Automated)
Profile Applicability:
• Level 1
Description:
Create an activity log alert for the Create or Update SQL Server Firewall Rule event.
Rationale:
Monitoring for Create or Update SQL Server Firewall Rule events gives insight into
network access changes and may reduce the time it takes to detect suspicious activity.
Impact:
There will be a substantial increase in log size if there are a large number of
administrative actions on a server.
Audit:
From Azure Portal
Page 341
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal
Page 342
From PowerShell
Create the Conditions object.
$conditions = @()
$conditions += New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject -
Equal Administrative -Field category
$conditions += New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject -
Equal Microsoft.Sql/servers/firewallRules/write -Field operationName
$conditions += New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject -
Equal Verbose -Field level
Retrieve the Action Group information and store in a variable, then create the Actions
object.
$actionGroup = Get-AzActionGroup -ResourceGroupName <resource group name> -
Name <action group name>
$actionObject = New-AzActivityLogAlertActionGroupObject -Id $actionGroup.Id
Create the Scope object
$scope = "/subscriptions/<subscription ID>"
Create the Activity Log Alert Rule for Microsoft.Sql/servers/firewallRules/write
New-AzActivityLogAlert -Name "<activity log alert rule name>" -
ResourceGroupName "<resource group name>" -Condition $conditions -Scope
$scope -Location global -Action $actionObject -Subscription <subscription ID>
-Enabled $true
Default Value:
By default, no monitoring alerts are created or active.
References:
1. https://azure.microsoft.com/en-us/updates/classic-alerting-monitoring-retirement
2. https://docs.microsoft.com/en-in/azure/azure-monitor/platform/alerts-activity-log
3. https://docs.microsoft.com/en-in/rest/api/monitor/activitylogalerts/createorupdate
4. https://docs.microsoft.com/en-
in/rest/api/monitor/activitylogalerts/listbysubscriptionid
5. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-3-enable-logging-for-security-investigation
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 343
Controls
Control IG 1 IG 2 IG 3
Version
Page 344
5.2.8 Ensure that Activity Log Alert exists for Delete SQL Server
Firewall Rule (Automated)
Profile Applicability:
• Level 1
Description:
Create an activity log alert for the "Delete SQL Server Firewall Rule."
Rationale:
Monitoring for Delete SQL Server Firewall Rule events gives insight into SQL network
access changes and may reduce the time it takes to detect suspicious activity.
Impact:
There will be a substantial increase in log size if there are a large number of
administrative actions on a server.
Audit:
From Azure Portal
Page 345
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal
Page 346
From PowerShell
Create the Conditions object.
$conditions = @()
$conditions += New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject -
Equal Administrative -Field category
$conditions += New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject -
Equal Microsoft.Sql/servers/firewallRules/delete -Field operationName
$conditions += New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject -
Equal Verbose -Field level
Retrieve the Action Group information and store in a variable, then create the Actions
object.
$actionGroup = Get-AzActionGroup -ResourceGroupName <resource group name> -
Name <action group name>
$actionObject = New-AzActivityLogAlertActionGroupObject -Id $actionGroup.Id
Create the Scope object
$scope = "/subscriptions/<subscription ID>"
Create the Activity Log Alert Rule for
Microsoft.Sql/servers/firewallRules/delete
Default Value:
By default, no monitoring alerts are created or active.
References:
1. https://azure.microsoft.com/en-us/updates/classic-alerting-monitoring-retirement
2. https://docs.microsoft.com/en-in/azure/azure-monitor/platform/alerts-activity-log
3. https://docs.microsoft.com/en-in/rest/api/monitor/activitylogalerts/createorupdate
4. https://docs.microsoft.com/en-
in/rest/api/monitor/activitylogalerts/listbysubscriptionid
5. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-3-enable-logging-for-security-investigation
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 347
Controls
Control IG 1 IG 2 IG 3
Version
Page 348
5.2.9 Ensure that Activity Log Alert exists for Create or Update
Public IP Address rule (Automated)
Profile Applicability:
• Level 1
Description:
Create an activity log alert for the Create or Update Public IP Addresses rule.
Rationale:
Monitoring for Create or Update Public IP Address events gives insight into network
access changes and may reduce the time it takes to detect suspicious activity.
Impact:
There will be a substantial increase in log size if there are a large number of
administrative actions on a server.
Audit:
From Azure Portal
Page 349
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal
Page 350
From PowerShell
Create the Conditions object.
$conditions = @()
$conditions += New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject -
Equal Administrative -Field category
$conditions += New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject -
Equal Microsoft.Network/publicIPAddresses/write -Field operationName
$conditions += New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject -
Equal Verbose -Field level
Retrieve the Action Group information and store in a variable, then create the Actions
object.
$actionGroup = Get-AzActionGroup -ResourceGroupName <resource group name> -
Name <action group name>
$actionObject = New-AzActivityLogAlertActionGroupObject -Id $actionGroup.Id
Create the Scope object
$scope = "/subscriptions/<subscription ID>"
Create the Activity Log Alert Rule for Microsoft.Network/publicIPAddresses/write
New-AzActivityLogAlert -Name "<activity log alert rule name>" -
ResourceGroupName "<resource group name>" -Condition $conditions -Scope
$scope -Location global -Action $actionObject -Subscription <subscription ID>
-Enabled $true
Default Value:
By default, no monitoring alerts are created or active.
References:
1. https://azure.microsoft.com/en-us/updates/classic-alerting-monitoring-retirement
2. https://docs.microsoft.com/en-in/azure/azure-monitor/platform/alerts-activity-log
3. https://docs.microsoft.com/en-in/rest/api/monitor/activitylogalerts/createorupdate
4. https://docs.microsoft.com/en-
in/rest/api/monitor/activitylogalerts/listbysubscriptionid
5. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-3-enable-logging-for-security-investigation
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 351
Controls
Control IG 1 IG 2 IG 3
Version
Page 352
5.2.10 Ensure that Activity Log Alert exists for Delete Public IP
Address rule (Automated)
Profile Applicability:
• Level 1
Description:
Create an activity log alert for the Delete Public IP Address rule.
Rationale:
Monitoring for Delete Public IP Address events gives insight into network access
changes and may reduce the time it takes to detect suspicious activity.
Impact:
There will be a substantial increase in log size if there are a large number of
administrative actions on a server.
Audit:
From Azure Portal
Page 353
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal
Page 354
From PowerShell
Create the Conditions object.
$conditions = @()
$conditions += New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject -
Equal Administrative -Field category
$conditions += New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject -
Equal Microsoft.Network/publicIPAddresses/delete -Field operationName
$conditions += New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject -
Equal Verbose -Field level
Retrieve the Action Group information and store in a variable, then create the Actions
object.
$actionGroup = Get-AzActionGroup -ResourceGroupName <resource group name> -
Name <action group name>
$actionObject = New-AzActivityLogAlertActionGroupObject -Id $actionGroup.Id
Create the Scope object
$scope = "/subscriptions/<subscription ID>"
Create the Activity Log Alert Rule for
Microsoft.Network/publicIPAddresses/delete
Default Value:
By default, no monitoring alerts are created or active.
References:
1. https://azure.microsoft.com/en-us/updates/classic-alerting-monitoring-retirement
2. https://docs.microsoft.com/en-in/azure/azure-monitor/platform/alerts-activity-log
3. https://docs.microsoft.com/en-in/rest/api/monitor/activitylogalerts/createorupdate
4. https://docs.microsoft.com/en-
in/rest/api/monitor/activitylogalerts/listbysubscriptionid
5. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-3-enable-logging-for-security-investigation
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 355
Controls
Control IG 1 IG 2 IG 3
Version
Page 356
5.3 Configuring Application Insights
Page 357
5.3.1 Ensure Application Insights are Configured (Automated)
Profile Applicability:
• Level 2
Description:
Application Insights within Azure act as an Application Performance Monitoring solution
providing valuable data into how well an application performs and additional information
when performing incident response. The types of log data collected include application
metrics, telemetry data, and application trace logging data providing organizations with
detailed information about application activity and application transactions. Both data
sets help organizations adopt a proactive and retroactive means to handle security and
performance related metrics within their modern applications.
Rationale:
Configuring Application Insights provides additional data not found elsewhere within
Azure as part of a much larger logging and monitoring program within an organization's
Information Security practice. The types and contents of these logs will act as both a
potential cost saving measure (application performance) and a means to potentially
confirm the source of a potential incident (trace logging). Metrics and Telemetry data
provide organizations with a proactive approach to cost savings by monitoring an
application's performance, while the trace logging data provides necessary details in a
reactive incident response scenario by helping organizations identify the potential
source of an incident within their application.
Impact:
Because Application Insights relies on a Log Analytics Workspace, an organization will
incur additional expenses when using this service.
Audit:
From Azure Portal
Page 358
az extension add --name application-insights
az monitor app-insights component show --query "[].{ID:appId, Name:name,
Tenant:tenantId, Location:location, Provisioning_State:provisioningState}"
Ensure the above command produces output, otherwise Application Insights has not
been configured.
From PowerShell
Get-AzApplicationInsights|select
location,name,appid,provisioningState,tenantid
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal
Page 359
New-AzApplicationInsights -Kind "web" -ResourceGroupName <resource group
name> -Name <app insights name> -location <location> -RetentionInDays <INT
days to retain logs> -SubscriptionID <subscription ID> -WorkspaceResourceId
<log analytics workspace ID>
Default Value:
Application Insights are not enabled by default.
References:
1. https://learn.microsoft.com/en-us/azure/azure-monitor/app/app-insights-overview
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 360
5.4 Ensure that Azure Monitor Resource Logging is Enabled for
All Services that Support it (Manual)
Profile Applicability:
• Level 1
Description:
Resource Logs capture activity to the data access plane while the Activity log is a
subscription-level log for the control plane. Resource-level diagnostic logs provide
insight into operations that were performed within that resource itself; for example,
reading or updating a secret from a Key Vault. Currently, 95 Azure resources support
Azure Monitoring (See the more information section for a complete list), including
Network Security Groups, Load Balancers, Key Vault, AD, Logic Apps, and CosmosDB.
The content of these logs varies by resource type.
A number of back-end services were not configured to log and store Resource Logs for
certain activities or for a sufficient length. It is crucial that monitoring is correctly
configured to log all relevant activities and retain those logs for a sufficient length of
time. Given that the mean time to detection in an enterprise is 240 days, a minimum
retention period of two years is recommended.
Rationale:
A lack of monitoring reduces the visibility into the data plane, and therefore an
organization's ability to detect reconnaissance, authorization attempts or other malicious
activity. Unlike Activity Logs, Resource Logs are not enabled by default. Specifically,
without monitoring it would be impossible to tell which entities had accessed a data
store that was breached. In addition, alerts for failed attempts to access APIs for Web
Services or Databases are only possible when logging is enabled.
Impact:
Costs for monitoring varies with Log Volume. Not every resource needs to have logging
enabled. It is important to determine the security classification of the data being
processed by the given resource and adjust the logging based on which events need to
be tracked. This is typically determined by governance and compliance requirements.
Audit:
From Azure Portal
The specific steps for configuring resources within the Azure
console vary depending on resource, but typically the steps are:
1. Go to the resource
2. Click on Diagnostic settings
3. In the blade that appears, click "Add diagnostic setting"
Page 361
4. Configure the diagnostic settings
5. Click on Save
Page 362
• Policy ID: b4330a05-a843-4bc8-bf9a-cacce50c67f4 - Name: 'Resource logs in
Search services should be enabled'
• Policy ID: f8d36e2f-389b-4ee4-898d-21aeb69a0f45 - Name: 'Resource logs in
Service Bus should be enabled'
• Policy ID: f9be5368-9bf5-4b84-9e0a-7850da98bb46 - Name: 'Resource logs in
Azure Stream Analytics should be enabled'
Remediation:
Azure Subscriptions should log every access and operation for all resources.
Logs should be sent to Storage and a Log Analytics Workspace or equivalent third-party
system. Logs should be kept in readily-accessible storage for a minimum of one year,
and then moved to inexpensive cold storage for a duration of time as necessary. If
retention policies are set but storing logs in a Storage Account is disabled (for example,
if only Event Hubs or Log Analytics options are selected), the retention policies have no
effect. Enable all monitoring at first, and then be more aggressive moving data to cold
storage if the volume of data becomes a cost concern.
From Azure Portal
The specific steps for configuring resources within the Azure console vary depending on
resource, but typically the steps are:
1. Go to the resource
2. Click on Diagnostic settings
3. In the blade that appears, click "Add diagnostic setting"
4. Configure the diagnostic settings
5. Click on Save
Page 363
$metricSettings = @()
$metricSettings += New-AzDiagnosticSettingMetricSettingsObject -Enabled $true
-RetentionPolicyDay 180 -RetentionPolicyEnabled $true -Category AllMetrics
Create the diagnostic setting for a specific resource
New-AzDiagnosticSetting -Name "<diagnostic settings name>" -ResourceId
<resource ID> -Log $logSettings -Metric $metricSettings
Default Value:
By default, Azure Monitor Resource Logs are 'Disabled' for all resources.
References:
1. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-3-enable-logging-for-security-investigation
2. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-5-centralize-security-log-management-and-analysis
3. https://docs.microsoft.com/en-us/azure/azure-monitor/essentials/monitor-azure-
resource
4. Supported Log Categories: https://docs.microsoft.com/en-us/azure/azure-
monitor/essentials/resource-logs-categories
5. Logs and Audit - Fundamentals: https://docs.microsoft.com/en-
us/azure/security/fundamentals/log-audit
6. Collecting Logs: https://docs.microsoft.com/en-us/azure/azure-
monitor/platform/collect-activity-logs
7. Key Vault Logging: https://docs.microsoft.com/en-us/azure/key-vault/key-vault-
logging
8. Monitor Diagnostic Settings: https://docs.microsoft.com/en-
us/cli/azure/monitor/diagnostic-settings?view=azure-cli-latest
9. Overview of Diagnostic Logs: https://docs.microsoft.com/en-us/azure/azure-
monitor/platform/diagnostic-logs-overview
10. Supported Services for Diagnostic Logs: https://docs.microsoft.com/en-
us/azure/azure-monitor/platform/diagnostic-logs-schema
11. Diagnostic Logs for CDNs: https://docs.microsoft.com/en-us/azure/cdn/cdn-
azure-diagnostic-logs
Additional Information:
Note: The CIS Benchmark covers some specific Diagnostic Logs separately.
Section 3 - Storage Accounts: Ensure Storage Logging is Enabled for Queue
Service for 'Read', 'Write', and 'Delete' requests
Section 6 - Network: Ensure that Network Security Group Flow Log retention
period is 'greater than 90 days'
For an up-to-date list of Azure resources which support Azure Monitor, refer to the
"Supported Log Categories" reference.
Page 364
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 365
5.5 Ensure that SKU Basic/Consumption is not used on artifacts
that need to be monitored (Particularly for Production Workloads)
(Manual)
Profile Applicability:
• Level 2
Description:
The use of Basic or Free SKUs in Azure whilst cost effective have significant limitations
in terms of what can be monitored and what support can be realized from Microsoft.
Typically, these SKU’s do not have a service SLA and Microsoft may refuse to provide
support for them. Consequently Basic/Free SKUs should never be used for production
workloads.
Rationale:
Typically, production workloads need to be monitored and should have an SLA with
Microsoft, using Basic SKUs for any deployed product will mean that that these
capabilities do not exist.
The following resource types should use standard SKUs as a minimum.
• Public IP Addresses
• Network Load Balancers
• REDIS Cache
• SQL PaaS Databases
• VPN Gateways
Impact:
The impact of enforcing Standard SKU's is twofold
Page 366
From Azure Portal
Resources
| where sku contains 'Basic' or sku contains 'consumption'
| order by type
4. Click Run query then evaluate the results in the results window.
From PowerShell
Get-AzResource | ?{ $_.Sku -EQ "Basic"}
Remediation:
Each artifact has its own process for upgrading from basic to standard SKU's and this
should be followed if required.
Default Value:
Policy should enforce standard SKUs for the following artifacts:
• Public IP Addresses
• Network Load Balancers
• REDIS Cache
• SQL PaaS Databases
• VPN Gateways
References:
1. https://azure.microsoft.com/en-us/support/plans
2. https://azure.microsoft.com/en-us/support/plans/response/
Page 367
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 368
6 Networking
This section covers security recommendations to follow in order to set networking
policies on an Azure subscription.
Page 369
6.1 Ensure that RDP access from the Internet is evaluated and
restricted (Automated)
Profile Applicability:
• Level 1
Description:
Network security groups should be periodically evaluated for port misconfigurations.
Where certain ports and protocols may be exposed to the Internet, they should be
evaluated for necessity and restricted wherever they are not explicitly required.
Rationale:
The potential security problem with using RDP over the Internet is that attackers can
use various brute force techniques to gain access to Azure Virtual Machines. Once the
attackers gain access, they can use a virtual machine as a launch point for
compromising other machines on an Azure Virtual Network or even attack networked
devices outside of Azure.
Audit:
From Azure Portal
Page 370
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
Where RDP is not explicitly required and narrowly configured for resources attached to
the Network Security Group, Internet-level access to your Azure resources should be
restricted or eliminated.
For internal access to relevant resources, configure an encrypted network tunnel such
as:
ExpressRoute
Site-to-site VPN
Point-to-site VPN
Default Value:
By default, RDP access from internet is not enabled.
References:
1. https://docs.microsoft.com/en-us/azure/security/azure-security-network-security-
best-practices#disable-rdpssh-access-to-azure-virtual-machines
2. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-network-
security#ns-1-establish-network-segmentation-boundaries
3. Express Route: https://docs.microsoft.com/en-us/azure/expressroute/
4. Site-to-Site VPN: https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-
gateway-howto-site-to-site-resource-manager-portal
5. Point-to-Site VPN: https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-
gateway-howto-point-to-site-resource-manager-portal
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 371
Controls
Control IG 1 IG 2 IG 3
Version
Page 372
6.2 Ensure that SSH access from the Internet is evaluated and
restricted (Automated)
Profile Applicability:
• Level 1
Description:
Network security groups should be periodically evaluated for port misconfigurations.
Where certain ports and protocols may be exposed to the Internet, they should be
evaluated for necessity and restricted wherever they are not explicitly required.
Rationale:
The potential security problem with using SSH over the Internet is that attackers can
use various brute force techniques to gain access to Azure Virtual Machines. Once the
attackers gain access, they can use a virtual machine as a launch point for
compromising other machines on the Azure Virtual Network or even attack networked
devices outside of Azure.
Audit:
From Azure Portal
1. Open the Networking blade for the specific Virtual machine in Azure portal
2. Verify that the INBOUND PORT RULES does not have a rule for SSH such as
o port = 22,
o protocol = TCP OR ANY,
o Source = Any OR Internet
Page 373
• Policy ID: 22730e10-96f6-4aac-ad84-9383d35b5917 - Name: 'Management
ports should be closed on your virtual machines'
Remediation:
Where SSH is not explicitly required and narrowly configured for resources attached to
the Network Security Group, Internet-level access to your Azure resources should be
restricted or eliminated.
For internal access to relevant resources, configure an encrypted network tunnel such
as:
ExpressRoute
Site-to-site VPN
Point-to-site VPN
Default Value:
By default, SSH access from internet is not enabled.
References:
1. https://docs.microsoft.com/en-us/azure/security/azure-security-network-security-
best-practices#disable-rdpssh-access-to-azure-virtual-machines
2. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-network-
security#ns-1-establish-network-segmentation-boundaries
3. Express Route: https://docs.microsoft.com/en-us/azure/expressroute/
4. Site-to-Site VPN: https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-
gateway-howto-site-to-site-resource-manager-portal
5. Point-to-Site VPN: https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-
gateway-howto-point-to-site-resource-manager-portal
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 374
Controls
Control IG 1 IG 2 IG 3
Version
Page 375
6.3 Ensure that UDP access from the Internet is evaluated and
restricted (Automated)
Profile Applicability:
• Level 1
Description:
Network security groups should be periodically evaluated for port misconfigurations.
Where certain ports and protocols may be exposed to the Internet, they should be
evaluated for necessity and restricted wherever they are not explicitly required.
Rationale:
The potential security problem with broadly exposing UDP services over the Internet is
that attackers can use DDoS amplification techniques to reflect spoofed UDP traffic
from Azure Virtual Machines. The most common types of these attacks use exposed
DNS, NTP, SSDP, SNMP, CLDAP and other UDP-based services as amplification
sources for disrupting services of other machines on the Azure Virtual Network or even
attack networked devices outside of Azure.
Audit:
From Azure Portal
1. Open the Networking blade for the specific Virtual machine in Azure portal
2. Verify that the INBOUND PORT RULES does not have a rule for UDP such as
• protocol = UDP,
• Source = Any OR Internet
Page 376
Remediation:
Where UDP is not explicitly required and narrowly configured for resources attached to
the Network Security Group, Internet-level access to your Azure resources should be
restricted or eliminated.
For internal access to relevant resources, configure an encrypted network tunnel such
as:
ExpressRoute
Site-to-site VPN
Point-to-site VPN
Default Value:
By default, UDP access from internet is not enabled.
References:
1. https://docs.microsoft.com/en-us/azure/security/fundamentals/network-best-
practices#secure-your-critical-azure-service-resources-to-only-your-virtual-
networks
2. https://docs.microsoft.com/en-us/azure/security/fundamentals/ddos-best-
practices
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-network-
security#ns-1-establish-network-segmentation-boundaries
4. ExpressRoute: https://docs.microsoft.com/en-us/azure/expressroute/
5. Site-to-site VPN: https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-
gateway-howto-site-to-site-resource-manager-portal
6. Point-to-site VPN: https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-
gateway-howto-point-to-site-resource-manager-portal
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 377
Controls
Control IG 1 IG 2 IG 3
Version
Page 378
6.4 Ensure that HTTP(S) access from the Internet is evaluated
and restricted (Automated)
Profile Applicability:
• Level 1
Description:
Network security groups should be periodically evaluated for port misconfigurations.
Where certain ports and protocols may be exposed to the Internet, they should be
evaluated for necessity and restricted wherever they are not explicitly required and
narrowly configured.
Rationale:
The potential security problem with using HTTP(S) over the Internet is that attackers
can use various brute force techniques to gain access to Azure resources. Once the
attackers gain access, they can use the resource as a launch point for compromising
other resources within the Azure tenant.
Audit:
From Azure Portal
Page 379
Remediation:
From Azure Portal
1. Go to Virtual machines.
2. For each VM, open the Networking blade.
3. Click on Inbound port rules.
4. Delete the rule with:
o Port = 80/443 OR [port range containing 80/443]
o Protocol = TCP OR Any
o Source = Any (*) OR IP Addresses(0.0.0.0/0) OR Service Tag(Internet)
o Action = Allow
1. For each network security group, run below command to list the rules associated
with the specified port:
References:
Page 380
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 381
6.5 Ensure that Network Security Group Flow Log retention period
is 'greater than 90 days' (Automated)
Profile Applicability:
• Level 2
Description:
Network Security Group Flow Logs should be enabled and the retention period set to
greater than or equal to 90 days.
Rationale:
Flow logs enable capturing information about IP traffic flowing in and out of network
security groups. Logs can be used to check for anomalies and give insight into
suspected breaches.
Impact:
This will keep IP traffic logs for longer than 90 days. As a level 2, first determine your
need to retain data, then apply your selection here. As this is data stored for longer,
your monthly storage costs will increase depending on your data use.
Audit:
From Azure Portal
1. Go to Network Watcher
2. Select NSG flow logs blade in the Logs section
3. Select each Network Security Group from the list
4. Ensure Status is set to On
5. Ensure Retention (days) setting greater than 90 days
Page 382
Remediation:
From Azure Portal
1. Go to Network Watcher
2. Select NSG flow logs blade in the Logs section
3. Select each Network Security Group from the list
4. Ensure Status is set to On
5. Ensure Retention (days) setting greater than 90 days
6. Select your storage account in the Storage account field
7. Select Save
Default Value:
By default, Network Security Group Flow Logs are disabled.
References:
1. https://docs.microsoft.com/en-us/azure/network-watcher/network-watcher-nsg-
flow-logging-overview
2. https://docs.microsoft.com/en-us/cli/azure/network/watcher/flow-log?view=azure-
cli-latest
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-6-configure-log-storage-retention
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 383
6.6 Ensure that Network Watcher is 'Enabled' (Automated)
Profile Applicability:
• Level 2
Description:
Enable Network Watcher for physical regions in Azure subscriptions.
Rationale:
Network diagnostic and visualization tools available with Network Watcher help users
understand, diagnose, and gain insights to the network in Azure.
Impact:
There are additional costs per transaction to run and store network data. For high-
volume networks these charges will add up quickly.
Audit:
From Azure Portal
1. Go to Network Watcher
2. Ensure that a network watcher is listed for each region.
Page 384
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
Opting out of Network Watcher automatic enablement is a permanent change. Once
you opt-out you cannot opt-in without contacting support.
To manually enable Network Watcher in each region where you want to use Network
Watcher capabilities, follow the steps below.
1. Go to Network Watcher.
2. Click Create.
3. Select a Region from the drop-down menu.
4. Click Add.
Default Value:
Network Watcher is automatically enabled. When you create or update a virtual network
in your subscription, Network Watcher will be enabled automatically in your Virtual
Network's region. There is no impact to your resources or associated charge for
automatically enabling Network Watcher.
References:
1. https://docs.microsoft.com/en-us/azure/network-watcher/network-watcher-
monitoring-overview
2. https://docs.azure.cn/zh-cn/cli/network/watcher?view=azure-cli-
latest#az_network_watcher_list
3. https://docs.azure.cn/zh-cn/cli/network/watcher?view=azure-cli-
latest#az_network_watcher_configure
4. https://docs.microsoft.com/en-us/azure/network-watcher/network-watcher-create
5. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-
detection#lt-4-enable-network-logging-for-security-investigation
6. https://azure.microsoft.com/en-ca/pricing/details/network-watcher/
Page 385
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 386
6.7 Ensure that Public IP addresses are Evaluated on a Periodic
Basis (Manual)
Profile Applicability:
• Level 1
Description:
Public IP Addresses provide tenant accounts with Internet connectivity for resources
contained within the tenant. During the creation of certain resources in Azure, a Public
IP Address may be created. All Public IP Addresses within the tenant should be
periodically reviewed for accuracy and necessity.
Rationale:
Public IP Addresses allocated to the tenant should be periodically reviewed for
necessity. Public IP Addresses that are not intentionally assigned and controlled
present a publicly facing vector for threat actors and significant risk to the tenant.
Audit:
From Azure Portal
Page 387
Remediation:
Remediation will vary significantly depending on your organization's security
requirements for the resources attached to each individual Public IP address.
Default Value:
During Virtual Machine and Application creation, a setting may create and attach a
public IP.
References:
1. https://docs.microsoft.com/en-us/cli/azure/network/public-ip?view=azure-cli-latest
2. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-network-
security
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 388
7 Virtual Machines
This section covers security recommendations to follow for the configuration of Virtual
Machines on an Azure subscription.
Page 389
7.1 Ensure an Azure Bastion Host Exists (Automated)
Profile Applicability:
• Level 2
Description:
The Azure Bastion service allows secure remote access to Azure Virtual Machines over
the Internet without exposing remote access protocol ports and services directly to the
Internet. The Azure Bastion service provides this access using TLS over 443/TCP, and
subscribes to hardened configurations within an organization's Azure Active Directory
service.
Rationale:
The Azure Bastion service allows organizations a more secure means of accessing
Azure Virtual Machines over the Internet without assigning public IP addresses to those
Virtual Machines. The Azure Bastion service provides Remote Desktop Protocol (RDP)
and Secure Shell (SSH) access to Virtual Machines using TLS within a web browser,
thus preventing organizations from opening up 3389/TCP and 22/TCP to the Internet on
Azure Virtual Machines. Additional benefits of the Bastion service includes Multi-Factor
Authentication, Conditional Access Policies, and any other hardening measures
configured within Azure Active Directory using a central point of access.
Impact:
The Azure Bastion service incurs additional costs and requires a specific virtual network
configuration. The Standard tier offers additional configuration options compared to the
Basic tier and may incur additional costs for those added features.
Audit:
From Azure Portal
1. Click on Bastions
2. Ensure there is at least one Bastion host listed under the Name column
From PowerShell
Retrieve the Bastion host(s) information for a specific Resource Group
Get-AzBastion -ResourceGroupName <resource group name>
Ensure the output of the above command is not empty.
Page 390
Remediation:
From Azure Portal
1. Click on Bastions
2. Select the Subscription
3. Select the Resource group
4. Type a Name for the new Bastion host
5. Select a Region
6. Choose Standard next to Tier
7. Use the slider to set the Instance count
8. Select the Virtual network or Create new
9. Select the Subnet named AzureBastionSubnet. Create a Subnet named
AzureBastionSubnet using a /26 CIDR range if it doesn't already exist.
10. Selct the appropriate Public IP address option.
11. If Create new is selected for the Public IP address option, provide a Public IP
address name.
12. If Use existing is selected for Public IP address option, select an IP address
from Choose public IP address
13. Click Next: Tags >
14. Configure the appropriate Tags
15. Click Next: Advanced >
16. Select the appropriate Advanced options
17. Click Next: Review + create >
18. Click Create
From PowerShell
Create the appropriate Virtual network settings and Public IP Address settings.
$subnetName = "AzureBastionSubnet"
$subnet = New-AzVirtualNetworkSubnetConfig -Name $subnetName -AddressPrefix
<IP address range in CIDR notation making sure to use a /26>
$virtualNet = New-AzVirtualNetwork -Name <virtual network name> -
ResourceGroupName <resource group name> -Location <location> -AddressPrefix
<IP address range in CIDR notation> -Subnet $subnet
$publicip = New-AzPublicIpAddress -ResourceGroupName <resource group name> -
Name <public IP address name> -Location <location> -AllocationMethod Dynamic
-Sku Standard
Page 391
Create the Azure Bastion service using the information within the created variables
from above.
New-AzBastion -ResourceGroupName <resource group name> -Name <bastion name> -
PublicIpAddress $publicip -VirtualNetwork $virtualNet -Sku "Standard" -
ScaleUnit <integer>
Default Value:
By default, the Azure Bastion service is not configured.
References:
1. https://learn.microsoft.com/en-us/azure/bastion/bastion-overview#sku
2. https://learn.microsoft.com/en-us/powershell/module/az.network/get-
azbastion?view=azps-9.2.0
3. https://learn.microsoft.com/en-us/cli/azure/network/bastion?view=azure-cli-latest
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 392
7.2 Ensure Virtual Machines are utilizing Managed Disks
(Automated)
Profile Applicability:
• Level 1
Description:
Migrate blob-based VHDs to Managed Disks on Virtual Machines to exploit the default
features of this configuration. The features include:
Rationale:
Managed disks are by default encrypted on the underlying hardware, so no additional
encryption is required for basic protection. It is available if additional encryption is
required. Managed disks are by design more resilient that storage accounts.
For ARM-deployed Virtual Machines, Azure Adviser will at some point recommend
moving VHDs to managed disks both from a security and cost management
perspective.
Impact:
There are additional costs for managed disks based off of disk space allocated. When
converting to managed disks, VMs will be powered off and back on.
Audit:
From Azure Portal
From PowerShell
Run the following command:
Get-AzVM | ForEach-Object {"Name: " + $_.Name;"ManagedDisk Id: " +
$_.StorageProfile.OsDisk.ManagedDisk.Id;""}
Page 393
Example output:
Name: vm1
ManagedDisk Id: /disk1/id
Name: vm2
ManagedDisk Id: /disk2/id
If the 'ManagedDisk Id' field is empty the os disk for that vm is not managed.
Remediation:
From Azure Portal
Default Value:
Managed disks or are an option upon the creation of VMs.
References:
1. https://docs.microsoft.com/en-us/azure/virtual-machines/windows/convert-
unmanaged-to-managed-disks
2. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-data-
protection#dp-4-enable-data-at-rest-encryption-by-default
3. https://docs.microsoft.com/en-us/azure/virtual-machines/faq-for-disks
4. https://azure.microsoft.com/en-us/pricing/details/managed-disks/
Page 394
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 395
7.3 Ensure that 'OS and Data' disks are encrypted with Customer
Managed Key (CMK) (Automated)
Profile Applicability:
• Level 2
Description:
Ensure that OS disks (boot volumes) and data disks (non-boot volumes) are encrypted
with CMK (Customer Managed Keys). Customer Managed keys can be either ADE or
Server Side Encryption (SSE).
Rationale:
Encrypting the IaaS VM's OS disk (boot volume) and Data disks (non-boot volume)
ensures that the entire content is fully unrecoverable without a key, thus protecting the
volume from unwanted reads. PMK (Platform Managed Keys) are enabled by default in
Azure-managed disks and allow encryption at rest. CMK is recommended because it
gives the customer the option to control which specific keys are used for the encryption
and decryption of the disk. The customer can then change keys and increase security
by disabling them instead of relying on the PMK key that remains unchanging. There is
also the option to increase security further by using automatically rotating keys so that
access to disk is ensured to be limited. Organizations should evaluate what their
security requirements are, however, for the data stored on the disk. For high-risk data
using CMK is a must, as it provides extra steps of security. If the data is low risk, PMK is
enabled by default and provides sufficient data security.
Impact:
Using CMK/BYOK will entail additional management of keys.
NOTE: You must have your key vault set up to utilize this.
Audit:
From Azure Portal
1. Go to Virtual machines
2. For each virtual machine, go to Settings
3. Click on Disks
4. Ensure that the OS disk and Data disks have encryption set to CMK.
From PowerShell
$ResourceGroupName="yourResourceGroupName"
$DiskName="yourDiskName"
Page 396
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal
Note: Disks must be detached from VMs to have encryption changed.
1. Go to Virtual machines
2. For each virtual machine, go to Settings
3. Click on Disks
4. Click the ellipsis (...), then click Detach to detach the disk from the VM
5. Now search for Disks and locate the unattached disk
6. Click the disk then select Encryption
7. Change your encryption type, then select your encryption set
8. Click Save
9. Go back to the VM and re-attach the disk
From PowerShell
$KVRGname = 'MyKeyVaultResourceGroup';
$VMRGName = 'MyVirtualMachineResourceGroup';
$vmName = 'MySecureVM';
$KeyVaultName = 'MySecureVault';
$KeyVault = Get-AzKeyVault -VaultName $KeyVaultName -ResourceGroupName
$KVRGname;
$diskEncryptionKeyVaultUrl = $KeyVault.VaultUri;
$KeyVaultResourceId = $KeyVault.ResourceId;
Page 397
References:
1. https://docs.microsoft.com/azure/security/fundamentals/azure-disk-encryption-
vms-vmss
2. https://docs.microsoft.com/en-us/azure/security-center/security-center-disk-
encryption?toc=%2fazure%2fsecurity%2ftoc.json
3. https://docs.microsoft.com/azure/security/fundamentals/data-encryption-best-
practices#protect-data-at-resthttps://docs.microsoft.com/azure/virtual-
machines/windows/disk-encryption-portal-quickstart
4. https://docs.microsoft.com/en-us/rest/api/compute/disks/delete
5. https://docs.microsoft.com/en-
us/rest/api/compute/disks/update#encryptionsettings
6. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-data-
protection#dp-5-use-customer-managed-key-option-in-data-at-rest-encryption-
when-required
7. https://docs.microsoft.com/en-us/azure/virtual-machines/windows/disks-enable-
customer-managed-keys-powershell
8. https://docs.microsoft.com/en-us/azure/virtual-machines/disk-encryption
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 398
7.4 Ensure that 'Unattached disks' are encrypted with 'Customer
Managed Key' (CMK) (Automated)
Profile Applicability:
• Level 2
Description:
Ensure that unattached disks in a subscription are encrypted with a Customer Managed
Key (CMK).
Rationale:
Managed disks are encrypted by default with Platform-managed keys. Using Customer-
managed keys may provide an additional level of security or meet an organization's
regulatory requirements. Encrypting managed disks ensures that its entire content is
fully unrecoverable without a key and thus protects the volume from unwarranted reads.
Even if the disk is not attached to any of the VMs, there is always a risk where a
compromised user account with administrative access to VM service can mount/attach
these data disks, which may lead to sensitive information disclosure and tampering.
Impact:
NOTE: You must have your key vault set up to utilize this. Encryption is available only
on Standard tier VMs. This might cost you more.
Utilizing and maintaining Customer-managed keys will require additional work to create,
protect, and rotate keys.
Audit:
From Azure Portal
1. Go to Disks
2. Click on Add Filter
3. In the filter field select Disk state
4. In the Value field select Unattached
5. Click Apply
6. for each disk listed ensure that Encryption type in the encryption blade is
`Encryption at-rest with a customer-managed key'
Page 399
Sample Output:
[
{
"encryptionSettings": null,
"name": "<Disk1>"
},
{
"encryptionSettings": null,
"name": "<Disk2>"
}
]
Remediation:
If data stored in the disk is no longer useful, refer to Azure documentation to delete
unattached data disks at:
-https://docs.microsoft.com/en-us/rest/api/compute/disks/delete
-https://docs.microsoft.com/en-us/cli/azure/disk?view=azure-cli-latest#az-
disk-delete
If data stored in the disk is important, To encrypt the disk refer azure documentation at:
-https://docs.microsoft.com/en-us/azure/virtual-machines/disks-enable-
customer-managed-keys-portal
-https://docs.microsoft.com/en-
us/rest/api/compute/disks/update#encryptionsettings
Default Value:
By default, managed disks are encrypted with a Platform-managed key.
References:
1. https://docs.microsoft.com/en-us/azure/security/fundamentals/azure-disk-
encryption-vms-vmss
2. https://docs.microsoft.com/en-us/azure/security-center/security-center-disk-
encryption?toc=%2fazure%2fsecurity%2ftoc.json
3. https://docs.microsoft.com/en-us/rest/api/compute/disks/delete
Page 400
4. https://docs.microsoft.com/en-us/cli/azure/disk?view=azure-cli-latest#az-disk-
delete
5. https://docs.microsoft.com/en-
us/rest/api/compute/disks/update#encryptionsettings
6. https://docs.microsoft.com/en-us/cli/azure/disk?view=azure-cli-latest#az-disk-
update
7. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-data-
protection#dp-5-use-customer-managed-key-option-in-data-at-rest-encryption-
when-required
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 401
7.5 Ensure that Only Approved Extensions Are Installed (Manual)
Profile Applicability:
• Level 1
Description:
For added security, only install organization-approved extensions on VMs.
Rationale:
Azure virtual machine extensions are small applications that provide post-deployment
configuration and automation tasks on Azure virtual machines. These extensions run
with administrative privileges and could potentially access anything on a virtual
machine. The Azure Portal and community provide several such extensions. Each
organization should carefully evaluate these extensions and ensure that only those that
are approved for use are actually implemented.
Impact:
Functionality by unsupported extensions will be disabled.
Audit:
From Azure Portal
1. Go to Virtual machines.
2. For each virtual machine, click on the server name to select it go to
3. In the new column menu, under Settings Click on Extensions + applications.
4. Ensure that all the listed extensions are approved by your organization for use.
Page 402
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal
1. Go to Virtual machines
2. For each virtual machine, go to Settings
3. Click on Extensions + applications
4. If there are unapproved extensions, uninstall them.
Default Value:
By default, no extensions are added to the virtual machines.
References:
1. https://docs.microsoft.com/en-us/azure/virtual-machines/windows/extensions-
features
2. https://docs.microsoft.com/en-us/powershell/module/az.compute/?view=azps-
7.5.0#vm-extensions
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-asset-
management#am-2-use-only-approved-services
4. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-asset-
management#am-5-use-only-approved-applications-in-virtual-machine
Page 403
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 404
7.6 Ensure that Endpoint Protection for all Virtual Machines is
installed (Manual)
Profile Applicability:
• Level 2
Description:
Install endpoint protection for all virtual machines.
Rationale:
Installing endpoint protection systems (like anti-malware for Azure) provides for real-
time protection capability that helps identify and remove viruses, spyware, and other
malicious software. These also offer configurable alerts when known-malicious or
unwanted software attempts to install itself or run on Azure systems.
Impact:
Endpoint protection will incur an additional cost to you.
Audit:
From Azure Portal
1. Go to Security Center
2. Click the Recommendations blade
3. Ensure that there are no recommendations for Endpoint Protection not
installed on Azure VMs
Page 405
• Policy ID: 1f7c564c-0a90-4d44-b7e1-9d456cffaee8 - Name: 'Endpoint protection
should be installed on your machines'
Remediation:
Follow Microsoft Azure documentation to install endpoint protection from the security
center. Alternatively, you can employ your own endpoint protection tool for your OS.
Default Value:
By default Endpoint Protection is disabled.
References:
1. https://docs.microsoft.com/en-us/azure/security-center/security-center-install-
endpoint-protection
2. https://docs.microsoft.com/en-us/azure/security/azure-security-antimalware
3. https://docs.microsoft.com/en-us/cli/azure/vm/extension?view=azure-cli-
latest#az_vm_extension_list
4. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-endpoint-
security#es-1-use-endpoint-detection-and-response-edr
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 406
7.7 [Legacy] Ensure that VHDs are Encrypted (Manual)
Profile Applicability:
• Level 2
Description:
NOTE: This is a legacy recommendation. Managed Disks are encrypted by default
and recommended for all new VM implementations.
VHD (Virtual Hard Disks) are stored in blob storage and are the old-style disks that were
attached to Virtual Machines. The blob VHD was then leased to the VM. By default,
storage accounts are not encrypted, and Microsoft Defender will then recommend that
the OS disks should be encrypted. Storage accounts can be encrypted as a whole using
PMK or CMK. This should be turned on for storage accounts containing VHDs.
Rationale:
While it is recommended to use Managed Disks which are encrypted by default,
"legacy" VHDs may exist for a variety of reasons and may need to remain in VHD
format. VHDs are not encrypted by default, so this recommendation intends to address
the security of these disks. In these niche cases, VHDs should be encrypted using the
procedures in this recommendation to encrypt and protect the data content.
If a virtual machine is using a VHD and can be converted to a managed disk,
instructions for this procedure can be found in the resources section of this
recommendation under the title "Convert VHD to Managed Disk."
Impact:
Depending on how the encryption is implemented will change the size of the impact. If
provider-managed keys(PMK) are utilized, the impact is relatively low, but processes
need to be put in place to regularly rotate the keys. If Customer-managed keys(CMK)
are utilized, a key management process needs to be implemented to store and manage
key rotation, thus the impact is medium to high depending on user maturity with key
management.
Audit:
From Azure CLI
For each virtual machine identify if the VM is using a legacy VHD by reviewing the VHD
parameter in the output of the following command. The VHD parameter will contain the
Storage Account name used for the VHD.
az vm show --name <MyVM> --resource-group <MyResourceGroup>
Next, identify if the storage account from the VHD parameter is encrypted by reviewing
the encryption --> services --> blob --> enabled within the output of the following
command and make sure its value is True.
Page 407
az storage account show --name <storage account name> --resource-group
<resource group>
From PowerShell:
Determine whether the VM is using a VHD for the OS Disk and any Data disks.
$virtualMachine = Get-AzVM --Name <vm name> --ResourceGroup <resource group
name> |Select-Object -ExpandProperty StorageProfile
$virtualMachine.OsDisk
$virtualMachine.DataDisks
Next, use the value from VHD to see if the storage blob holding the VHD is encrypted.
$storageAccount = Get-AzStorageAccount -Name <storage account name from VHD
setting> -ResourceGroupName <resource group name>
$storageAccount.Encryption.Services.Blob
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal
If you wish to use a Microsoft-managed key (the default), you can save at this point and
encryption will be applied to the account.
If you select Customer-managed keys, it will ask for the location of the key (The default is
an Azure Key Vault) and the key name.
Once these are captured, save the configuration and the account will be encrypted
using the provided key.
Page 408
az vm encryption enable -g <resourceGroup> --name <name> --disk-encryption-
keyvault myKV
Page 409
From PowerShell
This process uses a Key Vault to store the keys
Create the Key Vault
New-AzKeyvault -name <name> -ResourceGroupName <resourceGroup> -Location
<location> -EnabledForDiskEncryption
Encrypt the disk and store the key in Key Vault
$KeyVault = Get-AzKeyVault -VaultName <name> -ResourceGroupName
<resourceGroup>
Set-AzVMDiskEncryptionExtension -ResourceGroupName <resourceGroup> -VMName
<name> -DiskEncryptionKeyVaultUrl $KeyVault.VaultUri -
DiskEncryptionKeyVaultId $KeyVault.ResourceId
Default Value:
The default value for encryption is "NO Encryption"
References:
1. CLI: https://docs.microsoft.com/en-us/azure/virtual-machines/windows/disk-
encryption-cli-quickstart
2. Powershell: https://docs.microsoft.com/en-us/azure/virtual-
machines/windows/disk-encryption-powershell-quickstart
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-data-
protection#dp-4-enable-data-at-rest-encryption-by-default
4. Convert VHD to Managed Disk: https://docs.microsoft.com/en-us/previous-
versions/azure/virtual-machines/scripts/virtual-machines-powershell-sample-
create-managed-disk-from-vhd
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 410
7.8 Ensure only MFA enabled identities can access privileged
Virtual Machine (Automated)
Profile Applicability:
• Level 2
Description:
Verify identities without MFA that can log in to a privileged virtual machine using
separate login credentials. An adversary can leverage the access to move laterally and
perform actions with the virtual machine's managed identity. Make sure the virtual
machine only has necessary permissions, and revoke the admin-level permissions
according to the least privileges principal
Rationale:
Integrating multi-factor authentication (MFA) as part of the organizational policy can
greatly reduce the risk of an identity gaining control of valid credentials that may be
used for additional tactics such as initial access, lateral movement, and collecting
information. MFA can also be used to restrict access to cloud resources and APIs.
An Adversary may log into accessible cloud services within a compromised environment
using Valid Accounts that are synchronized to move laterally and perform actions with
the virtual machine's managed identity. The adversary may then perform management
actions or access cloud-hosted resources as the logged-on managed identity.
Impact:
this recommendation requires an Azure AD P2 License to implement.
Ensure that identities that are provisioned to a virtual machine utilizes an RBAC/ABAC
group and is allocated a role using Azure PIM, and the Role settings require MFA or use
another PAM solution (like CyberArk) for accessing Virtual Machines.
Audit:
From Azure Portal
Page 411
o Select the Subscription, then click on Access control (IAM).
o Select Check access and click on User, group, or service principal.
o Enter the user name or email and verify there are no role assignments on
the user that provides access like Virtual Machine Administrator Login
or Virtual Machine User Login. Make sure this follows the least
privileges principal.
Remediation:
From Azure Portal
Page 412
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 413
7.9 Ensure Trusted Launch is enabled on Virtual Machines
(Automated)
Profile Applicability:
• Level 1
Description:
When Secure Boot and vTPM are enabled together, they provide a strong foundation
for protecting your VM from boot attacks. For example, if an attacker attempts to replace
the bootloader with a malicious version, Secure Boot will prevent the VM from booting. If
the attacker is able to bypass Secure Boot and install a malicious bootloader, vTPM can
be used to detect the intrusion and alert you.
Rationale:
Secure Boot and vTPM work together to protect your VM from a variety of boot attacks,
including bootkits, rootkits, and firmware rootkits. Not enabling Trusted Launch in Azure
VM can lead to increased vulnerability to rootkits and boot-level malware, reduced
ability to detect and prevent unauthorized changes to the boot process, and a potential
compromise of system integrity and data security.
Impact:
Secure Boot and vTPM are not currently supported for Azure Generation 1 VMs.
IMPORTANT: Before enabling Secure Boot and vTPM on a Generation 2 VM which
does not already have both enabled, it is highly recommended to create a restore point
of the VM prior to remediation.
Audit:
From Azure Portal
1. Go to Virtual Machines
2. For each VM, under Settings, click on Configuration on the left blade
3. Under Security Type, make sure security type is not standard and if it is Trusted
Launch Virtual Machines then make sure Enable Secure Boot & Enable vTPM
are checked
Page 414
• Policy ID: 97566dd7-78ae-4997-8b36-1c7bfe0d8121 - Name: '[Preview]: Secure
Boot should be enabled on supported Windows virtual machines'
Remediation:
From Azure Portal
1. Go to Virtual Machines
2. For each VM, under Settings, click on Configuration on the left blade
3. Under Security Type, select 'Trusted Launch Virtual Machines'
4. Make sure Enable Secure Boot & Enable vTPM are checked
5. Click on Apply.
Note: Trusted launch on existing virtual machines (VMs) is currently not supported for
Azure Generation 1 VMs
Default Value:
On Azure Generation 2 VMs, vTPM is enabled by default. Secure Boot is not enabled
by default.
References:
1. https://learn.microsoft.com/en-us/azure/virtual-machines/trusted-launch-existing-
vm?tabs=portal
2. https://learn.microsoft.com/en-us/azure/virtual-machines/trusted-launch-existing-
vm?tabs=portal#enable-trusted-launch-on-existing-vm
3. https://learn.microsoft.com/en-us/azure/virtual-machines/trusted-launch#secure-
boot
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 415
8 Key Vault
This section covers security recommendations to follow for the configuration and use of
Azure Key Vault.
Page 416
8.1 Ensure that the Expiration Date is set for all Keys in RBAC
Key Vaults (Automated)
Profile Applicability:
• Level 1
Description:
Ensure that all Keys in Role Based Access Control (RBAC) Azure Key Vaults have an
expiration date set.
Rationale:
Azure Key Vault enables users to store and use cryptographic keys within the Microsoft
Azure environment. The exp (expiration date) attribute identifies the expiration date on
or after which the key MUST NOT be used for encryption of new data, wrapping of new
keys, and signing. By default, keys never expire. It is thus recommended that keys be
rotated in the key vault and set an explicit expiration date for all keys to help enforce the
key rotation. This ensures that the keys cannot be used beyond their assigned lifetimes.
Impact:
Keys cannot be used beyond their assigned expiration dates respectively. Keys need to
be rotated periodically wherever they are used.
Audit:
From Azure Portal:
1. Go to Key vaults.
2. For each Key vault, click on Keys.
3. In the main pane, ensure that an appropriate Expiration date is set for any keys
that are Enabled.
Page 417
From PowerShell:
Retrieve a list of Azure Key vaults:
Get-AzKeyVault
For each Key vault run the following command to determine which vaults are configured
to use RBAC.
Get-AzKeyVault -VaultName <VaultName>
For each Key vault with the EnableRbacAuthorizatoin setting set to True, run the
following command.
Get-AzKeyVaultKey -VaultName <VaultName>
Make sure the Expires setting is configured with a value as appropriate wherever the
Enabled setting is set to True.
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal:
1. Go to Key vaults.
2. For each Key vault, click on Keys.
3. In the main pane, ensure that an appropriate Expiration date is set for any keys
that are Enabled.
Page 418
From PowerShell:
Set-AzKeyVaultKeyAttribute -VaultName <VaultName> -Name <KeyName> -Expires
<DateTime>
Default Value:
By default, keys do not expire.
References:
1. https://docs.microsoft.com/en-us/azure/key-vault/key-vault-whatis
2. https://docs.microsoft.com/en-us/rest/api/keyvault/about-keys--secrets-and-
certificates#key-vault-keys
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-data-
protection#dp-6-use-a-secure-key-management-process
4. https://docs.microsoft.com/en-us/powershell/module/az.keyvault/set-
azkeyvaultkeyattribute?view=azps-0.10.0
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 419
8.2 Ensure that the Expiration Date is set for all Keys in Non-
RBAC Key Vaults. (Automated)
Profile Applicability:
• Level 1
Description:
Ensure that all Keys in Non Role Based Access Control (RBAC) Azure Key Vaults have
an expiration date set.
Rationale:
Azure Key Vault enables users to store and use cryptographic keys within the Microsoft
Azure environment. The exp (expiration date) attribute identifies the expiration date on
or after which the key MUST NOT be used for a cryptographic operation. By default,
keys never expire. It is thus recommended that keys be rotated in the key vault and set
an explicit expiration date for all keys. This ensures that the keys cannot be used
beyond their assigned lifetimes.
Impact:
Keys cannot be used beyond their assigned expiration dates respectively. Keys need to
be rotated periodically wherever they are used.
Audit:
From Azure Portal:
1. Go to Key vaults.
2. For each Key vault, click on Keys.
3. In the main pane, ensure that the status of the key is Enabled.
4. For each enabled key, ensure that an appropriate Expiration date is set.
Page 420
From PowerShell:
Retrieve a list of Azure Key vaults:
Get-AzKeyVault
For each Key vault, run the following command to determine which vaults are
configured to not use RBAC:
Get-AzKeyVault -VaultName <Vault Name>
For each Key vault with the EnableRbacAuthorizatoin setting set to False or empty, run
the following command.
Get-AzKeyVaultKey -VaultName <Vault Name>
Make sure the Expires setting is configured with a value as appropriate wherever the
Enabled setting is set to True.
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal:
1. Go to Key vaults.
2. For each Key vault, click on Keys.
3. In the main pane, ensure that the status of the key is Enabled.
4. For each enabled key, ensure that an appropriate Expiration date is set.
Page 421
From PowerShell
Set-AzKeyVaultKeyAttribute -VaultName <Vault Name> -Name <Key Name> -Expires
<DateTime>
Default Value:
By default, keys do not expire.
References:
1. https://docs.microsoft.com/en-us/azure/key-vault/key-vault-whatis
2. https://docs.microsoft.com/en-us/rest/api/keyvault/about-keys--secrets-and-
certificates#key-vault-keys
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-data-
protection#dp-6-use-a-secure-key-management-process
4. https://docs.microsoft.com/en-us/powershell/module/az.keyvault/set-
azkeyvaultkeyattribute?view=azps-0.10.0
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 422
8.3 Ensure that the Expiration Date is set for all Secrets in RBAC
Key Vaults (Automated)
Profile Applicability:
• Level 1
Description:
Ensure that all Secrets in Role Based Access Control (RBAC) Azure Key Vaults have
an expiration date set.
Rationale:
The Azure Key Vault enables users to store and keep secrets within the Microsoft Azure
environment. Secrets in the Azure Key Vault are octet sequences with a maximum size
of 25k bytes each. The exp (expiration date) attribute identifies the expiration date on or
after which the secret MUST NOT be used. By default, secrets never expire. It is thus
recommended to rotate secrets in the key vault and set an explicit expiration date for all
secrets. This ensures that the secrets cannot be used beyond their assigned lifetimes.
Impact:
Secrets cannot be used beyond their assigned expiry date respectively. Secrets need to
be rotated periodically wherever they are used.
Audit:
From Azure Portal:
1. Go to Key vaults.
2. For each Key vault, click on Secrets.
3. In the main pane, ensure that the status of the secret is Enabled.
4. For each enabled secret, ensure that an appropriate Expiration date is set.
Page 423
Get-AzKeyVault -VaultName <Vault Name>
For each Key vault with the EnableRbacAuthorizatoin setting set to True, run the
following command:
Get-AzKeyVaultSecret -VaultName <Vault Name>
Make sure the Expires setting is configured with a value as appropriate wherever the
Enabled setting is set to True.
Remediation:
From Azure Portal:
1. Go to Key vaults.
2. For each Key vault, click on Secrets.
3. In the main pane, ensure that the status of the secret is Enabled.
4. For each enabled secret, ensure that an appropriate Expiration date is set.
From PowerShell:
Set-AzKeyVaultSecretAttribute -VaultName <Vault Name> -Name <Secret Name> -
Expires <DateTime>
Default Value:
By default, secrets do not expire.
Page 424
References:
1. https://docs.microsoft.com/en-us/azure/key-vault/key-vault-whatis
2. https://docs.microsoft.com/en-us/rest/api/keyvault/about-keys--secrets-and-
certificates#key-vault-secrets
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-data-
protection#dp-6-use-a-secure-key-management-process
4. https://docs.microsoft.com/en-us/powershell/module/az.keyvault/set-
azkeyvaultsecretattribute?view=azps-0.10.0
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 425
8.4 Ensure that the Expiration Date is set for all Secrets in Non-
RBAC Key Vaults (Automated)
Profile Applicability:
• Level 1
Description:
Ensure that all Secrets in Non Role Based Access Control (RBAC) Azure Key Vaults
have an expiration date set.
Rationale:
The Azure Key Vault enables users to store and keep secrets within the Microsoft Azure
environment. Secrets in the Azure Key Vault are octet sequences with a maximum size
of 25k bytes each. The exp (expiration date) attribute identifies the expiration date on or
after which the secret MUST NOT be used. By default, secrets never expire. It is thus
recommended to rotate secrets in the key vault and set an explicit expiration date for all
secrets. This ensures that the secrets cannot be used beyond their assigned lifetimes.
Impact:
Secrets cannot be used beyond their assigned expiry date respectively. Secrets need to
be rotated periodically wherever they are used.
Audit:
From Azure Portal:
1. Go to Key vaults.
2. For each Key vault, click on Secrets.
3. In the main pane, ensure that the status of the secret is Enabled.
4. Set an appropriate Expiration date on all secrets.
Page 426
From PowerShell:
Retrieve a list of Key vaults:
Get-AzKeyVault
For each Key vault run the following command to determine which vaults are configured
to use RBAC:
Get-AzKeyVault -VaultName <Vault Name>
For each Key Vault with the EnableRbacAuthorization setting set to False or empty, run
the following command.
Get-AzKeyVaultSecret -VaultName <Vault Name>
Make sure the Expires setting is configured with a value as appropriate wherever the
Enabled setting is set to True.
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal:
1. Go to Key vaults.
2. For each Key vault, click on Secrets.
3. In the main pane, ensure that the status of the secret is Enabled.
4. Set an appropriate Expiration date on all secrets.
Page 427
From PowerShell:
For each Key vault with the EnableRbacAuthorization setting set to False or empty, run
the following command.
Set-AzKeyVaultSecret -VaultName <Vault Name> -Name <Secret Name> -Expires
<DateTime>
Default Value:
By default, secrets do not expire.
References:
1. https://docs.microsoft.com/en-us/azure/key-vault/key-vault-whatis
2. https://docs.microsoft.com/en-us/rest/api/keyvault/about-keys--secrets-and-
certificates#key-vault-secrets
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-data-
protection#dp-6-use-a-secure-key-management-process
4. https://docs.microsoft.com/en-us/powershell/module/az.keyvault/set-
azkeyvaultsecret?view=azps-7.4.0
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 428
8.5 Ensure the Key Vault is Recoverable (Automated)
Profile Applicability:
• Level 1
Description:
The Key Vault contains object keys, secrets, and certificates. Accidental unavailability of
a Key Vault can cause immediate data loss or loss of security functions (authentication,
validation, verification, non-repudiation, etc.) supported by the Key Vault objects.
It is recommended the Key Vault be made recoverable by enabling the "Do Not Purge"
and "Soft Delete" functions. This is in order to prevent loss of encrypted data, including
storage accounts, SQL databases, and/or dependent services provided by Key Vault
objects (Keys, Secrets, Certificates) etc. This may happen in the case of accidental
deletion by a user or from disruptive activity by a malicious user.
WARNING: A current limitation is that role assignments disappearing when Key Vault is
deleted. All role assignments will need to be recreated after recovery.
Rationale:
There could be scenarios where users accidentally run delete/purge commands on Key
Vault or an attacker/malicious user deliberately does so in order to cause disruption.
Deleting or purging a Key Vault leads to immediate data loss, as keys encrypting data
and secrets/certificates allowing access/services will become non-accessible.
There is a Key Vault property that plays a role in permanent unavailability of a Key
Vault:
enablePurgeProtection: Setting this parameter to "true" for a Key Vault ensures that
even if Key Vault is deleted, Key Vault itself or its objects remain recoverable for the
next 90 days. Key Vault/objects can either be recovered or purged (permanent deletion)
during those 90 days. If no action is taken, the key vault and its objects will
subsequently be purged.
Enabling the enablePurgeProtection parameter on Key Vaults ensures that Key Vaults
and their objects cannot be deleted/purged permanently.
Impact:
Once purge-protection and soft-delete are enabled for a Key Vault, the action is
irreversible.
Page 429
Audit:
From Azure Portal
1. Go to Key Vaults
2. For each Key Vault
3. Click Properties
4. Ensure the "Enable purge protection (enforce a mandatory retention period for
deleted vaults and vault objects)" is selected for Purge protection option on this
key vault`
From PowerShell
Get all Key Vaults.
Get-AzKeyVault
For each Key Vault run the following command.
Get-AzKeyVault -VaultName <Vault Name>
Examine the results of the above command for the EnablePurgeProtection setting.
Make sure enablePurgeProtection is set to True.
Remediation:
To enable "Do Not Purge" and "Soft Delete" for a Key Vault:
From Azure Portal
1. Go to Key Vaults
2. For each Key Vault
3. Click Properties
4. Ensure the status of Purge protection reads Enable purge protection (enforce
a mandatory retention period for deleted vaults and vault objects).
Note, once enabled you cannot disable it.
Page 430
From Azure CLI
az resource update --id /subscriptions/xxxxxx-xxxx-xxxx-xxxx-
xxxxxxxxxxxx/resourceGroups/<resourceGroupName>/providers/Microsoft.KeyVault
/vaults/<keyVaultName> --set properties.enablePurgeProtection=true
From PowerShell
Update-AzKeyVault -VaultName <vaultName -ResourceGroupName <resourceGroupName
-EnablePurgeProtection
Default Value:
When a new Key Vault is created, both the parameters enableSoftDelete and
enablePurgeProtection are set to null, disabling both the features.
References:
1. https://docs.microsoft.com/en-us/azure/key-vault/key-vault-soft-delete-cli
2. https://learn.microsoft.com/en-us/azure/key-vault/general/soft-delete-overview
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-governance-
strategy#gs-8-define-and-implement-backup-and-recovery-strategy
4. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-data-
protection#dp-8-ensure-security-of-key-and-certificate-repository
Additional Information:
When a key is used for SQL server TDE or Encrypting Storage Account, both the
features "Do Not Purge" and "Soft Delete" are enabled for the corresponding Key Vault
by default by Azure Backend.
WARNING: A current limitation of the soft-delete feature across all Azure services is
role assignments disappearing when Key Vault is deleted. All role assignments will
need to be recreated after recovery.
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 431
8.6 Enable Role Based Access Control for Azure Key Vault
(Manual)
Profile Applicability:
• Level 2
Description:
WARNING: Role assignments disappear when a Key Vault has been deleted (soft-
delete) and recovered. Afterwards it will be required to recreate all role assignments.
This is a limitation of the soft-delete feature across all Azure services.
Rationale:
The new RBAC permissions model for Key Vaults enables a much finer grained access
control for key vault secrets, keys, certificates, etc., than the vault access policy. This in
turn will permit the use of privileged identity management over these roles, thus
securing the key vaults with JIT Access management.
Impact:
Implementation needs to be properly designed from the ground up, as this is a
fundamental change to the way key vaults are accessed/managed. Changing
permissions to key vaults will result in loss of service as permissions are re-applied. For
the least amount of downtime, map your current groups and users to their
corresponding permission needs.
Audit:
From Azure Portal
1. From Azure Home open the Portal Menu in the top left corner
2. Select Key Vaults
3. Select a Key Vault to audit
4. Select Access configuration
5. Ensure the Permission Model radio button is set to Azure role-based access
control
Page 432
From PowerShell
Run the following PowerShell command:
Get-AzKeyVault -Vaultname <KEY VAULT NAME> -ResourceGroupName <RESOURCE GROUP
NAME>
Ensure the Enabled For RBAC Authorization setting is set to True
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal
Key Vaults can be configured to use Azure role-based access control on creation.
For existing Key Vaults:
1. From Azure Home open the Portal Menu in the top left corner
2. Select Key Vaults
3. Select a Key Vault to audit
4. Select Access configuration
5. Set the Permission model radio button to Azure role-based access control,
taking note of the warning message
6. Click Save
7. Select Access Control (IAM)
8. Select the Role Assignments tab
9. Reapply permissions as needed to groups or users
Default Value:
The default value for Access control in Key Vaults is Vault Policy.
Page 433
References:
1. https://docs.microsoft.com/en-gb/azure/key-vault/general/rbac-migration#vault-
access-policy-to-azure-rbac-migration-steps
2. https://docs.microsoft.com/en-gb/azure/role-based-access-control/role-
assignments-portal?tabs=current
3. https://docs.microsoft.com/en-gb/azure/role-based-access-control/overview
4. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-data-
protection#dp-8-ensure-security-of-key-and-certificate-repository
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 434
8.7 Ensure that Private Endpoints are Used for Azure Key Vault
(Manual)
Profile Applicability:
• Level 2
Description:
Private endpoints will secure network traffic from Azure Key Vault to the resources
requesting secrets and keys.
Rationale:
Private endpoints will keep network requests to Azure Key Vault limited to the endpoints
attached to the resources that are whitelisted to communicate with each other.
Assigning the Key Vault to a network without an endpoint will allow other resources on
that network to view all traffic from the Key Vault to its destination. In spite of the
complexity in configuration, this is recommended for high security secrets.
Impact:
Incorrect or poorly-timed changing of network configuration could result in service
interruption. There are also additional costs tiers for running a private endpoint per
petabyte or more of networking traffic.
Audit:
From Azure Portal
1. From Azure Home open the Portal Menu in the top left.
2. Select Key Vaults.
3. Select a Key Vault to audit.
4. Select Networking in the left column.
5. Select Private endpoint connections from the top row.
6. View if there is an endpoint attached.
Page 435
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
Please see the additional information about the requirements needed before
starting this remediation procedure.
From Azure Portal
1. From Azure Home open the Portal Menu in the top left.
2. Select Key Vaults.
3. Select a Key Vault to audit.
4. Select Networking in the left column.
5. Select Private endpoint connections from the top row.
6. Select + Create.
7. Select the subscription the Key Vault is within, and other desired configuration.
8. Select Next.
9. For resource type select Microsoft.KeyVault/vaults.
10. Select the Key Vault to associate the Private Endpoint with.
11. Select Next.
12. In the Virtual Networking field, select the network to assign the Endpoint.
13. Select other configuration options as desired, including an existing or new
application security group.
14. Select Next.
15. Select the private DNS the Private Endpoints will use.
16. Select Next.
17. Optionally add Tags.
18. Select Next : Review + Create.
19. Review the information and select Create. Follow the Audit Procedure to
determine if it has successfully applied.
20. Repeat steps 3-19 for each Key Vault.
Page 436
From Azure CLI
4. Determine the Private Endpoint's IP address to connect the Key Vault to the
Private DNS you have previously created:
5. Look for the property networkInterfaces then id; the value must be placed in the
variable <privateEndpointNIC> within step 7.
6. Look for the property networkInterfaces then id; the value must be placed on
<privateEndpointNIC> in step 7.
7. Create a Private DNS record within the DNS Zone you created for the Private
Endpoint:
Page 437
nslookup <keyVaultName>.vault.azure.net
nslookup <keyVaultName>.privatelink.vaultcore.azure.n
Default Value:
By default, Private Endpoints are not enabled for any services within Azure.
References:
1. https://docs.microsoft.com/en-us/azure/private-link/private-endpoint-overview
2. https://docs.microsoft.com/en-us/azure/storage/common/storage-private-
endpoints
3. https://azure.microsoft.com/en-us/pricing/details/private-link/
4. https://docs.microsoft.com/en-us/azure/key-vault/general/private-link-
service?tabs=portal
5. https://docs.microsoft.com/en-us/azure/virtual-network/quick-create-portal
6. https://docs.microsoft.com/en-us/azure/private-link/tutorial-private-endpoint-
storage-portal
7. https://docs.microsoft.com/en-us/azure/bastion/bastion-overview
8. https://docs.microsoft.com/azure/dns/private-dns-getstarted-cli#create-an-
additional-dns-record
9. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-data-
protection#dp-8-ensure-security-of-key-and-certificate-repository
Additional Information:
This recommendation assumes that you have created a Resource Group containing a
Virtual Network that the services are already associated with and configured private
DNS. A Bastion on the virtual network is also required, and the service to which you are
connecting must already have a Private Endpoint. For information concerning the
installation of these services, please see the attached documentation.
Microsoft's own documentation lists the requirements as: A Key Vault. An Azure virtual
network. A subnet in the virtual network. Owner or contributor permissions for both the
Key Vault and the virtual network.
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 438
Controls
Control IG 1 IG 2 IG 3
Version
Page 439
8.8 Ensure Automatic Key Rotation is Enabled Within Azure Key
Vault for the Supported Services (Manual)
Profile Applicability:
• Level 2
Description:
Automatic Key Rotation is available in Public Preview. The currently supported
applications are Key Vault, Managed Disks, and Storage accounts accessing keys
within Key Vault. The number of supported applications will incrementally increased.
Rationale:
Once set up, Automatic Private Key Rotation removes the need for manual
administration when keys expire at intervals determined by your organization's policy.
The recommended key lifetime is 2 years. Your organization should determine its own
key expiration policy.
Impact:
There are an additional costs per operation in running the needed applications.
Audit:
From Azure Portal
1. From Azure Portal select the Portal Menu in the top left.
2. Select Key Vaults.
3. Select a Key Vault to audit.
4. Under Objects select Keys.
5. Select a key to audit.
6. In the top row select Rotation policy.
7. Ensure Enable auto rotation is set to Enabled.
8. Repeat steps 3-7 for each Key Vault and Key.
From PowerShell
Run the following command:
Get-AzKeyVaultKeyRotationPolicy -VaultName <vaultName> -Name <keyName>
Page 440
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
Note:
Azure CLI and Powershell use ISO8601 flags to input timespans. Every timespan input
will be in the format P<timespanInISO8601Format>(Y,M,D). The leading P is required
with it denoting period. The (Y,M,D) are for the duration of Year, Month,and Day
respectively. A time frame of 2 years, 2 months, 2 days would be (P2Y2M2D).
From Azure Portal
1. From Azure Portal select the Portal Menu in the top left.
2. Select Key Vaults.
3. Select a Key Vault to audit.
4. Under Objects select Keys.
5. Select a key to audit.
6. In the top row select Rotation policy.
7. Select an Expiry time.
8. Set Enable auto rotation to Enabled.
9. Set an appropriate Rotation option and Rotation time.
10. Optionally set the Notification time.
11. Select Save.
12. Repeat steps 3-11 for each Key Vault and Key.
Page 441
From Azure CLI
Run the following command for each key to update its policy to be auto-rotated:
az keyvault key rotation-policy update -n <keyName> --vault-name <vaultName>
--value <path/to/policy.json>
{
"lifetimeActions": [
{
"trigger": {
"timeAfterCreate": "<timespanInISO8601Format>",
"timeBeforeExpiry" : null
},
"action": {
"type": "Rotate"
}
},
{
"trigger": {
"timeBeforeExpiry" : "<timespanInISO8601Format>"
},
"action": {
"type": "Notify"
}
}
],
"attributes": {
"expiryTime": "<timespanInISO8601Format>"
}
}
Page 442
From PowerShell
Run the following command for each key to update its policy:
Set-AzKeyVaultKeyRotationPolicy -VaultName test-kv -Name test-key -PolicyPath
rotation_policy.json
Note: It is easiest to supply the policy flags in a .json file. An example json file would be:
<#
rotation_policy.json
{
"lifetimeActions": [
{
"trigger": {
"timeAfterCreate": "P<timespanInISO8601Format>M",
"timeBeforeExpiry": null
},
"action": {
"type": "Rotate"
}
},
{
"trigger": {
"timeBeforeExpiry": "P<timespanInISO8601Format>D"
},
"action": {
"type": "Notify"
}
}
],
"attributes": {
"expiryTime": "P<timespanInISO8601Format>Y"
}
}
#>
Default Value:
By default, Automatic Key Rotation is not enabled.
References:
1. https://docs.microsoft.com/en-us/azure/key-vault/keys/how-to-configure-key-
rotation
2. https://docs.microsoft.com/en-us/azure/storage/common/customer-managed-
keys-overview#update-the-key-version
3. https://docs.microsoft.com/en-us/azure/virtual-machines/windows/disks-enable-
customer-managed-keys-powershell#set-up-an-azure-key-vault-and-
diskencryptionset-optionally-with-automatic-key-rotation
4. https://azure.microsoft.com/en-us/updates/public-preview-automatic-key-rotation-
of-customermanaged-keys-for-encrypting-azure-managed-disks/
5. https://docs.microsoft.com/en-us/cli/azure/keyvault/key/rotation-
policy?view=azure-cli-latest#az-keyvault-key-rotation-policy-update
Page 443
6. https://docs.microsoft.com/en-us/powershell/module/az.keyvault/set-
azkeyvaultkeyrotationpolicy?view=azps-8.1.0
7. https://docs.microsoft.com/en-us/azure/data-explorer/kusto/query/scalar-data-
types/timespan
8. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-data-
protection#dp-6-use-a-secure-key-management-process
Additional Information:
Automatic Key Rotation is in public preview, so any configuration will not change upon
full release.
**Note: ** Azure CLI and Powershell use ISO8601 flags to input timespans. Every
timespan input will be in the format P<timespanInISO8601Format>(Y,M,D). The leading
P is required with it denoting period. The (Y,M,D) are for the duration of Year, Month,
Day respectively. A time frame of 2 years, 2 months, 2 days would be (P2Y2M2D).
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 444
9 AppService
This section covers security recommendations for Azure AppService.
Page 445
9.1 Ensure App Service Authentication is set up for apps in Azure
App Service (Automated)
Profile Applicability:
• Level 2
Description:
Azure App Service Authentication is a feature that can prevent anonymous HTTP
requests from reaching a Web Application or authenticate those with tokens before they
reach the app. If an anonymous request is received from a browser, App Service will
redirect to a logon page. To handle the logon process, a choice from a set of identity
providers can be made, or a custom authentication mechanism can be implemented.
Rationale:
By Enabling App Service Authentication, every incoming HTTP request passes through
it before being handled by the application code. It also handles authentication of users
with the specified provider (Entra ID, Facebook, Google, Microsoft Account, and
Twitter), validation, storing and refreshing of tokens, managing the authenticated
sessions and injecting identity information into request headers. Disabling HTTP Basic
Authentication functionality further ensures legacy authentication methods are disabled
within the application.
Impact:
This is only required for App Services which require authentication. Enabling on site like
a marketing or support website will prevent unauthenticated access which would be
undesirable.
Adding Authentication requirement will increase cost of App Service and require
additional security components to facilitate the authentication.
Audit:
From Azure Portal
Page 446
From Azure CLI
To check App Service Authentication status for an existing app, run the following
command (using authV1 extension),
az webapp auth show --resource-group <RESOURCE_GROUP_NAME> --name <APP_NAME>
The output should return true if App Service authentication is set to On.
If using the authV2 extension for the az webapp auth CLI, run the following command,
az webapp auth show --resource-group <RESOURCE_GROUP_NAME> --name <APP_NAME>
Ensure that the enabled setting under azureActiveDirectory is set to true.
To check whether the Basic Auth Publishing Credentials are disabled, issue the
following commands,
az resource show --resource-group <RESOURCE GROUP NAME> --name scm --
namespace Microsoft.Web --resource-type basicPublishingCredentialsPolicies --
parent sites/<APPLICATION NAME>
Remediation:
From Azure Portal
To disable the Basic Auth Publishing Credentials setting, perform the following
steps:
Page 447
1. Login to Azure Portal using https://portal.azure.com
2. Go to App Services
3. Click on each App
4. Under Settings, click on Configuration
5. Click on the 'General Settings' tab
6. Under Platform settings, ensure Basic Auth Publishing Credentials is set to
Off
1. https://docs.microsoft.com/en-us/azure/app-service/app-service-authentication-
overview
2. https://docs.microsoft.com/en-us/azure/role-based-access-control/built-in-
roles#website-contributor
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-privileged-
access#pa-3-manage-lifecycle-of-identities-and-entitlements
4. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-governance-
strategy#gs-6-define-and-implement-identity-and-privileged-access-strategy
Additional Information:
You're not required to use App Service for authentication and authorization. Many web
frameworks are bundled with security features, and you can use them if you like. If you
need more flexibility than App Service provides, you can also write your own utilities.
Secure authentication and authorization require deep understanding of security,
including federation, encryption, JSON web tokens (JWT) management, grant types,
and so on.
Page 448
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 449
9.2 Ensure Web App Redirects All HTTP traffic to HTTPS in
Azure App Service (Automated)
Profile Applicability:
• Level 1
Description:
Azure Web Apps allows sites to run under both HTTP and HTTPS by default. Web apps
can be accessed by anyone using non-secure HTTP links by default. Non-secure HTTP
requests can be restricted and all HTTP requests redirected to the secure HTTPS port.
It is recommended to enforce HTTPS-only traffic.
Rationale:
Enabling HTTPS-only traffic will redirect all non-secure HTTP requests to HTTPS ports.
HTTPS uses the TLS/SSL protocol to provide a secure connection which is both
encrypted and authenticated. It is therefore important to support HTTPS for the security
benefits.
Impact:
When it is enabled, every incoming HTTP request is redirected to the HTTPS port. This
means an extra level of security will be added to the HTTP requests made to the app.
Audit:
From Azure Portal
Page 450
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal
Default Value:
By default, HTTPS-only feature will be disabled when a new app is created using the
command-line tool or Azure Portal console.
References:
1. https://docs.microsoft.com/en-us/azure/app-service/app-service-web-tutorial-
custom-ssl#enforce-https
2. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-data-
protection#dp-3-encrypt-sensitive-data-in-transit
3. https://docs.microsoft.com/en-us/powershell/module/az.websites/set-
azwebapp?view=azps-8.1.0
Page 451
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 452
9.3 Ensure Web App is using the latest version of TLS encryption
(Automated)
Profile Applicability:
• Level 1
Description:
The TLS (Transport Layer Security) protocol secures transmission of data over the
internet using standard encryption technology. Encryption should be set with the latest
version of TLS. App service allows TLS 1.2 by default, which is the recommended TLS
level by industry standards such as PCI DSS.
Rationale:
App service currently allows the web app to set TLS versions 1.0, 1.1 and 1.2. It is
highly recommended to use the latest TLS 1.2 version for web app secure connections.
Audit:
From Azure Portal
Page 453
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal
Default Value:
By default, TLS Version feature will be set to 1.2 when a new app is created using the
command-line tool or Azure Portal console.
References:
1. https://docs.microsoft.com/en-us/azure/app-service/app-service-web-tutorial-
custom-ssl#enforce-tls-versions
2. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-data-
protection#dp-3-encrypt-sensitive-data-in-transit
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-network-
security#ns-8-detect-and-disable-insecure-services-and-protocols
4. https://docs.microsoft.com/en-us/powershell/module/az.websites/set-
azwebapp?view=azps-8.1.0
Page 454
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 455
9.4 Ensure that Register with Entra ID is enabled on App Service
(Automated)
Profile Applicability:
• Level 1
Description:
Managed service identity in App Service provides more security by eliminating secrets
from the app, such as credentials in the connection strings. When registering an App
Service with Entra ID, the app will connect to other Azure services securely without the
need for usernames and passwords.
Rationale:
App Service provides a highly scalable, self-patching web hosting service in Azure. It
also provides a managed identity for apps, which is a turn-key solution for securing
access to Azure SQL Database and other Azure services.
Audit:
From Azure Portal
1. From Azure Portal open the Portal Menu in the top left
2. Go to App Services
3. Click on each App
4. Under the Setting section, Click on Identity
5. Under the System assigned pane, ensure that Status set to On
Page 456
From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the
associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL:
https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
Remediation:
From Azure Portal
Default Value:
By default, Managed service identity via Entra ID is disabled.
References:
1. https://docs.microsoft.com/en-gb/azure/app-service/app-service-web-tutorial-
connect-msi
2. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-identity-
management#im-1-use-centralized-identity-and-authentication-system
Page 457
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 458
9.5 Ensure That 'PHP version' is the Latest, If Used to Run the
Web App (Manual)
Profile Applicability:
• Level 1
Description:
Periodically newer versions are released for PHP software either due to security flaws
or to include additional functionality. Using the latest PHP version for web apps is
recommended in order to take advantage of security fixes, if any, and/or additional
functionalities of the newer version.
Rationale:
Newer versions may contain security enhancements and additional functionality. Using
the latest software version is recommended in order to take advantage of
enhancements and new capabilities. With each software installation, organizations need
to determine if a given update meets their requirements. They must also verify the
compatibility and support provided for any additional software against the update
revision that is selected.
Impact:
If your app is written using version-dependent features or libraries, they may not be
available on the latest version. If you wish to upgrade, research the impact thoroughly.
Upgrading may have unforeseen consequences that could result in downtime.
Audit:
From Azure Portal
1. From Azure Home open the Portal Menu in the top left
2. Go to App Services
3. Click on each App
4. Under Settings section, click on Configuration
5. Click on the General settings pane, ensure that for a Stack of PHP the Major
Version and Minor Version reflect the latest stable and supported release.
** The latest stable version can be confirmed by going to php.net. Navigate to the
downloads, and then find the most recent version that is marked by Current Stable PHP
[version_number]. **
NOTE: No action is required If PHP version is set to Off as PHP is not used by your
web app.
Page 459
From Azure CLI
To check PHP version for an existing app, run the following command,
az webapp config show --resource-group <RESOURCE_GROUP_NAME> --name
<APP_NAME> --query "{LinuxFxVersion:linuxFxVersion,PHP_Version:phpVersion}"
From PowerShell
$application = Get-AzWebApp -ResourceGroupName <resource group name> -Name
<app name>
$application.SiteConfig | select-object LinuxFXVersion, phpVersion
The output should return the latest available version of PHP. Any other version of PHP
would be considered a finding.
NOTE: No action is required, If the output is empty as PHP is not used by your web
app.
Remediation:
From Azure Portal
1. From Azure Home open the Portal Menu in the top left
2. Go to App Services
3. Click on each App
4. Under Settings section, click on Configuration
5. Click on the General settings pane, ensure that for a Stack of PHP the Major
Version and Minor Version reflect the latest stable and supported release.
NOTE: No action is required If PHP version is set to Off or is set with an empty value as
PHP is not used by your web app.
Page 460
From Azure CLI
List the available PHP runtimes:
az webapp list-runtimes
To set latest PHP version for an existing app, run the following command:
az webapp config set --resource-group <resource group name> --name <app name>
[--linux-fx-version <php runtime version>][--php-version <php version>]
From PowerShell
To set latest PHP version for an existing app, run the following command:
Set-AzWebApp -ResourceGroupName <resource group name> -Name <app name> -
phpVersion <php version>
NOTE: Currently there is no way to update an existing web app Linux FX Version
setting using PowerShell, nor is there a way to create a new web app using PowerShell
that configures the PHP runtime in the Linux FX Version setting.
Default Value:
The version of PHP is whatever was selected upon App creation.
References:
1. https://docs.microsoft.com/en-us/azure/app-service/web-sites-configure#general-
settings
2. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-posture-
vulnerability-management#pv-6-rapidly-and-automatically-remediate-
vulnerabilities
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-posture-
vulnerability-management#pv-3-define-and-establish-secure-configurations-for-
compute-resources
4. https://www.php.net/downloads
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 461
Controls
Control IG 1 IG 2 IG 3
Version
Page 462
9.6 Ensure that 'Python version' is the Latest Stable Version, if
Used to Run the Web App (Manual)
Profile Applicability:
• Level 1
Description:
Periodically, newer versions are released for Python software either due to security
flaws or to include additional functionality. Using the latest full Python version for web
apps is recommended in order to take advantage of security fixes, if any, and/or
additional functionalities of the newer version.
Rationale:
Newer versions may contain security enhancements and additional functionality. Using
the latest software version is recommended in order to take advantage of
enhancements and new capabilities. With each software installation, organizations need
to determine if a given update meets their requirements. They must also verify the
compatibility and support provided for any additional software against the update
revision that is selected. Using the latest full version will keep your stack secure to
vulnerabilities and exploits.
Impact:
If your app is written using version-dependent features or libraries, they may not be
available on the latest version. If you wish to upgrade, research the impact thoroughly.
Upgrading may have unforeseen consequences that could result in downtime.
Audit:
From Azure Console
1. From Azure Home open the Portal Menu in the top left
2. Go to App Services
3. Click on each App
4. Under Settings section, click on Configuration
5. Click on the General settings pane and ensure that for a Stack of Python, with
Major Version of Python 3, that the Minor Version is set to the latest stable
version available (Python 3.11, at the time of writing)
NOTE: No action is required if Python version is set to Off, as Python is not used by
your web app.
Page 463
From Azure CLI
To check Python version for an existing app, run the following command
az webapp config show --resource-group <RESOURCE_GROUP_NAME> --name
<APP_NAME> --query
"{LinuxFxVersion:linuxFxVersion,WindowsFxVersion:windowsFxVersion,PythonVersi
on:pythonVersion}
The output should return the latest stable version of Python.
NOTE: No action is required if the output is empty, as Python is not used by your web
app.
From PowerShell
$app = Get-AzWebApp -Name <app name> -ResourceGroup <resource group name>
$app.SiteConfig |Select-Object LinuxFXVersion, WindowsFxVersion,
PythonVersion
Ensure the output of the above command shows the latest version of Python.
NOTE: No action is required if the output is empty, as Python is not used by your web
app.
Remediation:
From Azure Portal
1. From Azure Home open the Portal Menu in the top left
2. Go to App Services
3. Click on each App
4. Under Settings section, click on Configuration
5. Click on the General settings pane and ensure that the Major Version and the
Minor Version is set to the latest stable version available (Python 3.11, at the
time of writing)
NOTE: No action is required if Python version is set to Off, as Python is not used by
your web app.
Page 464
From Azure CLI
To see the list of supported runtimes:
az webapp list-runtimes
To set latest Python version for an existing app, run the following command:
az webapp config set --resource-group <RESOURCE_GROUP_NAME> --name <APP_NAME>
[--windows-fx-version "PYTHON|3.11"] [--linux-fx-version "PYTHON|3.11"]
From PowerShell
As of this writing, there is no way to update an existing application's SiteConfig or set
the a new application's SiteConfig settings during creation via PowerShell.
Default Value:
The version of Python is whatever was selected upon App creation.
References:
1. https://docs.microsoft.com/en-us/azure/app-service/web-sites-configure#general-
settings
2. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-posture-
vulnerability-management#pv-6-rapidly-and-automatically-remediate-
vulnerabilities
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-posture-
vulnerability-management#pv-3-define-and-establish-secure-configurations-for-
compute-resources
4. https://www.python.org/downloads/
Additional Information:
** The latest stable version can be confirmed by going to python.org. Navigate to the
downloads, and then find the most recent version that is marked by security in the
maintenance column. **
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 465
Controls
Control IG 1 IG 2 IG 3
Version
Page 466
9.7 Ensure that 'Java version' is the latest, if used to run the Web
App (Manual)
Profile Applicability:
• Level 1
Description:
Periodically, newer versions are released for Java software either due to security flaws
or to include additional functionality. Using the latest Java version for web apps is
recommended in order to take advantage of security fixes, if any, and/or new
functionalities of the newer version.
Rationale:
Newer versions may contain security enhancements and additional functionality. Using
the latest software version is recommended in order to take advantage of
enhancements and new capabilities. With each software installation, organizations need
to determine if a given update meets their requirements. They must also verify the
compatibility and support provided for any additional software against the update
revision that is selected.
Impact:
If your app is written using version-dependent features or libraries, they may not be
available on the latest version. If you wish to upgrade, research the impact thoroughly.
Upgrading may have unforeseen consequences that could result in downtime.
Audit:
From Azure Portal
NOTE: No action is required if Java version is set to Off, as Java is not used by your
web app.
Page 467
From Azure CLI
To check Java version for an existing app, run the following command,
az webapp config show --resource-group <RESOURCE_GROUP_NAME> --name
<APP_NAME> --query "{LinuxFxVersion:linuxFxVersion,
WindowsFxVersion:windowsFxVersion, JavaVersion:javaVersion,
JavaContainerVersion:javaContainerVersion, JavaContainer:javaContainer}"
The output should return the latest available version of Java (if java is being used for the
web application being audited).
From PowerShell
For each application, store the application information within an object, and then
interrogate the SiteConfig information for that application object.
$app = Get-AzWebApp -Name <app name> -ResourceGroup <resource group name>
Remediation:
From Azure Portal
NOTE: No action is required if Java version is set to Off, as Java is not used by your
web app.
Page 468
From Azure CLI
To see the list of supported runtimes:
az webapp list-runtimes
To set latest Java version for an existing app, run the following command:
az webapp config set --resource-group <RESOURCE_GROUP_NAME> --name <APP_NAME>
[--java-version <JAVA_VERSION> --java-container <JAVA_CONTAINER> --java-
container-version <JAVA_CONTAINER_VERSION> [--windows-fx-version <java
runtime version>] [--linux-fx-version <java runtime version version>]
If creating a new web application to use a currently supported version of Java, run the
following commands.
To create an app service plan:
az appservice plan create --resource-group <resource group name> --name <plan
name> --location <location> [--is-linux --number-of-workers <int> --sku
<pricing tier>] [--hyper-v --sku <pricing tier>]
Get the app service plan ID:
az appservice plan list --query "[].{Name:name, ID:id, SKU:sku,
Location:location}"
To create a new Java web application using the retrieved app service ID:
az webapp create --resource-group <resource group name> --plan <app service
plan ID> --name <app name> [--linux-fx-version <java run time version>] [--
windows-fx-version <java run time version>]
From PowerShell
As of this writing, there is no way to update an existing application's SiteConfig or set a
new application's SiteConfig settings during creation via PowerShell.
Default Value:
The default setting is whichever setting was chosen in the creation of the webapp.
References:
1. https://docs.microsoft.com/en-us/azure/app-service/web-sites-configure#general-
settings
2. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-posture-
vulnerability-management#pv-3-define-and-establish-secure-configurations-for-
compute-resources
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-posture-
vulnerability-management#pv-6-rapidly-and-automatically-remediate-
vulnerabilities
4. https://www.oracle.com/java/technologies/downloads/#java11
Page 469
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 470
9.8 Ensure that 'HTTP Version' is the Latest, if Used to Run the
Web App (Automated)
Profile Applicability:
• Level 1
Description:
Periodically, newer versions are released for HTTP either due to security flaws or to
include additional functionality. Using the latest HTTP version for web apps to take
advantage of security fixes, if any, and/or new functionalities of the newer version.
Rationale:
Newer versions may contain security enhancements and additional functionality. Using
the latest version is recommended in order to take advantage of enhancements and
new capabilities. With each software installation, organizations need to determine if a
given update meets their requirements. They must also verify the compatibility and
support provided for any additional software against the update revision that is selected.
HTTP 2.0 has additional performance improvements on the head-of-line blocking
problem of old HTTP version, header compression, and prioritization of requests. HTTP
2.0 no longer supports HTTP 1.1's chunked transfer encoding mechanism, as it
provides its own, more efficient, mechanisms for data streaming.
Audit:
From Azure Portal
NOTE: Most modern browsers support HTTP 2.0 protocol over TLS only, while non-
encrypted traffic continues to use HTTP 1.1. To ensure that client browsers connect to
your app with HTTP/2, either buy an App Service Certificate for your app's custom
domain or bind a third party certificate.
Page 471
From PowerShell
For each application, run the following command:
Get-AzWebApp -ResourceGroupName <app resource group> -Name <app name>
|Select-Object -ExpandProperty SiteConfig
If the value of the Http20Enabled setting is true, the application is compliant. Otherwise
if the value of the Http20Enabled setting is false, the application is non-compliant.
Remediation:
From Azure Portal
NOTE: Most modern browsers support HTTP 2.0 protocol over TLS only, while non-
encrypted traffic continues to use HTTP 1.1. To ensure that client browsers connect to
your app with HTTP/2, either buy an App Service Certificate for your app's custom
domain or bind a third party certificate.
From PowerShell
To enable HTTP 2.0 version support, run the following command:
Set-AzWebApp -ResourceGroupName <app resource group> -Name <app name> -
Http20Enabled $true
Page 472
References:
1. https://docs.microsoft.com/en-us/azure/app-service/web-sites-configure#general-
settings
2. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-posture-
vulnerability-management#pv-3-define-and-establish-secure-configurations-for-
compute-resources
3. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-posture-
vulnerability-management#pv-6-rapidly-and-automatically-remediate-
vulnerabilities
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 473
9.9 Ensure FTP deployments are Disabled (Automated)
Profile Applicability:
• Level 1
Description:
By default, Azure Functions, Web, and API Services can be deployed over FTP. If FTP
is required for an essential deployment workflow, FTPS should be required for FTP
login for all App Service Apps and Functions.
Rationale:
Azure FTP deployment endpoints are public. An attacker listening to traffic on a wifi
network used by a remote employee or a corporate network could see login traffic in
clear-text which would then grant them full control of the code base of the app or
service. This finding is more severe if User Credentials for deployment are set at the
subscription level rather than using the default Application Credentials which are unique
per App.
Impact:
Any deployment workflows that rely on FTP or FTPs rather than the WebDeploy or
HTTPs endpoints may be affected.
Audit:
From Azure Portal
Page 474
az webapp deployment list-publishing-profiles --ids <ids>
{
"publishUrl": <URL_FOR_WEB_APP>,
"userName": <USER_NAME>,
"userPWD": <USER_PASSWORD>,
}
From PowerShell
List all Web Apps:
Get-AzWebApp
For each app:
Get-AzWebApp -ResourceGroupName <resource group name> -Name <app name> |
Select-Object -ExpandProperty SiteConfig
In the output, look for the value of FtpsState. If its value is AllAllowed the setting is out
of compliance. Any other value is considered in compliance with this check.
Remediation:
From Azure Portal
Page 475
From PowerShell
For each out of compliance application, run the following:
Set-AzWebApp -ResourceGroupName <resource group name> -Name <app name> -
FtpsState <Disabled or FtpsOnly>
Default Value:
By default, FTP based deployment is All allowed
References:
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 476
9.10 Ensure Azure Key Vaults are Used to Store Secrets
(Manual)
Profile Applicability:
• Level 2
Description:
Azure Key Vault will store multiple types of sensitive information such as encryption
keys, certificate thumbprints, and Managed Identity Credentials. Access to these
'Secrets' can be controlled through granular permissions.
Rationale:
The credentials given to an application have permissions to create, delete, or modify
data stored within the systems they access. If these credentials are stored within the
application itself, anyone with access to the application or a copy of the code has
access to them. Storing within Azure Key Vault as secrets increases security by
controlling access. This also allows for updates of the credentials without redeploying
the entire application.
Impact:
Integrating references to secrets within the key vault are required to be specifically
integrated within the application code. This will require additional configuration to be
made during the writing of an application, or refactoring of an already written one. There
are also additional costs that are charged per 10000 requests to the Key Vault.
Audit:
From Azure Portal
From Powershell
To list key vaults within a subscription run the following command:
Get-AzKeyVault
To list all secrets in a key vault run the following command:
Page 477
Get-AzKeyVaultSecret -VaultName '<vaultName>'
Remediation:
Remediation has 2 steps
Page 478
{
//...
"resources": [
{
"type": "Microsoft.Storage/storageAccounts",
"name": "[variables('storageAccountName')]",
//...
},
{
"type": "Microsoft.Insights/components",
"name": "[variables('appInsightsName')]",
//...
},
{
"type": "Microsoft.Web/sites",
"name": "[variables('functionAppName')]",
"identity": {
"type": "SystemAssigned"
},
//...
"resources": [
{
"type": "config",
"name": "appsettings",
//...
"dependsOn": [
"[resourceId('Microsoft.Web/sites',
variables('functionAppName'))]",
"[resourceId('Microsoft.KeyVault/vaults/',
variables('keyVaultName'))]",
"[resourceId('Microsoft.KeyVault/vaults/secrets',
variables('keyVaultName'), variables('storageConnectionStringName'))]",
"[resourceId('Microsoft.KeyVault/vaults/secrets',
variables('keyVaultName'), variables('appInsightsKeyName'))]"
],
"properties": {
"AzureWebJobsStorage":
"[concat('@Microsoft.KeyVault(SecretUri=',
reference(variables('storageConnectionStringResourceId')).secretUriWithVersio
n, ')')]",
"WEBSITE_CONTENTAZUREFILECONNECTIONSTRING":
"[concat('@Microsoft.KeyVault(SecretUri=',
reference(variables('storageConnectionStringResourceId')).secretUriWithVersio
n, ')')]",
"APPINSIGHTS_INSTRUMENTATIONKEY":
"[concat('@Microsoft.KeyVault(SecretUri=',
reference(variables('appInsightsKeyResourceId')).secretUriWithVersion,
')')]",
"WEBSITE_ENABLE_SYNC_UPDATE_SITE": "true"
//...
}
},
{
"type": "sourcecontrols",
"name": "web",
//...
"dependsOn": [
Page 479
"[resourceId('Microsoft.Web/sites',
variables('functionAppName'))]",
"[resourceId('Microsoft.Web/sites/config',
variables('functionAppName'), 'appsettings')]"
],
}
]
},
{
"type": "Microsoft.KeyVault/vaults",
"name": "[variables('keyVaultName')]",
//...
"dependsOn": [
"[resourceId('Microsoft.Web/sites',
variables('functionAppName'))]"
],
"properties": {
//...
"accessPolicies": [
{
"tenantId":
"[reference(concat('Microsoft.Web/sites/', variables('functionAppName'),
'/providers/Microsoft.ManagedIdentity/Identities/default'), '2015-08-31-
PREVIEW').tenantId]",
"objectId":
"[reference(concat('Microsoft.Web/sites/', variables('functionAppName'),
'/providers/Microsoft.ManagedIdentity/Identities/default'), '2015-08-31-
PREVIEW').principalId]",
"permissions": {
"secrets": [ "get" ]
}
}
]
},
"resources": [
{
"type": "secrets",
"name": "[variables('storageConnectionStringName')]",
//...
"dependsOn": [
"[resourceId('Microsoft.KeyVault/vaults/',
variables('keyVaultName'))]",
"[resourceId('Microsoft.Storage/storageAccounts',
variables('storageAccountName'))]"
],
"properties": {
"value":
"[concat('DefaultEndpointsProtocol=https;AccountName=',
variables('storageAccountName'), ';AccountKey=',
listKeys(variables('storageAccountResourceId'),'2015-05-01-preview').key1)]"
}
},
{
"type": "secrets",
"name": "[variables('appInsightsKeyName')]",
//...
"dependsOn": [
Page 480
"[resourceId('Microsoft.KeyVault/vaults/',
variables('keyVaultName'))]",
"[resourceId('Microsoft.Insights/components',
variables('appInsightsName'))]"
],
"properties": {
"value":
"[reference(resourceId('microsoft.insights/components/',
variables('appInsightsName')), '2015-05-01').InstrumentationKey]"
}
}
]
}
]
}
Default Value:
By default, no Azure Key Vaults are created.
References:
1. https://docs.microsoft.com/en-us/azure/app-service/app-service-key-vault-
references
2. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-identity-
management#im-3-manage-application-identities-securely-and-automatically
3. https://docs.microsoft.com/en-us/cli/azure/keyvault?view=azure-cli-latest
4. https://docs.microsoft.com/en-us/cli/azure/keyvault?view=azure-cli-latest
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 481
10 Miscellaneous
Page 482
10.1 Ensure that Resource Locks are set for Mission-Critical
Azure Resources (Manual)
Profile Applicability:
• Level 2
Description:
Resource Manager Locks provide a way for administrators to lock down Azure
resources to prevent deletion of, or modifications to, a resource. These locks sit outside
of the Role Based Access Controls (RBAC) hierarchy and, when applied, will place
restrictions on the resource for all users. These locks are very useful when there is an
important resource in a subscription that users should not be able to delete or change.
Locks can help prevent accidental and malicious changes or deletion.
Rationale:
As an administrator, it may be necessary to lock a subscription, resource group, or
resource to prevent other users in the organization from accidentally deleting or
modifying critical resources. The lock level can be set to to CanNotDelete or ReadOnly to
achieve this purpose.
• CanNotDelete means authorized users can still read and modify a resource, but
they cannot delete the resource.
• ReadOnly means authorized users can read a resource, but they cannot delete or
update the resource. Applying this lock is similar to restricting all authorized
users to the permissions granted by the Reader role.
Impact:
There can be unintended outcomes of locking a resource. Applying a lock to a parent
service will cause it to be inherited by all resources within. Conversely, applying a lock
to a resource may not apply to connected storage, leaving it unlocked. Please see the
documentation for further information.
Audit:
From Azure Portal
Page 483
az lock list --resource-group <resourcegroupname> --resource-name
<resourcename> --namespace <Namespace> --resource-type <type> --parent ""
From Powershell
Run the following command to list all resources.
Get-AzResource
For each resource, run the following command to check for Resource Locks.
Get-AzResourceLock -ResourceName <Resource Name> -ResourceType <Resource
Type> -ResourceGroupName <Resource Group Name>
Review the output of the Properties setting. Compliant settings will have the
CanNotDelete or ReadOnly value.
Remediation:
From Azure Portal
Default Value:
By default, no locks are set.
References:
1. https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-
lock-resources
2. https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-
manager-subscription-governance#azure-resource-locks
Page 484
3. https://docs.microsoft.com/en-
us/azure/governance/blueprints/concepts/resource-locking
4. https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-asset-
management#am-4-limit-access-to-asset-management
CIS Controls:
Controls
Control IG 1 IG 2 IG 3
Version
Page 485
Appendix: Summary Table
CIS Benchmark Recommendation Set
Correctly
Yes No
Page 486
CIS Benchmark Recommendation Set
Correctly
Yes No
1.9 Ensure That 'Notify all admins when other admins reset
their password?' is set to 'Yes' (Manual)
Page 487
CIS Benchmark Recommendation Set
Correctly
Yes No
2 Microsoft Defender
Page 488
CIS Benchmark Recommendation Set
Correctly
Yes No
Page 489
CIS Benchmark Recommendation Set
Correctly
Yes No
2.1.17 Ensure That 'All users with the following roles' is set to
'Owner' (Automated)
3 Storage Accounts
Page 490
CIS Benchmark Recommendation Set
Correctly
Yes No
4 Database Services
Page 491
CIS Benchmark Recommendation Set
Correctly
Yes No
Page 492
CIS Benchmark Recommendation Set
Correctly
Yes No
4.5 Cosmos DB
Page 493
CIS Benchmark Recommendation Set
Correctly
Yes No
5.2.1 Ensure that Activity Log Alert exists for Create Policy
Assignment (Automated)
5.2.2 Ensure that Activity Log Alert exists for Delete Policy
Assignment (Automated)
5.2.3 Ensure that Activity Log Alert exists for Create or Update
Network Security Group (Automated)
5.2.4 Ensure that Activity Log Alert exists for Delete Network
Security Group (Automated)
5.2.5 Ensure that Activity Log Alert exists for Create or Update
Security Solution (Automated)
5.2.6 Ensure that Activity Log Alert exists for Delete Security
Solution (Automated)
5.2.7 Ensure that Activity Log Alert exists for Create or Update
SQL Server Firewall Rule (Automated)
5.2.8 Ensure that Activity Log Alert exists for Delete SQL
Server Firewall Rule (Automated)
5.2.9 Ensure that Activity Log Alert exists for Create or Update
Public IP Address rule (Automated)
5.2.10 Ensure that Activity Log Alert exists for Delete Public IP
Address rule (Automated)
Page 494
CIS Benchmark Recommendation Set
Correctly
Yes No
6 Networking
7 Virtual Machines
7.3 Ensure that 'OS and Data' disks are encrypted with
Customer Managed Key (CMK) (Automated)
Page 495
CIS Benchmark Recommendation Set
Correctly
Yes No
8 Key Vault
8.1 Ensure that the Expiration Date is set for all Keys in
RBAC Key Vaults (Automated)
8.2 Ensure that the Expiration Date is set for all Keys in Non-
RBAC Key Vaults. (Automated)
8.3 Ensure that the Expiration Date is set for all Secrets in
RBAC Key Vaults (Automated)
8.4 Ensure that the Expiration Date is set for all Secrets in
Non-RBAC Key Vaults (Automated)
8.6 Enable Role Based Access Control for Azure Key Vault
(Manual)
8.7 Ensure that Private Endpoints are Used for Azure Key
Vault (Manual)
9 AppService
Page 496
CIS Benchmark Recommendation Set
Correctly
Yes No
9.7 Ensure that 'Java version' is the latest, if used to run the
Web App (Manual)
10 Miscellaneous
Page 497
Appendix: CIS Controls v7 IG 1 Mapped
Recommendations
Recommendation Set
Correctly
Yes No
1.1.1 Ensure Security Defaults is enabled on Microsoft Entra
ID
1.2.2 Ensure that an exclusionary Geographic Access Policy is
considered
1.3 Ensure that 'Restrict non-admin users from creating
tenants' is set to 'Yes'
1.4 Ensure Guest Users Are Reviewed on a Regular Basis
1.10 Ensure `User consent for applications` is set to `Do not
allow user consent`
1.11 Ensure ‘User consent for applications’ Is Set To ‘Allow for
Verified Publishers’
1.12 Ensure that 'Users can add gallery apps to My Apps' is
set to 'No'
1.13 Ensure That ‘Users Can Register Applications’ Is Set to
‘No’
1.14 Ensure That 'Guest users access restrictions' is set to
'Guest user access is restricted to properties and
memberships of their own directory objects'
1.16 Ensure That 'Restrict access to Microsoft Entra admin
center' is Set to 'Yes'
1.17 Ensure that 'Restrict user ability to access groups
features in the Access Pane' is Set to 'Yes'
1.18 Ensure that 'Users can create security groups in Azure
portals, API or PowerShell' is set to 'No'
1.19 Ensure that 'Owners can manage group membership
requests in the Access Panel' is set to 'No'
1.20 Ensure that 'Users can create Microsoft 365 groups in
Azure portals, API or PowerShell' is set to 'No'
1.23 Ensure a Custom Role is Assigned Permissions for
Administering Resource Locks
Page 498
Recommendation Set
Correctly
Yes No
1.24 Ensure That `Subscription leaving Microsoft Entra ID
directory` and `Subscription entering Microsoft Entra ID
directory` Is Set To ‘Permit No One’
2.1.12 Ensure that Microsoft Defender Recommendation for
'Apply system updates' status is 'Completed'
2.1.13 Ensure that Microsoft Cloud Security Benchmark policies
are not set to 'Disabled'
2.1.17 Ensure That 'All users with the following roles' is set to
'Owner'
2.1.18 Ensure 'Additional email addresses' is Configured with a
Security Contact Email
3.7 Ensure that 'Public Network Access' is `Disabled' for
storage accounts
3.11 Ensure Soft Delete is Enabled for Azure Containers and
Blob Storage
3.17 Ensure that `Allow Blob Anonymous Access` is set to
`Disabled`
4.1.2 Ensure no Azure SQL Databases allow ingress from
0.0.0.0/0 (ANY IP)
4.3.2 Ensure Server Parameter 'log_checkpoints' is set to 'ON'
for PostgreSQL Database Server
4.3.3 Ensure server parameter 'log_connections' is set to 'ON'
for PostgreSQL Database Server
4.3.4 Ensure server parameter 'log_disconnections' is set to
'ON' for PostgreSQL Database Server
4.3.5 Ensure server parameter 'connection_throttling' is set to
'ON' for PostgreSQL Database Server
4.3.7 Ensure 'Allow access to Azure services' for PostgreSQL
Database Server is disabled
4.4.3 Ensure server parameter 'audit_log_enabled' is set to
'ON' for MySQL Database Server
4.4.4 Ensure server parameter 'audit_log_events' has
'CONNECTION' set for MySQL Database Server
4.5.1 Ensure That 'Firewalls & Networks' Is Limited to Use
Selected Networks Instead of All Networks
5.3.1 Ensure Application Insights are Configured
Page 499
Recommendation Set
Correctly
Yes No
5.5 Ensure that SKU Basic/Consumption is not used on
artifacts that need to be monitored (Particularly for
Production Workloads)
6.6 Ensure that Network Watcher is 'Enabled'
6.7 Ensure that Public IP addresses are Evaluated on a
Periodic Basis
7.1 Ensure an Azure Bastion Host Exists
7.5 Ensure that Only Approved Extensions Are Installed
7.6 Ensure that Endpoint Protection for all Virtual Machines
is installed
7.9 Ensure Trusted Launch is enabled on Virtual Machines
8.5 Ensure the Key Vault is Recoverable
8.6 Enable Role Based Access Control for Azure Key Vault
9.1 Ensure App Service Authentication is set up for apps in
Azure App Service
9.5 Ensure That 'PHP version' is the Latest, If Used to Run
the Web App
9.6 Ensure that 'Python version' is the Latest Stable Version,
if Used to Run the Web App
9.7 Ensure that 'Java version' is the latest, if used to run the
Web App
9.8 Ensure that 'HTTP Version' is the Latest, if Used to Run
the Web App
9.10 Ensure Azure Key Vaults are Used to Store Secrets
10.1 Ensure that Resource Locks are set for Mission-Critical
Azure Resources
Page 500
Appendix: CIS Controls v7 IG 2 Mapped
Recommendations
Recommendation Set
Correctly
Yes No
1.1.1 Ensure Security Defaults is enabled on Microsoft Entra
ID
1.1.2 Ensure that 'Multi-Factor Auth Status' is 'Enabled' for all
Privileged Users
1.1.3 Ensure that 'Multi-Factor Auth Status' is 'Enabled' for all
Non-Privileged Users
1.1.4 Ensure that 'Allow users to remember multi-factor
authentication on devices they trust' is Disabled
1.2.1 Ensure Trusted Locations Are Defined
1.2.2 Ensure that an exclusionary Geographic Access Policy is
considered
1.2.3 Ensure that A Multi-factor Authentication Policy Exists for
Administrative Groups
1.2.4 Ensure that A Multi-factor Authentication Policy Exists for
All Users
1.2.5 Ensure Multi-factor Authentication is Required for Risky
Sign-ins
1.2.6 Ensure Multifactor Authentication is Required for
Windows Azure Service Management API
1.2.7 Ensure Multifactor Authentication is Required to access
Microsoft Admin Portals
1.3 Ensure that 'Restrict non-admin users from creating
tenants' is set to 'Yes'
1.4 Ensure Guest Users Are Reviewed on a Regular Basis
1.5 Ensure That 'Number of methods required to reset' is set
to '2'
1.6 Ensure that a Custom Bad Password List is set to
'Enforce' for your Organization
1.7 Ensure that 'Number of days before users are asked to
re-confirm their authentication information' is not set to '0'
Page 501
Recommendation Set
Correctly
Yes No
1.8 Ensure that 'Notify users on password resets?' is set to
'Yes'
1.9 Ensure That 'Notify all admins when other admins reset
their password?' is set to 'Yes'
1.10 Ensure `User consent for applications` is set to `Do not
allow user consent`
1.11 Ensure ‘User consent for applications’ Is Set To ‘Allow for
Verified Publishers’
1.12 Ensure that 'Users can add gallery apps to My Apps' is
set to 'No'
1.13 Ensure That ‘Users Can Register Applications’ Is Set to
‘No’
1.14 Ensure That 'Guest users access restrictions' is set to
'Guest user access is restricted to properties and
memberships of their own directory objects'
1.15 Ensure that 'Guest invite restrictions' is set to "Only users
assigned to specific admin roles can invite guest users"
1.16 Ensure That 'Restrict access to Microsoft Entra admin
center' is Set to 'Yes'
1.17 Ensure that 'Restrict user ability to access groups
features in the Access Pane' is Set to 'Yes'
1.18 Ensure that 'Users can create security groups in Azure
portals, API or PowerShell' is set to 'No'
1.19 Ensure that 'Owners can manage group membership
requests in the Access Panel' is set to 'No'
1.20 Ensure that 'Users can create Microsoft 365 groups in
Azure portals, API or PowerShell' is set to 'No'
1.21 Ensure that 'Require Multi-Factor Authentication to
register or join devices with Microsoft Entra ID' is set to
'Yes'
1.22 Ensure That No Custom Subscription Administrator
Roles Exist
1.23 Ensure a Custom Role is Assigned Permissions for
Administering Resource Locks
1.24 Ensure That `Subscription leaving Microsoft Entra ID
directory` and `Subscription entering Microsoft Entra ID
directory` Is Set To ‘Permit No One’
Page 502
Recommendation Set
Correctly
Yes No
1.25 Ensure fewer than 5 users have global administrator
assignment
2.1.1 Ensure That Microsoft Defender for Servers Is Set to 'On'
2.1.2 Ensure That Microsoft Defender for App Services Is Set
To 'On'
2.1.3 Ensure That Microsoft Defender for (Managed Instance)
Azure SQL Databases Is Set To 'On'
2.1.4 Ensure That Microsoft Defender for SQL Servers on
Machines Is Set To 'On'
2.1.5 Ensure That Microsoft Defender for Open-Source
Relational Databases Is Set To 'On'
2.1.6 Ensure That Microsoft Defender for Azure Cosmos DB Is
Set To 'On'
2.1.7 Ensure That Microsoft Defender for Storage Is Set To
'On'
2.1.8 Ensure That Microsoft Defender for Containers Is Set To
'On'
2.1.9 Ensure That Microsoft Defender for Key Vault Is Set To
'On'
2.1.10 [LEGACY] Ensure That Microsoft Defender for DNS Is
Set To 'On'
2.1.11 Ensure That Microsoft Defender for Resource Manager
Is Set To 'On'
2.1.12 Ensure that Microsoft Defender Recommendation for
'Apply system updates' status is 'Completed'
2.1.13 Ensure that Microsoft Cloud Security Benchmark policies
are not set to 'Disabled'
2.1.14 Ensure that Auto provisioning of 'Log Analytics agent for
Azure VMs' is Set to 'On'
2.1.15 Ensure that Auto provisioning of 'Vulnerability
assessment for machines' is Set to 'On'
2.1.16 Ensure that Auto provisioning of 'Microsoft Defender for
Containers components' is Set to 'On'
2.1.17 Ensure That 'All users with the following roles' is set to
'Owner'
Page 503
Recommendation Set
Correctly
Yes No
2.1.18 Ensure 'Additional email addresses' is Configured with a
Security Contact Email
2.1.20 Ensure that Microsoft Defender for Cloud Apps
integration with Microsoft Defender for Cloud is Selected
2.1.21 Ensure that Microsoft Defender for Endpoint integration
with Microsoft Defender for Cloud is selected
2.1.22 Ensure that Microsoft Defender External Attack Surface
Monitoring (EASM) is enabled
2.2.1 Ensure That Microsoft Defender for IoT Hub Is Set To
'On'
3.1 Ensure that 'Secure transfer required' is set to 'Enabled'
3.3 Ensure that 'Enable key rotation reminders' is enabled for
each Storage Account
3.4 Ensure that Storage Account Access Keys are
Periodically Regenerated
3.5 Ensure Storage Logging is Enabled for Queue Service
for 'Read', 'Write', and 'Delete' requests
3.6 Ensure that Shared Access Signature Tokens Expire
Within an Hour
3.7 Ensure that 'Public Network Access' is `Disabled' for
storage accounts
3.10 Ensure Private Endpoints are used to access Storage
Accounts
3.11 Ensure Soft Delete is Enabled for Azure Containers and
Blob Storage
3.13 Ensure Storage logging is Enabled for Blob Service for
'Read', 'Write', and 'Delete' requests
3.14 Ensure Storage Logging is Enabled for Table Service for
'Read', 'Write', and 'Delete' Requests
3.15 Ensure the "Minimum TLS version" for storage accounts
is set to "Version 1.2"
3.16 Ensure 'Cross Tenant Replication' is not enabled
3.17 Ensure that `Allow Blob Anonymous Access` is set to
`Disabled`
4.1.1 Ensure that 'Auditing' is set to 'On'
Page 504
Recommendation Set
Correctly
Yes No
4.1.2 Ensure no Azure SQL Databases allow ingress from
0.0.0.0/0 (ANY IP)
4.1.3 Ensure SQL server's Transparent Data Encryption (TDE)
protector is encrypted with Customer-managed key
4.1.4 Ensure that Microsoft Entra authentication is Configured
for SQL Servers
4.1.6 Ensure that 'Auditing' Retention is 'greater than 90 days'
4.3.1 Ensure 'Enforce SSL connection' is set to 'ENABLED' for
PostgreSQL Database Server
4.3.2 Ensure Server Parameter 'log_checkpoints' is set to 'ON'
for PostgreSQL Database Server
4.3.3 Ensure server parameter 'log_connections' is set to 'ON'
for PostgreSQL Database Server
4.3.4 Ensure server parameter 'log_disconnections' is set to
'ON' for PostgreSQL Database Server
4.3.5 Ensure server parameter 'connection_throttling' is set to
'ON' for PostgreSQL Database Server
4.3.6 Ensure Server Parameter 'log_retention_days' is greater
than 3 days for PostgreSQL Database Server
4.3.7 Ensure 'Allow access to Azure services' for PostgreSQL
Database Server is disabled
4.4.1 Ensure 'Enforce SSL connection' is set to 'Enabled' for
Standard MySQL Database Server
4.4.2 Ensure 'TLS Version' is set to 'TLSV1.2' (or higher) for
MySQL flexible Database Server
4.4.3 Ensure server parameter 'audit_log_enabled' is set to
'ON' for MySQL Database Server
4.4.4 Ensure server parameter 'audit_log_events' has
'CONNECTION' set for MySQL Database Server
4.5.1 Ensure That 'Firewalls & Networks' Is Limited to Use
Selected Networks Instead of All Networks
4.5.2 Ensure That Private Endpoints Are Used Where Possible
4.5.3 Use Entra ID Client Authentication and Azure RBAC
where possible.
5.1.1 Ensure that a 'Diagnostic Setting' exists for Subscription
Activity Logs
Page 505
Recommendation Set
Correctly
Yes No
5.1.2 Ensure Diagnostic Setting captures appropriate
categories
5.1.4 Ensure that logging for Azure Key Vault is 'Enabled'
5.1.5 Ensure that Network Security Group Flow logs are
captured and sent to Log Analytics
5.1.6 Ensure that logging for Azure AppService 'HTTP logs' is
enabled
5.2.1 Ensure that Activity Log Alert exists for Create Policy
Assignment
5.2.2 Ensure that Activity Log Alert exists for Delete Policy
Assignment
5.2.3 Ensure that Activity Log Alert exists for Create or Update
Network Security Group
5.2.4 Ensure that Activity Log Alert exists for Delete Network
Security Group
5.2.5 Ensure that Activity Log Alert exists for Create or Update
Security Solution
5.2.6 Ensure that Activity Log Alert exists for Delete Security
Solution
5.2.7 Ensure that Activity Log Alert exists for Create or Update
SQL Server Firewall Rule
5.2.8 Ensure that Activity Log Alert exists for Delete SQL
Server Firewall Rule
5.2.9 Ensure that Activity Log Alert exists for Create or Update
Public IP Address rule
5.2.10 Ensure that Activity Log Alert exists for Delete Public IP
Address rule
5.3.1 Ensure Application Insights are Configured
5.4 Ensure that Azure Monitor Resource Logging is Enabled
for All Services that Support it
5.5 Ensure that SKU Basic/Consumption is not used on
artifacts that need to be monitored (Particularly for
Production Workloads)
6.1 Ensure that RDP access from the Internet is evaluated
and restricted
Page 506
Recommendation Set
Correctly
Yes No
6.2 Ensure that SSH access from the Internet is evaluated
and restricted
6.3 Ensure that UDP access from the Internet is evaluated
and restricted
6.4 Ensure that HTTP(S) access from the Internet is
evaluated and restricted
6.5 Ensure that Network Security Group Flow Log retention
period is 'greater than 90 days'
6.6 Ensure that Network Watcher is 'Enabled'
6.7 Ensure that Public IP addresses are Evaluated on a
Periodic Basis
7.1 Ensure an Azure Bastion Host Exists
7.5 Ensure that Only Approved Extensions Are Installed
7.6 Ensure that Endpoint Protection for all Virtual Machines
is installed
7.8 Ensure only MFA enabled identities can access
privileged Virtual Machine
7.9 Ensure Trusted Launch is enabled on Virtual Machines
8.1 Ensure that the Expiration Date is set for all Keys in
RBAC Key Vaults
8.2 Ensure that the Expiration Date is set for all Keys in Non-
RBAC Key Vaults.
8.3 Ensure that the Expiration Date is set for all Secrets in
RBAC Key Vaults
8.4 Ensure that the Expiration Date is set for all Secrets in
Non-RBAC Key Vaults
8.5 Ensure the Key Vault is Recoverable
8.6 Enable Role Based Access Control for Azure Key Vault
8.7 Ensure that Private Endpoints are Used for Azure Key
Vault
8.8 Ensure Automatic Key Rotation is Enabled Within Azure
Key Vault for the Supported Services
9.1 Ensure App Service Authentication is set up for apps in
Azure App Service
Page 507
Recommendation Set
Correctly
Yes No
9.2 Ensure Web App Redirects All HTTP traffic to HTTPS in
Azure App Service
9.3 Ensure Web App is using the latest version of TLS
encryption
9.4 Ensure that Register with Entra ID is enabled on App
Service
9.5 Ensure That 'PHP version' is the Latest, If Used to Run
the Web App
9.6 Ensure that 'Python version' is the Latest Stable Version,
if Used to Run the Web App
9.7 Ensure that 'Java version' is the latest, if used to run the
Web App
9.8 Ensure that 'HTTP Version' is the Latest, if Used to Run
the Web App
9.9 Ensure FTP deployments are Disabled
9.10 Ensure Azure Key Vaults are Used to Store Secrets
10.1 Ensure that Resource Locks are set for Mission-Critical
Azure Resources
Page 508
Appendix: CIS Controls v7 IG 3 Mapped
Recommendations
Recommendation Set
Correctly
Yes No
1.1.1 Ensure Security Defaults is enabled on Microsoft Entra
ID
1.1.2 Ensure that 'Multi-Factor Auth Status' is 'Enabled' for all
Privileged Users
1.1.3 Ensure that 'Multi-Factor Auth Status' is 'Enabled' for all
Non-Privileged Users
1.1.4 Ensure that 'Allow users to remember multi-factor
authentication on devices they trust' is Disabled
1.2.1 Ensure Trusted Locations Are Defined
1.2.2 Ensure that an exclusionary Geographic Access Policy is
considered
1.2.3 Ensure that A Multi-factor Authentication Policy Exists for
Administrative Groups
1.2.4 Ensure that A Multi-factor Authentication Policy Exists for
All Users
1.2.5 Ensure Multi-factor Authentication is Required for Risky
Sign-ins
1.2.6 Ensure Multifactor Authentication is Required for
Windows Azure Service Management API
1.2.7 Ensure Multifactor Authentication is Required to access
Microsoft Admin Portals
1.3 Ensure that 'Restrict non-admin users from creating
tenants' is set to 'Yes'
1.4 Ensure Guest Users Are Reviewed on a Regular Basis
1.5 Ensure That 'Number of methods required to reset' is set
to '2'
1.6 Ensure that a Custom Bad Password List is set to
'Enforce' for your Organization
1.7 Ensure that 'Number of days before users are asked to
re-confirm their authentication information' is not set to '0'
Page 509
Recommendation Set
Correctly
Yes No
1.8 Ensure that 'Notify users on password resets?' is set to
'Yes'
1.9 Ensure That 'Notify all admins when other admins reset
their password?' is set to 'Yes'
1.10 Ensure `User consent for applications` is set to `Do not
allow user consent`
1.11 Ensure ‘User consent for applications’ Is Set To ‘Allow for
Verified Publishers’
1.12 Ensure that 'Users can add gallery apps to My Apps' is
set to 'No'
1.13 Ensure That ‘Users Can Register Applications’ Is Set to
‘No’
1.14 Ensure That 'Guest users access restrictions' is set to
'Guest user access is restricted to properties and
memberships of their own directory objects'
1.15 Ensure that 'Guest invite restrictions' is set to "Only users
assigned to specific admin roles can invite guest users"
1.16 Ensure That 'Restrict access to Microsoft Entra admin
center' is Set to 'Yes'
1.17 Ensure that 'Restrict user ability to access groups
features in the Access Pane' is Set to 'Yes'
1.18 Ensure that 'Users can create security groups in Azure
portals, API or PowerShell' is set to 'No'
1.19 Ensure that 'Owners can manage group membership
requests in the Access Panel' is set to 'No'
1.20 Ensure that 'Users can create Microsoft 365 groups in
Azure portals, API or PowerShell' is set to 'No'
1.21 Ensure that 'Require Multi-Factor Authentication to
register or join devices with Microsoft Entra ID' is set to
'Yes'
1.22 Ensure That No Custom Subscription Administrator
Roles Exist
1.23 Ensure a Custom Role is Assigned Permissions for
Administering Resource Locks
1.24 Ensure That `Subscription leaving Microsoft Entra ID
directory` and `Subscription entering Microsoft Entra ID
directory` Is Set To ‘Permit No One’
Page 510
Recommendation Set
Correctly
Yes No
1.25 Ensure fewer than 5 users have global administrator
assignment
2.1.1 Ensure That Microsoft Defender for Servers Is Set to 'On'
2.1.2 Ensure That Microsoft Defender for App Services Is Set
To 'On'
2.1.3 Ensure That Microsoft Defender for (Managed Instance)
Azure SQL Databases Is Set To 'On'
2.1.4 Ensure That Microsoft Defender for SQL Servers on
Machines Is Set To 'On'
2.1.5 Ensure That Microsoft Defender for Open-Source
Relational Databases Is Set To 'On'
2.1.6 Ensure That Microsoft Defender for Azure Cosmos DB Is
Set To 'On'
2.1.7 Ensure That Microsoft Defender for Storage Is Set To
'On'
2.1.8 Ensure That Microsoft Defender for Containers Is Set To
'On'
2.1.9 Ensure That Microsoft Defender for Key Vault Is Set To
'On'
2.1.10 [LEGACY] Ensure That Microsoft Defender for DNS Is
Set To 'On'
2.1.11 Ensure That Microsoft Defender for Resource Manager
Is Set To 'On'
2.1.12 Ensure that Microsoft Defender Recommendation for
'Apply system updates' status is 'Completed'
2.1.13 Ensure that Microsoft Cloud Security Benchmark policies
are not set to 'Disabled'
2.1.14 Ensure that Auto provisioning of 'Log Analytics agent for
Azure VMs' is Set to 'On'
2.1.15 Ensure that Auto provisioning of 'Vulnerability
assessment for machines' is Set to 'On'
2.1.16 Ensure that Auto provisioning of 'Microsoft Defender for
Containers components' is Set to 'On'
2.1.17 Ensure That 'All users with the following roles' is set to
'Owner'
Page 511
Recommendation Set
Correctly
Yes No
2.1.18 Ensure 'Additional email addresses' is Configured with a
Security Contact Email
2.1.19 Ensure That 'Notify about alerts with the following
severity' is Set to 'High'
2.1.20 Ensure that Microsoft Defender for Cloud Apps
integration with Microsoft Defender for Cloud is Selected
2.1.21 Ensure that Microsoft Defender for Endpoint integration
with Microsoft Defender for Cloud is selected
2.1.22 Ensure that Microsoft Defender External Attack Surface
Monitoring (EASM) is enabled
2.2.1 Ensure That Microsoft Defender for IoT Hub Is Set To
'On'
3.1 Ensure that 'Secure transfer required' is set to 'Enabled'
3.2 Ensure that ‘Enable Infrastructure Encryption’ for Each
Storage Account in Azure Storage is Set to ‘enabled’
3.3 Ensure that 'Enable key rotation reminders' is enabled for
each Storage Account
3.4 Ensure that Storage Account Access Keys are
Periodically Regenerated
3.5 Ensure Storage Logging is Enabled for Queue Service
for 'Read', 'Write', and 'Delete' requests
3.6 Ensure that Shared Access Signature Tokens Expire
Within an Hour
3.7 Ensure that 'Public Network Access' is `Disabled' for
storage accounts
3.8 Ensure Default Network Access Rule for Storage
Accounts is Set to Deny
3.9 Ensure 'Allow Azure services on the trusted services list
to access this storage account' is Enabled for Storage
Account Access
3.10 Ensure Private Endpoints are used to access Storage
Accounts
3.11 Ensure Soft Delete is Enabled for Azure Containers and
Blob Storage
3.12 Ensure Storage for Critical Data are Encrypted with
Customer Managed Keys (CMK)
Page 512
Recommendation Set
Correctly
Yes No
3.13 Ensure Storage logging is Enabled for Blob Service for
'Read', 'Write', and 'Delete' requests
3.14 Ensure Storage Logging is Enabled for Table Service for
'Read', 'Write', and 'Delete' Requests
3.15 Ensure the "Minimum TLS version" for storage accounts
is set to "Version 1.2"
3.16 Ensure 'Cross Tenant Replication' is not enabled
3.17 Ensure that `Allow Blob Anonymous Access` is set to
`Disabled`
4.1.1 Ensure that 'Auditing' is set to 'On'
4.1.2 Ensure no Azure SQL Databases allow ingress from
0.0.0.0/0 (ANY IP)
4.1.3 Ensure SQL server's Transparent Data Encryption (TDE)
protector is encrypted with Customer-managed key
4.1.4 Ensure that Microsoft Entra authentication is Configured
for SQL Servers
4.1.5 Ensure that 'Data encryption' is set to 'On' on a SQL
Database
4.1.6 Ensure that 'Auditing' Retention is 'greater than 90 days'
4.3.1 Ensure 'Enforce SSL connection' is set to 'ENABLED' for
PostgreSQL Database Server
4.3.2 Ensure Server Parameter 'log_checkpoints' is set to 'ON'
for PostgreSQL Database Server
4.3.3 Ensure server parameter 'log_connections' is set to 'ON'
for PostgreSQL Database Server
4.3.4 Ensure server parameter 'log_disconnections' is set to
'ON' for PostgreSQL Database Server
4.3.5 Ensure server parameter 'connection_throttling' is set to
'ON' for PostgreSQL Database Server
4.3.6 Ensure Server Parameter 'log_retention_days' is greater
than 3 days for PostgreSQL Database Server
4.3.7 Ensure 'Allow access to Azure services' for PostgreSQL
Database Server is disabled
4.3.8 Ensure 'Infrastructure double encryption' for PostgreSQL
Database Server is 'Enabled'
Page 513
Recommendation Set
Correctly
Yes No
4.4.1 Ensure 'Enforce SSL connection' is set to 'Enabled' for
Standard MySQL Database Server
4.4.2 Ensure 'TLS Version' is set to 'TLSV1.2' (or higher) for
MySQL flexible Database Server
4.4.3 Ensure server parameter 'audit_log_enabled' is set to
'ON' for MySQL Database Server
4.4.4 Ensure server parameter 'audit_log_events' has
'CONNECTION' set for MySQL Database Server
4.5.1 Ensure That 'Firewalls & Networks' Is Limited to Use
Selected Networks Instead of All Networks
4.5.2 Ensure That Private Endpoints Are Used Where Possible
4.5.3 Use Entra ID Client Authentication and Azure RBAC
where possible.
5.1.1 Ensure that a 'Diagnostic Setting' exists for Subscription
Activity Logs
5.1.2 Ensure Diagnostic Setting captures appropriate
categories
5.1.3 Ensure the storage account containing the container with
activity logs is encrypted with Customer Managed Key
(CMK)
5.1.4 Ensure that logging for Azure Key Vault is 'Enabled'
5.1.5 Ensure that Network Security Group Flow logs are
captured and sent to Log Analytics
5.1.6 Ensure that logging for Azure AppService 'HTTP logs' is
enabled
5.2.1 Ensure that Activity Log Alert exists for Create Policy
Assignment
5.2.2 Ensure that Activity Log Alert exists for Delete Policy
Assignment
5.2.3 Ensure that Activity Log Alert exists for Create or Update
Network Security Group
5.2.4 Ensure that Activity Log Alert exists for Delete Network
Security Group
5.2.5 Ensure that Activity Log Alert exists for Create or Update
Security Solution
Page 514
Recommendation Set
Correctly
Yes No
5.2.6 Ensure that Activity Log Alert exists for Delete Security
Solution
5.2.7 Ensure that Activity Log Alert exists for Create or Update
SQL Server Firewall Rule
5.2.8 Ensure that Activity Log Alert exists for Delete SQL
Server Firewall Rule
5.2.9 Ensure that Activity Log Alert exists for Create or Update
Public IP Address rule
5.2.10 Ensure that Activity Log Alert exists for Delete Public IP
Address rule
5.3.1 Ensure Application Insights are Configured
5.4 Ensure that Azure Monitor Resource Logging is Enabled
for All Services that Support it
5.5 Ensure that SKU Basic/Consumption is not used on
artifacts that need to be monitored (Particularly for
Production Workloads)
6.1 Ensure that RDP access from the Internet is evaluated
and restricted
6.2 Ensure that SSH access from the Internet is evaluated
and restricted
6.3 Ensure that UDP access from the Internet is evaluated
and restricted
6.4 Ensure that HTTP(S) access from the Internet is
evaluated and restricted
6.5 Ensure that Network Security Group Flow Log retention
period is 'greater than 90 days'
6.6 Ensure that Network Watcher is 'Enabled'
6.7 Ensure that Public IP addresses are Evaluated on a
Periodic Basis
7.1 Ensure an Azure Bastion Host Exists
7.2 Ensure Virtual Machines are utilizing Managed Disks
7.3 Ensure that 'OS and Data' disks are encrypted with
Customer Managed Key (CMK)
7.4 Ensure that 'Unattached disks' are encrypted with
'Customer Managed Key' (CMK)
Page 515
Recommendation Set
Correctly
Yes No
7.5 Ensure that Only Approved Extensions Are Installed
7.6 Ensure that Endpoint Protection for all Virtual Machines
is installed
7.7 [Legacy] Ensure that VHDs are Encrypted
7.8 Ensure only MFA enabled identities can access
privileged Virtual Machine
7.9 Ensure Trusted Launch is enabled on Virtual Machines
8.1 Ensure that the Expiration Date is set for all Keys in
RBAC Key Vaults
8.2 Ensure that the Expiration Date is set for all Keys in Non-
RBAC Key Vaults.
8.3 Ensure that the Expiration Date is set for all Secrets in
RBAC Key Vaults
8.4 Ensure that the Expiration Date is set for all Secrets in
Non-RBAC Key Vaults
8.5 Ensure the Key Vault is Recoverable
8.6 Enable Role Based Access Control for Azure Key Vault
8.7 Ensure that Private Endpoints are Used for Azure Key
Vault
8.8 Ensure Automatic Key Rotation is Enabled Within Azure
Key Vault for the Supported Services
9.1 Ensure App Service Authentication is set up for apps in
Azure App Service
9.2 Ensure Web App Redirects All HTTP traffic to HTTPS in
Azure App Service
9.3 Ensure Web App is using the latest version of TLS
encryption
9.4 Ensure that Register with Entra ID is enabled on App
Service
9.5 Ensure That 'PHP version' is the Latest, If Used to Run
the Web App
9.6 Ensure that 'Python version' is the Latest Stable Version,
if Used to Run the Web App
9.7 Ensure that 'Java version' is the latest, if used to run the
Web App
Page 516
Recommendation Set
Correctly
Yes No
9.8 Ensure that 'HTTP Version' is the Latest, if Used to Run
the Web App
9.9 Ensure FTP deployments are Disabled
9.10 Ensure Azure Key Vaults are Used to Store Secrets
10.1 Ensure that Resource Locks are set for Mission-Critical
Azure Resources
Page 517
Appendix: CIS Controls v7 Unmapped
Recommendations
Recommendation Set
Correctly
Yes No
No unmapped recommendations to CIS Controls v7.0
Page 518
Appendix: CIS Controls v8 IG 1 Mapped
Recommendations
Recommendation Set
Correctly
Yes No
1.1.1 Ensure Security Defaults is enabled on Microsoft Entra
ID
1.1.2 Ensure that 'Multi-Factor Auth Status' is 'Enabled' for all
Privileged Users
1.1.3 Ensure that 'Multi-Factor Auth Status' is 'Enabled' for all
Non-Privileged Users
1.1.4 Ensure that 'Allow users to remember multi-factor
authentication on devices they trust' is Disabled
1.2.3 Ensure that A Multi-factor Authentication Policy Exists for
Administrative Groups
1.2.4 Ensure that A Multi-factor Authentication Policy Exists for
All Users
1.2.5 Ensure Multi-factor Authentication is Required for Risky
Sign-ins
1.2.6 Ensure Multifactor Authentication is Required for
Windows Azure Service Management API
1.2.7 Ensure Multifactor Authentication is Required to access
Microsoft Admin Portals
1.4 Ensure Guest Users Are Reviewed on a Regular Basis
1.5 Ensure That 'Number of methods required to reset' is set
to '2'
1.6 Ensure that a Custom Bad Password List is set to
'Enforce' for your Organization
1.7 Ensure that 'Number of days before users are asked to
re-confirm their authentication information' is not set to '0'
1.9 Ensure That 'Notify all admins when other admins reset
their password?' is set to 'Yes'
1.10 Ensure `User consent for applications` is set to `Do not
allow user consent`
1.11 Ensure ‘User consent for applications’ Is Set To ‘Allow for
Verified Publishers’
Page 519
Recommendation Set
Correctly
Yes No
1.12 Ensure that 'Users can add gallery apps to My Apps' is
set to 'No'
1.13 Ensure That ‘Users Can Register Applications’ Is Set to
‘No’
1.14 Ensure That 'Guest users access restrictions' is set to
'Guest user access is restricted to properties and
memberships of their own directory objects'
1.15 Ensure that 'Guest invite restrictions' is set to "Only users
assigned to specific admin roles can invite guest users"
1.16 Ensure That 'Restrict access to Microsoft Entra admin
center' is Set to 'Yes'
1.21 Ensure that 'Require Multi-Factor Authentication to
register or join devices with Microsoft Entra ID' is set to
'Yes'
1.22 Ensure That No Custom Subscription Administrator
Roles Exist
1.23 Ensure a Custom Role is Assigned Permissions for
Administering Resource Locks
1.24 Ensure That `Subscription leaving Microsoft Entra ID
directory` and `Subscription entering Microsoft Entra ID
directory` Is Set To ‘Permit No One’
1.25 Ensure fewer than 5 users have global administrator
assignment
2.1.1 Ensure That Microsoft Defender for Servers Is Set to 'On'
2.1.11 Ensure That Microsoft Defender for Resource Manager
Is Set To 'On'
2.1.12 Ensure that Microsoft Defender Recommendation for
'Apply system updates' status is 'Completed'
2.1.13 Ensure that Microsoft Cloud Security Benchmark policies
are not set to 'Disabled'
2.1.17 Ensure That 'All users with the following roles' is set to
'Owner'
2.1.18 Ensure 'Additional email addresses' is Configured with a
Security Contact Email
2.1.21 Ensure that Microsoft Defender for Endpoint integration
with Microsoft Defender for Cloud is selected
Page 520
Recommendation Set
Correctly
Yes No
3.3 Ensure that 'Enable key rotation reminders' is enabled for
each Storage Account
3.4 Ensure that Storage Account Access Keys are
Periodically Regenerated
3.6 Ensure that Shared Access Signature Tokens Expire
Within an Hour
3.7 Ensure that 'Public Network Access' is `Disabled' for
storage accounts
3.9 Ensure 'Allow Azure services on the trusted services list
to access this storage account' is Enabled for Storage
Account Access
3.11 Ensure Soft Delete is Enabled for Azure Containers and
Blob Storage
3.16 Ensure 'Cross Tenant Replication' is not enabled
3.17 Ensure that `Allow Blob Anonymous Access` is set to
`Disabled`
4.1.2 Ensure no Azure SQL Databases allow ingress from
0.0.0.0/0 (ANY IP)
4.1.6 Ensure that 'Auditing' Retention is 'greater than 90 days'
4.3.2 Ensure Server Parameter 'log_checkpoints' is set to 'ON'
for PostgreSQL Database Server
4.3.3 Ensure server parameter 'log_connections' is set to 'ON'
for PostgreSQL Database Server
4.3.4 Ensure server parameter 'log_disconnections' is set to
'ON' for PostgreSQL Database Server
4.3.5 Ensure server parameter 'connection_throttling' is set to
'ON' for PostgreSQL Database Server
4.3.6 Ensure Server Parameter 'log_retention_days' is greater
than 3 days for PostgreSQL Database Server
4.3.7 Ensure 'Allow access to Azure services' for PostgreSQL
Database Server is disabled
4.4.3 Ensure server parameter 'audit_log_enabled' is set to
'ON' for MySQL Database Server
4.4.4 Ensure server parameter 'audit_log_events' has
'CONNECTION' set for MySQL Database Server
Page 521
Recommendation Set
Correctly
Yes No
4.5.1 Ensure That 'Firewalls & Networks' Is Limited to Use
Selected Networks Instead of All Networks
5.3.1 Ensure Application Insights are Configured
5.5 Ensure that SKU Basic/Consumption is not used on
artifacts that need to be monitored (Particularly for
Production Workloads)
6.1 Ensure that RDP access from the Internet is evaluated
and restricted
6.2 Ensure that SSH access from the Internet is evaluated
and restricted
6.3 Ensure that UDP access from the Internet is evaluated
and restricted
6.4 Ensure that HTTP(S) access from the Internet is
evaluated and restricted
6.5 Ensure that Network Security Group Flow Log retention
period is 'greater than 90 days'
6.7 Ensure that Public IP addresses are Evaluated on a
Periodic Basis
7.1 Ensure an Azure Bastion Host Exists
7.5 Ensure that Only Approved Extensions Are Installed
7.6 Ensure that Endpoint Protection for all Virtual Machines
is installed
7.8 Ensure only MFA enabled identities can access
privileged Virtual Machine
7.9 Ensure Trusted Launch is enabled on Virtual Machines
8.1 Ensure that the Expiration Date is set for all Keys in
RBAC Key Vaults
8.2 Ensure that the Expiration Date is set for all Keys in Non-
RBAC Key Vaults.
8.3 Ensure that the Expiration Date is set for all Secrets in
RBAC Key Vaults
8.4 Ensure that the Expiration Date is set for all Secrets in
Non-RBAC Key Vaults
8.5 Ensure the Key Vault is Recoverable
8.6 Enable Role Based Access Control for Azure Key Vault
Page 522
Recommendation Set
Correctly
Yes No
8.8 Ensure Automatic Key Rotation is Enabled Within Azure
Key Vault for the Supported Services
9.1 Ensure App Service Authentication is set up for apps in
Azure App Service
9.5 Ensure That 'PHP version' is the Latest, If Used to Run
the Web App
9.6 Ensure that 'Python version' is the Latest Stable Version,
if Used to Run the Web App
9.7 Ensure that 'Java version' is the latest, if used to run the
Web App
9.8 Ensure that 'HTTP Version' is the Latest, if Used to Run
the Web App
9.10 Ensure Azure Key Vaults are Used to Store Secrets
10.1 Ensure that Resource Locks are set for Mission-Critical
Azure Resources
Page 523
Appendix: CIS Controls v8 IG 2 Mapped
Recommendations
Recommendation Set
Correctly
Yes No
1.1.1 Ensure Security Defaults is enabled on Microsoft Entra
ID
1.1.2 Ensure that 'Multi-Factor Auth Status' is 'Enabled' for all
Privileged Users
1.1.3 Ensure that 'Multi-Factor Auth Status' is 'Enabled' for all
Non-Privileged Users
1.1.4 Ensure that 'Allow users to remember multi-factor
authentication on devices they trust' is Disabled
1.2.1 Ensure Trusted Locations Are Defined
1.2.2 Ensure that an exclusionary Geographic Access Policy is
considered
1.2.3 Ensure that A Multi-factor Authentication Policy Exists for
Administrative Groups
1.2.4 Ensure that A Multi-factor Authentication Policy Exists for
All Users
1.2.5 Ensure Multi-factor Authentication is Required for Risky
Sign-ins
1.2.6 Ensure Multifactor Authentication is Required for
Windows Azure Service Management API
1.2.7 Ensure Multifactor Authentication is Required to access
Microsoft Admin Portals
1.4 Ensure Guest Users Are Reviewed on a Regular Basis
1.5 Ensure That 'Number of methods required to reset' is set
to '2'
1.6 Ensure that a Custom Bad Password List is set to
'Enforce' for your Organization
1.7 Ensure that 'Number of days before users are asked to
re-confirm their authentication information' is not set to '0'
1.8 Ensure that 'Notify users on password resets?' is set to
'Yes'
Page 524
Recommendation Set
Correctly
Yes No
1.9 Ensure That 'Notify all admins when other admins reset
their password?' is set to 'Yes'
1.10 Ensure `User consent for applications` is set to `Do not
allow user consent`
1.11 Ensure ‘User consent for applications’ Is Set To ‘Allow for
Verified Publishers’
1.12 Ensure that 'Users can add gallery apps to My Apps' is
set to 'No'
1.13 Ensure That ‘Users Can Register Applications’ Is Set to
‘No’
1.14 Ensure That 'Guest users access restrictions' is set to
'Guest user access is restricted to properties and
memberships of their own directory objects'
1.15 Ensure that 'Guest invite restrictions' is set to "Only users
assigned to specific admin roles can invite guest users"
1.16 Ensure That 'Restrict access to Microsoft Entra admin
center' is Set to 'Yes'
1.21 Ensure that 'Require Multi-Factor Authentication to
register or join devices with Microsoft Entra ID' is set to
'Yes'
1.22 Ensure That No Custom Subscription Administrator
Roles Exist
1.23 Ensure a Custom Role is Assigned Permissions for
Administering Resource Locks
1.24 Ensure That `Subscription leaving Microsoft Entra ID
directory` and `Subscription entering Microsoft Entra ID
directory` Is Set To ‘Permit No One’
1.25 Ensure fewer than 5 users have global administrator
assignment
2.1.1 Ensure That Microsoft Defender for Servers Is Set to 'On'
2.1.2 Ensure That Microsoft Defender for App Services Is Set
To 'On'
2.1.3 Ensure That Microsoft Defender for (Managed Instance)
Azure SQL Databases Is Set To 'On'
2.1.4 Ensure That Microsoft Defender for SQL Servers on
Machines Is Set To 'On'
Page 525
Recommendation Set
Correctly
Yes No
2.1.5 Ensure That Microsoft Defender for Open-Source
Relational Databases Is Set To 'On'
2.1.6 Ensure That Microsoft Defender for Azure Cosmos DB Is
Set To 'On'
2.1.7 Ensure That Microsoft Defender for Storage Is Set To
'On'
2.1.8 Ensure That Microsoft Defender for Containers Is Set To
'On'
2.1.9 Ensure That Microsoft Defender for Key Vault Is Set To
'On'
2.1.10 [LEGACY] Ensure That Microsoft Defender for DNS Is
Set To 'On'
2.1.11 Ensure That Microsoft Defender for Resource Manager
Is Set To 'On'
2.1.12 Ensure that Microsoft Defender Recommendation for
'Apply system updates' status is 'Completed'
2.1.13 Ensure that Microsoft Cloud Security Benchmark policies
are not set to 'Disabled'
2.1.14 Ensure that Auto provisioning of 'Log Analytics agent for
Azure VMs' is Set to 'On'
2.1.15 Ensure that Auto provisioning of 'Vulnerability
assessment for machines' is Set to 'On'
2.1.16 Ensure that Auto provisioning of 'Microsoft Defender for
Containers components' is Set to 'On'
2.1.17 Ensure That 'All users with the following roles' is set to
'Owner'
2.1.18 Ensure 'Additional email addresses' is Configured with a
Security Contact Email
2.1.20 Ensure that Microsoft Defender for Cloud Apps
integration with Microsoft Defender for Cloud is Selected
2.1.21 Ensure that Microsoft Defender for Endpoint integration
with Microsoft Defender for Cloud is selected
2.1.22 Ensure that Microsoft Defender External Attack Surface
Monitoring (EASM) is enabled
2.2.1 Ensure That Microsoft Defender for IoT Hub Is Set To
'On'
Page 526
Recommendation Set
Correctly
Yes No
3.1 Ensure that 'Secure transfer required' is set to 'Enabled'
3.2 Ensure that ‘Enable Infrastructure Encryption’ for Each
Storage Account in Azure Storage is Set to ‘enabled’
3.3 Ensure that 'Enable key rotation reminders' is enabled for
each Storage Account
3.4 Ensure that Storage Account Access Keys are
Periodically Regenerated
3.5 Ensure Storage Logging is Enabled for Queue Service
for 'Read', 'Write', and 'Delete' requests
3.6 Ensure that Shared Access Signature Tokens Expire
Within an Hour
3.7 Ensure that 'Public Network Access' is `Disabled' for
storage accounts
3.8 Ensure Default Network Access Rule for Storage
Accounts is Set to Deny
3.9 Ensure 'Allow Azure services on the trusted services list
to access this storage account' is Enabled for Storage
Account Access
3.10 Ensure Private Endpoints are used to access Storage
Accounts
3.11 Ensure Soft Delete is Enabled for Azure Containers and
Blob Storage
3.12 Ensure Storage for Critical Data are Encrypted with
Customer Managed Keys (CMK)
3.13 Ensure Storage logging is Enabled for Blob Service for
'Read', 'Write', and 'Delete' requests
3.14 Ensure Storage Logging is Enabled for Table Service for
'Read', 'Write', and 'Delete' Requests
3.15 Ensure the "Minimum TLS version" for storage accounts
is set to "Version 1.2"
3.16 Ensure 'Cross Tenant Replication' is not enabled
3.17 Ensure that `Allow Blob Anonymous Access` is set to
`Disabled`
4.1.1 Ensure that 'Auditing' is set to 'On'
4.1.2 Ensure no Azure SQL Databases allow ingress from
0.0.0.0/0 (ANY IP)
Page 527
Recommendation Set
Correctly
Yes No
4.1.3 Ensure SQL server's Transparent Data Encryption (TDE)
protector is encrypted with Customer-managed key
4.1.4 Ensure that Microsoft Entra authentication is Configured
for SQL Servers
4.1.5 Ensure that 'Data encryption' is set to 'On' on a SQL
Database
4.1.6 Ensure that 'Auditing' Retention is 'greater than 90 days'
4.3.1 Ensure 'Enforce SSL connection' is set to 'ENABLED' for
PostgreSQL Database Server
4.3.2 Ensure Server Parameter 'log_checkpoints' is set to 'ON'
for PostgreSQL Database Server
4.3.3 Ensure server parameter 'log_connections' is set to 'ON'
for PostgreSQL Database Server
4.3.4 Ensure server parameter 'log_disconnections' is set to
'ON' for PostgreSQL Database Server
4.3.5 Ensure server parameter 'connection_throttling' is set to
'ON' for PostgreSQL Database Server
4.3.6 Ensure Server Parameter 'log_retention_days' is greater
than 3 days for PostgreSQL Database Server
4.3.7 Ensure 'Allow access to Azure services' for PostgreSQL
Database Server is disabled
4.3.8 Ensure 'Infrastructure double encryption' for PostgreSQL
Database Server is 'Enabled'
4.4.1 Ensure 'Enforce SSL connection' is set to 'Enabled' for
Standard MySQL Database Server
4.4.2 Ensure 'TLS Version' is set to 'TLSV1.2' (or higher) for
MySQL flexible Database Server
4.4.3 Ensure server parameter 'audit_log_enabled' is set to
'ON' for MySQL Database Server
4.4.4 Ensure server parameter 'audit_log_events' has
'CONNECTION' set for MySQL Database Server
4.5.1 Ensure That 'Firewalls & Networks' Is Limited to Use
Selected Networks Instead of All Networks
4.5.2 Ensure That Private Endpoints Are Used Where Possible
4.5.3 Use Entra ID Client Authentication and Azure RBAC
where possible.
Page 528
Recommendation Set
Correctly
Yes No
5.1.1 Ensure that a 'Diagnostic Setting' exists for Subscription
Activity Logs
5.1.2 Ensure Diagnostic Setting captures appropriate
categories
5.1.3 Ensure the storage account containing the container with
activity logs is encrypted with Customer Managed Key
(CMK)
5.1.4 Ensure that logging for Azure Key Vault is 'Enabled'
5.1.5 Ensure that Network Security Group Flow logs are
captured and sent to Log Analytics
5.1.6 Ensure that logging for Azure AppService 'HTTP logs' is
enabled
5.2.1 Ensure that Activity Log Alert exists for Create Policy
Assignment
5.2.2 Ensure that Activity Log Alert exists for Delete Policy
Assignment
5.2.3 Ensure that Activity Log Alert exists for Create or Update
Network Security Group
5.2.4 Ensure that Activity Log Alert exists for Delete Network
Security Group
5.2.5 Ensure that Activity Log Alert exists for Create or Update
Security Solution
5.2.6 Ensure that Activity Log Alert exists for Delete Security
Solution
5.2.7 Ensure that Activity Log Alert exists for Create or Update
SQL Server Firewall Rule
5.2.8 Ensure that Activity Log Alert exists for Delete SQL
Server Firewall Rule
5.2.9 Ensure that Activity Log Alert exists for Create or Update
Public IP Address rule
5.2.10 Ensure that Activity Log Alert exists for Delete Public IP
Address rule
5.3.1 Ensure Application Insights are Configured
5.4 Ensure that Azure Monitor Resource Logging is Enabled
for All Services that Support it
Page 529
Recommendation Set
Correctly
Yes No
5.5 Ensure that SKU Basic/Consumption is not used on
artifacts that need to be monitored (Particularly for
Production Workloads)
6.1 Ensure that RDP access from the Internet is evaluated
and restricted
6.2 Ensure that SSH access from the Internet is evaluated
and restricted
6.3 Ensure that UDP access from the Internet is evaluated
and restricted
6.4 Ensure that HTTP(S) access from the Internet is
evaluated and restricted
6.5 Ensure that Network Security Group Flow Log retention
period is 'greater than 90 days'
6.6 Ensure that Network Watcher is 'Enabled'
6.7 Ensure that Public IP addresses are Evaluated on a
Periodic Basis
7.1 Ensure an Azure Bastion Host Exists
7.2 Ensure Virtual Machines are utilizing Managed Disks
7.3 Ensure that 'OS and Data' disks are encrypted with
Customer Managed Key (CMK)
7.4 Ensure that 'Unattached disks' are encrypted with
'Customer Managed Key' (CMK)
7.5 Ensure that Only Approved Extensions Are Installed
7.6 Ensure that Endpoint Protection for all Virtual Machines
is installed
7.7 [Legacy] Ensure that VHDs are Encrypted
7.8 Ensure only MFA enabled identities can access
privileged Virtual Machine
7.9 Ensure Trusted Launch is enabled on Virtual Machines
8.1 Ensure that the Expiration Date is set for all Keys in
RBAC Key Vaults
8.2 Ensure that the Expiration Date is set for all Keys in Non-
RBAC Key Vaults.
8.3 Ensure that the Expiration Date is set for all Secrets in
RBAC Key Vaults
Page 530
Recommendation Set
Correctly
Yes No
8.4 Ensure that the Expiration Date is set for all Secrets in
Non-RBAC Key Vaults
8.5 Ensure the Key Vault is Recoverable
8.6 Enable Role Based Access Control for Azure Key Vault
8.7 Ensure that Private Endpoints are Used for Azure Key
Vault
8.8 Ensure Automatic Key Rotation is Enabled Within Azure
Key Vault for the Supported Services
9.1 Ensure App Service Authentication is set up for apps in
Azure App Service
9.2 Ensure Web App Redirects All HTTP traffic to HTTPS in
Azure App Service
9.3 Ensure Web App is using the latest version of TLS
encryption
9.4 Ensure that Register with Entra ID is enabled on App
Service
9.5 Ensure That 'PHP version' is the Latest, If Used to Run
the Web App
9.6 Ensure that 'Python version' is the Latest Stable Version,
if Used to Run the Web App
9.7 Ensure that 'Java version' is the latest, if used to run the
Web App
9.8 Ensure that 'HTTP Version' is the Latest, if Used to Run
the Web App
9.9 Ensure FTP deployments are Disabled
9.10 Ensure Azure Key Vaults are Used to Store Secrets
10.1 Ensure that Resource Locks are set for Mission-Critical
Azure Resources
Page 531
Appendix: CIS Controls v8 IG 3 Mapped
Recommendations
Recommendation Set
Correctly
Yes No
1.1.1 Ensure Security Defaults is enabled on Microsoft Entra
ID
1.1.2 Ensure that 'Multi-Factor Auth Status' is 'Enabled' for all
Privileged Users
1.1.3 Ensure that 'Multi-Factor Auth Status' is 'Enabled' for all
Non-Privileged Users
1.1.4 Ensure that 'Allow users to remember multi-factor
authentication on devices they trust' is Disabled
1.2.1 Ensure Trusted Locations Are Defined
1.2.2 Ensure that an exclusionary Geographic Access Policy is
considered
1.2.3 Ensure that A Multi-factor Authentication Policy Exists for
Administrative Groups
1.2.4 Ensure that A Multi-factor Authentication Policy Exists for
All Users
1.2.5 Ensure Multi-factor Authentication is Required for Risky
Sign-ins
1.2.6 Ensure Multifactor Authentication is Required for
Windows Azure Service Management API
1.2.7 Ensure Multifactor Authentication is Required to access
Microsoft Admin Portals
1.3 Ensure that 'Restrict non-admin users from creating
tenants' is set to 'Yes'
1.4 Ensure Guest Users Are Reviewed on a Regular Basis
1.5 Ensure That 'Number of methods required to reset' is set
to '2'
1.6 Ensure that a Custom Bad Password List is set to
'Enforce' for your Organization
1.7 Ensure that 'Number of days before users are asked to
re-confirm their authentication information' is not set to '0'
Page 532
Recommendation Set
Correctly
Yes No
1.8 Ensure that 'Notify users on password resets?' is set to
'Yes'
1.9 Ensure That 'Notify all admins when other admins reset
their password?' is set to 'Yes'
1.10 Ensure `User consent for applications` is set to `Do not
allow user consent`
1.11 Ensure ‘User consent for applications’ Is Set To ‘Allow for
Verified Publishers’
1.12 Ensure that 'Users can add gallery apps to My Apps' is
set to 'No'
1.13 Ensure That ‘Users Can Register Applications’ Is Set to
‘No’
1.14 Ensure That 'Guest users access restrictions' is set to
'Guest user access is restricted to properties and
memberships of their own directory objects'
1.15 Ensure that 'Guest invite restrictions' is set to "Only users
assigned to specific admin roles can invite guest users"
1.16 Ensure That 'Restrict access to Microsoft Entra admin
center' is Set to 'Yes'
1.17 Ensure that 'Restrict user ability to access groups
features in the Access Pane' is Set to 'Yes'
1.18 Ensure that 'Users can create security groups in Azure
portals, API or PowerShell' is set to 'No'
1.19 Ensure that 'Owners can manage group membership
requests in the Access Panel' is set to 'No'
1.20 Ensure that 'Users can create Microsoft 365 groups in
Azure portals, API or PowerShell' is set to 'No'
1.21 Ensure that 'Require Multi-Factor Authentication to
register or join devices with Microsoft Entra ID' is set to
'Yes'
1.22 Ensure That No Custom Subscription Administrator
Roles Exist
1.23 Ensure a Custom Role is Assigned Permissions for
Administering Resource Locks
1.24 Ensure That `Subscription leaving Microsoft Entra ID
directory` and `Subscription entering Microsoft Entra ID
directory` Is Set To ‘Permit No One’
Page 533
Recommendation Set
Correctly
Yes No
1.25 Ensure fewer than 5 users have global administrator
assignment
2.1.1 Ensure That Microsoft Defender for Servers Is Set to 'On'
2.1.2 Ensure That Microsoft Defender for App Services Is Set
To 'On'
2.1.3 Ensure That Microsoft Defender for (Managed Instance)
Azure SQL Databases Is Set To 'On'
2.1.4 Ensure That Microsoft Defender for SQL Servers on
Machines Is Set To 'On'
2.1.5 Ensure That Microsoft Defender for Open-Source
Relational Databases Is Set To 'On'
2.1.6 Ensure That Microsoft Defender for Azure Cosmos DB Is
Set To 'On'
2.1.7 Ensure That Microsoft Defender for Storage Is Set To
'On'
2.1.8 Ensure That Microsoft Defender for Containers Is Set To
'On'
2.1.9 Ensure That Microsoft Defender for Key Vault Is Set To
'On'
2.1.10 [LEGACY] Ensure That Microsoft Defender for DNS Is
Set To 'On'
2.1.11 Ensure That Microsoft Defender for Resource Manager
Is Set To 'On'
2.1.12 Ensure that Microsoft Defender Recommendation for
'Apply system updates' status is 'Completed'
2.1.13 Ensure that Microsoft Cloud Security Benchmark policies
are not set to 'Disabled'
2.1.14 Ensure that Auto provisioning of 'Log Analytics agent for
Azure VMs' is Set to 'On'
2.1.15 Ensure that Auto provisioning of 'Vulnerability
assessment for machines' is Set to 'On'
2.1.16 Ensure that Auto provisioning of 'Microsoft Defender for
Containers components' is Set to 'On'
2.1.17 Ensure That 'All users with the following roles' is set to
'Owner'
Page 534
Recommendation Set
Correctly
Yes No
2.1.18 Ensure 'Additional email addresses' is Configured with a
Security Contact Email
2.1.19 Ensure That 'Notify about alerts with the following
severity' is Set to 'High'
2.1.20 Ensure that Microsoft Defender for Cloud Apps
integration with Microsoft Defender for Cloud is Selected
2.1.21 Ensure that Microsoft Defender for Endpoint integration
with Microsoft Defender for Cloud is selected
2.1.22 Ensure that Microsoft Defender External Attack Surface
Monitoring (EASM) is enabled
2.2.1 Ensure That Microsoft Defender for IoT Hub Is Set To
'On'
3.1 Ensure that 'Secure transfer required' is set to 'Enabled'
3.2 Ensure that ‘Enable Infrastructure Encryption’ for Each
Storage Account in Azure Storage is Set to ‘enabled’
3.3 Ensure that 'Enable key rotation reminders' is enabled for
each Storage Account
3.4 Ensure that Storage Account Access Keys are
Periodically Regenerated
3.5 Ensure Storage Logging is Enabled for Queue Service
for 'Read', 'Write', and 'Delete' requests
3.6 Ensure that Shared Access Signature Tokens Expire
Within an Hour
3.7 Ensure that 'Public Network Access' is `Disabled' for
storage accounts
3.8 Ensure Default Network Access Rule for Storage
Accounts is Set to Deny
3.9 Ensure 'Allow Azure services on the trusted services list
to access this storage account' is Enabled for Storage
Account Access
3.10 Ensure Private Endpoints are used to access Storage
Accounts
3.11 Ensure Soft Delete is Enabled for Azure Containers and
Blob Storage
3.12 Ensure Storage for Critical Data are Encrypted with
Customer Managed Keys (CMK)
Page 535
Recommendation Set
Correctly
Yes No
3.13 Ensure Storage logging is Enabled for Blob Service for
'Read', 'Write', and 'Delete' requests
3.14 Ensure Storage Logging is Enabled for Table Service for
'Read', 'Write', and 'Delete' Requests
3.15 Ensure the "Minimum TLS version" for storage accounts
is set to "Version 1.2"
3.16 Ensure 'Cross Tenant Replication' is not enabled
3.17 Ensure that `Allow Blob Anonymous Access` is set to
`Disabled`
4.1.1 Ensure that 'Auditing' is set to 'On'
4.1.2 Ensure no Azure SQL Databases allow ingress from
0.0.0.0/0 (ANY IP)
4.1.3 Ensure SQL server's Transparent Data Encryption (TDE)
protector is encrypted with Customer-managed key
4.1.4 Ensure that Microsoft Entra authentication is Configured
for SQL Servers
4.1.5 Ensure that 'Data encryption' is set to 'On' on a SQL
Database
4.1.6 Ensure that 'Auditing' Retention is 'greater than 90 days'
4.3.1 Ensure 'Enforce SSL connection' is set to 'ENABLED' for
PostgreSQL Database Server
4.3.2 Ensure Server Parameter 'log_checkpoints' is set to 'ON'
for PostgreSQL Database Server
4.3.3 Ensure server parameter 'log_connections' is set to 'ON'
for PostgreSQL Database Server
4.3.4 Ensure server parameter 'log_disconnections' is set to
'ON' for PostgreSQL Database Server
4.3.5 Ensure server parameter 'connection_throttling' is set to
'ON' for PostgreSQL Database Server
4.3.6 Ensure Server Parameter 'log_retention_days' is greater
than 3 days for PostgreSQL Database Server
4.3.7 Ensure 'Allow access to Azure services' for PostgreSQL
Database Server is disabled
4.3.8 Ensure 'Infrastructure double encryption' for PostgreSQL
Database Server is 'Enabled'
Page 536
Recommendation Set
Correctly
Yes No
4.4.1 Ensure 'Enforce SSL connection' is set to 'Enabled' for
Standard MySQL Database Server
4.4.2 Ensure 'TLS Version' is set to 'TLSV1.2' (or higher) for
MySQL flexible Database Server
4.4.3 Ensure server parameter 'audit_log_enabled' is set to
'ON' for MySQL Database Server
4.4.4 Ensure server parameter 'audit_log_events' has
'CONNECTION' set for MySQL Database Server
4.5.1 Ensure That 'Firewalls & Networks' Is Limited to Use
Selected Networks Instead of All Networks
4.5.2 Ensure That Private Endpoints Are Used Where Possible
4.5.3 Use Entra ID Client Authentication and Azure RBAC
where possible.
5.1.1 Ensure that a 'Diagnostic Setting' exists for Subscription
Activity Logs
5.1.2 Ensure Diagnostic Setting captures appropriate
categories
5.1.3 Ensure the storage account containing the container with
activity logs is encrypted with Customer Managed Key
(CMK)
5.1.4 Ensure that logging for Azure Key Vault is 'Enabled'
5.1.5 Ensure that Network Security Group Flow logs are
captured and sent to Log Analytics
5.1.6 Ensure that logging for Azure AppService 'HTTP logs' is
enabled
5.2.1 Ensure that Activity Log Alert exists for Create Policy
Assignment
5.2.2 Ensure that Activity Log Alert exists for Delete Policy
Assignment
5.2.3 Ensure that Activity Log Alert exists for Create or Update
Network Security Group
5.2.4 Ensure that Activity Log Alert exists for Delete Network
Security Group
5.2.5 Ensure that Activity Log Alert exists for Create or Update
Security Solution
Page 537
Recommendation Set
Correctly
Yes No
5.2.6 Ensure that Activity Log Alert exists for Delete Security
Solution
5.2.7 Ensure that Activity Log Alert exists for Create or Update
SQL Server Firewall Rule
5.2.8 Ensure that Activity Log Alert exists for Delete SQL
Server Firewall Rule
5.2.9 Ensure that Activity Log Alert exists for Create or Update
Public IP Address rule
5.2.10 Ensure that Activity Log Alert exists for Delete Public IP
Address rule
5.3.1 Ensure Application Insights are Configured
5.4 Ensure that Azure Monitor Resource Logging is Enabled
for All Services that Support it
5.5 Ensure that SKU Basic/Consumption is not used on
artifacts that need to be monitored (Particularly for
Production Workloads)
6.1 Ensure that RDP access from the Internet is evaluated
and restricted
6.2 Ensure that SSH access from the Internet is evaluated
and restricted
6.3 Ensure that UDP access from the Internet is evaluated
and restricted
6.4 Ensure that HTTP(S) access from the Internet is
evaluated and restricted
6.5 Ensure that Network Security Group Flow Log retention
period is 'greater than 90 days'
6.6 Ensure that Network Watcher is 'Enabled'
6.7 Ensure that Public IP addresses are Evaluated on a
Periodic Basis
7.1 Ensure an Azure Bastion Host Exists
7.2 Ensure Virtual Machines are utilizing Managed Disks
7.3 Ensure that 'OS and Data' disks are encrypted with
Customer Managed Key (CMK)
7.4 Ensure that 'Unattached disks' are encrypted with
'Customer Managed Key' (CMK)
Page 538
Recommendation Set
Correctly
Yes No
7.5 Ensure that Only Approved Extensions Are Installed
7.6 Ensure that Endpoint Protection for all Virtual Machines
is installed
7.7 [Legacy] Ensure that VHDs are Encrypted
7.8 Ensure only MFA enabled identities can access
privileged Virtual Machine
7.9 Ensure Trusted Launch is enabled on Virtual Machines
8.1 Ensure that the Expiration Date is set for all Keys in
RBAC Key Vaults
8.2 Ensure that the Expiration Date is set for all Keys in Non-
RBAC Key Vaults.
8.3 Ensure that the Expiration Date is set for all Secrets in
RBAC Key Vaults
8.4 Ensure that the Expiration Date is set for all Secrets in
Non-RBAC Key Vaults
8.5 Ensure the Key Vault is Recoverable
8.6 Enable Role Based Access Control for Azure Key Vault
8.7 Ensure that Private Endpoints are Used for Azure Key
Vault
8.8 Ensure Automatic Key Rotation is Enabled Within Azure
Key Vault for the Supported Services
9.1 Ensure App Service Authentication is set up for apps in
Azure App Service
9.2 Ensure Web App Redirects All HTTP traffic to HTTPS in
Azure App Service
9.3 Ensure Web App is using the latest version of TLS
encryption
9.4 Ensure that Register with Entra ID is enabled on App
Service
9.5 Ensure That 'PHP version' is the Latest, If Used to Run
the Web App
9.6 Ensure that 'Python version' is the Latest Stable Version,
if Used to Run the Web App
9.7 Ensure that 'Java version' is the latest, if used to run the
Web App
Page 539
Recommendation Set
Correctly
Yes No
9.8 Ensure that 'HTTP Version' is the Latest, if Used to Run
the Web App
9.9 Ensure FTP deployments are Disabled
9.10 Ensure Azure Key Vaults are Used to Store Secrets
10.1 Ensure that Resource Locks are set for Mission-Critical
Azure Resources
Page 540
Appendix: CIS Controls v8 Unmapped
Recommendations
Recommendation Set
Correctly
Yes No
No unmapped recommendations to CIS Controls v8.0
Page 541
Appendix: Change History
Date Version Changes for this version
Page 542
Date Version Changes for this version
Page 543
Date Version Changes for this version
Page 544
Date Version Changes for this version
Page 545
Date Version Changes for this version
Page 546
Date Version Changes for this version
Page 547
Date Version Changes for this version
Page 548
Date Version Changes for this version
Feb 14, 2023 2.0.0 UPDATE - Ensure 'Allow access to Azure services' for
PostgreSQL Database Server is disabled - Changed
assessment status to automated (Ticket 17695)
Feb 13, 2023 2.0.0 UPDATE - Ensure 'Infrastructure double encryption' for
PostgreSQL Database Server is 'Enabled' - Removed
post-deployment remediation (Ticket 17677)
Page 549
Date Version Changes for this version
Feb 13, 2023 2.0.0 UPDATE - Ensure no Azure SQL Databases allow
ingress from 0.0.0.0/0 (ANY IP) - Clarified language in
procedure (Ticket 16453)
Feb 13, 2023 2.0.0 UPDATE - Ensure that 'Auditing' Retention is 'greater
than 90 days' - Language included to indicate 0 days for
unlimited retention (Ticket 17483)
Feb 13, 2023 2.0.0 UPDATE - Ensure that Microsoft Defender for SQL is set
to 'On' for critical SQL Servers - Navigation and auditing
procedures (Ticket 16452)
Feb 13, 2023 2.0.0 DELETE - Ensure that 'Allow users to remember multi-
factor authentication on devices they trust' is 'Disabled' -
Duplicate recommendation (Ticket 17471)
Feb 13, 2023 2.0.0 UPDATE - Ensure ‘User consent for applications’ Is Set
To ‘Allow for Verified Publishers’ - Updated procedure
(Ticket 16261)
Feb 13, 2023 2.0.0 UPDATE - Ensure That 'Notify about alerts with the
following severity' is Set to 'High' - Updated default value
(Ticket 17370)
Feb 13, 2023 2.0.0 UPDATE - Ensure that ‘Enable Infrastructure Encryption’
for Each Storage Account in Azure Storage is Set to
‘enabled’ - Updated assessment status from Manual to
Automated (Ticket 17321)
Feb 13, 2023 2.0.0 UPDATE - Ensure That 'Firewalls & Networks' Is Limited
to Use Selected Networks Instead of All Networks -
Assessment status updated to automated (Ticket 17323)
Feb 10, 2023 2.0.0 UPDATE - Ensure no Azure SQL Databases allow
ingress from 0.0.0.0/0 (ANY IP) - Updated procedure
(Ticket 17655)
Feb 8, 2023 2.0.0 UPDATE - Ensure that the Expiration Date is set for all
Keys in RBAC Key Vaults - Updated procedure &
language (Ticket 17625)
Page 550
Date Version Changes for this version
Feb 8, 2023 2.0.0 UPDATE - Ensure that the Expiration Date is set for all
Keys in Non-RBAC Key Vaults - Updated procedure and
language (Ticket 17627)
Feb 8, 2023 2.0.0 UPDATE - Ensure that the Expiration Date is set for all
Secrets in RBAC Key Vaults - Updated procedure and
language (Ticket 17630)
Feb 8, 2023 2.0.0 UPDATE - Ensure that the Expiration Date is set for all
Secrets in Non-RBAC Key Vaults - Updated procedure
and language (Ticket 17631)
Jan 31, 2023 2.0.0 UPDATE - Ensure that a 'Diagnostic Setting' exists -
Updated the PowerShell/Azure CLI (Ticket 17268)
Jan 31, 2023 2.0.0 UPDATE - Ensure the Storage Container Storing the
Activity Logs is not Publicly Accessible - All Audit and
Procedure Steps Updated (Ticket 16383)
Jan 31, 2023 2.0.0 UPDATE - Ensure Storage logging is Enabled for Blob
Service for 'Read', 'Write', and 'Delete' requests -
Updated parameter names (Ticket 16937)
Jan 31, 2023 2.0.0 UPDATE - Ensure Storage Logging is Enabled for Table
Service for 'Read', 'Write', and 'Delete' Requests -
Updated parameter names (Ticket 16936)
Jan 31, 2023 2.0.0 UPDATE - Ensure That Microsoft Defender for Servers Is
Set to 'On' - Updated procedure (Ticket 16675)
Jan 31, 2023 2.0.0 UPDATE - Ensure that Auto provisioning of 'Microsoft
Defender for Containers components' is Set to 'On' -
Changed from Automated to Manual (Ticket 16597)
Jan 31, 2023 2.0.0 UPDATE - Ensure that 'Users can consent to apps
accessing company data on their behalf' is set -
Procedure Update and Ordered (Ticket 17109)
Page 551
Date Version Changes for this version
Jan 31, 2023 2.0.0 UPDATE - Ensure That ‘Users Can Consent to Apps
Accessing Company Data on Their Behalf’ Is Set To
‘Allow for Verified Publishers’ - Updated Procedure
(Ticket 16668)
Jan 27, 2023 2.0.0 UPDATE - Ensure That 'PHP version' is the Latest, If
Used to Run the Web App - updated CLI (Ticket 17409)
Jan 27, 2023 2.0.0 UPDATE - Ensure that 'Python version' is the Latest
Stable Version, if Used to Run the Web App - Add
Powershell Audit/Remediation (Ticket 15836)
Jan 27, 2023 2.0.0 UPDATE - Ensure that 'Java version' is the latest, if used
to run the Web App - Added detail to AZ CLI & added
PowerShell to audit (Ticket 15837)
Jan 27, 2023 2.0.0 UPDATE - Ensure Virtual Machines are utilizing
Managed Disks - Changed from Manual to Automated
(Ticket 17320)
Jan 27, 2023 2.0.0 UPDATE - Ensure that Network Watcher is 'Enabled' -
changed from manual to automated (Ticket 17319)
Jan 27, 2023 2.0.0 UPDATE - Ensure that Azure Monitor Resource Logging
is Enabled for All Services that Support it - Created Az
CLI/PowerShell Audit/Remediation procedures (Ticket
17263)
Jan 27, 2023 2.0.0 UPDATE - Ensure that Activity Log Alert exists for Delete
Public IP Address rule - Added Az CLI/PowerShell
Audit/remediation procedures (Ticket 17253)
Jan 27, 2023 2.0.0 UPDATE - Ensure that Activity Log Alert exists for Create
or Update Public IP Address rule - Added Az
CLI/PowerShell audit/remediation procedures (Ticket
17254)
Jan 27, 2023 2.0.0 UPDATE - Ensure that Activity Log Alert exists for Delete
SQL Server Firewall Rule - Added Az CLI/PowerShell
audit/remediation procedures (Ticket 17255)
Jan 27, 2023 2.0.0 UPDATE - Ensure that Activity Log Alert exists for Create
or Update SQL Server Firewall Rule - Added Az
CLI/PowerShell audit/remediation procedures (Ticket
17256)
Page 552
Date Version Changes for this version
Jan 27, 2023 2.0.0 UPDATE - Ensure that Activity Log Alert exists for
'Delete Security Rule (Network Security Group)' - type no
longer exists (Ticket 15382)
Jan 27, 2023 2.0.0 UPDATE - Ensure that Activity Log Alert exists for Delete
Security Solution - Added Az CLI/PowerShell
audit/remediation procedures (Ticket 17257)
Jan 27, 2023 2.0.0 DELETE - Ensure that Activity Log Alert exists for Create
or Update Network Security Group Rule - type no longer
exists (Ticket 15381)
Jan 27, 2023 2.0.0 UPDATE - Ensure that Activity Log Alert exists for Create
or Update Security Solution - Added Az CLI/PowerShell
audit/remediation procedures (Ticket 17258)
Jan 27, 2023 2.0.0 UPDATE - Ensure that Activity Log Alert exists for Delete
Network Security Group - Added Azure CLI/PowerShell
remediation/audit procedures (Ticket 17259)
Jan 27, 2023 2.0.0 UPDATE - Ensure that Activity Log Alert exists for Create
or Update Network Security Group - Added Azure
CLI/PowerShell remediation/audit procedures (Ticket
17260)
Jan 27, 2023 2.0.0 UPDATE - Ensure that Activity Log Alert exists for Delete
Policy Assignment - Added Az CLI/PowerShell
Audit/Remediation procedures (Ticket 17261)
Jan 27, 2023 2.0.0 UPDATE - Ensure that Activity Log Alert exists for Create
Policy Assignment - Added Azure CLI/PowerShell
audit/remediation back in (Ticket 17262)
Jan 27, 2023 2.0.0 UPDATE - Ensure that logging for Azure AppService
'HTTP logs' is enabled - Log source name updated to
current 'HTTP logs' source (Ticket 16689)
Jan 27, 2023 2.0.0 UPDATE - Ensure that logging for Azure Key Vault is
'Enabled' - Updated/added PowerShell and Az CLI to the
Audit/Remediation procedures (Ticket 17264)
Jan 27, 2023 2.0.0 UPDATE - Ensure the storage account containing the
container with activity logs is encrypted with Customer
Managed Key - Updated Az CLI and added PowerShell
for Audit/remediation procedures (Ticket 17265)
Page 553
Date Version Changes for this version
Jan 27, 2023 2.0.0 UPDATE - Ensure Private Endpoints are used to access
Storage Accounts - Fix / Add PowerShell & CLI (Ticket
16187)
Jan 27, 2023 2.0.0 UPDATE - Ensure Private Endpoints are used to access
Storage Accounts - Assessment status updated to
'automated' (Ticket 17322)
Jan 24, 2023 2.0.0 UPDATE - Ensure that 'Allow users to remember multi-
factor authentication on devices they trust' is Disabled -
Procedure updated (Ticket 16640)
Jan 24, 2023 2.0.0 UPDATE - Ensure that 'Data encryption' is set to 'On' on
a SQL Database - Added Powershell Remediation
method (Ticket 17473)
Jan 24, 2023 2.0.0 UPDATE - Ensure 'Enforce SSL connection' is set to
'ENABLED' for PostgreSQL Database Server - Added
Powershell & updated prose (Ticket 17475)
Page 554
Date Version Changes for this version
Jan 24, 2023 2.0.0 UPDATE - Ensure SQL server's Transparent Data
Encryption (TDE) protector is encrypted with Customer-
managed key - Added PowerShell & Updated Prose
(Ticket 17480)
Jan 24, 2023 2.0.0 UPDATE - Ensure That 'All users with the following roles'
is set to 'Owner' - Prose updated (Ticket 16860)
Jan 24, 2023 2.0.0 UPDATE - Ensure That 'Notify about alerts with the
following severity' is Set to 'High' - Updated prose (Ticket
16872)
Jan 24, 2023 2.0.0 UPDATE - Proposed change for Ensure that Microsoft
Defender for Cloud Apps integration with Microsoft
Defender for Cloud is Selected - Updated prose (Ticket
16703)
Jan 24, 2023 2.0.0 UPDATE - Ensure that Microsoft Defender for Endpoint
integration with Microsoft Defender for Cloud is selected
- Remediation procedure correction (Ticket 16702)
Jan 24, 2023 2.0.0 UPDATE - Ensure Any of the ASC Default Policy
Settings are Not Set to 'Disabled' - Remediation steps
updated for clarity (Ticket 16663)
Jan 20, 2023 2.0.0 ADDED - Ensure that SKU Basic/Consumption is not
used on artifacts that need to be monitored (Particularly
for Production Workloads) - New recommendation.
(Ticket 17211)
Jan 20, 2023 2.0.0 UPDATE - Ensure That Microsoft Defender for
Containers Is Set To 'On' - CLI and Powershell syntax
(Ticket 16450)
Jan 20, 2023 2.0.0 UPDATE - Ensure That Microsoft Defender for
Containers Is Set To 'On' - Procedure steps and product
branding updated. (Ticket 16708)
Page 555
Date Version Changes for this version
Jan 20, 2023 2.0.0 UPDATE - Ensure That Microsoft Defender for Azure
Cosmos DB Is Set To 'On' - Prose updated for clarity and
branding (Ticket 16707)
Jan 20, 2023 2.0.0 UPDATE - Ensure That Microsoft Defender for Key Vault
Is Set To 'On' - Prose updated for clarity (Ticket 16706)
Jan 20, 2023 2.0.0 UPDATE - Ensure That Microsoft Defender for DNS Is
Set To 'On' - Prose updated for clarity (Ticket 16705)
Jan 20, 2023 2.0.0 UPDATE - Ensure That Microsoft Defender for IoT Hub
Is Set To 'On' - Prose and steps updated (Ticket 16451)
Jan 20, 2023 2.0.0 UPDATE - Ensure That Microsoft Defender for Resource
Manager Is Set To 'On' - Updated prose for clarity (Ticket
16704)
Jan 19, 2023 2.0.0 UPDATE - Ensure that Resource Locks are set for
Mission-Critical Azure Resources - Menu navigation
updated (Ticket 16673)
Jan 19, 2023 2.0.0 UPDATE - Enable Role Based Access Control for Azure
Key Vault - Navigation and terminology updated (Ticket
16679)
Jan 19, 2023 2.0.0 UPDATE - Ensure that Private Endpoints are Used for
Azure Key Vault - Navigation & Terminology (Ticket
16688)
Jan 19, 2023 2.0.0 UPDATE - Ensure Automatic Key Rotation is Enabled
Within Azure Key Vault for the Supported Services -
Updated terminology (Ticket 16687)
Jan 13, 2023 2.0.0 ADD - External Attack Surface Monitoring - New Section
(Ticket 17332)
Dec 27, 2022 2.0.0 UPDATE - Ensure that a Custom Bad Password List is
set to 'Enforce' for your Organization - Proposed change
to Ensure that a Custom Bad Password List is set to
'Enforce' for your Organization (Ticket 16641)
Dec 27, 2022 2.0.0 UPDATE - Ensure that 'Notify users on password
resets?' is set to 'Yes' - Update step 5 (Ticket 16929)
Page 556
Date Version Changes for this version
Dec 27, 2022 2.0.0 UPDATE - Ensure That 'Notify all admins when other
admins reset their password?' is set to 'Yes' - Update
step 5 (Ticket 16928)
Dec 23, 2022 2.0.0 UPDATE - Ensure that Activity Log Alert exists for Create
Policy Assignment - Improved procedures (Ticket 16909)
Dec 23, 2022 2.0.0 UPDATE - Ensure that Activity Log Alert exists for Delete
Policy Assignment - Improved procedures (Ticket 16912)
Dec 23, 2022 2.0.0 UPDATE - Ensure that Activity Log Alert exists for Create
or Update Network Security Group - Improved
Procedures (Ticket 16913)
Dec 23, 2022 2.0.0 UPDATE - Ensure that Activity Log Alert exists for Delete
Network Security Group - Improved Procedure (Ticket
16914)
Dec 23, 2022 2.0.0 UPDATE - Ensure that Activity Log Alert exists for Create
or Update Security Solution - Improved Procedure
(Ticket 16915)
Dec 23, 2022 2.0.0 UPDATE- Ensure that Activity Log Alert exists for Delete
Security Solution - Improved procedure (Ticket 16916)
Dec 23, 2022 2.0.0 UPDATE - Ensure that Activity Log Alert exists for Create
or Update SQL Server Firewall Rule - Improved
Procedure (Ticket 16917)
Dec 23, 2022 2.0.0 UPDATE - Ensure that Activity Log Alert exists for Delete
SQL Server Firewall Rule - Improved Procedures (Ticket
16918)
Dec 23, 2022 2.0.0 UPDATE - Ensure that Activity Log Alert exists for Create
or Update Public IP Address rule - Improved Procedure
(Ticket 16919)
Dec 23, 2022 2.0.0 UPDATE - Ensure that Activity Log Alert exists for Delete
Public IP Address rule - Improved Procedure (Ticket
16920)
Dec 22, 2022 2.0.0 UPDATE - Ensure the Storage Container Storing the
Activity Logs is not Publicly Accessible - Improved
instructions (Ticket 17004)
Page 557
Date Version Changes for this version
Dec 22, 2022 2.0.0 UPDATE - Ensure the storage account containing the
container with activity logs is encrypted with Customer
Managed Key - Improved instructions (Ticket 17006)
Dec 22, 2022 2.0.0 UPDATE - Ensure that logging for Azure Key Vault is
'Enabled' - Improved remediation instructions (Ticket
17056)
Dec 22, 2022 2.0.0 UPDATE - Ensure that Network Security Group Flow
logs are captured and sent to Log Analytics - Updated
navigation instruction (Ticket 16690)
Dec 14, 2022 2.0.0 UPDATE - Ensure that 'Auditing' is set to 'On' - Updated
steps for accuracy (Ticket 17018)
Dec 14, 2022 2.0.0 UPDATE - Ensure that 'Auditing' Retention is 'greater
than 90 days' - Prose consistency (Ticket 17020)
Dec 14, 2022 2.0.0 UPDATE - Ensure that Vulnerability Assessment (VA)
setting 'Send scan reports to' is configured for a SQL
server - Updated procedure (Ticket 16695)
Dec 14, 2022 2.0.0 UPDATE - Ensure 'Allow access to Azure services' for
PostgreSQL Database Server is disabled - Procedure
Updated (Ticket 16667)
Dec 14, 2022 2.0.0 UPDATE - Ensure That 'Firewalls & Networks' Is Limited
to Use Selected Networks Instead of All Networks -
Procedure updated (Ticket 16700)
Dec 14, 2022 2.0.0 UPDATE - Ensure That Private Endpoints Are Used
Where Possible - Procedure Updated (Ticket 16693)
Page 558
Date Version Changes for this version
Dec 7, 2022 2.0.0 UPDATE - Ensure that 'Enable key rotation reminders' is
enabled for each Storage Account - Steps updated
(Ticket 16664)
Nov 30, 2022 2.0.0 UPDATE - Ensure That Microsoft Defender for App
Services Is Set To 'On' - Menu Navigation Update (Ticket
16672)
Nov 30, 2022 2.0.0 UPDATE - Ensure That Microsoft Defender for
Databases Is Set To 'On' - Navigation Updated (Ticket
16676)
Nov 16, 2022 2.0.0 UPDATE - Ensure that a Custom Bad Password List is
set to 'Enforce' for your Organization - (Ticket 16931)
Nov 7, 2022 2.0.0 UPDATE - Minor format error in Audit Procedure (Ticket
16287)
Sep 7, 2022 2.0.0 UPDATE - CLI/API Availability - Review all "At this point
of time" statements (Ticket 16224)
Aug 26, 2022 2.0.0 UPDATE - Ensure that logging for Azure AppService
'AppServiceHTTPLogs' is enabled. - Ensure that
"AppServiceHTTPLogs" is set to "Enabled" (Ticket
15892)
Aug 26, 2022 2.0.0 UPDATE - 2.3.1 Ensure That 'All users with the following
roles' is set to 'Owner' - Fix typo in 2.3.1 Audit and
Remediation Procedure (Ticket 16257)
Aug 23, 2022 2.0.0 UPDATE - Ensure Soft Delete is Enabled for Azure
Containers and Blob Storage - Remove errant '>' in 3.11
Remediation Procedure (Ticket 16256)
Page 559
Date Version Changes for this version
Aug 23, 2022 2.0.0 UPDATE - Enable Role Based Access Control for Azure
Key Vault - Typo in 8.6 Remediation Procedure (Ticket
16252)
Aug 23, 2022 2.0.0 UPDATE - Ensure that Vulnerability Assessment (VA)
setting 'Also send email notifications to admins and
subscription owners' is set for each SQL Server - Update
numbering in 4.2.5 Remediation Procedure (Ticket
16254)
Aug 23, 2022 2.0.0 UPDATE - Ensure that 'Guest invite restrictions' is set to
"Only users assigned to specific admin roles can invite
guest users" - Typo in 1.16 Remediation Procedure
(Ticket 16253)
Aug 15, 2022 1.5.0 UPDATE - Ensure Soft Delete is Enabled for Azure
Containers and Blob Storage - Storage Soft Delete has
outdated Audit Procedure (Ticket 14661)
Aug 15, 2022 1.5.0 UPDATE - Ensure that Azure Defender for SQL is set to
'On' for critical SQL Servers - Title Updated (Ticket
15184)
Aug 15, 2022 1.5.0 UPDATE - Ensure Any of the ASC Default Policy
Settings are Not Set to 'Disabled' - Audit procedure
updated (Ticket 15162)
Aug 15, 2022 1.5.0 UDPATE - Ensure that the Expiration Date is set for all
Keys in RBAC Key Vaults - Added PowerShell
Commands (Ticket 15308)
Aug 15, 2022 1.5.0 UPDATE - Ensure 'Enforce SSL connection' is set to
'Enabled' for Standard MySQL Database Server - 4.4.1 -
CIS Control mapping (Ticket 15316)
Page 560
Date Version Changes for this version
Aug 15, 2022 1.5.0 ADD - Ensure that 'Allow users to remember multi-factor
authentication on devices they trust' is 'Disabled' &
Restore Deleted Recommendation 'Allow users to
remember mfa on devices they trust' (Ticket 14732)
Aug 15, 2022 1.5.0 UPDATE - Monitoring using Activity Log Alerts - Security
Solutions paths Updated (Ticket 14139)
Aug 15, 2022 1.5.0 UPDATE - Ensure Storage Logging is Enabled for Table
Service for 'Read', 'Write', and 'Delete' Requests - Azure
Storage logging for Table is now done via Diagnostic
Settings (no more classic) (Ticket 14976)
Aug 15, 2022 1.5.0 UPDATE - Ensure Storage logging is Enabled for Blob
Service for 'Read', 'Write', and 'Delete' requests -Azure
Storage logging for blob is now done via Diagnostic
Settings (no more classic) (Ticket 14975)
Aug 15, 2022 1.5.0 UPDATE - Ensure that Network Security Group Flow
logs are captured and sent to Log Analytics - Ensure
NSG Flowlogs are configured (Ticket 15598)
Aug 15, 2022 1.5.0 UPDATE - [Legacy] Ensure that VHDs are Encrypted -
Use the term "Key Vault" where possible, rather than
"Keyvault" or "keyvault" (Ticket 15566)
Aug 15, 2022 1.5.0 UPDATE - Ensure Azure Key Vaults are Used to Store
Secrets - Review control 9.11 remediation text (Ticket
15565)
Aug 15, 2022 1.5.0 UPDATE - [Legacy] Ensure that VHDs are Encrypted -
Now specified as legacy (Ticket 14995)
Aug 15, 2022 1.5.0 UPDATE - [Legacy] Ensure that VHDs are Encrypted -
Added reference in 7.6 to Microsoft documentation on
how to convert a VHD to managed disk (Ticket 15820)
Aug 15, 2022 1.5.0 UPDATE - Ensure that Storage Account Access Keys
are Periodically Regenerated - CLI Syntax Correction
(Ticket 15819)
Page 561
Date Version Changes for this version
Aug 15, 2022 1.5.0 UPDATE - Ensure that Microsoft Defender for SQL is set
to 'On' for critical SQL Servers - ATP (Advanced Threat
Protection) is now Defender (Ticket 15746)
Aug 15, 2022 1.5.0 UPDATE - Ensure Azure Key Vaults are Used to Store
Secrets - Description text clarified (Ticket 15564)
Aug 15, 2022 1.5.0 UPDATE - Ensure FTP deployments are Disabled -
Clarification on Azure CLI pass/fail (Ticket 13117)
Aug 15, 2022 1.5.0 UPDATE - Ensure that Azure Monitor Resource Logging
is Enabled for All Services that Support it - Added
reference for supported providers/services (Ticket
15703)
Aug 15, 2022 1.5.0 UPDATE - Ensure that Azure Monitor Resource Logging
is Enabled for All Services that Support it - Proposed
change for text in Remediation Procedure preceding CLI
command example (Ticket 15625)
Aug 15, 2022 1.5.0 ADD - Ensure That Microsoft Defender for Cosmos DB Is
Set To 'On' - Enabled (Ticket 15333)
Page 562
Date Version Changes for this version
Aug 15, 2022 1.5.0 UPDATE - Ensure that Storage Account Access Keys
are Periodically Regenerated - 3.2 Ensure that storage
account access keys are periodically regenerated (Ticket
13399)
Aug 15, 2022 1.5.0 ADD - Enable Role Based Access Control for Azure Key
Vault (Ticket 14200)
Aug 15, 2022 1.5.0 UPDATE - Ensure that Register with Azure Active
Directory is enabled on App Service - Added Powershell
Audit/Remediation (Ticket 15834)
Aug 15, 2022 1.5.0 UPDATE - Ensure that the Expiration Date is set for all
Secrets in Non-RBAC Key Vaults -Update 8.4
remediation for consistency (Ticket 15881)
Aug 15, 2022 1.5.0 UPDATE - Ensure that 'Users can consent to apps
accessing company data on their behalf' is set to 'No' -
Additional setting for pre-approved apps was added
(Ticket 15302)
Aug 15, 2022 1.5.0 UPDATE - Ensure that VA setting 'Periodic recurring
scans' to 'on' for each SQL server - Added MITRE
mapping (Ticket 16110)
Aug 15, 2022 1.5.0 UPDATE - Ensure that Microsoft Defender for Endpoint
integration with Microsoft Defender for Cloud is selected
- Impact of enabling integrations needs revision (Ticket
16152)
Aug 15, 2022 1.5.0 ADD - Ensure that HTTP(S) access from the Internet is
evaluated and restricted (Ticket 15721)
Aug 15, 2022 1.5.0 UPDATE - Ensure Storage Logging is Enabled for
Queue Service for 'Read', 'Write', and 'Delete' requests -
Default Value (Ticket 16022)
Page 563
Date Version Changes for this version
Aug 15, 2022 1.5.0 UPDATE - Ensure Private Endpoints are used to access
Storage Accounts - Audit Procedure clarified (Ticket
16143)
Aug 15, 2022 1.5.0 UPDATE - Ensure no Azure SQL Databases allow
ingress from 0.0.0.0/0 (ANY IP) - Add audit steps and
recommendations for other types of DBs (Ticket 15752)
Aug 15, 2022 1.5.0 UPDATE - Ensure that 'Data encryption' is set to 'On' on
a SQL Database - Audit Procedure steps for PowerShell
differ from CLI (Ticket 16136)
Page 564
Date Version Changes for this version
Aug 15, 2022 1.5.0 UPDATE - Before Publishing User Supplied Information
in CLI commands Should be Denoted (Ticket 15760)
Aug 15, 2022 1.5.0 UPDATE - Ensure that Endpoint Protection for all Virtual
Machines is installed -Missing Content - Default Value
(Ticket 16116)
Aug 15, 2022 1.5.0 UPDATE - Ensure Virtual Machines are utilizing
Managed Disks - Missing Content - Default Value (Ticket
16115)
Aug 15, 2022 1.5.0 UPDATE - Ensure that Azure Monitor Resource Logging
is Enabled for All Services that Support it - Unclear
Wording (Ticket 16113)
Aug 15, 2022 1.5.0 UPDATE - Ensure that Network Security Group Flow
logs are captured and sent to Log Analytics - Step-by-
step instructions need better organization (Ticket 16112)
Aug 15, 2022 1.5.0 UPDATE - Ensure that Network Security Group Flow
logs are captured and sent to Log Analytics - Audit
procedure clarified (Ticket 16151)
Aug 15, 2022 1.5.0 UPDATE - Ensure that Network Security Group Flow
logs are captured and sent to Log Analytics - Missing
Content - Default Value (Ticket 16111)
Aug 15, 2022 1.5.0 UPDATE - Ensure Storage logging is Enabled for Blob
Service for 'Read', 'Write', and 'Delete' requests - Two
sets of Azure Console Audit Procedure steps are listed
(Ticket 16134)
Aug 15, 2022 1.5.0 DELETE - Enable role-based access control (RBAC) is
enabled on Azure Kubernetes Services (Ticket 15925)
Aug 15, 2022 1.5.0 UPDATE - Overview - Added PowerShell and Az CLI
requirements for authentication... (Ticket 16155)
Page 565
Date Version Changes for this version
Aug 15, 2022 1.5.0 UPDATE - Ensure that Public IP addresses are
Evaluated on a Periodic Basis -Missing Content - Default
Value Added (Ticket 16114)
Aug 15, 2022 1.5.0 UPDATE - Ensure that Only Approved Extensions Are
Installed - Change to 'manual' assessment status (Ticket
15652)
Aug 12, 2022 1.5.0 ADD - Ensure private endpoints are used to access
storage accounts (Ticket 15527)
Aug 11, 2022 1.5.0 UPDATE - Ensure the storage account containing the
container with activity logs is encrypted with BYOK (Use
Your Own Key) -Clarification - audit and remediation
steps in rule 5.1.4 contain incorrect assumptions (Ticket
15650)
Aug 11, 2022 1.5.0 UPDATE - CIS Microsoft Azure Foundations Benchmark
v1.5.0 - Preamble added to Benchmark Overview for use
of PowerShell and Azure CLI (Ticket 16177)
Aug 11, 2022 1.5.0 UPDATE - Introduction Page - Add PowerShell and Az
CLI requirements for authentication... (Ticket 16156)
Aug 11, 2022 1.5.0 UPDATE - 4.1 - SQL Server - Auditing - Check overview
wording (Ticket 16026)
Page 566
Date Version Changes for this version
Aug 11, 2022 1.5.0 UPDATE - Ensure That Microsoft Defender for Open-
Source Relational Databases Is Set To 'On' (Ticket
16119)
Aug 11, 2022 1.5.0 ADD - Ensure that Auto provisioning of 'Vulnerability
assessment for machines' is Set to 'On' (Ticket 16117)
Aug 11, 2022 1.5.0 ADD - Ensure that Auto provisioning of 'Microsoft
Defender for Containers components' is Set to 'On'
(Ticket 16118)
Aug 10, 2022 1.5.0 UPDATE - Ensure That 'Restrict access to Azure AD
administration portal' is Set to 'Yes' - Add a caveat to
ensure users are aware of there are other interfaces for
admin level access (Ticket 15529)
Aug 9, 2022 1.5.0 ADD - Ensure that 'Enable key rotation reminders' is
enabled for each Storage Account (Ticket 16159)
Aug 8, 2022 1.5.0 UPDATE - Ensure That Storage Account Access Keys
are Periodically Regenerated - Portal navigation updated
(Ticket 16158)
Aug 2, 2022 1.5.0 ADD - Ensure Automatic Key Rotation is Enabled Within
Azure Key Vault for the Supported Services - Azure Key
Vault auto key rotation feature in preview (include in 8.1
& 8.2) (Ticket 14413)
Jul 28, 2022 1.5.0 ADD - Ensure "Allow Azure services and resources to
access this server" is set to OFF (Ticket 12731)
Jul 27, 2022 1.5.0 UPDATE - Configuring Diagnostic Settings - Title section
prose update to include Azure AD Logs (Ticket 15390)
Page 567
Date Version Changes for this version
Jul 27, 2022 1.5.0 UPDATE - Ensure the storage container storing the
activity logs is not publicly accessible - audit and
remediation steps don't follow the current UI and contain
incorrect assumptions (Ticket 15649)
Jul 27, 2022 1.5.0 UPDATE - [Legacy] Ensure that VHDs are Encrypted -
CLI Syntax Reviewed and Updated (Ticket 15893)
Jul 27, 2022 1.5.0 UPDATE - Ensure that the Expiration Date is set for all
Keys in Non-RBAC Key Vaults. - Updated the Rationale
Statement with more explicit language. (Ticket 14410)
Jul 26, 2022 1.5.0 UPDATE - Ensure Storage Logging is Enabled for Table
Service for 'Read', 'Write', and 'Delete' Requests -Update
Description wording (Ticket 15758)
Jul 26, 2022 1.5.0 UPDATE - [Legacy] Ensure that VHDs are Encrypted -
Suggested updates to Remediation Procedure (Ticket
15732)
Jul 26, 2022 1.5.0 UPDATE - Ensure that Only Approved Extensions Are
Installed - Suggested change to step 3 of Remediation
Procedure (Ticket 15729)
Jul 26, 2022 1.5.0 UPDATE - Ensure Web App is using the latest version of
TLS encryption - Add Powershell audit procedure (Ticket
15393)
Jul 26, 2022 1.5.0 UPDATE - Ensure That 'PHP version' is the Latest, If
Used to Run the Web App - Add Powershell
Audit/Remediation (Ticket 15835)
Jul 26, 2022 1.5.0 UPDATE - Enable role-based access control (RBAC) is
enabled on Azure Kubernetes Services - Suggest that
remediation procedure include detail on how to enable
RBAC during deployment (Ticket 15582)
Jul 25, 2022 1.5.0 UPDATE - Ensure that 'Python version' is the Latest
Stable Version, if Used to Run the Web App - Proposed
update to 'NOTE' within Audit and Remediation
Procedure (Ticket 15621)
Jul 25, 2022 1.5.0 UPDATE - Ensure that 'Java version' is the latest, if used
to run the Web App - Proposed update to 'NOTE' text in
Audit and Remediation Procedure (Ticket 15622)
Page 568
Date Version Changes for this version
Jul 25, 2022 1.5.0 UPDATE - Ensure that the Expiration Date is set for all
Keys in Non-RBAC Key Vaults. - Proposed change to
Note text in Remediation Procedure (Ticket 15627)
Jul 25, 2022 1.5.0 UPDATE - Ensure Guest Users Are Reviewed on a
Regular Basis - Proposed change to Description text
(Ticket 15623)
Jul 25, 2022 1.5.0 UPDATE - Ensure that Resource Locks are set for
Mission Critical Azure Resources - Proposed change to
Step 2 of Azure Console Remediation Procedure (Ticket
15628)
Jul 25, 2022 1.5.0 UPDATE - [Legacy] Ensure that VHDs are Encrypted -
Proposed change to Title and Description text (Ticket
15630)
Jul 25, 2022 1.5.0 UPDATE - Ensure Virtual Machines are utilizing
Managed Disks - Proposed changes to Description and
Remediation Procedure (From Azure Console, Step 5)
text (Ticket 15629)
Jul 25, 2022 1.5.0 UPDATE - Ensure SQL server's TDE protector is
encrypted with Customer-managed key - 4.8: Updated
Azure CLI Command (Ticket 15697)
Jul 25, 2022 1.5.0 UPDATE - Ensure that 'OS and Data' disks are
encrypted with Customer Managed Key (CMK) Suggest
update to step 4 of Remediation Procedure (Ticket
15727)
Jul 25, 2022 1.5.0 ADD - Further recommendations for Cosmos DB (Ticket
15733)
Jul 25, 2022 1.5.0 UPDATE - Ensure Storage logging is Enabled for Blob
Service for 'Read', 'Write', and 'Delete' requests - Fix
typos in Description (Ticket 15757)
Page 569
Date Version Changes for this version
Jul 25, 2022 1.5.0 UPDATE - Ensure 'Enforce SSL connection' is set to
'Enabled' for Standard MySQL Database Server -
Proposed updates to Audit, Remediation Procedure and
References (Ticket 15871)
Jul 25, 2022 1.5.0 UPDATE - Ensure that the Expiration Date is set for all
Keys in Non-RBAC Key Vaults. - Added PWSH
remediation for 8.2 (Ticket 15878)
Jul 25, 2022 1.5.0 UPDATE - Ensure that the Expiration Date is set for all
Keys in RBAC Key Vaults - Added PWSH remediation
for 8.1 (Ticket 15879)
Jul 25, 2022 1.5.0 UPDATE - Ensure that the Expiration Date is set for all
Secrets in RBAC Key Vaults - Added PWSH remediation
for 8.3 (Ticket 15880)
Jul 21, 2022 1.5.0 UPDATE - Ensure FTP deployments are Disabled - Add
az cli example and Add Powershell audit & remediation
(Ticket 15822)
Jul 21, 2022 1.5.0 UPDATE - Ensure that 'HTTP Version' is the Latest, if
Used to Run the Web App - Powershell
Audit/Remediation Added (Ticket 15831)
Jul 21, 2022 1.5.0 ADD - Ensure that Microsoft Defender for IoT is set to
'On" (Ticket 15748)
Jul 20, 2022 1.5.0 ADD - Ensure that 'Enable infrastructure encryption' for
each Storage Accounts in Azure Storage is set to
'Enabled' - Ensure that 'Enable infrastructure encryption'
is set to 'Enabled' (Ticket 15526)
Jul 20, 2022 1.5.0 ADD - Ensure that 'Subscription entering AAD directory'
and 'Subscription leaving AAD directory' is set to 'Permit
no one' (Ticket 15695)
Page 570
Date Version Changes for this version
Jul 20, 2022 1.5.0 UPDATE - Ensure Web App Redirects All HTTP traffic to
HTTPS in Azure App Service - Add powershell audit
procedure (Ticket 15392)
Jul 20, 2022 1.5.0 ADD - Ensure that Microsoft Defender for Cosmos DB is
set to 'On (Ticket 15833)
Jul 20, 2022 1.5.0 ADD - Ensure that Microsoft Defender for DNS is set to
'On' (Ticket 15717)
Jul 20, 2022 1.5.0 ADD - Ensure that Microsoft Defender for Resource
Manager is set to 'On" (Ticket 15718)
Jul 20, 2022 1.5.0 UPDATE - Ensure that Permissions for Approving Apps
is Only Given to Authorized Users - Ensure that 'Users
can register applications' is set to 'No' - Delegate app
registration permissions (Ticket 15530)
Jul 20, 2022 1.5.0 UPDATE - Ensure Storage Logging is Enabled for
Queue Service for 'Read', 'Write', and 'Delete' requests -
Azure Storage logging is now done via Diagnostic
Settings (no more classic) (Ticket 14974)
Jul 20, 2022 1.5.0 ADD - Ensure That 'Firewalls & Networks' Is Limited to
Use Selected Networks Instead of All Networks - Ensure
that 'Firewalls & Networks' is set to use a selected
network instead of all networks (Ticket 15334)
Jul 20, 2022 1.5.0 ADD - Ensure That 'private Endpoints' Are Used Where
Possible - Move 'Ensure that Private Endpoints are used
where possible' to section 6 (Ticket 15723)
Jul 20, 2022 1.5.0 UPDATE - Ensure Any of the ASC Default Policy
Settings are Not Set to 'Disabled' - Updates to proposed
change (Ticket 15484)
Jul 19, 2022 1.5.0 UPDATE - Ensure Guest Users Are Reviewed on a
Regular Basis - Ensure guest users are reviewed on a
monthly basis - Guest user controls (Ticket 15528)
Jul 14, 2022 1.5.0 UPDATE - Ensure the web app has 'Client Certificates
(Incoming client certificates)' set to 'On' - Add powershell
audit procedure (Ticket 15394)
Page 571
Date Version Changes for this version
Jul 12, 2022 1.5.0 UPDATE - Ensure access review is set up for Azure AD
Privileged Identity Management -E5 or AD P2 has built-in
Guest Access Review (Ticket 15438)
Jun 30, 2022 1.5.0 ADD - Ensure that Microsoft Defender for Databases is
set to 'On" (Ticket 15711)
Jun 23, 2022 1.5.0 UPDATE - Ensure no SQL Databases allow ingress
0.0.0.0/0 (ANY IP) - Move recommendation to section 4 -
Database Services (Ticket 15722)
Jun 22, 2022 1.5.0 UPDATE - Ensure that 'Azure AD Password Protection'
is 'Enforced - Add a bad password control in Section 1 -
Identity and Access Management (Ticket 15514)
Jun 22, 2022 1.5.0 UPDATE - Ensure that Microsoft Defender for Servers is
set to 'On' - Is this recommendation a level 1 or 2?
(Ticket 15710)
Jun 20, 2022 1.5.0 Ensure MySQL has server parameters set to log security
events (Ticket 15674)
Jun 13, 2022 1.5.0 UPDATE - Ensure that Microsoft Defender for Endpoint
(WDATP) integration with Microsoft Defender for Cloud is
selected - Powershell Command Added (Ticket 15349)
Jun 13, 2022 1.5.0 UPDATE - [Branding] - Key Vault (Ticket 15664)
Jun 8, 2022 1.5.0 ADD - Ensure Trusted Locations Are Defined (Ticket
15636)
Jun 8, 2022 1.5.0 UPDATE - Ensure that 'Users can consent to apps
accessing company data on their behalf' is set to 'No' -
Audit/Remediation Procedure Update (Ticket 15520)
Page 572
Date Version Changes for this version
May 19, 2022 1.5.0 UPDATE - Ensure That No Custom Subscription Owner
Roles Are Created - Changed to Profile Level 1 (Ticket
15552)
May 19, 2022 1.5.0 UPDATE - Ensure That 'Guest users access restrictions'
is set to 'Guest user access is restricted to properties and
memberships of their own directory objects'' - Changed
to Profile Level 1 (Ticket 15551)
May 19, 2022 1.5.0 UPDATE - Ensure that 'Users can register applications'
is set to 'No' - Changed to Profile Level 1 (Ticket 15550)
May 19, 2022 1.5.0 UPDATE - Ensure that 'Users can add gallery apps to My
Apps' is set to 'No' - Changed to Profile Level 1 (Ticket
15549)
May 16, 2022 1.5.0 UPDATE - Ensure the "Minimum TLS version" is set to
"Version 1.2" - Add Azure CLI and powershell audit and
remediation procedures (Ticket 15386)
May 16, 2022 1.5.0 UPDATE - Ensure 'Trusted Microsoft Services' are
Enabled for Storage Account Access - add powershell
audit procedure (Ticket 15384)
May 16, 2022 1.5.0 UPDATE - Ensure that 'Auditing' is set to 'On' - Add
prose for targets and show examples in remediation
(Ticket 15387)
May 16, 2022 1.5.0 UPDATE - Ensure that 'Data encryption' is set to 'On' on
a SQL Database - Add powershell audit procedure
(Ticket 15388)
May 16, 2022 1.5.0 UPDATE - Ensure that Azure Active Directory Admin is
configured - Azure CLI and Powershell syntax updated
(Ticket 15389)
May 13, 2022 1.5.0 UPDATE - 2.7 Ensure that Microsoft Defender for
Containers is set to 'On' - is not aligned with the last
updates of Azure plans (Ticket 14797)
Page 573
Date Version Changes for this version
May 10, 2022 1.5.0 UPDATE - Ensure that Azure Monitor Resource Logging
is Enabled for All Services that Support it - Diagnostic
settings changed to Azure Monitor - check list of
resources and update reference section (Ticket 13877)
May 10, 2022 1.5.0 UPDATE - Ensure that Activity Log Alert exists for Create
or Update or Delete SQL Server Firewall Rule - Delete
operation is not addressed in audit procedures, other
sections (Ticket 12259)
May 10, 2022 1.5.0 UPDATE - Ensure Soft Delete is Enabled for Azure
Containers and Blob Storage - Include soft delete for
containers here, as it is recommended by Microsoft
(Ticket 15417)
Apr 29, 2022 1.5.0 UPDATE - Ensure that Only Approved Extensions Are
Installed - Add Powershell Audit Syntax (Ticket 15427)
Apr 28, 2022 1.5.0 UPDATE - Ensure that Register with Azure Active
Directory is enabled on App Service - Add powershell
audit procedure (Ticket 15395)
Apr 20, 2022 1.5.0 UPDATE - Ensure That No Custom Subscription Owner
Roles Are Created - Updated PowerShell Syntax (Ticket
15348)
Apr 18, 2022 1.5.0 UPDATE - Ensure that 'Auditing' Retention is 'greater
than 90 days' - Renumbered 4.1.2/3 to better align with
application (Ticket 15183)
Apr 18, 2022 1.5.0 UPDATE - Ensure that the latest OS Patches for all
Virtual Machines are applied - Change Audit step:
'Security Centre' -> 'Microsoft Defender for Cloud' (Ticket
14179)
Apr 15, 2022 1.5.0 UPDATE - Ensure that 'Public access level' is set to
Private for blob containers - Update recommendation for
Public Access level to strongly recommend account-level
setting instead of per-container setting (Ticket 14973)
Page 574