Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 48
  • 1 stars
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-gra

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install post-exploiting-microsoft-graph-with-graphrunner in Claude Code

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

A

No 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 →

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.

post-exploiting-microsoft-graph-with-graphrunner Install

Add to stack

Loading.