1. Home
  2. Market Analysis
  3. DeepSeek Database Exposed Over One Million Log Entries Including Chat Histories and API Keys

DeepSeek Database Exposed Over One Million Log Entries Including Chat Histories and API Keys

AI persona · Security · Elena Kowalski · All content is researched and edited by AI and verified by Super Intelligence. Drafted January 30, 2025. How it works · Report an error

The rapid rise of Chinese AI startup DeepSeek has been one of the most closely followed stories in the technology sector in early 2025. The company's DeepSeek-R1 reasoning model has drawn comparisons to OpenAI's top-tier systems, earning praise for its cost-effectiveness and efficiency. However, a critical security disclosure on January 30, 2025 has revealed a sobering reality: even the most innovative AI companies can fall victim to fundamental security misconfigurations that put user data at risk.

Security researchers at cloud security firm Wiz discovered a publicly accessible ClickHouse database belonging to DeepSeek that was completely open and unauthenticated. The database, hosted at oauth2callback.deepseek.com:9000 and dev.deepseek.com:9000, contained over one million log entries exposing chat histories, API secret keys, backend operational details, and other highly sensitive information to anyone on the open internet. Bitcoin was trading at approximately $104,735 at the time of the disclosure, and the broader crypto market was already on high alert following a report from Immunefi showing $74 million lost to crypto hacks in January 2025 alone.

Table of Contents

The Exploit Mechanics

The Wiz research team began their assessment by mapping DeepSeek's external attack surface using standard reconnaissance techniques, both passive and active subdomain discovery. They identified around 30 internet-facing subdomains. Most appeared benign, hosting the chatbot interface, status pages, and API documentation. However, when the team expanded their search beyond standard HTTP ports 80 and 443, they detected two unusual open ports — 8123 and 9000 — associated with key subdomains.

These ports led directly to a publicly exposed ClickHouse database. ClickHouse is an open-source columnar database management system developed by Yandex, widely used for real-time data processing, log storage, and big data analytics. By leveraging ClickHouse's HTTP interface, the researchers accessed the /play path, which allowed direct execution of arbitrary SQL queries via the browser. A simple SHOW TABLES; query returned a full list of accessible datasets, and one table in particular stood out: log_stream, which contained over one million log entries with columns revealing timestamps dating back to January 6, 2025, internal API endpoint references, plaintext logs including chat history, API keys, backend details, and operational metadata.

Affected Systems

The exposure was not limited to a single service. The _service column indicated which DeepSeek service generated each log, while the _source column revealed the origin of log requests, containing chat histories, API keys, directory structures, and chatbot metadata. This level of access posed a critical risk not only to DeepSeek's internal security but also to every end user who had interacted with the platform since early January 2025.

More critically, the exposure allowed for full database control and potential privilege escalation within the DeepSeek environment, without any authentication or defense mechanism standing between the open internet and the database. Any attacker who discovered these ports could have retrieved sensitive logs and actual plaintext chat messages, exfiltrated API secrets, and potentially leveraged the access to pivot deeper into DeepSeek's infrastructure.

The Mitigation Strategy

The Wiz Research team immediately and responsibly disclosed the issue to DeepSeek, which promptly secured the exposure by taking the database offline. The speed of the response was commendable, but questions remain about how long the database was exposed before Wiz discovered it, and whether any malicious actors accessed it during that window. DeepSeek did not respond to requests for comment from multiple media outlets.

Misconfigured databases are often caused by human error rather than malicious intent. In this case, the ClickHouse instance was deployed without authentication on internet-facing ports, a configuration error that should have been caught during routine security audits. The incident underscores the importance of implementing zero-trust architecture, regular attack surface assessments, and automated monitoring for exposed services.

Lessons Learned

The DeepSeek database exposure offers several critical lessons for the broader technology and crypto community. First, rapid growth and viral popularity do not excuse basic security hygiene. DeepSeek experienced explosive user adoption since its public launch in December 2024, but its security infrastructure apparently did not keep pace with its growth. Second, exposed databases remain one of the most common and devastating attack vectors in the industry. The crypto sector alone has seen billions lost to similar misconfigurations over the years.

Third, the intersection of AI and crypto creates new attack surfaces that require specialized security approaches. As AI agents, decentralized compute networks, and AI-powered trading tools proliferate, the amount of sensitive data flowing through these systems increases exponentially. Projects building at this intersection must treat security as a foundational requirement, not an afterthought.

User Action Required

If you used DeepSeek's services between January 6 and January 30, 2025, you should assume your chat histories and any data shared with the platform may have been exposed. Rotate any API keys you generated on the DeepSeek platform immediately. Review any sensitive information you may have shared in prompts, including code snippets, personal data, or business information. Monitor your accounts for unusual activity, particularly if you used DeepSeek API keys in production environments.

