Open by Default, Already Occupied: Exposed Self-Hosted Model Servers

Authors: Cloud Security Alliance AI Safety Initiative
Published: 2026-11-30

Categories: AI Infrastructure Security
Download PDF

Open by Default, Already Occupied: Exposed Self-Hosted Model Servers

Key Takeaways

Organizations running self-hosted model servers have tended to treat internet exposure as a misconfiguration that might someday be found. New evidence suggests that many such servers were found long ago. In a November 2026 sample, more than half of exposed Ollama servers carried artifacts left by someone other than the owner, some of them months old. Rapid7 reported on November 18, 2026 that 4,209 of the 7,675 internet-exposed Ollama servers in its November 10 sample (54.8%) carried model-name artifacts consistent with third-party use [1]. Those artifacts include “I was here” marker models, pulls from attacker-controlled registries and tunnels, and, on 55 hosts, encoded file paths aimed at password files, service configurations, cloud credentials, and the Ollama account key itself [1]. Some of the artifacts likely come from research scanners and not from attackers, and Rapid7 treats its figures as a sample, not a census [1].

Third-party artifacts should be treated as evidence of compromise. An exposed Ollama server whose model list contains callback pulls or marker models should be handled as a compromised host, and Rapid7 recommends rotating secrets and rebuilding the host, not just correcting the bind address [1]. Because a clean model list does not prove a clean host, any exposed server warrants a compromise assessment, not only a configuration fix.

Model servers now hold credentials. Ollama’s hybrid cloud mode lets a signed-in local server route cloud model requests to ollama.com using the account’s key pair [2][3]. Rapid7 found :cloud model tags on 79% of exposed hosts. A tag does not prove the server is signed in, and many may have been planted by third parties testing for relays, but any exposed server that is signed in may let strangers use the owner’s paid account [1][2]. Rapid7 notes that it did not establish actual subscription abuse [1].

Most documented abuse needs no exploit. Ollama’s local API requires no authentication [3]. The abuse documented in 2026, from reasoning engines for offensive tooling [4] to resale of stolen access [5][6], relies on default behavior plus a single configuration change. Unauthenticated vulnerabilities still matter, however: attackers continue to probe for the 2024 “Probllama” flaw [1][7], and CVE-2026-7482 allowed unauthenticated heap memory disclosure in releases before 0.17.1 [8].

Standard controls apply. Recommended controls include binding to localhost, putting an authenticating proxy or zero-trust layer in front, running a current patched release, filtering egress to approved registries, disabling cloud features where they are not needed, and keeping an inventory with named owners [1][3].

Background

Ollama is a widely used open-source runtime for running large language models on local hardware. According to its official documentation, it binds to 127.0.0.1 on port 11434 by default. Operators who want network access change the bind address with the OLLAMA_HOST environment variable, for example by setting OLLAMA_HOST=0.0.0.0:11434 in a systemd override [3]. The documentation also states that “the local API at http://localhost:11434 does not require authentication” [3]. API keys apply only to Ollama’s hosted endpoint at ollama.com, and the local daemon has no setting of its own that adds authentication. As a result, a single environment variable separates a private development tool from an open inference service on the public internet. This design is not new: Wiz’s 2024 “Probllama” disclosure already noted that “Ollama does not support authentication out-of-the-box” and recommended a reverse proxy for authentication [7].

The number of exposed servers has been measured several times, and the results vary widely with methodology. Wiz reported more than 1,000 exposed instances in mid-2024 [7]. In January 2026, SentinelLABS and Censys described roughly 175,000 unique Ollama hosts across 130 countries, reporting that more than 48% of these hosts advertised tool-calling capability and that a little over 30% were located in China [9][10]. CSA’s September 2026 research note on exposed AI endpoints documented a comparable pattern across self-hosted AI services more broadly [11]. Rapid7’s November 2026 study took a deliberately narrower approach. It examined 20,354 pre-selected IPv4 addresses and filtered out likely honeypots, which removed 1,513 findings on 429 hosts, and Rapid7 cautions that its totals should be treated as “a sample of a much larger population, not a census” [1]. These figures are not directly comparable. Taken together, though, they show that exposed Ollama servers number at least in the thousands and that the population has persisted over time.

