nccgroup / ScoutSuite

Multi-Cloud Security Auditing Tool
GNU General Public License v2.0
6.75k stars 1.07k forks source link

AWS EC2 network attack surface information error #1648

Open vo243 opened 4 months ago

vo243 commented 4 months ago

Bug:

When running "scout aws", I'm unable to get the EC2 network attack surface information.

Scout throws the following error:

ERROR provider.py L273: Error completing EC2 network attack surface information: argument of type 'NoneType' is not iterable

I've tried this on an Ubuntu 22.04 system with python 3.10.12, and also on Ubuntu 24.04 with python 3.12.3.

Here's the relevant ouput section with the --debug run on Ubuntu 22.04/python 3.10.12:

2024-07-08 10:49:10 t-1 scout[2492662] INFO Running pre-processing engine 2024-07-08 10:49:10 t-1 scout[2492662] ERROR provider.py L273: Error completing EC2 network attack surface information: argument of type 'NoneType' is not iterable Traceback (most recent call last): File "/home/vo/ScoutSuite/ScoutSuite/providers/aws/provider.py", line 273, in _complete_information_on_ec2_attack_surface if current_config is not None and 'PublicDnsName' in current_config.get('Association', {}): TypeError: argument of type 'NoneType' is not iterable 2024-07-08 10:49:10 t-1 scout[2492662] ERROR provider.py L273: Error completing EC2 network attack surface information: argument of type 'NoneType' is not iterable Traceback (most recent call last): File "/home/vo/ScoutSuite/ScoutSuite/providers/aws/provider.py", line 273, in _complete_information_on_ec2_attack_surface if current_config is not None and 'PublicDnsName' in current_config.get('Association', {}): TypeError: argument of type 'NoneType' is not iterable 2024-07-08 10:49:10 t-1 scout[2492662] ERROR provider.py L273: Error completing EC2 network attack surface information: argument of type 'NoneType' is not iterable Traceback (most recent call last): File "/home/vo/ScoutSuite/ScoutSuite/providers/aws/provider.py", line 273, in _complete_information_on_ec2_attack_surface if current_config is not None and 'PublicDnsName' in current_config.get('Association', {}): TypeError: argument of type 'NoneType' is not iterable

To reproduce, I just run

python scout.py aws

Any guidance is very appreciated!

Vo