detecting-suspicious-oauth-application-consent
하는 일
이 도구는 Azure AD 같은 시스템에서 지나치게 많은 권한을 요청하는 악성 앱을 찾는 데 도움을 줍니다. 앱이 가진 권한을 확인하고 신뢰할 수 있는지 살펴봅니다.
사용하는 경우
- ✓앱이 부적절한 접근 권한을 가졌을 수 있다고 의심될 때.
- ✓보안 문제를 조사할 때.
- ✓모니터링 시스템이 제대로 작동하는지 확인하는 경우.
스킬 링크
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/detecting-suspicious-oauth-application-consent/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“내 시스템에서 의심스러운 권한을 가진 앱이 있는지 확인해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
이 도구는 시스템(Azure AD)에 연결해, 권한을 요청한 앱을 살펴보고, 그 권한을 분석하며, 감사 로그에서 의심스러운 활동을 확인합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Detecting Suspicious OAuth Application Consent
Overview
Illicit consent grant attacks trick users into granting excessive permissions to malicious OAuth applications in Azure AD / Microsoft Entra ID. This skill uses the Microsoft Graph API to enumerate OAuth2 permission grants, analyze application permissions for overly broad scopes, review directory audit logs for consent events, and flag high-risk applications based on publisher verification status and permission scope.
When to Use
- When investigating security incidents that require detecting suspicious oauth application consent
- 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 AD / Entra ID tenant with Global Reader or Security Reader role
- Microsoft Graph API access with
Application.Read.All,AuditLog.Read.All,Directory.Read.All - Python 3.9+ with
msal,requests - App registration with client secret or certificate for authentication
Steps
- Authenticate to Microsoft Graph using MSAL client credentials flow
- Enumerate all OAuth2 permission grants via
/oauth2PermissionGrants - List service principals and their assigned application permissions
- Query directory audit logs for
Consent to applicationevents - Flag applications with high-risk scopes (Mail.Read, Files.ReadWrite.All, etc.)
- Check publisher verification status for each application
- Generate risk report with remediation recommendations
Expected Output
- JSON report listing all OAuth apps with granted permissions, risk scores, unverified publishers, and suspicious consent patterns
- Audit trail of consent grant events with user and IP details
자주 묻는 질문
‘불법 동의 허용 공격(illicit consent grant)’이란 무엇인가요?
앱이 사용자를 속여 과도한 권한을 허용하게 만들고, 이를 통해 민감한 데이터에 접근하려는 공격입니다.
어떤 권한이 위험하다고 보나요?
‘Mail.Read’나 ‘Files.ReadWrite.All’처럼 이메일, 파일 또는 기타 민감한 정보에 접근할 수 있는 권한입니다.
이 도구를 쓰려면 전문가여야 하나요?
아니요. 다만 Azure AD/Entra ID에 대한 관리자 접근 권한이 필요하며, 도구를 설정하려면 몇 가지 기술적 단계를 따라야 합니다.
상세 정보
작성자의 원본 설명
Detect risky OAuth application consent grants in Azure AD / Microsoft Entra ID using Microsoft Graph API, audit logs, and permission analysis to identify illicit consent grant attacks.
인기도
- GitHub 스타
- 35k
- 순위
- #7879
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 8. 31.
댓글
- …
이 저장소의 다른 스킬
abusing-dpapi-for-credential-access
35kAI 에이전트에게 특정 작업을 위한 준비된 지침을 제공해, 더 잘하고 더 빠르게 처리하도록 합니다.
abusing-shadow-credentials-for-privesc
35kAI 에이전트가 명확하고 잘 구성된 텍스트를 쓰도록 가르칩니다.
achieving-cmmc-level-2-compliance
35kCMMC Level 2 규정 준수를 위한 환경을 준비하도록 돕습니다. 보안 요구 사항을 구현하고 필요한 문서를 관리합니다.
acquiring-disk-image-with-dd-and-dcfldd
35k에이전트가 하드 드라이브의 정확한 복사본을 만들도록 돕습니다. 조사 중 정보가 손실되거나 변경되지 않도록 하는 데 유용합니다.
비슷한 스킬
add-model-provider
394k에이전트가 안전한 설정 명령으로 새 AI 모델 제공자를 OpenClaw에 연결하고, API 키를 평문으로 두지 않으며, 실시간 테스트를 실행하도록 돕습니다.
acp-router
394k에이전트가 OpenClaw를 통해 Claude Code나 Cursor 같은 코딩 도우미에 작업을 전달해, 작업이 그 도구에서 실행되도록 돕습니다.
browser-automation
394k에이전트가 로그인, 탭, 페이지 응답이 멈췄을 때의 복구를 포함해 웹 페이지를 단계별로 조작하도록 가르칩니다.