2023-09-03 17:25:44 -04:00
2023-08-15 14:02:13 -04:00
2023-08-15 13:19:12 -04:00
2023-09-03 17:25:44 -04:00

GraphRunner

GraphRunner

GraphRunner is a post-exploitation toolset for interacting with the Microsoft Graph API. It provides various tools for performing reconnaissance, persistence, and pillaging of data from a Microsoft Entra ID (Azure AD) account.

It consists of three separate parts:

  • A PowerShell script where the majority of modules are located
  • An HTML GUI that can leverage an access token to navigate and pillage a user's account
  • A simple PHP redirector for harvesting authentication codes during an OAuth flow

Main Features

  • Search and export email
  • Search and export SharePoint and OneDrive files accessible to a user
  • Search all Teams chats and channels visible to the user
  • Deploy malicious apps
  • Discover misconfigured mailboxes that are exposed
  • Clone security groups to carry out watering hole attacks
  • Search all user attributes for specific terms
  • Leverage a GUI built on the Graph API to pillage a user's account
  • Dump conditional access policies
  • Dump app registrations and external apps including consent and scope to identify potentially malicious apps

Usage

As GraphRunner is a post-exploitation tool most of the modules rely on having authenticated access tokens. To assist with this there are multiple modules for obtaining and working with both user and application (service principal) tokens.

A good starting place is to import the PowerShell script and run the Get-GraphTokens module.

Import-Module .\GraphRunner.ps1
Get-GraphTokens

Next, check out the wiki for the full user guide and information about individual modules.

S
Description
Automated archival mirror of github.com/dafthack/GraphRunner
Readme MIT 370 KiB
Languages
PowerShell 84.7%
HTML 14.1%
Python 1.1%
PHP 0.1%