DeepSeek Harness, DeepSeek's open-source coding agent (DSH), sends a copy of each working session's log to DeepSeek with every request to the official DeepSeek API, and it does this by default. That has been in DeepSeek's own documentation since the feature landed in August. It became a live issue over the weekend, after a crypto user said wallets whose private keys sat in a local .env file were drained, and blamed the upload.
Why it matters: a coding agent reads whatever files and command output a task touches. If one of those is a secrets file, the session log can contain the secret. Whether or not the upload explains this theft, anyone who runs DSH against the official API in a folder that holds keys has been sending that material off the machine unless they changed a setting.
What DeepSeek's documentation says
We read the plugin's README and DeepSeek's wire-format document in the deepseek-ai/deepseek-harness repository, at the newest commit (Nov. 28):
| Item | What the docs say |
|---|---|
| Plugin | @deepseek-ai/dsh-session-log-deepseek, mounted in the shipped profiles |
| Default | enabled: true — "The field is enabled by default," per the wire doc |
| What is sent | A dsh_session_log field holding the session's log events since the last accepted upload |
| Size cap | maxBytes 8 MiB per request; bigger backlogs drain over later requests |
| Where | Requests to the official DeepSeek API only; the model doesn't see the field |
| Off switch | Settings → General → Data management → "Upload session log when using the official model API" |
| Catch | Turning it back on uploads the unsent backlog, including events recorded while it was off |
Two more details matter. The settings switch only appears when the host exposes that setting, so some setups may not show it. And OpenTelemetry feedback uploads have their own, separate setting, so changing that one doesn't control this upload. That second point fits an earlier independent test. In September, Creative AI News pointed DSH 0.2.0-rc.2 at a mock endpoint that only recorded traffic. It found about 26 KB of session log on a "Say hi" request with the default DeepSeek route. Setting telemetry to disabled didn't remove it. The session-log switch did, and a third-party OpenAI-compatible route carried no log at all.
The theft claim
According to crypto.news, a user posting on X as Lee (@wqw_lee) said on Nov. 26 that a private key was stored in a local environment file, that DSH surfaced it in tool output, and that he suspects the session-log plugin sent it. His first estimate was about $500,000 across 15–20 wallets; a later update put the total near $1 million. PANews, republished by KuCoin, reported that WTF Academy founder 0xAA linked a friend's drained wallet to a possible DSH case. That report says roughly 500,000 USDT from dozens of wallets was consolidated at one address. The outlets don't say which chain.
crypto.news also cites a user, ScarletKc, who inspected DSH 0.2.2-rc.5 traffic. ScarletKc reportedly found conversation history, system prompts, file contents fetched by tools, command results, project directory details, device and session IDs, and hardware specs in the uploads. The same reporting says earlier conversations with Claude or GPT models could be included if a user switched back to a DeepSeek model in the same session. We could not open those X posts, a September GitHub discussion asking for explicit consent, or PANews's original.
What isn't established: how the keys reached a thief. Neither the victim nor the outlets show evidence that the uploaded logs were accessed or misused. There's also a wrinkle in the theory. Any file an agent reads already goes into the prompt it sends to the model endpoint, so a secret the agent printed was exposed to that endpoint either way. crypto.news says logs may also pass through intermediary or custom gateways. As of this writing, no DeepSeek response has been reported, and the repository shows no change to the default since the claims surfaced.
What to do
- If you use DSH with the official DeepSeek API, turn off "Upload session log when using the official model API" in Settings → General → Data management, or set
enabled: falseforsession-log-deepseekin your configuration. Don't flip it back on casually: re-enabling sends what was recorded while it was off. - Assume any secret an agent could read has left your machine. That includes
.envfiles, wallet files and cloud credentials in or near the working folder, with any agent and any provider. Rotate API keys and tokens that were in reach. - Crypto keys can't be rotated, only abandoned. If a wallet's private key or seed phrase sat in a folder DSH worked in, move the funds to a new wallet generated somewhere else and keep transaction records.
- Keep secrets out of agent workspaces. Use a secrets manager or OS keychain, and block agents from reading
.envfiles where your tool allows it.
What to watch: whether DeepSeek changes the default or explains what it does with uploaded logs, and whether on-chain tracing ties other drained wallets to DSH users.
Sources
- GitHub — deepseek-ai/deepseek-harness: @deepseek-ai/dsh-session-log-deepseek README github.com
- GitHub — deepseek-ai/deepseek-harness: Official DeepSeek LLM API wire extensions (dsh_session_log) github.com
- crypto.news — DeepSeek Harness default data uploads raise concerns over $1M crypto theft crypto.news
- KuCoin News (PANews) — DeepSeek Harness plugin allegedly leaked private keys, leading to $500K in stolen assets kucoin.com
- BitcoinWorld — DeepSeek Harness default logging tied to ~$500K crypto theft bitcoinworld.co.in
- Creative AI News — DeepSeek Harness desktop session-log upload test creativeainews.com