DeepSeek Harness, the open-source agent harness DeepSeek ships as dsh, sends a field called dsh_session_log with every request it makes to DeepSeek's official model API, and its own documentation lists that upload as enabled by default. The session log carries the events of your agent session, which can include tool results, the contents of files the agent read and your absolute working directory. On 26 November 2026 a developer said he suspected this default after wallets were drained, and by 29 November crypto and tech outlets were reporting losses of $500,000 to nearly $1 million. That link to the thefts is suspected, not proven. The default upload is not in doubt: it is documented. If you or your team have used DeepSeek Harness with DeepSeek's official models, switch the upload off, treat any secret that was readable in those sessions as exposed, and rotate it this week.
Who should care
- Developers who installed DeepSeek Harness (
npx @deepseek-ai/dsh web, the desktop app, or a source build) and pointed it at DeepSeek's official models. - Teams that let engineers pick their own AI coding agents. This is the third AI-tooling data exposure in a month I've written about, after Claude Code's settings.local.json leak and the agent-framework PyPI compromise.
- Anyone who keeps live keys in a
.envfile inside a project an agent can read. That's most of us. - Founders selling to enterprises, because "which AI tools see our source and secrets, and where does that data go?" is now a standard security questionnaire line.
What actually happened
Here is the timeline, with what is documented separated from what is alleged.
What DeepSeek's own documentation says
DeepSeek Harness is described in its GitHub README as "an open-source agent harness developed by DeepSeek AI." It is MIT licensed, labelled a developer preview, and runs as a local web UI or a desktop app. It can call DeepSeek's official model service or custom providers with your own API keys.
The README for the package @deepseek-ai/dsh-session-log-deepseek lists two settings:
enabled, defaulttrue. Setting it tofalsestops the session-log upload.maxBytes, default 8 MiB, the largest serializeddsh_session_logfield per request.
The field rides on requests to DeepSeek's official LLM API. It carries a session header and "every complete canonical event" since the last batch the server accepted. In the web and desktop app the switch sits under Settings, General (the settings package README says the Data management section), labelled "Upload session log when using the official model API".
One detail matters a lot: per that README, switching the upload off stops it, but switching it back on later resumes sending the backlog, including events recorded while it was off. Turning it off for a sensitive session and back on afterwards does not keep that session private.
DeepSeek Harness's privacy policy (last updated 20 September 2026) lists "Session Log Data" among the data collected, including user inputs, uploaded content, model outputs and tool invocation information, and says data may be used to train and improve its technology. It offers an opt-out from training by email to harness-privacy@deepseek.com.
What researchers and developers reported
- 24 September 2026: a GitHub discussion (#7725) on the repo flagged that
dsh_session_logdefaults to true and that the event stream, including the absolute working directory and tool results, rides on every DeepSeek protocol request. It asked for a default of false or explicit consent. As of 30 November it showed no maintainer reply. - 11 November 2026: developer Trevor Lasn wrote that the general telemetry opt-out (
DSH_TELEMETRY_MODE=DISABLED) only stops the separate OpenTelemetry feedback upload and does not stop the session log. He traced the default-on change to a commit on 14 September 2026. - Days before 26 November: researcher ScarletKc analyzed version 0.2.2-rc.5 and reported that the uploaded data could include conversation history, system prompts, tool calls and results, file contents read by tools, command output and the local working-directory path. He also reported that earlier exchanges with other providers' models could be included if you switched back to a DeepSeek model in the same session.
- 26 November 2026: a developer posting on X as wqw_lee said he suspected
dsh-session-log-deepseekafter wallet private keys stored in a local.envfile were used to drain funds. His first estimate was 15 to 20 wallets and about $500,000; a later update put it near $1 million, according to crypto.news. - 29 November 2026: 0xAA, founder of WTF Academy, said an investigation into a friend's compromised wallet pointed to DeepSeek Harness as a possible source. TokenPost framed the losses around $500,000 and "dozens" of wallets; crypto.news said 15 to 20.
What is not established
No source has shown how the keys got from DeepSeek-bound requests to an attacker. A session log being uploaded to DeepSeek is not the same as it being stolen from DeepSeek, and none of the reporting claims DeepSeek's servers were breached. TokenPost itself notes the information does not establish that the plugin caused every reported loss. Users with custom gateways or relays may also have sent the field to those intermediaries, which is a separate exposure path. As of 30 November 2026, no source reports an official DeepSeek statement or a release that changes the default; secondary write-ups say the newest pre-release on GitHub (v0.2.3-alpha.3, 28 November) still ships it on. Check the repo yourself before relying on that.
So the honest summary: the risky default is documented fact; the theft link is a credible suspicion under investigation.
The fix: what to do today if you used DeepSeek Harness
1. Switch the session-log upload off, the right way
In the web UI or desktop app: Settings, General, Data management, then turn off "Upload session log when using the official model API". The setting only appears when the host exposes it; if you can't see it, use the config route.
For CLI or headless use, set enabled: false on the session-log-deepseek plugin in your profile configuration. The plugin README documents the key; check it for the exact patch format your version uses, since the project warns of breaking changes during the preview.
Two things that do not stop it:
# This only disables the OpenTelemetry feedback upload, not the session log
export DSH_TELEMETRY_MODE=DISABLED
And switching the upload back on later, which replays what was recorded while it was off. If you want a session never to leave your machine, it must never run with the upload enabled, now or later.
A community bundle, ScarletKc/dsh-no-telemetry, disables the session-log, plugin-inventory and analytics paths and strips dsh_* request fields. It is not affiliated with DeepSeek and I have not reviewed its code. Installing a third-party plugin into an agent that can read your files is itself a trust decision, so read it before you add it.
2. Work out which secrets were exposed
Assume anything the agent could read during a session on DeepSeek's official models went into the log: files it opened, command output, environment files in the project. List the projects you opened in DeepSeek Harness and scan them:
# find environment files under your project folders (adjust the path)
find ~/code -name ".env*" -not -path "*/node_modules/*" 2>/dev/null
# scan a project folder for secrets, including untracked files
gitleaks dir ~/code/my-project
trufflehog filesystem ~/code/my-project --only-verified
Also note any secret you pasted into a prompt or that appeared in terminal output the agent ran (for example env, cat .env, cloud CLI output with tokens).
3. Rotate, in order of blast radius
- Crypto wallet private keys and seed phrases. If they were ever in a readable file, move funds to a new wallet created on a clean device. You can't rotate a private key; you replace the wallet.
- Cloud credentials (AWS, GCP, Azure keys), database URLs with passwords, payment keys (Stripe, Razorpay).
- AI API keys. Stolen model keys get resold fast; my LLMjacking guide covers the signs.
- GitHub tokens and SSH keys the agent could read.
- Everything else in the scanned
.envfiles.
After rotating, check provider logs for use of the old credentials since you started using the harness.
4. Ask DeepSeek to stop training on your data
The privacy policy offers an opt-out from training by email. If your team used the official models, send it from the account owner's address and keep the reply.
What this means for any AI coding agent
DeepSeek is the name in the headline, but the pattern applies to every agent: an agent that can read your project can send what it reads to whoever runs the model, plus anything else the tool's developer decided to collect. The question is never only "do I trust the model provider?" It's "what does this harness upload, by default, and to whom?"
The rule I'd put on the wall: an AI agent's context window is an outbound network connection, so never let it read anything you wouldn't email to the vendor.
Here is the checklist I'd apply this week to every coding agent a team uses, whether it's DeepSeek Harness, Claude Code, Cursor, Copilot or anything else:
- Keep live secrets out of agent workspaces. Use a secrets manager or
op run-style injection at run time, not plaintext.envfiles with production values. Development keys only, scoped and low-limit. - Never keep wallet keys or seed phrases on a development machine. Hardware wallets or a separate device. This one rule would have prevented the alleged losses.
- Read the data and telemetry docs before installing. Specifically: what is uploaded, is it on by default, does one opt-out cover all uploads, and what happens when you re-enable.
- Approve agents centrally. Keep a short allowlist of AI tools with known data settings, configured the same way on every machine. Shadow agents are the new shadow SaaS.
- Use enterprise or zero-retention terms where they exist, and prefer providers whose terms rule out training on your data.
- Run agents in a sandbox for sensitive repos. A container or VM with only the repo mounted and no access to your home directory, SSH keys or cloud credential files.
- Put a secret scanner in pre-commit and CI so that secrets that leak into code or logs are caught early. My AI agent security guide goes deeper on permissions and tool access.
What I'd do as a CTO
If someone on my team had used DeepSeek Harness with the official models, I'd treat it as an incident, not a curiosity. Not because the theft link is proven, but because the documented behavior alone means session contents, including file contents, left the machine. That is a data-handling event, and for a startup in fintech, healthcare or anything regulated, it may need to be recorded as one.
Then I'd use it as the trigger to fix the underlying problem: we let developers install agents with broad file access and never decided, as a company, what those agents are allowed to see. The fix is cheap. An approved-tools list, a sandbox pattern for sensitive repos, secrets injected at run time, and a one-page policy take a few days, and they also answer the AI section of your next enterprise security questionnaire. I'd also not overreact by banning AI coding tools. The productivity gain is real; the goal is to make sure the only thing they can leak is something you could afford to lose.
If you don't have someone senior to own AI tooling policy, that's a natural piece of work for a fractional CTO or a technical advisor, and it fits neatly into a startup security checklist.
FAQ
Is DeepSeek Harness safe to use?
It is an open-source tool from DeepSeek, and nothing shows it is malware. But by default it uploads a session log, which can include file contents and tool output, with every request to DeepSeek's official API. Treat it as safe only with the upload off, no live secrets in reach, and after reading its data settings.
How do I turn off the DeepSeek Harness session log?
In the app, go to Settings, General, Data management and switch off "Upload session log when using the official model API". In CLI or headless setups, set enabled: false on the session-log-deepseek plugin. The DSH_TELEMETRY_MODE=DISABLED variable does not stop the session log.
Did DeepSeek Harness steal crypto wallets?
That is not established. A developer suspects the default session-log upload after wallet keys stored in a local .env file were used to drain funds, and others have linked further losses. Nobody has shown how the keys reached an attacker, and DeepSeek has not been reported as breached.
What data does the DeepSeek Harness session log include?
Per DeepSeek's README, the session events since the last accepted batch, up to 8 MiB per request. Researchers report this can include prompts, model replies, tool calls and results, file contents the agent read, command output and your working directory path.
Does turning the upload off delete what was already recorded?
No. According to the package README, if you switch the upload back on, it resumes sending the unsent events, including those recorded while it was off. Keep it off, and treat earlier sessions as already sent.
Do other AI coding tools upload my code?
Every cloud-model agent sends the context it uses to the model provider; that's how it works. The differences are what else gets collected, whether it's on by default, retention, and whether it's used for training. Check each tool's data settings and prefer business terms with no training and short retention.
If you want help setting a sane AI coding-agent policy for your team, or working out what to rotate after an exposure like this, book a 30-minute call and we'll go through it together.
Sources
- deepseek-ai/deepseek-harness README (DeepSeek, GitHub)
- session-log-deepseek package README (DeepSeek, GitHub)
- ui-settings-session-log package README (DeepSeek, GitHub)
- DeepSeek Harness Privacy Policy (DeepSeek)
- Discussion #7725: dsh_session_log defaults to true (GitHub)
- DeepSeek Harness default data uploads raise concerns over $1M crypto theft (crypto.news)
- Founder Links DeepSeek Harness Plugin to Suspected $500,000 Losses (TokenPost)
- DeepSeek Harness Keeps Uploading Your Sessions After You Turn Telemetry Off (Trevor Lasn)
- DeepSeek Harness Uploads Tool Results and File Reads by Default (Rajesh Beri)
- Crypto.news reports suspected DeepSeek tool link to wallet key leak (AI.info)
- dsh-no-telemetry (ScarletKc, GitHub)
Written By
Kunal Vohra
Technical Co-Founder & Fractional CTO
I've co-founded 6+ startups across India, the UAE, and the US, spanning AI, Web3, fintech, and cybersecurity. I write about the technical and strategic decisions that determine whether a startup thrives or stalls.
Comments
Loading comments…