Skip to content

ROADrecon gather fails with HTTP 403 errors despite successful authentication #147

@InfoSecDev-sys

Description

@InfoSecDev-sys

Hello @dirkjanm,

I’m experiencing an issue with ROADtools (roadrecon gather) where the tool fails to collect data from Microsoft Graph API endpoints, returning multiple HTTP 403 Forbidden errors, even though authentication completes successfully.

Environment:

ROADtools version: latest from GitHub

Steps to reproduce:

Run roadrecon gather after authenticating.

Observe the following output:

Tokens were written to .roadtools_auth

Tokens were written to .roadtools_auth
                                                                                                                    
┌──(kali㉿kali)-[~]
└─$ roadrecon gather                                                 
Starting data gathering phase 1 of 2 (collecting objects)
Error 403 for URL https://graph.windows.net/tenantID/contacts?api-version=1.61-internal

Error 403 for URL https://graph.windows.net/tenantID/groups?api-version=1.61-internal

Error 403 for URL https://graph.windows.net/tenantID/settings?api-version=1.61-internal

Error 403 for URL https://graph.windows.net/tenantID/policies?api-version=1.61-internal

Error 403 for URL https://graph.windows.net/tenantID/directoryRoles?api-version=1.61-internal

Error 403 for URL https://graph.windows.net/tenantID/oauth2PermissionGrants?api-version=1.61-internal

Error 403 for URL https://graph.windows.net/tenantID/applications?api-version=1.61-internal

Error 403 for URL https://graph.windows.net/tenantID/servicePrincipals?api-version=1.61-internal

Error 403 for URL https://graph.windows.net/tenantID/administrativeUnits?api-version=1.61-internal

Error 403 for URL https://graph.windows.net/tenantID/tenantDetails?api-version=1.61-internal

Error 403 for URL https://graph.windows.net/tenantID/users?api-version=1.61-internal

Error 403 for URL https://graph.windows.net/tenantID/roleDefinitions?api-version=1.61-internal

Error 403 for URL https://graph.windows.net/tenantID/devices?api-version=1.61-internal

Error 403 for URL https://graph.windows.net/tenantID/authorizationPolicy?api-version=1.61-internal

Starting data gathering phase 2 of 2 (collecting properties and relationships)
Error 403 for URL https://graph.windows.net/tenantID/servicePrincipals?api-version=1.61-internal&$expand=owners                                                                                             
                                                                                                                    
Error 403 for URL https://graph.windows.net/tenantID/applications?api-version=1.61-internal&$select=keyCredentials,objectId                                                                                 
                                                                                                                    
Error 403 for URL https://graph.windows.net/tenantID/servicePrincipals?api-version=1.61-internal&$select=keyCredentials,objectId                                                                            
                                                                                                                    
Error 403 for URL https://graph.windows.net/tenantID/devices?api-version=1.61-internal&$expand=registeredOwners

Error 403 for URL https://graph.windows.net/tenantID/applications?api-version=1.61-internal&$expand=owners

ROADrecon gather executed in 2.74 seconds and issued 19 HTTP requests.

Request:
Could you advise if additional configuration or API permissions are required, or if this is a potential bug with the current version?

Thank you for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions