# DeepSeek left a ClickHouse database open to the internet with chat logs and API secrets

Source: https://botpassword.com/incidents/2025-01-deepseek-exposed-database
Disclosed: 2025-01-29 · Type: Credential leak · Status: Resolved · Updated: 2026-10-25

In January 2025 Wiz Research found a DeepSeek ClickHouse database reachable from the internet with no authentication, holding more than a million log lines that included chat history, secret keys, API secrets and backend details. Wiz says DeepSeek secured it promptly after disclosure. DeepSeek did not publish its own account, so if you used DeepSeek's API or chat in early January 2025, rotate your DeepSeek API keys and assume prompts from that period could have been read.

## What was exposed

A `log_stream` table with more than a million entries containing plaintext log values from DeepSeek's services. Wiz reports these included **chat history, secret keys, API secrets**, internal API endpoint names, backend details and operational metadata. Because the ClickHouse HTTP interface was open, anyone who found it could run arbitrary SQL, which Wiz notes meant full control over database operations. Wiz did not say whether anyone other than its researchers accessed the data, and DeepSeek has not published an incident report, so the exact set of affected users and keys is unknown.

## Who is affected

DeepSeek has not said which users were affected. Based on Wiz's report, you may be affected if you used DeepSeek's chat service or API around January 2025, when the logged entries were written, because chat content and API secrets appeared in the logs. Organizations that let staff paste code, configuration or credentials into DeepSeek prompts should assume those prompts could have been exposed. There is no list of indicators to check; the decision is whether you used the service in that period.

## What to do

1. Rotate your DeepSeek API keys from the DeepSeek platform and update the applications that use them.
2. If any prompt sent to DeepSeek in that period contained a password, API key, token or connection string, rotate that credential at its provider.
3. Review your organization's policy on pasting secrets or proprietary code into third-party AI chat services, and use secret-scanning on outbound prompts where you can.
4. Watch for phishing that references DeepSeek accounts or conversations.

## Timeline

- 2025-01-06: Earliest log entries Wiz saw in the exposed `log_stream` table. ([source](https://www.wiz.io/blog/wiz-research-uncovers-exposed-deepseek-database-leak))
- 2025-01-29: Wiz publishes its findings: ports 8123 and 9000 open on `oauth2callback.deepseek.com` and `dev.deepseek.com`, allowing full database control without authentication. Wiz says it disclosed the issue immediately and DeepSeek promptly secured it. ([source](https://www.wiz.io/blog/wiz-research-uncovers-exposed-deepseek-database-leak))

## Indicators

- Exposed hosts named in Wiz's report: `oauth2callback.deepseek.com` and `dev.deepseek.com`, ports 8123 and 9000.

## Sources

- https://www.wiz.io/blog/wiz-research-uncovers-exposed-deepseek-database-leak
