Blog

Over Half of Exposed Ollama Servers Hold Someone Else's Models

Rapid7 found thousands of unauthenticated Ollama servers, many with models planted by others. The risk of exposed local LLM servers and how to secure them.

Diagram of a scanner, an attacker and a free rider on the internet reaching an Ollama server listening on 0.0.0.0:11434 with no authentication, touching its model list, its environment variables and service files, and the key that signs it in to ollama.com. The attacker makes the server pull models from a registry it controls, and cloud model use that passes through the signed-in key is billed to the owner.
Contents

Someone installs Ollama on a GPU machine shared by their department and changes the listen address to 0.0.0.0 so that colleagues and a prototype RAG app can call it too. That is a common sight in any workplace experimenting with generative AI. Ollama is the standard software for running open-weight models on your own machine, and “it runs locally, so the data never leaves” is often the very reason it gets adopted.

A study has now counted how that “supposedly local server” is treated from the internet side. In a report published on November 18, 2026 by Christiaan Beek of the security company Rapid7, 54.8% of the 7,675 Ollama servers that responded without authentication carried traces of models apparently placed there by someone other than the owner. 79% listed models with a :cloud suffix, which run inference in ollama.com’s cloud. The report is titled “Open by default, already occupied.”

4,209 of 7,675 servers had names their owners did not put there

Start with the method and its limits. How to read the numbers depends more on what was counted than on how large they are.

On November 10, 2026, Rapid7 sent a single unauthenticated HTTP request to each of seven ports commonly used by AI services (including Ollama’s 11434) on 20,354 preselected IPv4 addresses. For Ollama it requested only /api/tags, which returns the model list, and the report states clearly that no inference or write requests were sent. After removing 429 IPs that looked like honeypots, 7,627 hosts answered with an AI or notebook API without authentication; most were Ollama, and 7,675 Ollama instances remained. Something was found on 58% of the targets, which Beek himself describes as “far higher than any internet-wide rate.” In other words, this is a sample of suspicious candidates chosen in advance, not a census of the whole internet.

With that in mind, these are the traces found in the names in the returned model lists.

Trace read from model names Servers Share of 7,675
Any trace apparently left by someone other than the owner 4,209 54.8%
Marker-style names saying “I was here” 3,091 40.3%
Models pulled from a non-official registry 2,666 34.7%
Small models renamed gpt-4o or claude-3-opus 1,190 15.5%
Names containing Base64- or hex-encoded file paths 55 0.7%

These are indicators inferred from names, and Beek cautions that “a clean list does not mean a clean host, because names can be deleted.” Put the other way, the figures above are close to a lower bound. The dates embedded in the names ranged from June 10 to November 3, 2026, and markers placed in June were still there on November 10. For five months, the owners never once looked at their model lists.

What attackers check first is not inference but “can I write?” and “can I get out?”

So what do attackers do once they are inside someone else’s Ollama? It is tempting to picture free riding, using the models without permission to generate text, but the traces point to reconnaissance that comes before that.

Among the models pulled from non-official sources, 1,817 servers had pulls that named an IP address and port directly, and 1,721 had pulls through free tunneling services or temporary registries. Ollama’s /api/pull fetches a model from a given location. If an attacker specifies an address they control, they learn whether the server can make outbound connections and where it connects from. Beek calls this “SSRF (server-side request forgery) shipped as a feature.” The small models named gpt-4o are, in his view, also traces of testing whether writes succeed (he labels this as speculation).

Encoded file paths are a step further. On 55 servers, decoding the strings embedded in model names produced /etc/shadow, /proc/self/environ, Ollama’s systemd unit file, SSH authorized_keys, AWS configuration and cloud metadata endpoints. On 10 servers, Ollama’s own private key was the target. These look like attempts at “Probllama” (CVE-2024-37032, fixed in 0.1.34), a file-read vulnerability found in 2024, and the report treats them as evidence of intent, not of success.

The targets cluster around environment variables and service configuration because that is where keys for other services tend to live. “Bleeding Llama” (CVE-2026-7482, CVSS 9.1), disclosed by Cyera in May 2026, uses a crafted model file to make the server send its memory out with three unauthenticated API calls. Cyera explains that environment variables such as API keys can leak along with prompts and other users’ conversations. The fix is in 0.17.1. An unauthenticated Ollama is a place to run models, and also a door into the store of keys kept on that machine.

