← All posts

DeepSeek Harness session log: how to turn off the upload

2026-11-30 · 4 min read

DeepSeek Harness (DSH), DeepSeek's agent harness, attaches a session log to every request it sends to DeepSeek's official model API, and the plugin that does it is on by default. To turn it off, open Settings, then General, then Data management, and switch off "Upload session log when using the official model API," or set enabled: false on the session-log-deepseek plugin in your config.

That log can include the contents of files the agent read, and this week that went from a privacy complaint to a suspected crypto theft.

The posts on X

Security researcher @ScarletKc posted a teardown of DSH version 0.2.2-rc.5 on November 24. KC unpacked the app's bundled source and watched its traffic on a test server. Every request to a DeepSeek model carried the session log: messages, the system prompt, tool results, contents of files the agent opened, and the local project path. KC also found that turns with other models in the same session went along, that a relay set as a custom endpoint got the log too, and that a separate telemetry feed has no switch in the UI.

On November 26, @wqw_lee wrote that his wallet had been drained. His private key was in a .env file. DSH's masking of .env.local failed, the key printed into tool output, and he suspects the upload carried it off. He estimated 15 to 20 affected wallets and about $500,000, and asked DeepSeek to put an off switch in the UI.

On Sunday, @0xAA_Science quoted Lee's post and spread the warning. crypto.news reports that Lee later put the total close to $1 million. All three posts are in Chinese, so I'm paraphrasing.

Nobody has proven the theft came through DSH. Lee calls it a suspicion, and I couldn't find a statement from DeepSeek as of Monday.

What DeepSeek's own docs say

DeepSeek documents the upload. The session-log README lists enabled with a default of true and says the shipped profiles load the plugin. It adds a dsh_session_log field to official DeepSeek API requests carrying "every complete canonical event" since the last upload, up to 8 MiB per request.

A GitHub discussion called that default a privacy problem back on September 24 and asked for it to be off or consent-based. Maintainers hadn't replied when I checked, and the README on the main branch still said true after the November 28 release.

Per the privacy policy, session log data is stored in the People's Republic of China, can be used to train DeepSeek's models, and is kept as long as you have an account.

What the log can carry Source
Your messages and the system prompt @ScarletKc's teardown
Tool output and contents of files the agent read @ScarletKc, and the README's "every complete canonical event"
The absolute path of your project folder GitHub discussion #7725
Turns with other models in the same session @ScarletKc
Up to 8 MiB per request The README

How to turn off the session log upload

  1. In the DSH web app, go to Settings, General, Data management and switch off "Upload session log when using the official model API." It saves immediately, though the README says the switch appears only when your host exposes the plugin.
  2. If you configure DSH by file, set enabled: false on the session-log-deepseek plugin.
  3. Leave it off. Per the README, turning it back on uploads everything recorded while it was off.
  4. Move keys, .env files and client documents out of any folder the agent can read. The switch only covers future requests.
  5. If DSH read a secret while the upload was on, assume it's exposed. Rotate the API key and move any crypto to a new wallet.
  6. To ask DeepSeek to delete what it already has, email the address in the privacy policy: harness-privacy@deepseek.com.

The switch doesn't stop everything. Two subagent headers still go out with the upload off, and KC says telemetry is a separate feed. The policy says DSH doesn't store input sent to a non-DeepSeek model, but KC found those turns still land in the log if the session later switches back to a DeepSeek model.

My read

The leak itself was mundane. An agent read a file with a secret in it, printed the secret, and a logging feature sent that output to a server. Claude Code, Codex and DSH all read your project folder, which is why we keep writing about what agents can reach, from macOS Full Disk Access to GGUF models with poisoned templates. DSH's mistake is the default. Uploading everything should be opt-in, especially when the policy allows training on it.

DeepSeek's models are still cheap, as our DeepSeek-V4.1-Flash-1017 post showed. A cheap model tells you nothing about the harness around it, though, so check both.

For a business, this goes for any agent. Before your team installs one, find out what it uploads and keep secrets out of the folders it can read. If you want a second set of eyes on the AI tools your team runs and what they can see, New Face Design's free process audit is a good place to start.

08 / Start here

Which of this can you use today?

Tell us what you use today and we'll reply within one business day with what it would take. Free, 20 minutes, no pitch deck.

Email

pgorski@newfacedesign.com

Phone

+1 (773) 627-2176

Based in

Chicago area

Working with clients everywhere

Skip the form: grab a 20 minute slot.

Open the calendar →