Skip to content

Commit

Permalink
Patch 478 (#500)
Browse files Browse the repository at this point in the history
* Update open-mysql.md

* Images updated for all steps

* Update open-mysql.md

* Update open-mysql.md

* Apply suggestions from code review

Co-authored-by: alphadev4 <[email protected]>
  • Loading branch information
shuklaalok87 and alphadev4 authored Nov 2, 2022
1 parent f9cae94 commit 5b81113
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions en/azure/networksecuritygroups/open-mysql.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,14 @@
| **Recommended Action** | Restrict TCP ports 4333 and 3306 to known IP addresses |

## Detailed Remediation Steps


1. Log into the Microsoft Azure Management Console.
2. Select the "Search resources, services, and docs" option at the top and search for Network security groups. </br> <img src="/resources/azure/networksecuritygroups/open-mysql/step2.png"/>
1. Log in to the Microsoft Azure Management Console.
2. Click on the search bar at the top and search for Network security groups. </br> <img src="/resources/azure/networksecuritygroups/open-mysql/step2.png"/>
3. Select the "Network security group" that needs to be verified. </br> <img src="/resources/azure/networksecuritygroups/open-mysql/step3.png"/>
4. Click on the "Name" of the selected "Network security group" to access the port configurations. </br> <img src="/resources/azure/networksecuritygroups/open-mysql/step4.png"/>
5. In the "Overview" tab scroll down the page and check the "Inbound security rules" under the "Settings". </br> <img src="/resources/azure/networksecuritygroups/open-mysql/step5.png"/>
6. If the "MySQL" for port 4333 or 3306 with the protocol "TCP" is showing as "Allow" for all "Source" and "Destination" then the selected "Network security group" has TCP port 4333 or 3306 for MySQL is open to the public. </br> <img src="/resources/azure/networksecuritygroups/open-mysql/step6.png"/>
7. Repeat steps number 2 - 6 to verify other "Network security group." </br>
8. Navigate to the "Network security group" and select the security group that needs to modify for restricting the "TCP" port for "MySQL" on port 4333 or 3306 to specific IP Address.</br> <img src="/resources/azure/networksecuritygroups/open-mysql/step8.png"/>
9. Scroll down the left navigation panel and choose "Inbound security rules" under "Settings."</br> <img src="/resources/azure/networksecuritygroups/open-mysql/step9.png"/>
10. Click on the "MySQL" protocol in the "Name" column and under "Source" select the "IP Address" from the dropdown menu and enter the "Source IP addresses/CIDR ranges" as per the requirement, select the required Protocol and Action and click on the "Save" option at the top panel. </br> <img src="/resources/azure/networksecuritygroups/open-mysql/step10.png"/>
6. If the "MySQL" for port 4333 or 3306 with the protocol "TCP" is showing as "Allow" under "Actions" column for all "Source" and "Destination" then the selected "Network security group" has TCP port 4333 or 3306 for MySQL open to the public. </br> <img src="/resources/azure/networksecuritygroups/open-mysql/step6.png"/>
7. Repeat steps number 2 - 6 to verify other "Network security groups". </br>
8. Navigate to the "Network security group" and select the security group that needs to be modified for restricting the "TCP" port for "MySQL" on port 4333 or 3306 to specific IP Address.</br> <img src="/resources/azure/networksecuritygroups/open-mysql/step8.png"/>
9. Scroll down the left navigation panel and choose "Inbound security rules" under "Settings".</br> <img src="/resources/azure/networksecuritygroups/open-mysql/step9.png"/>
10. Click on the "MySQL" protocol in the "Name" column and in the right pane under "Source" select the "IP Address" from the dropdown menu and enter the "Source IP addresses/CIDR ranges" as per the requirement, select the required Protocol and Action and click on the "Save" option at the top of the pane. </br> <img src="/resources/azure/networksecuritygroups/open-mysql/step10.png"/>
11. Repeat steps number 8 - 10 to restrict TCP port 4333 or 3306 for MySQL to known IP addresses.</br>
Binary file not shown.
Binary file modified resources/azure/networksecuritygroups/open-mysql/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/azure/networksecuritygroups/open-mysql/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/azure/networksecuritygroups/open-mysql/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/azure/networksecuritygroups/open-mysql/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/azure/networksecuritygroups/open-mysql/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/azure/networksecuritygroups/open-mysql/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/azure/networksecuritygroups/open-mysql/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/azure/networksecuritygroups/open-mysql/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 5b81113

Please sign in to comment.