Skip to content

Commit

Permalink
Patch 398 (#420)
Browse files Browse the repository at this point in the history
* Update open-smbotcp.md

* Updated image for step 2 & step 3

Updated image for step 2 & step 3

* Update step4.png

Updated image for step 4

* Update step5.png

Updated image for step 5

* Update open-smbotcp.md

Updated step 5

* Update step7.png

Updated image for step 7

* Update step8.png

Updated image for step 8

* Update open-smbotcp.md

Updated step 8

* Update step9.png

Updated image for step 9

* Update open-smbotcp.md

Updated step 10

* Update step10.png

Updated image for step 10

* Update step11.png

Updated image for step 11

* Update step12.png

Updated image for step 12

* Update open-smbotcp.md

Updated step 12

* Update en/aws/ec2/open-smbotcp.md

* Update en/aws/ec2/open-smbotcp.md

Co-authored-by: alphadev4 <[email protected]>
  • Loading branch information
shuklaalok87 and alphadev4 authored Oct 28, 2022
1 parent 52ff7af commit c5787e7
Show file tree
Hide file tree
Showing 11 changed files with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions en/aws/ec2/open-smbotcp.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,16 @@
| **Recommended Action** | Restrict TCP port 445 to known IP addresses |

## 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/open-smbotcp/step2.png"/>
3. Scroll down the left navigation panel and choose "Security Group" under "Network & Security".</br> <img src="/resources/aws/ec2/open-smbotcp/step3.png"/>
4. Select the "EC2 Security Group" that needs to be verified. </br> <img src="/resources/aws/ec2/open-smbotcp/step4.png"/>
5. Scroll down the bottom panel and choose "Inbound". Verify the value for "Source" column for "Custom TCP Rule" under "Type" for port "445" for "Windows SMB" and if any rule have value set to "0.0.0.0/0" or "::/0 " then the selected "Security Group" has "TCP" port for "SMBoTCP" open to the public.</br> <img src="/resources/aws/ec2/open-smbotcp/step5.png"/>
6. Repeat steps number 2 - 5 to verify other "Security Groups" in the selected AWS region.</br>
5. Scroll down the bottom panel and choose "Inbound rules". Verify the value for "Source" column for "SMB" under "Type" for port "445" for "Windows SMB" and if any rule have value set to "0.0.0.0/0" or "::/0 " then the selected "Security Group" has "TCP" port for "SMBoTCP" open to the public.</br> <img src="/resources/aws/ec2/open-smbotcp/step5.png"/>
6. Repeat step number 2 - 5 to verify other "Security Groups" in the selected AWS region.</br>
7. Navigate to "Security Groups" under "Network & Security" and select the "Security Group" that needs to modify to restrict the access of "TCP" port 445 for "Windows SMB" over TCP to specific ip address. </br> <img src="/resources/aws/ec2/open-smbotcp/step7.png"/>
8. Scroll down the page and select the "Inbound" and click on the "Edit" button. </br> <img src="/resources/aws/ec2/open-smbotcp/step8.png"/>
8. Scroll down the page and select the "Inbound rules" and click on the "Edit Inbound rules" button to the right. </br> <img src="/resources/aws/ec2/open-smbotcp/step8.png"/>
9. In the "Edit inbound rules" tab select either the "MyIP" or "Custom" from the "Source" column.</br> <img src="/resources/aws/ec2/open-smbotcp/step9.png"/>
10. In the "Edit inbound rules" tab select the "MyIP" from the "Source" column to allow "Windows SMB" over TCP inbound traffic only from specific IP address.</br> <img src="/resources/aws/ec2/open-smbotcp/step10.png"/>
10. In the "Edit inbound rules" tab select the "MyIP" from the "Source" column to allow "Windows SMB" over TCP inbound traffic only from your IP address.</br> <img src="/resources/aws/ec2/open-smbotcp/step10.png"/>
11. In the "Edit inbound rules" tab select the "Custom" from the "Source" column as per the requirements for "SMBoTCP" and specify static IP/Elastic IP address along with "Description" for the "Security Group" rule. </br> <img src="/resources/aws/ec2/open-smbotcp/step11.png"/>
12. Click on the "Save" button to make the necessary changes. </br> <img src="/resources/aws/ec2/open-smbotcp/step12.png"/>
13. Repeat steps number 7 - 12 to restrict TCP port 445 for "Windows SMB" over TCP to known IP address.</br>

12. Click on the "Save rules" button to make the necessary changes. </br> <img src="/resources/aws/ec2/open-smbotcp/step12.png"/>
13. Repeat step number 7 - 12 to restrict TCP port 445 for "Windows SMB" over TCP to known IP address.
Binary file modified resources/aws/ec2/open-smbotcp/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/open-smbotcp/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/open-smbotcp/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/open-smbotcp/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/open-smbotcp/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/open-smbotcp/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/open-smbotcp/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/open-smbotcp/step7.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/open-smbotcp/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/open-smbotcp/step9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c5787e7

Please sign in to comment.