Skip to main content

Wolfcore Cyber Security

Port 9200 (Elasticsearch): what it is, how it is attacked and how to secure it

Written by Ruben Selby, founder and penetration tester at Wolfcore. Last reviewed 17 November 2026. Part of the Ports and protocols library.

In one sentence: Port 9200 is where Elasticsearch, a search and log database, listens for requests, and if it is open to the internet without a password, anyone can read, change or delete what it holds.

What runs on this port

Elasticsearch listens for web-style (HTTP) requests on a port in the range 9200 to 9300, according to Elastic’s networking documentation. In practice most people see 9200. Many businesses run it because it sits behind a search box on a website, or because it stores logs for tools such as Kibana. Logs often contain usernames, email addresses, IP addresses and sometimes passwords that were typed into the wrong field.

Elastic documents a separate transport port, 9300 to 9400 by default, for servers in the cluster to talk to each other. It should not be reachable from outside your network.

Why attackers look for it

Because Elasticsearch speaks HTTP, anyone who finds the port can ask it questions in a normal web browser. Internet-wide scanners and search engines for devices list open instances. Nobody needs to break in if the front door has no lock.

How it gets attacked

  • No authentication. Elastic’s guide says that in version 8.0 and later security is switched on automatically at first start. Older clusters, or clusters where security was turned off, answer anyone.
  • Binding to every address. Elastic’s documentation says the default network.host is local only. It also warns that security auto-configuration adds a setting that listens on all addresses (0.0.0.0) for HTTP. Someone who then opens the cloud firewall has published the service.
  • Weak or shared passwords on the built-in elastic user, which has superuser rights.
  • Old versions with published vulnerabilities. Check the version against Elastic’s security announcements.

Elastic’s own documentation puts the consequence bluntly: never expose an unprotected node to the public internet, because that lets anyone in the world download, modify or delete the data in the cluster.

What an open port 9200 meansAnyone, any browserElasticsearch :9200Indexes: logs, usersSecurity off or firewall open: request in, data out, no login askedAfter: security on, passwords set, 9200 reachable only from app and admin addresses

Who it affects and how badly

  • Sole trader to 10 staff (agencies, SaaS start-ups): a search or log server created for a project and forgotten. Worst case is customer or staff data readable by strangers, and a report to the regulator.
  • 10 to 50 and 50 to 250 staff (retail, recruitment, MSPs, fintech): log stores hold the keys to other systems. Worst case is leaked credentials leading to account takeover and a rebuild.
  • Regulated and 250 plus (healthcare suppliers, insurers, councils): large volumes of personal data in one place. Worst case is a notifiable personal data breach, fines and lost clients.

Real examples

  • A 24 billion record cluster, June 2026. Cybernews researchers reported finding a publicly accessible Elasticsearch cluster of more than 8.3 terabytes on 12 June 2026, observed closed on 15 June. They said nearly all records were infostealer logs, which are credentials stolen from infected devices. They also said they did not know who owned it. Source: https://cybernews.com/security/24-billion-credentials-data-leak/

Note what this shows. The cluster was a collection point for other people’s stolen data. An open Elasticsearch server can hurt people who never used your service.

The UK angle

The ICO’s data security guidance says the UK GDPR security principle requires appropriate technical and organisational measures, and it expects you to test them. It names vulnerability scanning and penetration testing as examples (https://ico.org.uk/for-organisations/uk-gdpr-guidance-and-resources/security/a-guide-to-data-security/). A search server with personal data and no password would be hard to defend under that principle.

What we check on a test

Method only, not a list of findings.

  • Whether 9200 and 9300 to 9400 answer from outside, and from which source networks.
  • Whether a request without credentials is refused.
  • Which version is running, and whether the same cluster feeds Kibana or other dashboards that are also reachable.
  • Whether TLS is used on the HTTP port and between nodes.
  • What the indexes contain: personal data, tokens or passwords that should not be logged at all.
  • Whether cloud security groups, reverse proxies and container port mappings can expose it by accident.

How to check whether yours is exposed

  1. Make a list of every Elasticsearch, OpenSearch and Kibana instance, including those on test servers and in containers.
  2. Read your firewall and cloud security group rules for 9200 and 9300 to 9400 open to any address.
  3. Run our free scan from outside your network: https://wolfcore.co.uk/free-web-vulnerability-scan/
  4. From a machine outside your network, confirm the service refuses unauthenticated requests. Only test servers you own.

How to secure it

  1. Block 9200 and 9300 to 9400 from the internet and allow named application and admin addresses only.
  2. Enable Elasticsearch security (xpack.security.enabled: true on older clusters) and set passwords for the built-in users.
  3. Do not use the elastic superuser for applications. Create roles with only the access each needs.
  4. Turn on TLS for HTTP and for node-to-node traffic. Elastic states that the minimal security setup is not enough for production clusters with more than one node.
  5. Keep secrets and personal data out of logs where you can.
  6. Upgrade to a supported version and watch Elastic’s security announcements.

FAQ

What is port 9200 used for? Elasticsearch accepts HTTP requests from clients on a port in the range 9200 to 9300, usually 9200.

Is it secure by default? Elastic says security is enabled automatically on first start from version 8.0. Older or manually changed clusters may be open.

Can an open server leak other people’s data? Yes. The Cybernews cluster mostly held infostealer logs collected from elsewhere.

Related terms

port-27017-mongodb, port-6379-redis, infostealer-logs-and-session-cookie-theft, data-exfiltration, uk-gdpr, how-to-check-which-ports-are-open-on-your-network

How Wolfcore helps

A Wolfcore penetration test finds this the way an attacker would, by hand, not with a scanner. Start with the free web vulnerability scan or read about penetration testing.

Wolfcore

Would your staff click a phishing email?

Run a real, safe phishing test on your team with Phishy. Free for 14 days, up to 10 staff, no card. We help you set it up.

Start a free phishing testFree website security scanor book a 30 minute call