[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71H2XFHMNKBVEJRCDJCA5WE":3,"skill-same:01M71H2XFHMNKBVEJRCDJCA5WE":63},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":31,"linkOnly":32,"markdownContent":33,"markdownBody":34,"frontMatter":35,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":14,"repositoryHtmlUrl":39,"repositoryHomepageUrl":6,"ownerHtmlUrl":40,"ownerBlogUrl":6,"ownerDescription":41,"updatedAt":42,"install":43,"resources":56},"01M71H2XFHMNKBVEJRCDJCA5WE","webapp-auth-oauth-scopes",null,"| | **OAuth Scope** | Permission string defining the specific API access level granted to a client application (e.","DCx7C5\u002Fai-marketplace","DCx7C5","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F42419559?v=4","01M71C01G2AZV3NTNGWAWSHJPP","DC","01M71C01GQW6G50S2BYMS7PP3E",0,"MIT","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-auth-oauth-scopes\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30],"webapp","webapp auth oauth scopes","auth","OAuth","scope","permission","client","cybersecurity","access","api","application","STRING","2026-11-10 10:12:30",false,"---\nname: webapp-auth-oauth-scopes\ndescription: \"| | **OAuth Scope** | Permission string defining the specific API access level granted to a client application (e.\"\ndomain: cybersecurity\n---\n\n|\n| **OAuth Scope** | Permission string defining the specific API access level granted to a client application (e.g., Mail.Read, Files.ReadWrite.All) |\n| **Delegated Permission** | OAuth scope exercised on behalf of a signed-in user, limited by both the app's permissions and the user's own access rights |\n| **Application Permission** | OAuth scope granted directly to the application without user context, providing access to all users' data (high risk) |\n| **Admin Consent** | Tenant-wide permission grant made by an administrator that applies to all users without individual consent |\n| **Scope Minimization** | Security principle of reducing OAuth permissions to the minimum set required for application functionality |\n| **Stale Grant** | OAuth permission that remains active but has no recent API usage, indicating the integration is abandoned or deprecated |\n\n## Tools & Systems\n\n- **Microsoft Entra Admin Center**: Portal for reviewing enterprise applications, consent permissions, and OAuth grant management\n- **Nudge Security**: SaaS security platform for discovering OAuth grants, assessing third-party risk, and automating scope reviews\n- **Cerby**: Non-SSO application management platform for auditing OAuth integrations and managing shared accounts\n- **Microsoft Graph API**: Programmatic interface for enumerating and modifying OAuth permission grants at scale\n\n## Common Scenarios\n\n### Scenario: Post-Breach OAuth Scope Audit\n\n**Context**: After a phishing attack compromised an admin account, investigation reveals the attacker registered a malicious OAuth application with Mail.ReadWrite and Files.ReadWrite.All scopes, exfiltrating 6 months of email. The organization needs a comprehensive OAuth scope review.\n\n**Approach**:\n1. Immediately revoke all OAuth grants from the compromised admin session\n2. Enumerate all service principals and permission grants across the tenant\n3. Flag all applications registered in the last 90 days for manual review\n4. Classify all third-party application scopes using the risk framework\n5. Identify applications with critical scopes (Mail.ReadWrite, Files.ReadWrite.All, Directory.ReadWrite.All)\n6. Cross-reference against approved application catalog from IT procurement\n7. Revoke all unapproved applications immediately\n8. Downgrade over-permissioned approved applications to minimum required scopes\n9. Implement admin consent workflow to prevent future uncontrolled OAuth grants\n10. Enable consent policy requiring admin approval for high-risk scopes\n\n**Pitfalls**:\n- Revoking permissions for business-critical integrations without coordination causes service disruption\n- Not checking for application-level permissions (vs delegated) which are higher risk and often overlooked\n- Missing multi-tenant applications where the publisher tenant differs from the consuming tenant\n- Not implementing ongoing monitoring to detect new unauthorized OAuth grants after remediation\n\n## Output Format\n\n```\nOAUTH SCOPE MINIMIZATION REVIEW REPORT\n=========================================\nTenant:              corp.onmicrosoft.com\nReview Period:       2026-02-01 to 2026-02-24\nTotal Applications:  147\nThird-Party Apps:    98\nFirst-Party Apps:    49\n\nPERMISSION INVENTORY\nTotal OAuth Grants:          487\n  Delegated Permissions:     312\n  Application Permissions:   175\n  Admin-Consented:           89\n  User-Consented:            223\n\nRISK CLASSIFICATION\nCritical Risk Apps:     7\n  - UnknownCRMApp (Mail.ReadWrite, Files.ReadWrite.All - UNAPPROVED)\n  - LegacySync (Directory.ReadWrite.All - EXCESSIVE)\n  - DevToolX (Application.ReadWrite.All - OVERLY BROAD)\nHigh Risk Apps:         18\nMedium Risk Apps:       34\nLow Risk Apps:          88\n\nFINDINGS\nUnapproved Applications:        12 (REVOKE IMMEDIATELY)\nExcessive Scopes:               23 apps with scopes beyond approved list\nOverly Broad Permissions:       15 apps that can be downgraded\nStale Grants (90+ days):        31 apps with no recent API activity\n\nREMEDIATION PLAN\nPriority 1 (Immediate):    12 unapproved app revocations\nPriority 2 (This Week):    23 excessive scope removals\nPriority 3 (This Month):   15 scope downgrades\nPriority 4 (Next Quarter): 31 stale grant revocations\n\nEstimated Scope Reduction:  34% of total permissions\n```\n","|\n| **OAuth Scope** | Permission string defining the specific API access level granted to a client application (e.g., Mail.Read, Files.ReadWrite.All) |\n| **Delegated Permission** | OAuth scope exercised on behalf of a signed-in user, limited by both the app's permissions and the user's own access rights |\n| **Application Permission** | OAuth scope granted directly to the application without user context, providing access to all users' data (high risk) |\n| **Admin Consent** | Tenant-wide permission grant made by an administrator that applies to all users without individual consent |\n| **Scope Minimization** | Security principle of reducing OAuth permissions to the minimum set required for application functionality |\n| **Stale Grant** | OAuth permission that remains active but has no recent API usage, indicating the integration is abandoned or deprecated |\n\n## Tools & Systems\n\n- **Microsoft Entra Admin Center**: Portal for reviewing enterprise applications, consent permissions, and OAuth grant management\n- **Nudge Security**: SaaS security platform for discovering OAuth grants, assessing third-party risk, and automating scope reviews\n- **Cerby**: Non-SSO application management platform for auditing OAuth integrations and managing shared accounts\n- **Microsoft Graph API**: Programmatic interface for enumerating and modifying OAuth permission grants at scale\n\n## Common Scenarios\n\n### Scenario: Post-Breach OAuth Scope Audit\n\n**Context**: After a phishing attack compromised an admin account, investigation reveals the attacker registered a malicious OAuth application with Mail.ReadWrite and Files.ReadWrite.All scopes, exfiltrating 6 months of email. The organization needs a comprehensive OAuth scope review.\n\n**Approach**:\n1. Immediately revoke all OAuth grants from the compromised admin session\n2. Enumerate all service principals and permission grants across the tenant\n3. Flag all applications registered in the last 90 days for manual review\n4. Classify all third-party application scopes using the risk framework\n5. Identify applications with critical scopes (Mail.ReadWrite, Files.ReadWrite.All, Directory.ReadWrite.All)\n6. Cross-reference against approved application catalog from IT procurement\n7. Revoke all unapproved applications immediately\n8. Downgrade over-permissioned approved applications to minimum required scopes\n9. Implement admin consent workflow to prevent future uncontrolled OAuth grants\n10. Enable consent policy requiring admin approval for high-risk scopes\n\n**Pitfalls**:\n- Revoking permissions for business-critical integrations without coordination causes service disruption\n- Not checking for application-level permissions (vs delegated) which are higher risk and often overlooked\n- Missing multi-tenant applications where the publisher tenant differs from the consuming tenant\n- Not implementing ongoing monitoring to detect new unauthorized OAuth grants after remediation\n\n## Output Format\n\n```\nOAUTH SCOPE MINIMIZATION REVIEW REPORT\n=========================================\nTenant:              corp.onmicrosoft.com\nReview Period:       2026-02-01 to 2026-02-24\nTotal Applications:  147\nThird-Party Apps:    98\nFirst-Party Apps:    49\n\nPERMISSION INVENTORY\nTotal OAuth Grants:          487\n  Delegated Permissions:     312\n  Application Permissions:   175\n  Admin-Consented:           89\n  User-Consented:            223\n\nRISK CLASSIFICATION\nCritical Risk Apps:     7\n  - UnknownCRMApp (Mail.ReadWrite, Files.ReadWrite.All - UNAPPROVED)\n  - LegacySync (Directory.ReadWrite.All - EXCESSIVE)\n  - DevToolX (Application.ReadWrite.All - OVERLY BROAD)\nHigh Risk Apps:         18\nMedium Risk Apps:       34\nLow Risk Apps:          88\n\nFINDINGS\nUnapproved Applications:        12 (REVOKE IMMEDIATELY)\nExcessive Scopes:               23 apps with scopes beyond approved list\nOverly Broad Permissions:       15 apps that can be downgraded\nStale Grants (90+ days):        31 apps with no recent API activity\n\nREMEDIATION PLAN\nPriority 1 (Immediate):    12 unapproved app revocations\nPriority 2 (This Week):    23 excessive scope removals\nPriority 3 (This Month):   15 scope downgrades\nPriority 4 (Next Quarter): 31 stale grant revocations\n\nEstimated Scope Reduction:  34% of total permissions\n```\n",{"name":5,"domain":26,"description":7},"main","a91f1293287ffa9f4f1b8f486cd6e835a1568c84","skills\u002Fwebapp-auth-oauth-scopes","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace","https:\u002F\u002Fgithub.com\u002FDCx7C5","#Python","2026-09-01 11:21:00",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add DCx7C5\u002Fai-marketplace --skill webapp-auth-oauth-scopes",{"tool":49,"command":50},"bunx","bunx skills add DCx7C5\u002Fai-marketplace --skill webapp-auth-oauth-scopes",{"tool":52,"command":53},"pnpm","pnpm dlx skills add DCx7C5\u002Fai-marketplace --skill webapp-auth-oauth-scopes","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-auth-oauth-scopes\u002FSKILL.md",true,[57],{"path":58,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":61,"sourceHtmlUrl":62},"index.json","REFERENCE","参考文档",585,"https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-auth-oauth-scopes\u002Findex.json",[64,74,99,122,144,166],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":69,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":73},"01M73MDK3NT5XHNYTQ5P5172V9","devel-jb-algorithmic-art","- Embed algorithms inline in the HTML artifact (don't create separate .","Apache-2.0","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fdevel-jb-algorithmic-art\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fdevel-jb-algorithmic-art\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":31},"01M71HAPZ01KQ30RKTB0FFSQ05","services-wmi-persistence-detect","Detect WMI event subscription persistence by enumerating ActiveScriptEventConsumer, CommandLineEventConsumer, and permanent subscriptions in the WMI repository.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fservices\u002Fwmi\u002Fpersistence\u002Fdetect\u002FSKILL.md",[],[81,82,83,84,85,86,87,26,88,89,90,91,92,93,94,95,96,97,98],"services","detect","services wmi persistence detect","wmi","persistence","process-forensics","process","forensics","t1546.003","event-subscription","subscription","repository","commandline-consumer","subscriptions","event","activescript","cm","de",{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":31},"01M71HAK6JTTTS229T17WJMMCG","services-wmi-exec-exploit","Perform lateral movement across Windows networks using WMI-based remote execution techniques including Impacket wmiexec.py, CrackMapExec, and native WMI commands for stealthy post-exploitation during red team engagements.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fservices\u002Fwmi\u002Fexec\u002Fexploit\u002FSKILL.md",[],[106,84,107,81,108,109,110,111,112,26,113,114,115,116,117,118,119,120,98,121],"exec","services wmi exec exploit","exploit","across","Bash","analysis","team","traffic","remote","crackmapexec","Impacket","lateral-movement","read","lateral movement","command","native",{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":31},"01M71HAG6MHKNQV8KDZKMT4886","registry-artifact-extract","Extract and analyze Windows Registry hives to uncover user activity, installed software, autostart entries, and evidence of system compromise.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fregistry\u002Fartifact\u002Fextract\u002FSKILL.md",[],[129,130,131,132,133,134,135,136,137,138,118,98,139,140,111,141,110,26,142,143],"extract","registry artifact extract","registry","artifact","digital-forensics","sonnet","regripper","windows-registry","evidence-collection","software","uncover","analyze","collection","artifact-analysis","activity",{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":31},"01M71HACR4A8XTWTTSXK4124AA","processes-token-impersonate-detect","Detect Windows token impersonation and privilege abuse including SeImpersonatePrivilege exploitation via Potato attacks and token stealing techniques.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fprocesses\u002Ftoken\u002Fimpersonate\u002Fdetect\u002FSKILL.md",[],[151,152,153,82,26,154,97,155,156,157,86,98,158,159,160,161,162,163,164,165],"processes","token","processes token impersonate detect","techniques","escalation","windows","attacks","via","impersonation","potato","exploitation","printspoofer","token-impersonation","seimpersonate","privilege-escalation",{"skillNo":167,"name":168,"nameZh":6,"description":169,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":170,"categories":171,"keywords":172,"publishedAt":31},"01M71HAABSB4Z6QFSXEG00R4RK","processes-thread-injection-detect","Detect Windows thread injection techniques including CreateRemoteThread, QueueUserAPC, NtCreateThreadEx, and thread hijacking via process memory analysis.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fprocesses\u002Fthread\u002Finjection\u002Fdetect\u002FSKILL.md",[],[173,151,174,82,175,176,87,98,158,177,178,28,111,86,26,154,179,97,180,156],"thread","injection","processes thread injection detect","thread-injection","nt-api","apc-injection","process-injection","memory"]