DeepSeek Harness Uploads Tool Results and File Reads by Default

DeepSeek Harness attaches a session log with tool results, file contents and the working directory to DeepSeek API requests by default. A wallet-theft claim is unproven, but the upload is documented: find the installs, turn it off and rotate secrets.

By Rajesh Beri·November 30, 2026·9 min read
Share:
A developer's laptop on a desk with a terminal window open and a small plaintext .env file visible beside it, a network cable running from the laptop to a distant server rack, no readable text or logos.

Illustration generated using AI

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:

  1. Custom endpoints get the log too. The wire document says the adapter sends the additions to its resolved baseURL, and "a gateway selected through baseURL receives 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.
  2. 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 as x-deepseek-harness-user-id and x-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:

  1. User overrides win. The README says "home patches and command-line overlays retain precedence." Any developer can override a centrally pushed profile.
  2. 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.
  3. 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:

  1. Find the installs. Query your EDR and software inventory for the @deepseek-ai/dsh npm package, the desktop app and a dsh binary on developer laptops and build hosts. Pull proxy logs for DeepSeek API traffic from those machines to learn which installs actually sent requests.
  2. 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: .env values, 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."
  3. Ship the off-switch and tell people why. Push the session-log-deepseek enabled: false patch, and tell developers not to re-enable it, since the README says re-enabling uploads the backlog.

This Month:

  1. 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.
  2. Get secrets out of plaintext files in repo roots. Any agent that can cat a file can upload it. Move developer secrets into a manager the agent cannot read without a prompt.
  3. 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:

  1. 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

Share:

Frequently Asked Questions

Does DeepSeek Harness upload session logs by default?

Yes. The session-log-deepseek plugin README lists enabled as true, caps each request's log at 8 MiB, and says shipped profiles mount the plugin, so the dsh_session_log field rides on DeepSeek API requests unless you disable it.

What does the DeepSeek Harness session log contain?

Per the project's wire-extensions doc, it may expose the session working directory, system-prompt snapshots, user and assistant content, tool arguments and results, compaction summaries and feedback. For a coding agent, tool results include file contents and command output.

How do I turn off the DeepSeek Harness session log upload?

Set enabled: false on the session-log-deepseek plugin, via a --patch file or Settings, General, Data management. Do not re-enable it later: the README says re-enabling uploads events recorded while it was off. In subagent sessions, identity headers are sent either way.

Did DeepSeek Harness cause the reported crypto wallet theft?

Unproven. crypto.news reported on November 29, 2026 that a user suspects a private key in a local environment configuration file reached DeepSeek through Harness, with losses near $1 million. The user could trace only their own suspected exposure, and nobody has shown the key left through the session log.

Does setting DSH_TELEMETRY_MODE=DISABLED stop the session log?

No. In Creative AI News's test of build 0.2.0-rc.2, setting DSH_TELEMETRY_MODE=DISABLED left the session log in place. Only the session-log switch removed it.

Newsletter

More on Models & LLMs, every Sunday

The week's enterprise AI news, Models & LLMs included, in one Sunday email.

Weekly, free. Unsubscribe any time. Privacy

Latest Articles

View All →