cso-entra-identity-hardening

Configure Entra Conditional Access MFA policies and hunt sign-in logs with KQL.

2|Updated Jun 1, 2026
One-click install
npx skills add https://github.com/jay-steenbergen/MSSAMentorAgent --skill cso-entra-identity-hardening-jay-steenbergen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cso-entra-identity-hardening
Source: https://github.com/jay-steenbergen/MSSAMentorAgent/tree/main/.github/skills/tracks/cybersecurity-ops/cso-entra-identity-hardening
Command: npx skills add https://github.com/jay-steenbergen/MSSAMentorAgent --skill cso-entra-identity-hardening-jay-steenbergen

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? New security administrators often misconfigure Conditional Access policies and lock themselves out of their own tenant, or lack a structured way to learn identity hardening. This Skill guides learners through building a safe, report-only MFA enforcement policy for admin roles in Microsoft Entra, then teaches them to hunt for risky sign-ins using KQL. ## Core Features & Use Cases - Break-glass account setup: Create an emergency Global Administrator account excluded from all Conditional Access policies before any policy work begins. - Named locations and CA policy creation: Configure trusted IP named locations and a Report-only policy requiring MFA for directory roles like Global Administrator. - What-If validation and KQL hunting: Simulate sign-ins with the What-If tool and run four ready-made KQL queries against SigninLogs to detect failed MFA, impossible travel, risky sign-ins, and brute force. - Use Case: A cybersecurity student with an Entra P1 trial tenant follows the five phases to deploy their first Conditional Access policy safely, then uses the KQL queries to investigate authentication anomalies like a junior SOC analyst. ## Quick Start Ask the mentor to walk you through the cso-entra-identity-hardening project to create a named location and an MFA Conditional Access policy in your Entra tenant.

Frequently Asked Questions about cso-entra-identity-hardening

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Conditional Access policy requiring MFA for admins in Entra?

In the Entra portal, go to Security, Conditional Access, and create a new policy targeting directory roles such as Global Administrator and Security Administrator. Set the grant control to require multi-factor authentication, exclude your break-glass account, and enable the policy in Report-only mode first.

How do I query failed MFA sign-ins with KQL?

Query the SigninLogs table filtering ResultType values 50074, 50076, or 500121, which indicate MFA required, failed, or denied. Project TimeGenerated, UserPrincipalName, IPAddress, and ResultDescription to review the failed authentication attempts.

What is a break-glass account and why do I need one?

A break-glass account is a cloud-only Global Administrator account excluded from all Conditional Access policies, used when normal admin accounts are locked out. Microsoft recommends one or two such accounts, heavily monitored and stored with offline credentials.

Does Conditional Access require an Entra ID P1 license?

Conditional Access requires an Entra ID P1 license or trial assigned to the tenant. Risk-based policies using sign-in risk and user risk require P2, but named locations, MFA policies, and the What-If tool work with P1.

Why should a Conditional Access policy start in Report-only mode?

Report-only mode evaluates and logs the policy without enforcing it, so you can verify in sign-in logs that it targets the right users before enabling it. This prevents accidental tenant-wide lockouts, the most common new-admin mistake.

What is the difference between sign-in risk and user risk in Entra?

Sign-in risk evaluates whether an individual authentication attempt looks suspicious, such as impossible travel or anonymous IPs. User risk reflects accumulated risky activity indicating the account itself is likely compromised, and different policies can fire on each.