Skip to content
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

Patch 405 #428

Merged
merged 22 commits into from
Oct 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
f8b7fc9
Update overlapping-security-groups.md
shuklaalok87 Dec 23, 2021
d6d6c6e
Update step2.png
shuklaalok87 Dec 23, 2021
b0736c0
Update step3.png
shuklaalok87 Dec 23, 2021
c2810a1
Update step4.png
shuklaalok87 Dec 23, 2021
95ec628
Update overlapping-security-groups.md
shuklaalok87 Dec 23, 2021
ba0d102
Update overlapping-security-groups.md
shuklaalok87 Dec 23, 2021
cb2d866
Update step5.png
shuklaalok87 Dec 23, 2021
559b685
Merge branch 'patch-405' of https://github.com/shuklaalok87/security-…
shuklaalok87 Dec 23, 2021
d3edef0
Updated images for step 5 & 6
shuklaalok87 Dec 23, 2021
8693b35
Updated Images for Step 8,9,10,11
shuklaalok87 Dec 23, 2021
78d82d9
Update overlapping-security-groups.md
shuklaalok87 Dec 23, 2021
f6cecae
Update step9.png
shuklaalok87 Dec 23, 2021
8d8cf75
Merge branch 'patch-405' of https://github.com/shuklaalok87/security-…
shuklaalok87 Dec 23, 2021
03b2ebf
Update overlapping-security-groups.md
shuklaalok87 Dec 23, 2021
a8e30c4
Update step12.png
shuklaalok87 Dec 23, 2021
860a93a
Merge branch 'patch-405' of https://github.com/shuklaalok87/security-…
shuklaalok87 Dec 23, 2021
19514e0
Update overlapping-security-groups.md
shuklaalok87 Dec 23, 2021
b35efde
Added Images for step 13 & 14
shuklaalok87 Dec 23, 2021
b4f969b
Merge branch 'patch-405' of https://github.com/shuklaalok87/security-…
shuklaalok87 Dec 23, 2021
cf8cab3
Update overlapping-security-groups.md
shuklaalok87 Dec 23, 2021
96aedf4
Update overlapping-security-groups.md
shuklaalok87 Dec 23, 2021
926483a
Apply suggestions from code review
alphadev4 Oct 28, 2022
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
18 changes: 10 additions & 8 deletions en/aws/ec2/overlapping-security-groups.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,19 @@
| **Recommended Action** | Structure security groups to provide a single category of access and do not duplicate rules across groups used by the same instances. |

## Detailed Remediation Steps
1. Log into the AWS Management Console.
1. Log in to the AWS Management Console.
2. Select the "Services" option and search for EC2. </br> <img src="/resources/aws/ec2/overlapping-security-groups/step2.png"/>
3. Scroll down the left navigation panel and choose "Security Groups" under "Network & Security". </br> <img src="/resources/aws/ec2/overlapping-security-groups/step3.png"/>
4. Select the "Security Group" that needs to be verified and scroll down and click on the "Description" tab and copy "Group ID". </br> <img src="/resources/aws/ec2/overlapping-security-groups/step4.png"/>
5. Navigate to the "EC2 dashboard" and on the "Filter by tags and attributes or search by keyword" box select for the "Security Group ID" from the dropdown menu and paste the "Group ID" copied above.</br> <img src="/resources/aws/ec2/overlapping-security-groups/step5.png"/>
4. Select the "Security Group" that needs to be verified and scroll down and click on the "Details" tab and copy "Security group ID". </br> <img src="/resources/aws/ec2/overlapping-security-groups/step4.png"/>
5. Scroll down the left navigation panel and choose "Instances" and search the copied "Security Group ID" copied above.</br> <img src="/resources/aws/ec2/overlapping-security-groups/step5.png"/>
6. Check the number of "EC2 Instance(s)" using the Security Group and if there are more than 1 instances sharing the same "Security Group" then it's not according to the standard practice of AWS.</br> <img src="/resources/aws/ec2/overlapping-security-groups/step6.png"/>
7. Repeat steps number 2 - 6 to verify other "EC2 Instances" using same "Security Group".</br>
8. Navigate to "Security Group" under "Network & Security" and click on the "Create Security Group" at the top.</br> <img src="/resources/aws/ec2/overlapping-security-groups/step8.png"/>
9. On the "Create Security Group" panel provide a "Security Group Name" and "Description" for the new "Security Group".Select the "VPC" to which "Security Group" belongs.</br> <img src="/resources/aws/ec2/overlapping-security-groups/step9.png"/>
10. Select the "Inbound Traffic Rules" by clicking on the "Add Rules" button and select the "Protocols" as per the requirement.</br> <img src="/resources/aws/ec2/overlapping-security-groups/step10.png"/>
11. Click on the "Create" button at the bottom to create a new "Security Group". </br> <img src="/resources/aws/ec2/overlapping-security-groups/step11.png"/>
12. Navigate to "EC2 dahsboard" and select the "Instance(s)" which are sharing the same "Security Group". Click on the "Actions" button at the top and click on the "Change Security Groups" under "Networking".</br> <img src="/resources/aws/ec2/overlapping-security-groups/step12.png"/>
13. On the "Change Security Groups" tab select the new "Security Group" and click on the "Assign Security Groups" button to assign the selected "Security Group" to the "EC2 Instance".</br> <img src="/resources/aws/ec2/overlapping-security-groups/step13.png"/>
14. Reepat steps number 8 - 13 to structure security groups and to avoid twin rules across "EC2 Instances".</br>
10. Select the "Inbound Traffic Rules" by clicking on the "Add Rule" button and select the "Protocols" as per the requirement.</br> <img src="/resources/aws/ec2/overlapping-security-groups/step10.png"/>
11. Click on the "Create security group" button at the bottom to create a new "Security Group". </br> <img src="/resources/aws/ec2/overlapping-security-groups/step11.png"/>
12. Navigate to "Instances" in the left panel and select the "Instance(s)" which are sharing the same "Security Group". Click on the "Actions" button at the top and click on the "Change security groups" under "Security".</br> <img src="/resources/aws/ec2/overlapping-security-groups/step12.png"/>
13. On the "Change Security Groups" tab select the new "Security Group" under "Associated security groups" and click on "Add security group" button.</br> <img src="/resources/aws/ec2/overlapping-security-groups/step13.png"/>
14. Click on the "Save" button to assign the selected "Security Group" to the "EC2 Instance".</br> <img src="/resources/aws/ec2/overlapping-security-groups/step14.png"/>
15. Remove any security group which may not be needed as required from the instance.
16. Repeat steps number 8 - 15 to structure security groups and to avoid their overlapping in "EC2 Instances".</br>
Binary file modified resources/aws/ec2/overlapping-security-groups/step10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/aws/ec2/overlapping-security-groups/step11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/aws/ec2/overlapping-security-groups/step12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/aws/ec2/overlapping-security-groups/step13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/aws/ec2/overlapping-security-groups/step2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/aws/ec2/overlapping-security-groups/step3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/aws/ec2/overlapping-security-groups/step4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/aws/ec2/overlapping-security-groups/step5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/aws/ec2/overlapping-security-groups/step6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/aws/ec2/overlapping-security-groups/step8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/aws/ec2/overlapping-security-groups/step9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.