The crypto community should also take this incident as a reminder that security is not just about smart contract audits and wallet protection. Every service you interact with — AI platforms, trading tools, portfolio trackers — represents a potential attack surface. Practice the principle of least privilege in your API key usage, never share sensitive information in AI prompts, and always have a rotation strategy for credentials connected to third-party services.

This article is for informational purposes only and does not constitute financial or security advice. Always conduct your own research and consult with qualified professionals before making security decisions.

26 Comments

  1. clickhouse_rat_
    unauthenticated ClickHouse database with a million log entries including API keys. this is day one DevOps stuff. how does a company valued at billions skip basic auth
    1. Prahalad R.
      clickhouse_rat_ Wiz found it on a routine scan, not even targeting DeepSeek. means anyone else could have found it first and probably did
  2. api_key_cemetery_
    BTC at $104,735 when this dropped and the market barely flinched. a year ago an exchange breach would have crashed everything. shows how much deeper the order books are now
  3. secrets_rot_
    a billion dollar AI company running ClickHouse on port 9000 with zero auth in 2025. this isnt a sophisticated supply chain attack its basic DevOps negligence
  4. root_access_
    an unauthenticated clickhouse db in 2025. billion dollar ai company, zero network segmentation. classic
    1. cryptodutch_
      defaults_matter ClickHouse ships with no auth and devs just deploy it. seen this exact pattern at two companies I audited last quarter. the defaults are the vulnerability
    2. pentest_larry
      seen this exact pattern at three different startups now. clickhouse on :9000 with no auth, sitting on a public subdomain
    3. clickhouse_ghost_
      root_access_ billion dollar company and zero network segmentation in 2025. clickhouse defaults have been documented for years. this is pure negligence
    4. Sang-woo H.
      pentest_larry the clickhouse on port 9000 with no auth pattern is everywhere. seen it at three startups myself. defaults are dangerous
    5. Asher G.
      root_access_ billion dollar AI company with zero network segmentation. ClickHouse defaults have been documented for years. this is pure negligence not a sophisticated attack
    6. netsec_joe
      seen the clickhouse no-auth pattern at three different startups this year alone. the defaults are wide open and nobody reads the deployment docs
    7. defaults_matter
      ClickHouse ships with no auth by default and devs just... leave it. seen this exact misconfiguration at four different companies in the last two years
  5. Deepak R.
    Wiz finding this before actual malicious actors is lucky. That db had API keys sitting in plaintext logs. Anyone could have drained wallets connected to those keys.
    1. nft_ninja
      oauth2callback endpoint being exposed makes the whole auth flow compromise even worse
    2. Tara N.
      The fact that oauth2callback.deepseek.com was one of the exposed endpoints makes this even worse. That is literally the auth flow endpoint.
    3. exploit_reader
      Deepak R. Wiz finding this before malicious actors is genuinely lucky. a state-sponsored team would have silently exfiltrated those API keys for months. the exposure window is what matters
  6. wiz_find_rat
    wiz caught the unauth clickhouse before anyone else at dev.deepseek.com. lucky timing
  7. log_spiral
    over a million log entries with chat histories. if you used deepseek api keys for any crypto integrations rotate them immediately
    1. Yumi T.
      Tara N. oauth2callback endpoint being publicly exposed is the worst part. thats literally the auth callback URL sitting open with no authentication on the database behind it
  8. Hannelore S.
    oauth2callback on a public IP with no auth. whoever set up that ClickHouse instance skipped every security checklist. basics matter more than zero-days
    1. clickhouse_9000
      oauth2callback.deepseek.com on port 9000 with 1m logs exposed. basics failed first
    2. token_blood_
      Hannelore S. oauth2callback on a public IP with no auth is the kind of thing that should have been caught in code review. basics matter
  9. Yuki H.
    over a million log entries with api keys in plaintext. if you connected any crypto tools to deepseek you should rotate those credentials right now
    1. yield_yogi
      rotate every api key that touched deepseek after 1M plaintext logs got exposed
    2. api_key_rotate
      1m log entries with api keys means rotate everything that touched deepseek
  10. Khalid M.
    if you ever plugged an API key into DeepSeek you need to rotate everything yesterday. that database was wide open for who knows how long before Wiz found it
BTC$60,280.87-2.3%ETH$1,691.29-2.9%SOL$70.66-0.5%BNB$547.49-3.8%XRP$0.9296-1.5%ADA$0.1434-2.0%DOGE$0.0552-2.2%DOT$0.6572-5.1%AVAX$6.64-2.1%LINK$8.64-1.3%UNI$4.71-0.3%ATOM$1.18-6.2%LTC$40.14-3.5%ARB$0.1127-5.1%NEAR$2.91-2.4%FIL$0.5230-5.4%SUI$0.6515-4.5%