Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

KeyError in rules/preprocessing.py (VPC) #296

Closed
andresriancho opened this issue Sep 10, 2018 · 2 comments
Closed

KeyError in rules/preprocessing.py (VPC) #296

andresriancho opened this issue Sep 10, 2018 · 2 comments
Labels
bug Bug component-core Affects core component-provider-aws Affects AWS provider potential Unconfirmed issue

Comments

@andresriancho
Copy link

andresriancho commented Sep 10, 2018

KeyError in rules/preprocessing.py

Traceback (most recent call last):
  File "/home/andres/tools/virtualenvs/scout2/local/lib/python2.7/site-packages/AWSScout2-3.2.1-py2.7.egg/AWSScout2/rules/preprocessing.py", line 632, in new_go_to_and_do
    callback(aws_config, current_config[key][value], path, current_path, value, callback_args)
  File "/home/andres/tools/virtualenvs/scout2/local/lib/python2.7/site-packages/AWSScout2-3.2.1-py2.7.egg/AWSScout2/rules/preprocessing.py", line 537, in sort_vpc_flow_logs_callback
    subnet_path = combine_paths(current_path[0:4], ['vpcs', subnet_map[attached_resource]['vpc_id'], 'subnets', attached_resource])
KeyError: u'subnet-fd136d8a'

KeyError: None in rules/preprocessing.py

Traceback (most recent call last):
  File "/home/andres/tools/virtualenvs/scout2/local/lib/python2.7/site-packages/AWSScout2-3.2.1-py2.7.egg/AWSScout2/rules/preprocessing.py", line 632, in new_go_to_and_do
    callback(aws_config, current_config[key][value], path, current_path, value, callback_args)
  File "/home/andres/tools/virtualenvs/scout2/local/lib/python2.7/site-packages/AWSScout2-3.2.1-py2.7.egg/AWSScout2/rules/preprocessing.py", line 284, in match_instances_and_subnets_callback
    vpc = subnet_map[subnet_id]
KeyError: None

KeyError in rules/preprocessing.py (VPC)

Traceback (most recent call last):
  File "/home/andres/tools/virtualenvs/scout2/local/lib/python2.7/site-packages/AWSScout2-3.2.1-py2.7.egg/AWSScout2/rules/preprocessing.py", line 632, in new_go_to_and_do
    callback(aws_config, current_config[key][value], path, current_path, value, callback_args)
  File "/home/andres/tools/virtualenvs/scout2/local/lib/python2.7/site-packages/AWSScout2-3.2.1-py2.7.egg/AWSScout2/rules/preprocessing.py", line 352, in process_vpc_peering_connections_callback
    target = aws_config['services']['vpc']['regions'][region]['vpcs'][vpc_id]
KeyError: u'vpc-162a7f2a'
@x4v13r64
Copy link
Contributor

Could you please provide more details about the issue (full output with --debug flag) please.

@x4v13r64 x4v13r64 added bug Bug potential Unconfirmed issue labels Sep 11, 2018
@x4v13r64 x4v13r64 added component-provider-aws Affects AWS provider component-core Affects core labels Sep 12, 2018
@x4v13r64
Copy link
Contributor

Closing as this should be resolved in the latest version of https://github.com/nccgroup/ScoutSuite.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Bug component-core Affects core component-provider-aws Affects AWS provider potential Unconfirmed issue
Projects
None yet
Development

No branches or pull requests

2 participants