A server listing :cloud models can bill other people’s inference to its owner

What is new in this report is that it shows how the damage can reach beyond your own machine, into your cloud bill.

Ollama can use a local server as the front end for running models in ollama.com’s cloud. Once a server is tied to an account with ollama signin, models with a :cloud suffix such as gpt-oss:120b-cloud run in the cloud while the request still goes to localhost:11434. According to Ollama’s official documentation, calls to the local API need no key in this setup, and Ollama “authenticates the cloud request on your behalf.” Since the local API has no authentication, anyone who can reach the server can use cloud models in the owner’s name.

Rapid7 found that 79% of exposed Ollama servers listed at least one :cloud model. Reading this as “79% are having usage billed to them” would be wrong, though. The report itself notes that a cloud model in the list does not mean the server is signed in, and because exactly the same seven cloud models appeared on 1,295 unrelated servers, it judges that most were pulled by automated tooling. Rapid7 ran no inference, so it did not confirm any case of actual charges.

Even so, this path should not be taken lightly. LLMjacking, using someone else’s cloud credentials to run LLMs and reselling that quota, is already established as a money-making attack, as I wrote in the article on the leak at Notion AI’s vendor. Beek calls the Ollama case “self-hosted LLMjacking.” It takes less effort than going after cloud API keys, since there is not even a key to steal. Ollama Cloud’s paid plans are flat-rate at USD 20 or USD 100 a month, and according to a user’s write-up from May 2026, hitting the limit locks you out in units of five hours or a week. The bill is unlikely to run away, but the damage surfaces in a different way: one day your own cloud models simply stop working.

The default is 127.0.0.1, yet servers are open because the instructions for opening them are what people find

According to the official FAQ, Ollama listens on 127.0.0.1 port 11434 by default. Only the same machine can connect, so installing it does not expose anything. Thousands of servers are open anyway because opening them is easy and there is no built-in way to share them while keeping them closed.

The FAQ entry on exposing Ollama to the network shows how to set OLLAMA_HOST=0.0.0.0:11434 on macOS and Linux. Anyone who wants several people or a web UI to use it lands on these steps first. Ollama has no API authentication, so this setting does not distinguish “open to the LAN” from “open to the internet.” Which one it becomes is left to the firewall or cloud security group in front of the machine.

With Docker it is even less visible. The official Dockerfile sets ENV OLLAMA_HOST=0.0.0.0:11434 in its final stage, so inside the container it listens on all interfaces from the start. Run it with docker run -p 11434:11434 and port 11434 opens on every address of the host. On Linux, Docker writes iptables rules directly, so there are setups where published ports are still reachable even though you think you closed 11434 with ufw (Docker’s documentation also warns about combining it with ufw).

In Rapid7’s tally, about 65% of exposed AI services were on hosting and cloud networks such as OVHcloud, Hetzner, Contabo and Oracle Cloud, and only 0.3% responded over HTTPS. The natural reading is that they are open because people install Ollama on rented servers and call them from their own machines.

Japan is not in the top 10, but that is no reason to relax

By country, the top three were Germany with 1,306 servers, China with 1,130 and the United States with 1,097, with Singapore in 10th place at 180. Japan, where this site’s author is based, did not make the top 10, and the report gives no figure for it. Given that this is a sample, the ranking does not show that users in any particular country are more careful, nor does it justify alarm about “thousands of servers being targeted” in a given country.

What a company’s IT department should worry about is not so much whether Ollama is open to the internet as the fact that it does not know where Ollama is running inside the company. GPU test machines, research workstations and cloud VMs hosting prototype apps often run without ever being registered as official systems. Even if it is open only to the internal network, an unauthenticated API can be used by anyone inside, or by an attacker who has got inside, to swap models or make outbound connections. As the article on the AI agent intrusions confirmed in Switzerland showed, attackers tend to search at scale for known weak entry points rather than new holes, and an unauthenticated port 11434 can be a textbook example of such an entry point.

