Documented Incident · INC-OBS-017 · Critical severity
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 dossier metadata
- Case ID
INC-OBS-017- Classification
- Incident
- Date
- Severity
- Critical
- Sector
- Consumer AI & Local Runtimes
- Attack vector
- Exposed Infrastructure
- 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 takeaway
Block public internet ingress to internal analytics and telemetry databases (ClickHouse, Elasticsearch) and scrub user prompts and API keys from operational logs.
Mapped AI security 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
Mapped defensive controls
- Control Access to AI Models and Data at Rest AML.M0005
- Encrypt Sensitive Information AML.M0012
- Control Access to AI Models and Data in Production AML.M0019
- AI Telemetry Logging and Monitoring AML.M0024