2023-08-28 20:16:22 -04:00
2023-08-15 14:02:13 -04:00
2023-08-15 13:19:12 -04:00
2023-08-28 20:16:22 -04:00

GraphRunner

A Post-exploitation Toolset for Interacting with the Microsoft Graph API

Usage

GraphRunner includes a number of modules to assist with carrying out various attacks during post-exploitation of a Microsoft Azure tenant. Most of the modules rely on having having authenticated access tokens. To assist with this there are multiple modules for obtaining and working with both user and application (service principal) tokens. B

Import GraphRunner into a new PowerShell session.

Import-Module .\GraphRunner.ps1

Authentication Modules

Get-GraphTokens

A good place to start is to authenticate with the Get-GraphTokens module. This module will launch a device-code login, allowing you to authenticate the session from a browser session. Access and refresh tokens will be written to the global $tokens variable. To use them with other GraphRunner modules use the Tokens flag (Example. Invoke-DumpApps -Tokens $tokens)

Get-GraphTokens

Refresh-GraphTokens

Access tokens typically have an expiration time of one hour so it will be necessary to refresh them occasionally. If you have already run the Get-GraphTokens command your refresh tokens will be utilized when you run Refresh-GraphTokens to obtain a new set of tokens.

Refresh-GraphTokens
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%