Authenticated Enumeration
This typically happens after the initial credentials or access tokens are gained through other means.
You can also use https://portal.azure.com
, remember that Conditional Access Policies might be circumvented by just pretending to be a mobile device.
You can use manual tools (might be less suspicious)
You can also use more gui-y tools for this
Enumerate after Access
- if you get an āsubscription == nullā error ā revert to HTTP calls
- always try to login into portal azure web interface with gained accounts
- and check āall resourcesā and āresource groupsā
- esp. if there is some form of deploment history
- if you get an Conditional Access Error ā Try setting browser style to mobile/tablet
Basic resource access
remember that there is a special keyvault access token!
Basic User Access
use http call to get all groups that a user is member of
check applications
manually verify VM access rights
If you spot a VM, check for:
- executor rights
- install Vm extension rights
- attached user data
Remember to both try āusernameā and ā.\usernameā
use HTTP access with https://graph.microsoft.com/v1.0/users/[email protected]/memberOfā to check group memberships
get interesting groups and roles
get device/app owners
list applications
service principals (enterprise appliations)
Some queries:
Enumerate after VM access
check local credentials