The ways attackers use these servers have also become better documented over the past year. In January 2026, Pillar Security described “Operation Bizarre Bazaar” as a supply chain of scanners, validators, and a commercial reseller [6]. As BleepingComputer reported, it targeted unauthenticated Ollama on port 11434 and OpenAI-compatible APIs on port 8000, with exploitation attempts starting “within hours” of an endpoint appearing in Shodan or Censys results [5]. In June 2026, Sysdig documented an actor using an exposed Ollama server as the reasoning engine for a multi-stage offensive framework. No CVE was involved, only an unauthenticated server reachable from the internet [4]. CSA analyzed that case and the broader LLMjacking trend in a June 2026 research note [12], and later notes examined exposed model endpoints as autonomous attack engines [13] and a botnet built to hunt exposed AI infrastructure for cloud keys [14]. Rapid7’s study adds a new kind of evidence: artifacts left on the exposed servers themselves, in addition to attacks seen from outside.

Security Analysis

Evidence of Occupation Comes from Model Names

Rapid7’s method stands out because it is restrained. For each service, the researchers sent one unauthenticated read request. For Ollama this was GET /api/tags, which lists installed models. They sent no inference, write, or exploitation traffic [1]. Every inference about third-party activity therefore comes from model names alone, and Rapid7 labels its claims as observed, interpretation, or hypothesis. The table below summarizes the artifact categories reported across the 7,675 exposed Ollama servers in the filtered sample.

Artifact category (Rapid7 [1]) Example pattern Share of exposed Ollama hosts Hosts
Any third-party artifact (any of the below) 54.8% 4,209
Marker / “I was here” models *-beacon, verif_sys, ops-verify, names containing the host’s own IP 40.3% 3,091
Pulled from a non-official registry Model names prefixed with a registry host 34.7% 2,666
…from a raw IP:port <ip>:9882/trigger/benign 23.7% 1,817
…via a free tunnel or temporary registry *.trycloudflare.com, ttl.sh 22.4% 1,721
Premium-name aliases gpt-4o, claude-3-opus 15.5% 1,190
Encoded file-path payloads Base64 path segments decoding to /etc/shadow, /proc/self/environ 0.7% 55

Categories and subcategories overlap, so a host may appear in more than one row; this is why the two registry subcategories together exceed their parent row. Rapid7 found 712 model names containing the IP address of the server they sat on. Unix timestamps embedded in marker names ranged from June 10 to November 3, 2026, and some markers created in June were still present at the November 10 snapshot [1]. This persistence matters because it suggests many owners do not review their model lists, or that some hosts no longer have an active owner at all. If owners do not notice a planted model for five months, they are unlikely to notice quieter misuse such as unauthorized inference. Rapid7 adds two cautions. A clean model list does not prove a clean host, because names can be deleted. Several callback registries also appear to belong to large-scale research scanners, and Rapid7 states that “benign” in a path “is a claim, not a guarantee” [1].

Credential Targeting Reprises a Known Vulnerability Class

The 55 hosts with encoded file paths show the most direct attempts at host compromise. Decoded targets included /etc/shadow, /etc/passwd, /proc/self/environ, Ollama’s systemd unit and override.conf (where operators often place environment variables and API keys), SSH authorized_keys, AWS configuration, an Oracle Cloud metadata endpoint, and, on 10 hosts, the Ollama private key. Paths associated with persistence, such as /etc/ld.so.preload and new systemd unit files, also appeared [1]. The technique closely matches CVE-2024-37032 (“Probllama”), disclosed by Wiz. In that vulnerability, a malicious registry returned a manifest with a path-traversal payload in its digest field. This let an attacker write files through /api/pull, read files through /api/push, and execute code by corrupting /etc/ld.so.preload [7]. Ollama fixed the flaw in version 0.1.34 in May 2024 [7].

Rapid7 states that these attempts prove “intent, not success,” because it could not determine whether any targeted host still ran a vulnerable build [1]. Even so, the pattern is significant for defenders. Attackers are probing more than two years after the patch, which suggests they either expect enough unpatched or abandoned instances to make scanning worthwhile or find indiscriminate scanning cheap enough not to care. The targets indicate the likely objective: credentials and persistence on the host, with the model runtime as the way in. Rapid7 reconstructs the sequence as find, list, call back, mark, and reach [1]. That sequence uses only long-established techniques, including missing authentication, path traversal, server-side request forgery, and outbound callbacks. Nor is Probllama the only relevant flaw. CVE-2026-7482 (“Bleeding Llama”), a heap out-of-bounds read in Ollama’s model-creation pipeline fixed in version 0.17.1, let an unauthenticated attacker leak process memory containing API keys and environment variables through /api/create and /api/push [8]. A host that has been exposed and unpatched should be assumed to have leaked the same class of secrets that the Rapid7 payloads target.

