rotateit

All incidents

DeepSeek ClickHouse database exposed API keys, chat history and backend details

Disclosed Jan 29, 2025 · updated Oct 28, 2026 · moderate · Historical

DeepSeek left a database open that held API keys and chat logs.

Are you affected?

The free scanner that answers this opens soon. Until then, the steps below work by hand.

What happened

DeepSeek left API keys in an open database. Wiz Research reported on 2025-01-29 that a DeepSeek ClickHouse database was publicly reachable without authentication at oauth2callback.deepseek.com and dev.deepseek.com on ports 8123 and 9000. Its log_stream table held over a million lines of logs, dating from 2025-01-06, with plaintext chat history, API keys, backend details and directory structures. Wiz says the exposure allowed full control over database operations. Wiz disclosed it to DeepSeek, which promptly secured it. Wiz ran only enumeration queries, so whether anyone else read the data is not stated.

Exposure starts
Not known yet (Wiz says the logs date from 2025-01-06 but not when the database became reachable)
Exposure ends
Not known yet (Wiz says DeepSeek secured the database promptly after disclosure but gives no date)
Confidence
low
Scope
API keys recorded in DeepSeek's logs, and any secret a user typed into a DeepSeek chat, which Wiz found stored in plaintext

What to do, in this order

  1. DeepSeek API keys in use around January 2025

    Advisory inference. Wiz found API keys in the exposed log_stream table; rotate at DeepSeek's platform and update every app that calls it.

    anything else stored there

  2. Any password, token or key pasted into a DeepSeek chat

    Advisory inference. Wiz found plaintext chat history in the same logs.

    anything else stored there

Notes

  • Wiz names "API keys" and "secret keys" in the logs without saying whether they were DeepSeek's own or customers'.
  • Advisory inference, not Wiz guidance. Wiz gives no rotation advice; RotateIt advises rotating DeepSeek API keys and any secret pasted into chats because both kinds of data were in the exposed logs.

How to tell if you’re affected

  • Calls to the DeepSeek API from your systems in January 2025

Sources

Rotating the keys

Pro, $49 a year when it opens, plans the rotation of each affected key for this incident, in this order. Automatic rotation is in testing and included.

One email when it opens. Stored: your email, whether you confirmed, and when you signed up. We send a confirmation link first.

By hand, free: the steps above.