Credential leak · January 29, 2025

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

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.

DisclosedJanuary 29, 2025
AffectedDeepSeek, DeepSeek API
TypeCredential leak
StatusResolved

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.

Am I 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 now

  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

  1. Earliest log entries Wiz saw in the exposed log_stream table. Source
  2. 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

Indicators

From the advisories listed below. Use them to search your logs, lockfiles and workflow runs.

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

What this changes for credential handling

  • Secrets pasted into AI prompts end up in the provider's logs. BotPassword lets agents use a credential without the value ever entering the model's context.

Frequently asked questions

Am I affected by the DeepSeek incident?

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 was exposed in the DeepSeek incident?

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.

Keep keys out of reach of the next compromised package

BotPassword is in early access. Request an invite and we'll email you when your spot opens.