If any of your developers ran DeepSeek Harness against DeepSeek's own API with the shipped settings, assume every file the agent read in those sessions, .env files included, went to DeepSeek. The open-source coding agent attaches a session log to its model requests by default, and that log carries tool results, file contents and the absolute working directory. Turning the upload off is one config line. Recovering from it means finding the machines and rotating what they touched.
The trigger is a theft claim. On November 29, crypto.news reported that a user posting as "Lee" suspects a private key kept in a local environment configuration file reached DeepSeek through Harness, after losses first put at about $500,000 across 15 to 20 wallets climbed toward $1 million. The same report says Lee could trace only their own suspected exposure to the tool. Nobody has shown the key left through the session log. The upload itself is documented, on by default and two months old.
What Does the DeepSeek Harness Session Log Send?
The session log is a request field called dsh_session_log that carries the agent's full event stream to the model endpoint. The session-log-deepseek plugin README lists enabled as true, caps each request's log at 8 MiB, and states that "shipped profiles mount the plugin, so the default configuration registers the request field."
The project's API wire-extensions document, packaged in dsh-plugin-guide 0.3.33, spells out the exposure: unless disabled, the field "may expose the Session working directory, system-prompt snapshots, user and Assistant content," along with tool arguments and results, compaction summaries and feedback. Uploads are incremental. Each request sends the events since the last accepted watermark, so over a working day the server receives the whole session.
For a coding agent, tool results are the sensitive part. When the agent runs cat .env, greps a config directory or prints a failing test with a connection string in it, that output is a tool result. The security researcher ScarletKc, as summarised by crypto.news, found Harness transmitting conversation histories, system prompts, file contents retrieved by its tools, command results and local project directory information. The report also relays a claim that turns run on Claude or GPT models inside the same session could be included if the user switched back to DeepSeek. That claim rests on one researcher's findings. Treat it as unconfirmed.
Two more details widen the exposure:
- Custom endpoints get the log too. The wire document says the adapter sends the additions to its resolved
baseURL, and "a gateway selected throughbaseURLreceives the same values as the official endpoint." Teams that route Harness through an internal or third-party gateway are copying session logs to that gateway's operator. - Identity headers can go out regardless. The plugin README notes that
enabled"controls only the log field, so both headers are sent while upload is disabled." It sends them only for subagent sessions. The wire document lists those asx-deepseek-harness-user-idandx-deepseek-harness-session-id.
The wire document describes format and delivery. It says nothing about how long DeepSeek keeps the field or what it is used for.
How Long Has the Default Been Known?
Users reported it publicly at least two months ago, and no maintainer has replied. Discussion #7725, posted September 24, is titled "dsh_session_log defaults to true — the full session event stream (incl. absolute cwd) rides on every DeepSeek protocol request." The author verified it on 0.1.7-rc.1, traced it to the line enabled: z.boolean().default(true), rated it medium severity under CWE-359 and CWE-532, and asked for a false default or explicit consent before the first send. As of November 30 the thread shows zero replies.
An earlier report covered a neighbouring path. Discussion #4100, from August 23, says the telemetry exporter's FULL mode ships prompts, tool results and error text with no redaction, and that in FEEDBACK_ONLY mode one /feedback command releases the entire session prefix. That post also notes telemetry defaults to disabled and no shipped profile mounts the backend, which is the opposite of how the session log ships. crypto.news adds that another contributor raised similar concerns on November 14 using 0.2.2-rc.3.
An independent test put numbers on it. Creative AI News ran build 0.2.0-rc.2 against a local mock endpoint with the prompt "Say hi." in an empty folder. The session log alone was 26.2 KB, and the full request was 55.1 KB on the DeepSeek route against 28.9 KB with the switch off. Setting DSH_TELEMETRY_MODE=DISABLED did not remove the log. Only the session-log switch did, so a team that set the telemetry variable and nothing else is still uploading.
The newest release on the releases page, v0.2.3-alpha.3 on November 28, is a pre-release, and the visible notes do not mention changing the default. Adoption is wide: the repository is MIT-licensed and showed 289.2k stars on November 30.
Is the Theft Claim Proof of a Leak?
No. It shows a plausible path and nothing more, and DeepSeek's side deserves its strongest statement. The upload is documented in the project's own README, a visible switch exists under Settings, General, Data management ("Upload session log when using the official model API", per the settings README), and the code is MIT-licensed and open to audit. A private key sitting in a plaintext .env file is readable by every extension, package script and agent on that machine. Any of them could have been the leak.
Your security team still has work to do, because the enterprise exposure doesn't depend on the theft. What matters is whether proprietary code, customer data and credentials from your repositories went to a third-party model provider without a contract covering it. With a default-on upload, the answer for any developer who ran the shipped configuration against DeepSeek's API is yes, unless you can show otherwise.
In September we covered how ZCode packed whole git histories, deleted secrets and all, and in October how Qwen3.8-Flash-Next tried to PUT a file to Beijing. Each time the fix was the same: inventory, rotate, control egress. The harness decides what leaves the machine, which is why harness design changes outcomes as much as the model does.
How to Turn It Off, and Why Config Alone Will Not Hold
Disable the plugin, then enforce at the network, because a developer's local settings win. The README's own control is enabled: false on session-log-deepseek. Creative AI News describes the CLI form as a two-line patch file passed with --patch: an entry with id: session-log-deepseek and config: enabled: false. The desktop and web clients expose the same switch in Settings.
Three caveats from the plugin README make a config-only fix weak:
- User overrides win. The README says "home patches and command-line overlays retain precedence." Any developer can override a centrally pushed profile.
- Re-enabling replays the backlog. "Re-enabling resumes the unaccepted suffix, including events recorded while disabled." A developer who turns the switch off, works for a week, then turns it back on uploads that week.
- Headers still go out. In subagent sessions, user and session IDs travel either way.
So the control that holds is egress. If DeepSeek's API is not an approved processor for your source code, block it at the proxy for developer machines and CI runners. If it is approved, route it through a gateway you operate, and remember the wire document says that gateway receives the session log too.
What to Do About DeepSeek Harness
This Week:
- Find the installs. Query your EDR and software inventory for the
@deepseek-ai/dshnpm package, the desktop app and adshbinary on developer laptops and build hosts. Pull proxy logs for DeepSeek API traffic from those machines to learn which installs actually sent requests. - Rotate what those sessions could read. For every machine that sent traffic, list the repositories and directories the agent ran in and rotate the secrets present there:
.envvalues, cloud keys, database URLs, signing keys, deploy tokens. The OWASP Secrets Management Cheat Sheet puts the reason plainly: rotate "so that any stolen credentials will only work for a short time." - Ship the off-switch and tell people why. Push the
session-log-deepseekenabled: falsepatch, and tell developers not to re-enable it, since the README says re-enabling uploads the backlog.
This Month:
- Write an approved-harness list. Name the coding agents allowed on machines with source access, and for each one record what it uploads, where, by default, and the setting that stops it. The same audit applies to Codex, which runs stdio MCP servers outside its sandbox by default, and to Cursor and Codex generally.
- Get secrets out of plaintext files in repo roots. Any agent that can
cata file can upload it. Move developer secrets into a manager the agent cannot read without a prompt. - Check your gateways. If any team routes coding agents through a gateway or reseller, confirm what that operator logs. Dragos found prompt leaks at inference providers using canary tokens, and you can run the same test.
Before Your Next AI Vendor Review:
- Add "what does the client upload by default" to the questionnaire, separate from the model provider's retention terms. Our earlier piece on DeepSeek's search API storing data in China looked at the provider side. This incident sits on the client side, and most questionnaires don't ask about it.
The Bottom Line
Coding agents are now the most privileged software on a developer's laptop: they read every file in the working tree, run arbitrary commands and talk to an outside server on every turn. Browser extensions went through the same cycle, broad permissions and quiet data collection first, allowlists and egress policy later. DeepSeek Harness is the agent-era version of that problem, and the controls carry over directly.
Block or approve DeepSeek's API at the proxy, push enabled: false, and rotate the secrets on every machine that sent traffic.
Continue Reading
- ZCode Packed Whole Git Histories, Deleted Secrets and All
- Qwen3.8-Flash-Next Tried to PUT a File to Beijing, Cohere Says
- Codex Runs Stdio MCP Servers Outside Its Sandbox by Default
- Rotate OpenRouter Secrets After Dragos Finds Prompt Leaks
- Hugging Face GGUF Templates Told Agents to Download and Run Scripts
- DeepSeek Search API Costs Less Than Tavily, Stores Data in China
