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

Azure_Audit_Info' object has no attribute 'audit_resources' #1889

Closed
vbuchta opened this issue Feb 13, 2023 · 2 comments
Closed

Azure_Audit_Info' object has no attribute 'audit_resources' #1889

vbuchta opened this issue Feb 13, 2023 · 2 comments
Assignees
Labels
bug severity/medium Results in some unexpected or undesired behavior. status/waiting-for-revision Waiting for maintainer's revision

Comments

@vbuchta
Copy link

vbuchta commented Feb 13, 2023

After successful Prowler installation trying to scan Azure environment using --sp-env-auth authentication method, where on Azure side we created Enterprise application and assigned all needed roles in Subscription scope and AAD scope according to your documentation. After successful authentication we get this error message:

/usr/local/bin/python3.9 prowler.py azure --sp-env-auth -M json

Traceback (most recent call last):
  File "/opt/prowler2/prowler/prowler.py", line 8, in
    sys.exit(prowler())
  File "/opt/prowler2/prowler/prowler/main.py", line 106, in prowler
    checks_to_execute = load_checks_to_execute(
  File "/opt/prowler2/prowler/prowler/lib/check/checks_loader.py", line 28, in load_checks_to_execute
    if audit_info.audit_resources:
AttributeError: 'Azure_Audit_Info' object has no attribute 'audit_resources'

python prowler azure --sp-env-auth
                                                                                                                                                                                                      
Date: 2023-02-13 07:20:14                                                                                                                                                                                                                    Traceback (most recent call last):
  File "/home/kali/.local/bin/prowler", line 8, in
    sys.exit(prowler())
  File "/home/kali/.local/lib/python3.10/site-packages/prowler/main.py", line 106, in prowler
    checks_to_execute = load_checks_to_execute(
  File "/home/kali/.local/lib/python3.10/site-packages/prowler/lib/check/checks_loader.py", line 28, in load_checks_to_execute
    if audit_info.audit_resources:
AttributeError: 'Azure_Audit_Info' object has no attribute 'audit_resources'

Environment:

  • Resource: EC2 instance and workstation
  • OS: CENTOS7, Kali Linux
  • Prowler Version 3.1.4
  • Python version 3.9 / 3.10
  • Pip version 23.0 / 22.3
  • Installation method (running it from pip package and from github repo?):

On both installations we get the same error message AttributeError: 'Azure_Audit_Info' object has no attribute 'audit_resources'

Please help us understand our issue

@vbuchta vbuchta added bug status/needs-triage Issue pending triage labels Feb 13, 2023
@n4ch04
Copy link
Contributor

n4ch04 commented Feb 13, 2023

Hi @vbuchta we have identified that issue (also reported here #1888).
We are currently working on it and we'll let you know when it has been fixed.

Thanks for using Prowler !!!

@n4ch04 n4ch04 added status/waiting-for-revision Waiting for maintainer's revision severity/medium Results in some unexpected or undesired behavior. and removed status/needs-triage Issue pending triage labels Feb 13, 2023
@n4ch04 n4ch04 self-assigned this Feb 13, 2023
@n4ch04
Copy link
Contributor

n4ch04 commented Feb 13, 2023

Hi @vbuchta we have included a workaround here for this issue, please check it out.
#1891

@n4ch04 n4ch04 closed this as completed Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug severity/medium Results in some unexpected or undesired behavior. status/waiting-for-revision Waiting for maintainer's revision
Projects
None yet
Development

No branches or pull requests

2 participants