8000 Improve Trusted Microsoft Services Enabled rule (fixes #763) by ramimac · Pull Request #785 · nccgroup/ScoutSuite · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Improve Trusted Microsoft Services Enabled rule (fixes #763) #785

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

Merged
merged 2 commits into from
Jun 15, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ def _is_public_traffic_allowed(self, storage_account):
return storage_account.network_rule_set.default_action == "Allow"

def _is_trusted_microsoft_services_enabled(self, storage_account):
return storage_account.network_rule_set.bypass == "AzureServices"
if storage_account.network_rule_set.bypass:
return "AzureServices" in storage_account.network_rule_set.bypass
return False

def _parse_access_keys_last_rotation_date(self, activity_logs):
last_rotation_date = None
Expand Down
0