-
Notifications
You must be signed in to change notification settings - Fork 347
fix(query): adding support for CloudFormation queries missing ingress/egress resources - Part 3 #7760
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
Open
cx-andre-pereira
wants to merge
89
commits into
master
Choose a base branch
from
AST-115332-FN-For-cloudformation-ingress_egress_queries_3
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
fix(query): adding support for CloudFormation queries missing ingress/egress resources - Part 3 #7760
cx-andre-pereira
wants to merge
89
commits into
master
from
AST-115332-FN-For-cloudformation-ingress_egress_queries_3
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…rce support for elb_with_security_group_withtout_outbound_rules
…_with_public_scope
…d searchKey, added searchLine and better tests
… common library, db_security_group_with_public_scope now checks for all ipv6 open address forms
…ricted_traffic, added searchLine values and condensed tests
…e to reference sec. group to flag exposed sec. groups, fixed expected results formatting
…oved upd exclusive sensitive port list and altered get_ingress_list logic slightly
…, print values TODO
…ork, new tests, searchLine added and improved searchValue; fallback for keyExpectedValue and ActualValue(s) for ec2_sensitive_port_is_publicly_exposed query
…ents to overall query logic
…with_public_scope
…h, improved logic based on remote_desktop_port query and tests (part2)
…ests and query logic re factoring
…' of https://github.com/Checkmarx/kics into AST-115332-FN-For-cloudformation-ingress_egress_queries
…restricted_traffic
…_3' of https://github.com/Checkmarx/kics into AST-115332-FN-For-cloudformation-ingress_egress_queries_3
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Reason for Proposed Changes
Note that, unlike part 2, this part contains all changes from part 1, that part should be merged first so the "Files changed" only show the relevant changes.
Currently some CloudFormation queries do not support the newer "AWS::EC2::SecurityGroupIngress" and "AWS::EC2::SecurityGroupEgress" resources, only working for samples with the legacy "AWS::EC2::SecurityGroup" resource.
This Pull Request will handle queries 11-14.
Query List
Proposed Changes
✅Security Groups With Meta IP
IpProtocol
set to "-1".✅Security Group With Unrestricted Access To SSH
✅ Unknown Port Exposed To Internet
✅DB Security Group Open To Large Scope
check_public
function was updated and renamed tois_public_db
.I submit this contribution under the Apache-2.0 license.