About
This article explains how to fix a failing Azure check about the Microsoft SQL (MS SQL) database port. ControlMap checks your Azure connection against its Azure Baseline Controls. One of these checks looks for network rules that allow access to port 1433 from any address on the internet (0.0.0.0/0).
Allowing public access to MS SQL database ports lets attackers all over the internet reach your MS SQL instance. They can try to exploit known vulnerabilities in MS SQL or use brute force techniques to gain access to servers, data and information systems.
Find the failing check in ControlMap
- Go to Monitor › Compliance Checks.
- Find the Azure check with the status Failing. To narrow the list, use the filters at the top of the table.
- Open the Compliance check actions menu on the check's row and select View Evidence, then open the Scan results tab to see the result.
Remove public access to port 1433 in Azure
Do these steps in the Azure portal. Repeat them for each network security group, one at a time.
- Sign in to the Azure portal.
- Under resources, select Network Security Groups.
- Select a network security group.
- Under Settings, select Inbound security rules.
- In the right-hand pane, review the list of security rules.
- Remove or update any inbound rule that allows incoming traffic from the source IP
0.0.0.0/0to destination port 1433 with the protocol TCP or Any.
Run the scan again
- Go to Monitor › Integrations and open your Azure connection from its card.
- Select Run Once. A message says the scan is scheduled to start in the next few minutes.
- When the scan finishes, go back to Monitor › Compliance Checks to see the updated status.
Connections also scan on their weekly schedule, so the status updates on its own if you don't run it manually.
More information
For more on how network security groups work, see Microsoft's network security groups overview.