Signed-In Servers Expose Paid Cloud Accounts

Ollama’s cloud features add a financial exposure that did not exist when the runtime served only local weights. The documentation states that after ollama signin, “Ollama then authenticates cloud requests for you,” and that this “also works through the local API” [3]. Inference for cloud models runs on Ollama’s cloud service [2]; the documentation shows cloud tags such as gpt-oss:120b-cloud [3], which Rapid7 refers to as :cloud models [1]. A key pair identifies the local installation to ollama.com [2], and Ollama offers cloud usage under paid plans and purchasable usage credits [15]. Rapid7 observed at least one :cloud model on 79% of exposed hosts, mostly from the GLM, DeepSeek, MiniMax, and Kimi families. It interprets this to mean that an exposed, signed-in server can give strangers access to the owner’s subscription “with the bill landing on the owner,” which it calls a self-hosted form of LLMjacking that requires no exploit [1].

Two limitations apply to this finding. First, a listed :cloud tag does not show that the host is actually signed in, and Rapid7 did not test inference [1]. Second, Ollama’s documentation does not explicitly state how requests relayed through a local server are attributed to account usage. Billing to the signed-in account is a reasonable inference from the authentication design, but the documentation does not confirm it [2][3]. Rapid7 also notes that the same seven cloud models appear together on 1,295 otherwise unrelated hosts. It labels as a hypothesis that this reflects automated third-party pulls testing which servers will relay cloud requests, not thousands of independent owner choices [1]. Taken together, the evidence suggests that a model server’s account key is now a credential that attackers may target, as the 10 hosts with private-key payloads indicate. CSA’s October 2026 note on cloud billing hijacking describes the same economic pattern, in which attackers shift the cost of inference onto a victim’s account [16].

Unfiltered Models and RAG Connectivity Widen the Impact

Two further observations show why exposure is more than a compute-cost problem. Rapid7 found that 28% of exposed hosts carried at least one “abliterated,” “heretic,” or “uncensored” model, meaning a variant with refusal behavior removed. One of them was an offensive-security fine-tune [1]. SentinelLABS and Censys had earlier counted 201 hosts running uncensored prompt templates [9][10]. Running such models is generally lawful and often serves legitimate research purposes. On an unauthenticated server, however, anyone can use an unfiltered model running on the owner’s hardware, and the owner is unlikely to be logging the prompts. The Sysdig case shows how this capability is used: the offensive framework requested an abliterated Llama 3.3 70B in its early probes and ran its credential-extraction stage “well over a hundred times” [4].

Rapid7 also found that 28% of exposed hosts ran embedding models such as nomic-embed-text or bge-m3. It interprets this as a sign that these servers are likely connected to retrieval-augmented generation pipelines that read internal documents, making the exposed host “a bridge, not an island” [1]. Separately, SentinelLABS found that more than 48% of a larger population of exposed hosts advertised tool-calling capability [9][10]. Neither figure confirms connections to internal systems, since embedding models and tool-calling support are indirect indicators drawn from different datasets. Together, however, they suggest that a meaningful share of exposed servers sit next to internal data or actions. CSA’s analysis of LLMjacking reached a similar conclusion: stolen inference is increasingly an input to offensive operations, not only a cost-theft problem [12][13].

Hosting Patterns Point to Ownership Gaps

The hosting distribution helps explain why the problem persists. About 65% of hosts in Rapid7’s filtered sample were on hosting or cloud networks, and six providers (OVHcloud, Hetzner, Contabo, Oracle Cloud, Tencent Cloud, and DigitalOcean) accounted for 42% [1]. Only 0.3% of findings were served over HTTPS [1]. This pattern is consistent with short-lived experimental virtual machines provisioned outside central IT, sometimes on personal payment cards that are later expensed, which Rapid7 specifically flags as a scanning blind spot [1]. As Sysdig notes, the owner of such a server would see only “elevated compute and an open port,” not an attack pipeline [4]. CSA’s work on shadow access describes the same governance gap, in which AI deployments create access paths that no identity or asset program tracks [17].

