nccgroup / Scout2

Security auditing tool for AWS environments
http://nccgroup.github.io/Scout2/
GNU General Public License v2.0
1.73k stars 300 forks source link

argument of type 'NoneType' is not iterable when scanning EC2 Config #283

Closed museadmin closed 6 years ago

museadmin commented 6 years ago

When running your scanner I am seeing this output in the snapshot scanning

Fetching EC2 config... regions instances security_groups volumes snapshots network_interfaces 1/1 136/136 445/445 407/407 6799/24378 0/492argument of type 'NoneType' is not iterable 1/1 136/136 445/445 407/407 18283/24378 0/492argument of type 'NoneType' is not iterable 1/1 136/136 445/445 407/407 18753/24378 0/492argument of type 'NoneType' is not iterable

Presumably you need to add a check for null somewhere.

The tool runs to completion though so I would suggest that a this is a low priority.

x4v13r64 commented 6 years ago

Thanks for opening the issue @museadmin, could you please run the tool with --debug and provide the output?

devoopes commented 6 years ago

Not sure if this is the same issue. But using Scout2Listall tool I am getting a 'NoneType' just running the sample code. ./Scout2Listall.py --debug --profile <profile> --path ec2.regions.id.vpcs.id.security_groups.id

--debug does not get anymore info.


Traceback (most recent call last):
  File "./Scout2Listall.py", line 8, in <module>
    sys.exit(main())
  File "/Users/sean/src/github.com/Scout2/AWSScout2/__listall__.py", line 110, in main
    (lines, template) = format_listall_output(args.format_file[0], None, args.format, rule)
TypeError: 'NoneType' object has no attribute '__getitem__'```
x4v13r64 commented 6 years ago

@museadmin closed due to lack of feedback, can't isolate the origin of the error.

@SeanLeftBelow this seems like an unrelated issue