ca-policy-investigation

Correlate Conditional Access policy changes with sign-in failures in Azure AD logs.

231|64|Updated Dec 16, 2025
One-click install
npx skills add https://github.com/SCStelz/security-investigator --skill ca-policy-investigation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ca-policy-investigation
Source: https://github.com/SCStelz/security-investigator/tree/main/.github/skills/ca-policy-investigation
Command: npx skills add https://github.com/SCStelz/security-investigator --skill ca-policy-investigation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill identifies and correlates Conditional Access (CA) policy changes with sign-in failures to reveal potential unauthorized policy manipulation, privilege abuse, or bypass attempts that weaken security controls.

Core Features & Use Cases

  • CA policy-change correlation: Link policy state transitions (enabled, disabled, or report-only) to user sign-in events to determine cause and effect.
  • Error-code contextual analysis: Associate CA-related error codes (53000, 50074, 530032) with policy changes and access attempts to assess risk.
  • Audit-log driven investigations: Traverse SigninLogs, AADNonInteractiveUserSignInLogs, and AuditLogs to produce an auditable incident timeline and findings.

Quick Start

Trigger ca-policy-investigation when CA policy changes or sign-in failures are detected to begin a correlated analysis of policy states and impact.

Frequently Asked Questions about ca-policy-investigation

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

FAQPage Schema
How do I correlate Conditional Access policy changes with sign-in failures?

Correlate Conditional Access policy changes with sign-in failures by traversing AuditLogs and SigninLogs to link policy state transitions to user access events, detecting unauthorized manipulation of CA controls. This produces an auditable incident timeline and actionable security findings.

What do Azure AD sign-in error codes 53000, 50074, and 530032 mean during a CA policy investigation?

Error codes 53000, 50074, and 530032 indicate Conditional Access-related sign-in failures. Analyzing these codes alongside AuditLogs helps assess risk by associating CA policy changes and access attempts with specific state transitions to reveal potential bypass attempts.

How do I investigate suspected Conditional Access policy bypass attempts using KQL?

Investigate suspected CA policy bypasses by querying SigninLogs, AADNonInteractiveUserSignInLogs, and AuditLogs with KQL. Parse JSON policy-change state data to establish auditable timelines, linking policy manipulations directly to subsequent access events and error outcomes.

Can I detect unauthorized Conditional Access policy modifications across non-interactive sign-ins?

Yes, you can detect unauthorized modifications by analyzing AADNonInteractiveUserSignInLogs alongside AuditLogs. Correlating policy state changes with non-interactive access events reveals privilege abuse or bypass attempts that weaken security controls across all sign-in types.

What is the best way to build an auditable timeline of Conditional Access policy state changes?

Build an auditable timeline by parsing JSON policy-change state data from AuditLogs and mapping enabled, disabled, or report-only transitions against concurrent sign-in events. This cause-and-effect analysis produces actionable security findings for incident response.

Why do Conditional Access policy changes cause sudden sign-in failures in Azure AD?

Conditional Access policy changes cause sign-in failures when state transitions disable or weaken security controls, triggering error codes 53000, 50074, or 530032. Correlating AuditLogs with SigninLogs determines if failures stem from unauthorized manipulation or routine administrative updates.