Microsoft SQL Server is using port numbers 1433, 1434. Those ports are open on your virtual machine and allow all incoming traffic from the Internet. In order to keep security best practices and decrease the risk for malicious activities, you should restrict access to be only from allowed IP addresses.