Recommendations

Immediate Actions

Organizations should first find their exposed model servers and determine whether anyone else has used them. Security teams should scan their public address ranges and every cloud and VPS account the organization pays for, including non-default ports, for unauthenticated responses on /api/tags [1]. Every Ollama instance found should have its model list reviewed. Names prefixed with an IP address, a tunnel domain, or ttl.sh, names containing beacon, verify, probe, or pwn, and names that embed the host’s own IP should all be treated as third-party artifacts [1].

Where artifacts appear, the host should be handled as compromised, not misconfigured. That means rotating secrets stored in its environment and service files, revoking the Ollama key on the linked ollama.com account (keys are managed at ollama.com/settings/keys [2]), reviewing cloud and Ollama usage for unrecognized spend, and rebuilding the host from a known-good image [1]. Every instance should run a current Ollama release. Instances earlier than 0.17.1 should be presumed exposed to CVE-2026-7482 and have their secrets rotated [8], and any instance earlier than 0.1.34 should also be presumed exposed to CVE-2024-37032 and rebuilt [7].

Short-Term Mitigations

Within 30 days, organizations should remove the conditions that make occupation possible. Model runtimes should bind to localhost or a private network interface. Remote access should go through an authenticating reverse proxy or zero-trust access layer, which is required for any remote exposure because the local API has no authentication of its own [1][3]. Ollama’s documented reverse-proxy and tunnel examples do not add authentication by themselves, so teams that follow them should add an authentication layer explicitly [3]. Hosts that do not need cloud models should disable cloud features with OLLAMA_NO_CLOUD=1 or "disable_ollama_cloud": true in server.json [3], and shared servers should not be signed in to a personal or corporate cloud model account unless authentication and spend alerts are in place [1].

Network and monitoring controls complete these measures. Egress from model servers should be restricted to approved registries [1]. This would block pulls from attacker-controlled registries and tunnels, which appeared on roughly a third of exposed hosts, though it would not prevent marker or alias models created through the local API. Teams should therefore also log and alert on state-changing API calls, including pull, create, copy, push, and delete [1].

Strategic Considerations

Over the longer term, self-hosted AI runtimes should be governed as infrastructure that can broker credentials, not as developer tooling. Rapid7 proposes making registration a condition of AI infrastructure spend: each server gets a named owner, a data classification, and an expiry date, and unowned servers are switched off [1]. Organizations should also document where uncensored or abliterated models are permitted and what data and tools they may access. Model runtimes, notebooks, and experiment trackers should be brought into exposure management and red-team scope, with a practical test of whether a given server can be found, isolated, and shut down within an hour [1].

For vendors and maintainers of self-hosted runtimes, the evidence makes a case for authentication options in the server itself and for clearer documentation of how relayed cloud usage is attributed. These design questions merit attention in future AI infrastructure guidance. Finally, organizations that consume published exposure statistics should ask how the numbers were filtered. Rapid7’s honeypot filtering reduced its critical findings from 387 to 39, which shows that raw scanner totals can mislead [1].

CSA Resource Alignment

CSA’s June 2026 research note LLMjacking Evolved: Stolen AI Compute as Offensive Infrastructure [12] is closely related prior work. It traced LLMjacking from black-market resale of stolen credentials to the use of exposed model servers as reasoning engines for autonomous attack pipelines, drawing on the Sysdig and Pillar Security research also cited here. Later CSA notes extended that line of analysis: Skynet-Mode LLMjacking [13] examined exposed model endpoints as autonomous attack engines, Cloud Billing Hijacking as LLMjacking [16] addressed cost-shifting onto victim accounts, and NadMesh [14] documented a botnet built to hunt exposed AI infrastructure for cloud keys. This note adds two observations. Rapid7’s artifacts show that third-party use of exposed Ollama servers is widespread, not limited to individual documented incidents. The cloud-routing findings also suggest that LLMjacking can reach a provider subscription through a self-hosted server without any API key being stolen. The earlier notes’ mitigations on network exposure and credential hygiene therefore apply directly, and their scope should now also cover keys that link a local runtime to a cloud account.

