Identity & Security Baselines
Identity is the control plane of cloud security. Entra ID provides the authentication foundation, Defender for Cloud monitors your security posture, and Sentinel serves as your SIEM. These services don't just have baselines — they enforce baselines for everything else.
Identity & Security Platform Architecture
Scroll sideways to see the whole diagram
Microsoft Entra ID
Cloud identity and access management. Entra ID is unique because it's both a service with its own baseline and the foundation every other service's IM controls depend on. Hardening Entra ID is the single highest-impact security action for any Azure environment.
Baseline Controls
| Domain | Feature | Supported | Default | Responsibility |
|---|---|---|---|---|
| IM | Authentication Methods | ✓ | Manual | Customer |
| IM | Conditional Access Baseline | ✓ | Manual | Customer |
| PA | Admin Account Separation | ✓ | Manual | Customer |
| PA | PIM for Privileged Roles | ✓ | Manual | Customer |
| PA | Emergency Access | ✓ | Manual | Customer |
| IM | Identity Protection | ✓ | Manual | Customer |
| GS | Access Reviews | ✓ | Manual | Customer |
| LT | Sign-in Logs to SIEM | ✓ | Manual | Customer |
Authentication Methods
Conditional Access Baseline
Admin Account Separation
PIM for Privileged Roles
Emergency Access
Identity Protection
Access Reviews
Sign-in Logs to SIEM
Core Security Configuration
| Domain | Configuration | Target State | Impact |
|---|---|---|---|
| IM-6 | Authentication Methods | Phishing-resistant MFA (FIDO2, WHfB, Cert) | Critical |
| IM-7 | Conditional Access Baseline | Block legacy auth, require MFA all users, device compliance | Critical |
| PA-1 | Admin Account Separation | Dedicated cloud-only admin accounts; no hybrid sync | High |
| PA-2 | PIM for Privileged Roles | JIT activation; max 4-hour window; approval required for GA | Critical |
| PA-5 | Emergency Access | 2+ break-glass accounts; excluded from CA; monitored | Critical |
| IM-2 | Identity Protection | Sign-in risk: MFA. User risk: password change. High risk: block. | High |
| PA-4 | Access Reviews | Quarterly access reviews for privileged roles and group memberships | Medium |
| LT-2 | Sign-in Logs to SIEM | Entra ID sign-in and audit logs → Sentinel | High |
Azure Portal Instructions
Entra ID Baseline Configuration Workflow
- Navigate to the Microsoft Entra admin center in the Azure Portal.
- Under Protection and Authentication methods, require phishing-resistant MFA such as FIDO2 or Windows Hello for Business.
- Create baseline Conditional Access policies to block legacy authentication, require MFA, and protect admin access.
- Use Privileged Identity Management to make privileged roles just-in-time and approval-based.
- Create and monitor emergency access accounts that are excluded from Conditional Access.
- Send sign-in and audit logs to Sentinel or Log Analytics for monitoring and detections.
Terraform: Conditional Access Baseline Policies
# Note: Conditional Access requires Microsoft Graph provider (azuread)
# These represent the minimum CA policy set for any Azure environment
# Policy 1: Block Legacy Authentication
resource "azuread_conditional_access_policy" "block_legacy" {
display_name = "CA001 - Block Legacy Authentication"
state = "enabled"
conditions {
client_app_types = ["exchangeActiveSync", "other"]
applications { included_applications = ["All"] }
users { included_users = ["All"] }
}
grant_controls {
built_in_controls = ["block"]
operator = "OR"
}
}
# Policy 2: Require MFA for All Users
resource "azuread_conditional_access_policy" "require_mfa" {
display_name = "CA002 - Require MFA for All Users"
state = "enabled"
conditions {
client_app_types = ["browser", "mobileAppsAndDesktopClients"]
applications { included_applications = ["All"] }
users {
included_users = ["All"]
excluded_groups = [azuread_group.break_glass.object_id]
}
}
grant_controls {
built_in_controls = ["mfa"]
operator = "OR"
}
}
# Policy 3: Require Compliant Device for Admin Portals
resource "azuread_conditional_access_policy" "admin_compliant" {
display_name = "CA003 - Require Compliant Device for Admin Portals"
state = "enabled"
conditions {
client_app_types = ["browser", "mobileAppsAndDesktopClients"]
applications {
included_applications = [
"797f4846-ba00-4fd7-ba43-dac1f8f63013", # Azure Portal
"0000000a-0000-0000-c000-000000000000", # Intune
]
}
users { included_roles = ["62e90394-69f5-4237-9190-012177145e10"] } # Global Admin
}
grant_controls {
built_in_controls = ["compliantDevice", "mfa"]
operator = "AND"
}
}
# Policy 4: Block Access from Untrusted Locations for Privileged Roles
resource "azuread_conditional_access_policy" "block_untrusted_admins" {
display_name = "CA004 - Block Admins from Untrusted Locations"
state = "enabled"
conditions {
client_app_types = ["browser", "mobileAppsAndDesktopClients"]
applications { included_applications = ["All"] }
users {
included_roles = [
"62e90394-69f5-4237-9190-012177145e10", # Global Admin
"e8611ab8-c189-46e8-94e1-60213ab1f814", # Privileged Role Admin
]
}
locations {
included_locations = ["All"]
excluded_locations = [azuread_named_location.trusted.id]
}
}
grant_controls {
built_in_controls = ["block"]
operator = "OR"
}
}Break-Glass Before Lockout
Microsoft Defender for Cloud
Cloud Security Posture Management (CSPM) and Cloud Workload Protection (CWP) platform. Defender for Cloud is how you measure and enforce all the baselines in this section — it maps directly to MCSB and provides the secure score, recommendations, and auto-remediation capabilities.
Baseline Controls
| Domain | Feature | Supported | Default | Responsibility |
|---|---|---|---|---|
| GS | CSPM (Free) | ✓ | Default | Microsoft |
| PV | Defender CSPM | ✓ | Manual | Customer |
| ES | Defender for Servers P2 | ✓ | Manual | Customer |
| LT | Defender for SQL | ✓ | Manual | Customer |
| LT | Defender for Storage | ✓ | Manual | Customer |
| ES | Defender for Containers | ✓ | Manual | Customer |
| LT | Defender for App Service | ✓ | Manual | Customer |
| LT | Defender for Key Vault | ✓ | Manual | Customer |
| LT | Defender for Cosmos DB | ✓ | Manual | Customer |
CSPM (Free)
Defender CSPM
Defender for Servers P2
Defender for SQL
Defender for Storage
Defender for Containers
Defender for App Service
Defender for Key Vault
Defender for Cosmos DB
| Plan | Protects | Key Capabilities | Priority |
|---|---|---|---|
| CSPM (Free) | All resources | Secure score, basic recommendations, Azure Policy | Always On |
| Defender CSPM | All resources | Attack path analysis, governance, agentless scanning | Critical |
| Defender for Servers P2 | VMs, Arc servers | MDE, VA, JIT, file integrity monitoring | Critical |
| Defender for SQL | SQL DB, MI, on-prem | Threat protection, vulnerability assessment | Critical |
| Defender for Storage | Storage Accounts | Malware scanning, anomalous access detection | High |
| Defender for Containers | AKS, ACR, Arc K8s | Image VA, runtime protection, admission control | High |
| Defender for App Service | App Service, Functions | Threat detection, dangling DNS, anomalous calls | High |
| Defender for Key Vault | Key Vault | Unusual access patterns, suspicious operations | High |
| Defender for Cosmos DB | Cosmos DB | Injection detection, anomalous queries | Medium |
Azure Portal Instructions
Defender for Cloud Baseline Configuration Workflow
- Navigate to Microsoft Defender for Cloud in the Azure Portal.
- Open Environment settings and select the subscription or management group you want to secure.
- Enable Defender CSPM and the workload protection plans you need, such as Servers, SQL, Storage, Containers, App Service, Key Vault, and Cosmos DB.
- Review Recommendations and Secure score to prioritize remediation of baseline gaps.
- Configure auto-provisioning, security contacts, and any required monitoring extensions.
- Use Azure Policy assignments exposed through Defender for Cloud to enforce baseline settings at scale.
Terraform: Enable All Defender Plans
# Enable Defender for Cloud plans at subscription level
locals {
defender_plans = [
"CloudPosture", # Defender CSPM
"VirtualMachines", # Defender for Servers
"SqlServers", # Defender for SQL
"StorageAccounts", # Defender for Storage
"Containers", # Defender for Containers
"AppServices", # Defender for App Service
"KeyVaults", # Defender for Key Vault
"CosmosDbs", # Defender for Cosmos DB
"Arm", # Defender for Resource Manager
"Dns", # Defender for DNS
]
}
resource "azurerm_security_center_subscription_pricing" "plans" {
for_each = toset(local.defender_plans)
tier = "Standard"
resource_type = each.value
# Servers Plan 2 with sub-plan
dynamic "extension" {
for_each = each.value == "VirtualMachines" ? ["MdeDesignatedSubscription"] : []
content {
name = "MdeDesignatedSubscription"
}
}
}
# Auto-provisioning: AMA agent for VMs
resource "azurerm_security_center_auto_provisioning" "ama" {
auto_provision = "On"
}
# Security contact for alerts
resource "azurerm_security_center_contact" "main" {
email = "security-team@company.com"
phone = "+1-555-0100"
alert_notifications = true
alerts_to_admins = true
}
# Assign MCSB initiative as default policy
resource "azurerm_subscription_policy_assignment" "mcsb" {
name = "mcsb-default"
subscription_id = data.azurerm_subscription.current.id
policy_definition_id = "/providers/Microsoft.Authorization/policySetDefinitions/1f3afdf9-d0c9-4c3d-847f-89da613e70a8"
display_name = "Microsoft Cloud Security Benchmark"
}Microsoft Sentinel
Cloud-native SIEM and SOAR platform built on Log Analytics. Sentinel collects all the diagnostic logs from every other baseline, correlates them, applies detection analytics, and orchestrates automated responses. It's the central nervous system of your security operations.
Baseline Controls
| Domain | Feature | Supported | Default | Responsibility |
|---|---|---|---|---|
| LT | Entra ID Connector | ✓ | Manual | Customer |
| LT | Azure Activity Connector | ✓ | Manual | Customer |
| LT | Defender for Cloud Connector | ✓ | Manual | Customer |
| LT | Azure Firewall Connector | ✓ | Manual | Customer |
| LT | Azure WAF Connector | ✓ | Manual | Customer |
| LT | Key Vault Connector | ✓ | Manual | Customer |
| LT | SQL Database Connector | ✓ | Manual | Customer |
| LT | MDE Connector | ✓ | Manual | Customer |
Entra ID Connector
Azure Activity Connector
Defender for Cloud Connector
Azure Firewall Connector
Azure WAF Connector
Key Vault Connector
SQL Database Connector
MDE Connector
| Data Connector | Source | Key Tables | Priority |
|---|---|---|---|
| Entra ID | Identity | SigninLogs, AuditLogs, AADRiskyUsers | Critical |
| Azure Activity | Subscription | AzureActivity | Critical |
| Defender for Cloud | All resources | SecurityAlert, SecurityRecommendation | Critical |
| Azure Firewall | Network | AZFWNetworkRule, AZFWApplicationRule | High |
| Azure WAF | Edge | AzureDiagnostics (WAF logs) | High |
| Key Vault | Secrets | AzureDiagnostics (AuditEvent) | High |
| SQL Database | Data | SQLSecurityAuditEvents | High |
| MDE | Endpoints | DeviceEvents, DeviceProcessEvents | High |
Azure Portal Instructions
Sentinel Baseline Configuration Workflow
- Navigate to Microsoft Sentinel in the Azure Portal and select the target Log Analytics workspace.
- Under Data connectors, connect Entra ID, Azure Activity, Defender for Cloud, Azure Firewall, WAF, Key Vault, SQL, and Defender for Endpoint as needed.
- Enable the analytics rules, workbooks, and content-hub packages that match your security operations requirements.
- Create or tune incidents, automation rules, and playbooks for escalation and response.
- Verify that the key log tables are populating before relying on detections.
- Review incidents and hunting queries regularly to validate data quality and detection coverage.
Terraform: Sentinel Workspace with Key Connectors
resource "azurerm_log_analytics_workspace" "sentinel" {
name = "law-sentinel-prod"
resource_group_name = azurerm_resource_group.security.name
location = azurerm_resource_group.security.location
sku = "PerGB2018"
retention_in_days = 90 # LT-6: Interactive retention
# Archive tier for long-term compliance
# Configure via workspace data export or table-level retention
}
resource "azurerm_sentinel_log_analytics_workspace_onboarding" "main" {
workspace_id = azurerm_log_analytics_workspace.sentinel.id
customer_managed_key_enabled = false
}
# Data connector: Entra ID (critical)
resource "azurerm_sentinel_data_connector_azure_active_directory" "entra" {
name = "entra-id"
log_analytics_workspace_id = azurerm_sentinel_log_analytics_workspace_onboarding.main.workspace_id
}
# Data connector: Azure Activity
resource "azurerm_sentinel_data_connector_azure_activity" "activity" {
name = "azure-activity"
log_analytics_workspace_id = azurerm_sentinel_log_analytics_workspace_onboarding.main.workspace_id
}
# Data connector: Defender for Cloud
resource "azurerm_sentinel_data_connector_azure_security_center" "defender" {
name = "defender-for-cloud"
log_analytics_workspace_id = azurerm_sentinel_log_analytics_workspace_onboarding.main.workspace_id
}
# Analytics rule: Detect break-glass account usage
resource "azurerm_sentinel_alert_rule_scheduled" "break_glass" {
name = "break-glass-usage"
display_name = "Break Glass Account Sign-In Detected"
log_analytics_workspace_id = azurerm_sentinel_log_analytics_workspace_onboarding.main.workspace_id
severity = "High"
query_frequency = "PT5M"
query_period = "PT5M"
trigger_operator = "GreaterThan"
trigger_threshold = 0
query = <<-QUERY
SigninLogs
| where UserPrincipalName in ("breakglass1@company.onmicrosoft.com", "breakglass2@company.onmicrosoft.com")
| project TimeGenerated, UserPrincipalName, IPAddress, Location, AppDisplayName, ResultType
QUERY
entity_mapping {
entity_type = "Account"
field_mapping {
identifier = "FullName"
column_name = "UserPrincipalName"
}
}
entity_mapping {
entity_type = "IP"
field_mapping {
identifier = "Address"
column_name = "IPAddress"
}
}
}Sentinel Content Hub
Evidence Collection
An identity gap is a scope statement before it is a finding. Record:
The MCSB v1 control:
The control id as it appears in the benchmark - IM-1, IM-6, IM-7, PA-1, PA-2, PA-5 - next to the recommendation or policy definition that raised it. The domain alone is not an identifier.
The scope: The tenant id and the object id of each policy you assessed. Conditional Access is tenant-wide, so state whether the baseline covers all users or excludes a group, and name the group.
The value and its source:
The setting as exported - the CA policy conditions and grantControls, or the PIM role-setting JSON from az rest - with the API or CLI that produced it. A portal screenshot will not settle a disagreement about exclusions.
The export date: The day the export was taken. PIM role settings and Conditional Access exclusions drift without a change record, so a month-old export is a month-old claim.
False Positive Identification
- Enforced at tenant scope: A subscription- or resource-scoped export cannot see a tenant-level Conditional Access policy. A "no policy" result at that scope usually means the control is above the scope you collected, not that it is missing.
- Enforced by a parent assignment: A management-group policy assignment already satisfies the control for the subscription under review. Check the assignment hierarchy before writing a per-resource gap.
- Report-only is not enforcement: Newly created Conditional Access policies are frequently left in report-only mode. Count them as a gap, not a pass, and say which mode you observed.
- Correctly marked not applicable: A control that does not apply - no hybrid identity for an Entra-only estate, for example - should read "not applicable", not "compliant". A blanket not-applicable without a stated reason is an unreviewed control.
Baseline Verification Checklist
Authentication
- ☐ Confirm authentication-method policy strength for every user, not just admins (IM-6).
- ☐ Check that legacy authentication is blocked by policy rather than by client configuration (IM-7).
- ☐ Verify Identity Protection risk policies are set to block high-risk sign-ins, not only to alert (IM-2).
Privilege
- ☐ Confirm every privileged role is eligible rather than permanently active, with an activation window and approval (PA-2).
- ☐ Check that admin accounts are cloud-only and separate from daily-use accounts (PA-1).
- ☐ Confirm the break-glass accounts exist, are excluded from CA, and are alerted on sign-in (PA-5).
Telemetry
- ☐ Confirm sign-in and audit logs reach the workspace and that a query returns events from the last hour (LT-2).
- ☐ Confirm Defender for Cloud CSPM has a current assessment run against the subscription.
- ☐ Confirm Sentinel or the SIEM has an analytic rule for privileged role activation.
Remediation & Defense
Name the baseline feature that closes the control, so the fix survives a portal redesign.
Identity plane
- • Entra ID as the single authentication provider, with local application auth disabled (IM-1).
- • Authentication methods policy requiring phishing-resistant MFA rather than a per-user registration (IM-6).
- • A Conditional Access baseline policy set that blocks legacy auth and requires MFA for all users (IM-7).
Privileged access
- • Privileged Identity Management eligible assignments with approval and a bounded activation window (PA-2).
- • Separate cloud-only administrative accounts, with no standing Global Administrator for daily work (PA-1).
- • Segregated privileged access workstations or Cloud PCs for administrative sessions (PA-6).
Detection and review
- • Entra ID Protection sign-in and user risk policies feeding Conditional Access (IM-2).
- • Quarterly access reviews on privileged roles and sensitive group membership (PA-4).
- • Sign-in, audit and directory-change logs to Sentinel, with an alert on break-glass use (LT-2).