detecting-azure-service-principal-abuse

Featured

Detect and investigate Azure service principal abuse including privilege escalation, credential compromise, admin consent bypass, and unauthorized enumeration in Microsoft Entra ID environments.

DevOps & Infrastructure 36,355 stars 4443 forks Updated 2 months ago Apache-2.0

Install

View on GitHub

Quality Score: 94/100

Stars 20%
100
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Detecting Azure Service Principal Abuse ## Overview Azure service principals are identity objects used by applications, services, and automation tools to access Azure resources. Attackers exploit service principals for privilege escalation, lateral movement, and persistent access. Key abuse patterns include: adding credentials to existing principals, assigning privileged roles, bypassing admin consent, and enumerating service principals for attack paths. Application ownership grants the ability to manage credentials and configure permissions, creating hidden privilege escalation paths. ## When to Use - When investigating security incidents that require detecting azure service principal abuse - When building detection rules or threat hunting queries for this domain - When SOC analysts need structured procedures for this analysis type - When validating security monitoring coverage for related attack techniques ## Prerequisites - Azure subscription with Microsoft Entra ID P2 license - Access to Azure AD Audit Logs and Sign-in Logs - Microsoft Sentinel or Splunk for SIEM-based detection - Microsoft Graph API permissions for investigation - Global Reader or Security Reader role minimum ## Key Abuse Patterns ### 1. New Credentials Added to Service Principal Attackers add new client secrets or certificates to gain persistent access: **Detection Query (KQL - Sentinel):** ```kql AuditLogs | where OperationName has "Add service principal credentials" or OperationName h...

Details

Author
mukul975
Repository
mukul975/Anthropic-Cybersecurity-Skills
Created
8 months ago
Last Updated
2 months ago
Language
Python
License
Apache-2.0

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category