post-exploiting-microsoft-graph-with-graphrunner
Skill by aristocratte
Guides red teams through post-exploitation of Microsoft 365 and Entra ID tenants with GraphRunner and the Microsoft Graph API. It covers recon, persistence, privilege escalation and data search. Use it only on tenants you own or are authorized in writing to test.
Install post-exploiting-microsoft-graph-with-graphrunner
Built from the published package, never by AI.
git clone --depth 1 https://github.com/aristocratte/LEA2.0 /tmp/LEA2.0 && mkdir -p ~/.claude/skills && cp -r /tmp/LEA2.0/backend/skills-knowledge/post-exploiting-microsoft-graph-with-graphrunner ~/.claude/skills/post-exploiting-microsoft-graph-with-graRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install post-exploiting-microsoft-graph-with-graphrunner in Claude Code
git clone --depth 1 https://github.com/aristocratte/LEA2.0 /tmp/LEA2.0 && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/LEA2.0/backend/skills-knowledge/post-exploiting-microsoft-graph-with-graphrunner ~/.gemini/antigravity-cli/skills/post-exploiting-microsoft-graph-with-graAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install post-exploiting-microsoft-graph-with-graphrunner in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill walks an agent through post-exploitation of Microsoft 365 and Entra ID tenants using GraphRunner, a PowerShell toolset built on the Microsoft Graph API. It covers authentication and token refresh, recon and enumeration, persistence, privilege escalation through updatable groups, and searching mailboxes, SharePoint, OneDrive and Teams. The source maps this work to MITRE ATT&CK T1098 Account Manipulation and lists related techniques.
It is written for authorized red team and security testing engagements. The source says it starts from a Graph token foothold, such as one from device-code login or ROADtools. It also includes detection notes and cleanup steps for the engagement report, and states that unauthorized use is illegal.
Written from the project's SKILL.md and checked against it.
What it can do
- AuthenticationGet-GraphTokens device-code login, token refresh and token import.
- Recon and enumerationInvoke-GraphRecon, Invoke-DumpCAPS and Invoke-DumpApps map tenant permissions, policies and apps.
- PersistenceInvoke-InjectOAuthApp and Invoke-CreateInboxForwardingRule establish access that persists.
- Privilege escalationGet-UpdatableGroups, Invoke-AddGroupMember and Invoke-SecurityGroupCloner change group membership.
- Data searchInvoke-SearchMailbox, Invoke-SearchSharePointAndOneDrive and Invoke-SearchTeams search for sensitive content.
- Automated passInvoke-GraphRunner runs an orchestrated recon and pillage workflow.
- Detection notesMaps each action to the Entra or M365 logs a defender would see.
What you need
- PowerShell 5.1 or PowerShell 7
- A valid Microsoft Graph token foothold
- Written authorization for the target tenant
- The GraphRunner module from its GitHub repository
Try asking
- Run GraphRunner recon on this tenant and list the conditional-access policies.
- Find updatable groups in the tenant and show how to add a member.
- Search mailboxes and Teams for the term vpn and summarize the hits.
Good to know
- Only for tenants you own or are explicitly authorized in writing to test.
- Requires an existing Microsoft Graph token foothold.
- Requires PowerShell 5.1+ or PowerShell 7.
- Its actions leave sign-in and audit log entries that defenders can see.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: backend/skills-knowledge/post-exploiting-microsoft-graph-with-graphrunner/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to post-exploiting-microsoft-graph-with-graphrunner
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
post-exploiting-microsoft-graph-with-graphrunner: common questions
Is GraphRunner allowed for testing Microsoft 365?
The source says to run it only against tenants you own or are explicitly authorized in writing to test. It states that unauthorized use is illegal.
How does GraphRunner get access to a tenant?
It needs a Graph token foothold, obtained with the Get-GraphTokens device-code login or imported from another source such as ROADtools.
How can defenders detect GraphRunner activity?
The source lists Entra sign-in logs for device-code grants, audit logs for app and group changes, and MicrosoftGraphActivityLogs for high-volume search calls.
How do I install post-exploiting-microsoft-graph-with-graphrunner?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is post-exploiting-microsoft-graph-with-graphrunner free?
The code is public, but no licence file was found, so check the repository before commercial use.
Is post-exploiting-microsoft-graph-with-graphrunner safe to use?
It scores 48 of 100. Grades: maintenance C, licence F, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to post-exploiting-microsoft-graph-with-graphrunner?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
