Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GraphRunner.ps1 #35

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update GraphRunner.ps1 #35

wants to merge 1 commit into from

Conversation

Pri3st
Copy link

@Pri3st Pri3st commented Aug 30, 2024

Added a -CustomUserAgent parameter to the Get-GraphTokens function. This essentially allows the bypass of MFA enablement gaps related to Device Platforms like in the image below.
Screenshot (27)

Using an out-of-the-ordinary user agent, like Yahoo! Slurp bypasses the interaction_required warning when the -Device parameter fails.

Bypassed CAP Policy Example
Applies to Including: Users:
Applications Including: All applications
On platforms Including: Android, iOS, Windows, Windows_Phone, macOS, Linux
Using clients Including: Legacy Clients, Mobile and Desktop clients, Exchange ActiveSync, Browser
Controls Requirements (any): Mfa
Session controls SignInFrequency

Moreover, this argument could also contribute to OPSEC. If one knows the devices that a user utilizes to perform their everyday tasks (e.g. through OSINT), they can use the corresponding User Agent to avoid detection through out-of-the-ordinary User Agents in authentication logs.

The bypass has been successfully tested. PoC can be provided if needed.

Added CustomUserAgent parameter to the Get-GraphTokens function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant