Skip to content
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
10 changes: 10 additions & 0 deletions src/plugin/manager/ec2/security_group_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,14 @@ def create_cloud_service(self, region, options, secret_data, schema):
)
)

for prefix_list_id in in_rule.get("PrefixListIds", []):
in_rule_copy = copy.deepcopy(in_rule)
inbound_rules.append(
self.custom_security_group_inbound_rule_info(
in_rule_copy, prefix_list_id, "prefix_list_ids",vulnerable_ports
)
)

# Outbound Rules
outbound_rules = []
for out_rule in raw.get("IpPermissionsEgress", []):
Expand Down Expand Up @@ -294,6 +302,8 @@ def _get_source_display(remote):
return group_id
elif cidrv6 := remote.get("CidrIpv6"):
return cidrv6
elif prefix_list_id := remote.get("PrefixListId"):
return prefix_list_id

return ""

Expand Down
Loading