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

The provided credentials do not have access to any subscriptions #1030

Open
mkannan22 opened this issue Feb 11, 2021 · 5 comments
Open

The provided credentials do not have access to any subscriptions #1030

mkannan22 opened this issue Feb 11, 2021 · 5 comments
Assignees
Labels
component-provider-azure Affects Azure provider enhancement New feature or request

Comments

@mkannan22
Copy link

Global Admin
There is no Azure subscriptions, but looking to pull down Azure data.
Command:
scout azure --user-account-browser --tenant xxxxxx-xxxx-xxx-xxx-xxxxxx --all-subscriptions
Logged into via browser successfully
Output after authenticating through Resource Manager API and Azure AD Graph API:
ERROR main.py L229: Initialization failure: The provided credentials do not have access to any subscriptions

Installed as outlined in wiki (tried just python, but current version is python3.9, unsupported, so specified 3.7)
virtualenv -p python3.7 venv
source venv/bin/activate
pip install scoutsuite
python - v output is 3.7.8

Does this support Azure when configured with no subscriptions?

@x4v13r64
Copy link
Collaborator

It does not (currently). The only service not subscription-based is AAD, so I guess we could allow for running against no subscriptions though.

@fsacer
Copy link

fsacer commented Apr 7, 2021

how much work would it be to implement this quickly?

@x4v13r64 x4v13r64 added component-provider-azure Affects Azure provider enhancement New feature or request labels Apr 8, 2021
@x4v13r64 x4v13r64 added this to the Medium-Term Milestone milestone Apr 8, 2021
@x4v13r64
Copy link
Collaborator

x4v13r64 commented Apr 8, 2021

It's a relatively simple logic change, but not something we plan on implementing in the short terms.

@x4v13r64
Copy link
Collaborator

x4v13r64 commented Apr 8, 2021

The subscription validation is implemented here https://github.com/nccgroup/ScoutSuite/blob/master/ScoutSuite/providers/azure/facade/base.py#L78, not sure if it runs out of the box if subscriptions_list is empty.

@Frozeph
Copy link

Frozeph commented Jul 16, 2021

Is there any other way to have Scout only run the AAD scans and ignore the lack of subs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component-provider-azure Affects Azure provider enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants