performing-oauth-scope-minimization-review

Featured

Performs OAuth 2.0 scope minimization review to identify over-permissioned third-party application integrations, excessive API scopes, unused token grants, and risky OAuth consent patterns across identity providers and SaaS platforms. Activates for requests involving OAuth scope audit, API permission review, third-party app risk assessment, or consent grant minimization.

API & Backend 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

# Performing OAuth Scope Minimization Review ## When to Use - Annual or quarterly review of third-party application OAuth permissions - After a security incident involving compromised OAuth tokens or unauthorized data access - Compliance audit requiring documentation of third-party data access (GDPR Article 28, SOC 2) - Discovery of shadow IT applications accessing organizational data via OAuth grants - Migration or consolidation of SaaS applications requiring permission cleanup - Implementing least-privilege principle for API integrations **Do not use** for reviewing first-party application permissions within the same trust boundary; OAuth scope minimization focuses on third-party and cross-boundary consent grants. ## Prerequisites - Admin access to identity providers (Microsoft Entra ID, Okta, Google Workspace) - Microsoft Graph API permissions: Application.Read.All, OAuth2PermissionGrant.ReadWrite.All - Inventory of approved third-party integrations from procurement or IT governance - OAuth scope risk classification framework - Tools for token analysis (jwt.io for manual review, automated scripts for bulk analysis) ## Workflow ### Step 1: Inventory All OAuth Grants and Consent Permissions Enumerate all OAuth application registrations and delegated permissions: ```python """ OAuth Grant Inventory - Microsoft Entra ID Enumerates all application registrations, service principals, and delegated/application permission grants. """ import requests import json from collec...

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

AI & Automation Solid

detecting-suspicious-oauth-application-consent

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.

36,355 Updated 2 months ago
mukul975
API & Backend Listed

oauth-audit

Use when auditing OAuth 2.0 / OIDC implementations against RFC 9700 (OAuth Security BCP), reviewing client or authorization-server code, evaluating PKCE / state / redirect-URI handling, hardening token exchange and refresh flows, or triaging suspected OAuth vulnerabilities (CWE-352 CSRF, CWE-287 broken auth).

2 Updated today
Lu1sDV
API & Backend Listed

detect-oauth-consent-phishing

Detection and response methodology for OAuth consent phishing / illicit consent grants in Microsoft 365 and Entra ID (MITRE ATT&CK T1528). An attacker phishes a user into consenting to an OAuth app with delegated Graph permissions such as Mail.Read and offline_access, so no password is stolen and MFA is never challenged, yet the refresh token is a durable key to mail and files. Ships four KQL detections over Entra AuditLogs (consent, app-role assignment, and new app credentials as follow-on persistence, T1098.001) and MicrosoftGraphActivityLogs oauth2PermissionGrants, with tuning, false-positive notes, a hunt, and consent-restriction mitigations. Use when investigating a suspicious enterprise app or consent grant, triaging a 'Consent to application' event, hunting illicit OAuth grants or refresh-token abuse in Entra ID, checking a new secret or certificate on an app, writing consent-phishing detections, or responding to a Midnight Blizzard-style app-consent attack.

0 Updated 5 days ago
umbrasec-labs