Incident report
DeepSeek Publicly Exposed ClickHouse Database Leaking 1M+ Chat Logs and API Keys
On January 29, 2025, Wiz Research disclosed an unauthenticated, internet-accessible ClickHouse database hosted on DeepSeek subdomains (`oauth2callback.deepseek.com` and `dev.deepseek.com`) right as DeepSeek R1 surged to the top of global app charts. Without any credentials, external researchers could execute arbitrary SQL queries against the database and obtain full administrative control. The exposed `log_stream` table contained over one million sensitive log lines, including plaintext user chat histories, internal API secret keys, backend operational metadata, and session tokens. DeepSeek secured the database within an hour of responsible notification, illustrating how rapid consumer AI scaling frequently outpaces cloud security posture management.
Incident record
- Reported
- Severity
- Critical
- Vector
- Exposed Infrastructure
- Affected system type
- Hosted Frontier LLM Chat Telemetry Backends
- Reference URI
https://www.wiz.io/blog/wiz-research-uncovers-exposed-deepseek-database-leaking-sensitive-information-including-chat-history
Defensive lesson
Block public internet ingress to internal analytics and telemetry databases (ClickHouse, Elasticsearch) and scrub user prompts and API keys from operational logs.
Research citation
Referenced techniques
- Active Scanning: Scan for Exposed AI Infrastructure AML.T0006.002
- Exfiltration via Cyber Means AML.T0025
- Unsecured Credentials AML.T0055
- Data from AI Services: Conversation Context and Memory AML.T0085.002
- Misconfigured or Publicly Exposed AI Services AML.T0132