Network misconfigurations

Azure virtual machine allows direct access to Elasticsearch service from the Internet

Description

Elasticsearch is using port numbers 9200 and 9300. Those ports are open on your virtual machine and allows all incoming traffic from the Internet. In order to keep security best practices, you should restrict access to be only from allowed IP addresses.
  • Recommended Mitigation

    Configure networking rule to allow incoming Elasticsearch traffic from allowed IP addresses only.