On the vulnerability side, CSA’s May 2026 note Bleeding Llama: Unauthenticated Memory Leak in Ollama [8] analyzed CVE-2026-7482 and recommended placing every Ollama deployment behind an authentication proxy regardless of patch status. The Rapid7 findings reinforce that advice: the same unauthenticated endpoints used to plant marker models and pull from attacker registries are the ones through which memory-disclosure and path-traversal flaws are reached.

CSA’s AI Controls Matrix (AICM) v1.1 [18] provides the control framework for putting these recommendations into practice. Its Identity & Access Management domain covers the missing authentication on model-serving APIs and the treatment of runtime account keys as managed credentials. Its Threat & Vulnerability Management domain covers patching runtimes against known flaws such as CVE-2024-37032 and CVE-2026-7482 and scanning for exposed services. Its Logging & Monitoring controls support the recommendation to log state-changing model-management calls. Mapping self-hosted model servers explicitly to these AICM controls would help close the inventory gap that allows exposed servers to stay unmanaged for months.

CSA’s Identity and Access Management Working Group publication Confronting Shadow Access Risks: Considerations for Zero Trust and Artificial Intelligence Deployments [17] addresses the governance side of the problem. It describes how AI deployments create unmanaged access paths outside identity and asset programs and recommends Zero Trust principles to bring those paths back under policy. Exposed Ollama servers on short-lived hosting instances, signed in to cloud accounts and connected to RAG data sources, are a concrete example of shadow access. The paper’s Zero Trust guidance supports this note’s recommendation that remote access to model servers go through an authenticating access layer, not a public bind address.

References

[1] Beek, Christiaan / Rapid7. “Open by default. Already occupied.” Rapid7 Blog, November 18, 2026.

[2] Ollama. “Cloud” and “Cloud FAQ.” Ollama Documentation, accessed November 30, 2026.

[3] Ollama. “FAQ” and “Authentication.” Ollama Documentation, accessed November 30, 2026.

[4] Clark, Michael / Sysdig. “LLMjacking evolved: Attackers are using stolen AI compute to build offensive agentic tools.” Sysdig Blog, June 17, 2026.

[5] Toulas, Bill / BleepingComputer. “Hackers hijack exposed LLM endpoints in Bizarre Bazaar operation.” BleepingComputer, January 28, 2026.

[6] Pillar Security. “Operation Bizarre Bazaar: First Attributed LLMjacking Campaign with Commercial Marketplace Monetization.” Pillar Security Blog, January 2026.

[7] Tzadik, Sagi / Wiz. “Probllama: Ollama Remote Code Execution Vulnerability (CVE-2024-37032).” Wiz Blog, June 24, 2024.

[8] Cloud Security Alliance. “Bleeding Llama: Unauthenticated Memory Leak in Ollama.” CSA AI Safety Initiative, May 2026.

[9] SentinelLABS. “Silent Brothers: Ollama Hosts Form Anonymous AI Network Beyond Platform Guardrails.” SentinelOne, January 2026.

[10] Lakshmanan, Ravie / The Hacker News. “Researchers Find 175,000 Publicly Exposed Ollama AI Servers Across 130 Countries.” The Hacker News, January 29, 2026.

[11] Cloud Security Alliance. “36,769 Exposed AI Endpoints: A Self-Hosted Supply Chain Crisis.” CSA AI Safety Initiative, September 2026.

[12] Cloud Security Alliance. “LLMjacking Evolved: Stolen AI Compute as Offensive Infrastructure.” CSA AI Safety Initiative, June 2026.

[13] Cloud Security Alliance. “Skynet-Mode LLMjacking: Exposed Model Endpoints as Autonomous Attack Engines.” CSA AI Safety Initiative, October 2026.

[14] Cloud Security Alliance. “NadMesh: A Botnet Built to Hunt Exposed AI Infrastructure for Cloud Keys.” CSA AI Safety Initiative, July 2026.

[15] Ollama. “Pricing.” Ollama, accessed November 30, 2026.

[16] Cloud Security Alliance. “Cloud Billing Hijacking as LLMjacking.” CSA AI Safety Initiative, October 2026.

[17] Cloud Security Alliance Identity and Access Management Working Group. “Confronting Shadow Access Risks: Considerations for Zero Trust and Artificial Intelligence Deployments.” Cloud Security Alliance, 2024.

[18] Cloud Security Alliance. “AI Controls Matrix (AICM) v1.1.” Cloud Security Alliance, 2025.

← Back to Research Index