There are also points that should not be overstated. If Ollama runs only open-weight models, keeps no secrets on the server and is not signed in to the cloud, what you lose is GPU time and the trustworthiness of the model list. In Rapid7’s tally, however, 28% of exposed servers carried embedding models. They are likely part of a RAG retrieval stack, and if so, a swapped model can quietly degrade search results and the quality of answers.

One server has four doors, and each must be closed separately

Finally, here is what an organization that runs Ollama, or might, should check. The key point is that the inbound and outbound sides have separate doors, and closing one does not close the others. The diagram below lines up the four doors along the path of a request, based on Rapid7’s recommendations and Ollama’s documentation.

Diagram of a request passing through door 1, the listen address (OLLAMA_HOST=127.0.0.1:11434, docker -p 127.0.0.1:11434:11434), and door 2, authentication (a reverse proxy with TLS and auth, or a VPN or zero trust access), to reach the Ollama API, which then branches to door 3, outbound traffic (allow only approved registries), and door 4, the cloud (OLLAMA_NO_CLOUD=1, no signin on shared servers). The API box calls for logging write operations and updating to 0.17.1 or later.
Based on the recommendations in Rapid7's report (November 18, 2026), Ollama's official FAQ and authentication documentation, and its Dockerfile.
  1. Check the listen address: on Linux, ss -ltnp | grep 11434 shows whether it is 127.0.0.1:11434 or 0.0.0.0:11434 (or *:11434). (How to find which process owns a port is covered in the article on Address already in use.) With Docker, include the host address, as in -p 127.0.0.1:11434:11434. Periodically scanning your internal address ranges for devices answering on port 11434 will also turn up unregistered Ollama instances.
  2. If you share it, put authentication in front: Ollama has no authentication of its own, so place a reverse proxy with TLS and authentication, a VPN or a zero trust access path in front of it, and keep Ollama itself listening only on 127.0.0.1 or a private network. Rapid7 writes that “Ollama has no authentication, so this is not optional.”
  3. Restrict outbound traffic: allowing only the registries from which models may be pulled stops /api/pull from being used to probe outbound connectivity or abused as SSRF. Also log and alert on state-changing operations such as pull, create, copy, push and delete.
  4. Do not tie shared servers to the cloud: if you do not use cloud models, you can turn the cloud feature off with OLLAMA_NO_CLOUD=1 or "disable_ollama_cloud": true in ~/.ollama/server.json. If you sign in on a server that several people use, authentication and usage alerts are prerequisites.

If a server was already exposed, updating to 0.17.1 or later is not enough. Rapid7 recommends rotating the secrets kept in environment variables and service configuration, revoking the key in your ollama.com account (Ollama API keys do not expire and are revoked from the settings page), checking cloud usage and rebuilding the server.

The “local” in local LLM describes where data is processed, not who can call it. Ollama has become more convenient through its cloud integration, and in exchange more things now sit behind that one port. Now that it is starting to be used for searching internal documents, I think an Ollama server should be treated like a database: listed in the asset inventory, with its authentication and network paths designed deliberately. Ollama may build authentication into its API one day (that is my speculation; no such plan has been announced), but there is no reason to wait for it. The first step is to check who port 11434 on your own machines is open to.

References

Frequently asked questions

Is Ollama exposed to the internet with its default settings?

Not with a normal installation. According to Ollama’s official FAQ, it listens on 127.0.0.1 port 11434 by default, so only the same machine can connect. It becomes exposed when OLLAMA_HOST is changed to 0.0.0.0 or similar, or when the official Docker image (which sets OLLAMA_HOST=0.0.0.0:11434 inside the container) is started with -p 11434:11434. In both cases there is no authentication.

How do I add authentication to the Ollama API?

Ollama itself has no API authentication, and the official documentation states that the API at localhost:11434 needs none. If other people need access, put a reverse proxy with authentication and TLS, a VPN or a zero trust access path in front of it, and keep Ollama itself listening only on 127.0.0.1 or a private network.

What should I check on an Ollama server that was exposed to the internet?

Rapid7 recommends looking for model names you did not install, then rotating any secrets kept in environment variables or service files, revoking the server’s key in your ollama.com account, checking cloud usage and, if possible, rebuilding the server. You also need to update to 0.17.1 or later, which contains the fix for CVE-2026-7482.