app-registration-posture
БесплатноБез исполняемых скриптовНе проверенAudit Entra ID app registration and service principal security posture. Triggers on keywords like "app registration posture", "service principal permissions"…
от SCStelz★ 256 звёзд на GitHubОб этом скилле
App Registration Security Posture — Instructions
Purpose
This skill audits the security posture of Entra ID App Registrations and Service Principals across your organization, combining Graph API current-state inventory with KQL attack chain detection to create a comprehensive assessment.
App Registrations are a growing persistence and lateral movement vector. Attackers who compromise a user with app ownership can add credentials (secrets/certificates), disconnect from the user session, and authenticate as the service principal — inheriting all the app's permissions. This is the exact pattern documented in the Guardz research and used in the SolarWinds/Solorigate attack.
What this skill covers:
| Domain | Key Questions Answered | Data Source |
|---|---|---|
| 🔐 Permission Inventory | Which apps have dangerous Graph API permissions? How concentrated are critical permissions? | Graph API |
| 👤 Owner Risk | Which app owners are non-admin users (phishing targets)? Are owners currently risky? Ownerless apps? | Graph API + Q1 |
| 🔑 Credential Hygiene | Stale secrets, multi-credential apps, long-lived credentials, cert+secret anomalies | Graph API |
| 🌐 Cross-Tenant Exposure | Foreign SPNs authenticating into your tenant with dangerous permissions | Q4 |
| ⚡ Active Abuse Chains | Risky user → app ops, credential add → SPN activation, ownership → credential chains, Graph API lateral movement, permission escalation, multi-app ownership spread, App Governance & OAuth incident cross-reference | Q1–Q8 |
How this differs from existing capabilities:
| Existing Resource | Coverage | Gap This Skill Fills |
|---|---|---|
app_credential_management.md |
Individual credential/ownership/consent events | No cross-table chain correlation |
service_principal_scope_drift.md |
SPN behavioral baseline drift | No link to preceding compromise signals |
| App Governance (Microsoft) | Anomalous app behavior, overprivileged apps | No correlation with user risk signals or multi-step chains |
| This skill | Graph API posture + KQL chain detection | End-to-end: current state → historical abuse → risk scoring |
Data sources:
| Source | Type | What It Provides |
|---|---|---|
AuditLogs (ApplicationManagement) |
KQL | Credential adds, ownership changes, consent grants, permission assignments |
AADServicePrincipalSignInLogs |
KQL | SPN authentication patterns, cross-tenant sign-ins, credential types |
AADUserRiskEvents |
KQL | Identity Protection risk detections for app owners |
MicrosoftGraphActivityLogs |
KQL | Graph API calls by SPNs post-credential-add |
AlertInfo + AlertEvidence |
KQL | App Governance alerts, OAuth incidents, Attack Disruption events (Q8) |
Graph API (/servicePrincipals, /applications) |
REST | Current-state permission grants, app ownership, credential inventory |
References:
- Guardz: Abusing Entra ID App Registrations for Long-Term Persistence
- Microsoft: Solorigate Coordinated Defense
- Microsoft: App Governance in Defender for Cloud Apps
- MITRE ATT&CK T1098.001 — Additional Cloud Credentials
- MITRE ATT&CK T1550.001 — Application Access Token
- Microsoft: Verify First-Party Apps in Sign-In Reports
🔴 URL Registry — Canonical Links for Report Generation
MANDATORY: When generating reports, copy URLs verbatim from this registry. NEVER construct, guess, or paraphrase a URL. If a URL is not in this registry, omit the hyperlink entirely and use plain text.
| Label | Canonical URL |
|---|---|
BLOG_GUARDZ |
https://guardz.com/blog/abusing-entra-id-app-registrations-for-long-term-persistence/ |
BLOG_SOLORIGATE |
https://www.microsoft.com/en-us/security/blog/2020/12/28/using-microsoft-365-defender-to-coordinate-protection-against-solorigate/ |
DOCS_APP_GOVERNANCE |
https://learn.microsoft.com/en-us/defender-cloud-apps/app-governance-manage-app-governance |
DOCS_GRAPH_PERMS |
https://learn.microsoft.com/en-us/graph/permissions-reference |
DOCS_FIRST_PARTY_APPS |
`https://learn.microsoft.com/en-us/troubleshoot/entra/entra-id/gover |
Установить app-registration-posture в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл app-registration-posture?
Audit Entra ID app registration and service principal security posture. Triggers on keywords like "app registration posture", "service principal permissions", "dangerous app permissions", "app ownership", "app credential abuse", "SPN lateral movement", "app consent grant", "overprivileged apps", "cross-tenant SPN", "app registration kill chain", "app persistence", "credential add chain", "Graph API permissions audit". Combines Graph API current-state inventory (dangerous permissions, ownership, credential hygiene) with KQL chain detection (AuditLogs, AADServicePrincipalSignInLogs, AADUserRiskEvents, MicrosoftGraphActivityLogs) for posture assessment covering permission concentration, owner risk, credential hygiene, cross-tenant exposure, and active abuse signals. Includes 5-dimension App Permission Risk Score. Inline chat or markdown output.
Как установить скилл app-registration-posture?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл app-registration-posture запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic