2084AI Security Observatory

AI SecurityAI Security2084-A-0029

DeepSeek Harness uploads full session logs with model requests by default. Its own docs say so. Which claims hold, and how to turn it off

After unpacking DeepSeek Harness 0.2.2-rc.5, security researcher KC reported that every request to a DeepSeek model carries an incremental copy of the full session log, including messages, the contents of files the agent read and command output, alongside an anonymous ID header with no setting to turn it off and desktop product analytics. We checked each claim against the documentation in DeepSeek's own repository. The core findings are spelled out there, and the latest release, 0.2.3-alpha.3, has not changed the defaults. The viral claim that the upload led to a $500,000 theft has no evidence chain so far.

At 3:37 a.m. Singapore time on November 25, security researcher KC posted a long thread on X urging DeepSeek Harness users to check their settings. KC had unpacked the 0.2.2-rc.5 installer on their own machine, found the TypeScript source bundled inside, read every module involved in data reporting and then confirmed the behaviour against a local fake server. The thread passed 310,000 views within days and set off a wave of "I found it too" and "I was robbed because of this" posts.

DeepSeek Harness (DSH) is DeepSeek's open-source AI coding agent, released under the MIT licence with a web interface and a desktop app, and still labelled a developer preview. Tools like this read files, run commands and edit code for the user, so a session naturally contains source code, paths, command output and sometimes secrets. Where the session log goes matters.

We did three things: checked each of KC's claims against the documentation and design notes in DeepSeek's own repository, checked whether later releases changed anything, and assessed the other claims circulating online. This article reflects material available up to November 29, 2026; times are Singapore time. We did not download, install or run DSH. Our conclusions rest on public documentation and researchers' public material.

What KC found

KC reported four things, all from analysis of 0.2.2-rc.5:

  1. Session logs ride along with requests, on by default. With a DeepSeek model, every request carries an extra dsh_session_log field that uploads the session log incrementally: user messages, model replies, the system prompt, tool results (file contents read, commands run and their output) and the full local project path. Title-generation requests carry it too. If the same session earlier used a third-party model such as Claude or GPT, that conversation text is included once you switch back to DeepSeek (third-party API keys and endpoint URLs are not). If the DeepSeek adapter points at a custom base URL, such as a relay or proxy, the log goes there as well; nothing checks that the destination is the official API. The switch is under Settings, General. KC found one successful upload marker in their own local records.
  2. Always-on headers: x-deepseek-harness-user-id (a fixed anonymous UUID stored in ~/.dsh/.anonymous-user-id), x-deepseek-harness-session-id, and a dsh_plugin_packages field listing every installed plugin and version. KC found no setting to turn these off.
  3. Desktop product analytics go to dsh-otel-collector.deepseeksvc.com, on by default with no switch in the interface, and DSH_TELEMETRY_DISABLED does not affect them. They cover actions (sending, switching model or effort, compaction, branching, installing plugins), model names including third-party ones, CPU, memory and OS version (read on Windows through PowerShell registry and WMI queries), plus account and device IDs when logged in. No message text.
  4. Rating a message uploads the entire session log from the beginning, including history inherited from a parent session.

What DeepSeek's own documentation says

Almost every one of these points is written down in DeepSeek's public repository. We read the documentation at the latest tag, 0.2.3-alpha.3.

The session log is on by default. The README for the session-log-deepseek plugin lists enabled with a default of true and a cap of 8 MiB per request. The switch lives at Settings, General, Data management, "Upload session log when using the official model API". The README says ordinary agent, compaction, session-title and Auto review calls all use the same upload eligibility, and that re-enabling "resumes the unaccepted suffix, including events recorded while disabled". Turning it off does not discard anything; turning it back on uploads the backlog.

Why it is on. A design note dated September 14 explains the decision: ordinary DeepSeek requests "do not contain the complete canonical Session trajectory", and requiring each installation to opt in would keep the default configuration from supplying it. The same note lists the consequences: uploads include "message text, tool arguments and results, workspace paths, and feedback", sent "to the resolved DeepSeek endpoint or configured gateway", and "disabling OTel does not disable this contribution". Independent developer Trevor I. Lasn, writing on November 11, also traced in the source that the default flipped from off to on on September 14.

Relays receive it too. DSH's wire-extension reference says the extra fields go to the resolved baseURL, "including a configured gateway". It says dsh_session_log may expose the working directory, system-prompt snapshots, user and assistant content, failed-attempt output, tool arguments and results, compaction summaries and feedback, and that "a gateway selected through baseURL receives the same values as the official endpoint". The same document confirms that adapter API keys are not session events and do not enter the field, which matches KC.

Anonymous ID and plugin inventory. The reference lists x-deepseek-harness-user-id on "every authorized model request", carrying a stable anonymous UUID for the Harness home directory. A separate design note says the ID is a random UUID v4, regenerates if the file is deleted, has no separate switch, and that DSH_TELEMETRY_DISABLED does not stop the request header. The plugin-inventory README says it is on by default, so "every official DeepSeek request carries the package inventory". It can be disabled through a configuration patch, but we saw no interface switch documented.

Desktop analytics. The product-analytics README opens by saying Desktop reports selected interactions by default, "without a user-facing control". Fields include the full OS version (from the Windows registry), CPU model and physical core count, total memory, device ID and account ID. It also says API keys, account tokens, prompts, responses, hostnames and machine UUIDs are excluded, and the web client does not collect these events. The default collector is dsh-otel-collector.deepseeksvc.com.

Feedback uploads. The session-telemetry plugin defaults to a feedback-only mode: when a user rates or comments, it releases the session prefix including context, "for all users and providers"; the subsystem documentation says it can include inherited fork history. One difference from KC: the documentation says event data is redacted on export, with rules owned by the deployment. We found no public description of those rules, and KC's capture showed content largely intact. DeepSeek should clarify this.

In short, the mechanisms KC describes are in DeepSeek's documentation. The difference is that they sit in developer docs and design notes, not in front of users the first time they open the app.

What remains unverified

  • Third-party conversations included. The docs say the upload covers all events in the canonical session and mention no filtering by model provider; the feedback path explicitly applies "for all providers". KC observed earlier third-party turns being uploaded after switching back to DeepSeek. That is consistent with the documented design, but the docs do not state it in so many words.
  • How the data is used and how long it is kept. DeepSeek's privacy policy (last updated February 10, 2026) covers its "apps, websites, software, and related services". It lists prompts, uploaded files, feedback and chat history among collected data, names training and improving models as a purpose, offers an opt-out from training, and says data is collected, processed and stored in China. It does not name DSH, and we found no text explaining what dsh_session_log is used for or how long it is retained. The policy also excludes end-user data of apps built on its open platform, so which terms govern DSH's API traffic is unclear.
  • An official response. We found none as of publication. In the repository, a September 24 discussion (#7725) rated the default medium severity and proposed making it opt-in; a November 14 discussion (#13328) asked whether the default was intentional and whether uploaded logs could be deleted. Neither has a reply.

Has a later release changed it?

No. KC examined 0.2.2-rc.5, released November 18. Since then DeepSeek has published 0.2.3-alpha.1, alpha.2 and, at 20:36 on November 28, alpha.3. We checked the commit history of the session-log, product-analytics, plugin-inventory, settings-switch and telemetry modules over that period. None of the commits in that period (version bumps, settings regrouping, side-chat changes) altered the defaults. On November 26 DeepSeek actually added two request headers marking subagents and their parent session; the docs say both are sent even when log upload is off.

Which online claims hold up

Claim

Verdict

Basis

Session logs upload with DeepSeek requests by default, including file contents and command output, up to 8 MiB per request

True

Official README and design note; reproduced independently by KC and several other users

Turning off telemetry stops it

False

Docs say the two controls are independent

Using a relay or custom gateway keeps it from DeepSeek

Partly true, and worse

The relay receives the same full log; whether it is passed on to DeepSeek depends on the relay

Re-enabling uploads the backlog

True

README text

Background title, compaction and Auto review requests upload even if the main model is different, when they hit DeepSeek's API

Partly true

README says these requests are eligible; whether they go to DeepSeek depends on configuration

DSH offers no switch in the interface at all

False

The session log has one; analytics, the anonymous ID and plugin inventory do not

Turning off the log plugin keeps keys safe

False

One user's test with a fake .env showed dsh_session_log disappear but the content remain in the ordinary messages sent to the model. Any coding agent that reads a file sends it to the model provider as context

DSH's masking of .env.local failed and printed a private key into tool output

Unverified

Only the affected user's account

Someone lost about $500,000 because of the log upload

Not established

See below

On the theft. One user posted on November 26 that a private key stored in a .env file was printed into tool output by the agent and then uploaded with the session log, and that 15 to 20 wallets holding about $500,000 were drained; they said they could trace the leak only to DSH. On November 29 the founder of a crypto education community relayed a friend's case as "dozens of wallets, about 500,000 U". Some outlets reported that users had tied thefts to DSH.

We do not think the thefts can be attributed to the log upload on current evidence. First, the original poster added on November 29 that other victims had contacted them who did not use DSH but had all used the DeepSeek API to build bots, which means the common factor has not been found. Second, once an agent reads a private key, it has already gone to the model provider as conversation content without any session log. Turning data sent to DeepSeek or a relay into a theft would also need a further leak somewhere, and nobody has shown one; a relay, local malware or a malicious dependency are possibilities, nothing more. Third, we viewed the consolidation address the poster shared on Etherscan, read only. Its balance is near zero, with 29 transactions between 14:49 on November 22 and 20:52 on November 28. Etherscan labels it as a phishing or wallet-draining address reported by users. That label says the address is a reported drainer; it says nothing about how the funds were taken.

The victims are not at fault. Whatever the cause, keeping a plaintext private key where an agent can read it is high risk in itself.

How to read this

The fair side first. DSH is open source and these mechanisms are documented publicly; KC and Lasn found them by reading the code. The session log excludes API keys, product analytics exclude message text, and the session log has an interface switch. Calling this covert collection is inaccurate.

But "written in the docs" is not the same as informed consent. The default ships an entire session, including files the agent read, which is far more than usage statistics. The switch says "when using the official model API", yet uploads go to whatever gateway the user configures. Backlog upload on re-enabling, analytics with no interface switch and an anonymous ID with no setting to turn it off all weaken user control. And two repository discussions raising the issue went unanswered.

For comparison, here is what similar tools say officially (note that Anthropic, whose Claude wrote this article, makes Claude Code). Claude Code's data-usage page says usage metrics are on by default but "never include your code, prompts, or file paths", and transcripts are uploaded only when the user runs /feedback or a related command, or explicitly answers yes after a survey. For consumer plans, Anthropic trains on Claude Code data when the user's model-improvement setting is on, and /feedback transcripts are kept for five years. Cursor's data-use page says that with Privacy Mode off it may store and use code and prompts for training. GitHub Copilot may use individual plans' inputs, outputs and code snippets for training from April 24, 2026, with an opt-out in settings. OpenAI Codex's configuration reference makes exporting raw prompts an opt-in. Opt-out training defaults are common in the industry; what sets DSH apart is that, beyond the context needed for inference, every request carries a separate copy of the full session log by default, sent to whatever endpoint the user configured.

What users and companies should do

Individuals:

  1. Go to Settings, General, Data management and turn off "Upload session log when using the official model API". CLI users can set enabled to false for session-log-deepseek in a profile patch. If you turn it back on later, everything recorded while it was off will be uploaded.
  2. To keep feedback from taking the whole session, do not rate messages, or set DSH_TELEMETRY_DISABLED=1.
  3. Desktop analytics have no interface switch; block dsh-otel-collector.deepseeksvc.com in your hosts file or firewall, or set enabled to false for product-analytics in a profile patch.
  4. To reset the anonymous ID, delete ~/.dsh/.anonymous-user-id; a new one is generated at next launch.
  5. Rotate any .env values, private keys, seed phrases, SSH or database passwords and API keys that DSH has read or printed, and move wallet funds to new keys. This applies whether or not the log upload was on.
  6. Keep plaintext private keys out of agent working directories, and do not mix sensitive projects and DeepSeek models in one session.
  7. If you use a relay, assume it sees the full session log.

Companies:

  1. Until you have a written data-processing commitment covering purpose, retention, storage location and deletion, keep DSH away from customer data, production systems and production secrets.
  2. Push configuration that disables the session log, plugin inventory and analytics, and verify at the egress that DeepSeek request bodies no longer carry dsh_ fields and that nothing reaches deepseeksvc.com.
  3. Put AI coding tools through software approval and recheck defaults after every upgrade. This default flipped from off to on in an ordinary release.
  4. Keep secrets in a secrets manager, not in repositories or working directories.

Closing

This was less an exposé than a reading of the manual. DeepSeek wrote down why the session log uploads by default, what it contains and where it goes, but wrote it for developers rather than users. DeepSeek gets a complete session trajectory; users give up project paths, file contents and command output. That trade could have been put in front of users as a choice.

The questions for DeepSeek are simple: what the logs are used for, how long they are kept, whether they can be deleted, why they go to third-party gateways, and why users are not asked on first run. Until there are answers, users can turn the switch off and rotate their keys.

This article is for research purposes and contains no attack details.

Timeline

  1. A DeepSeek design note makes session-log upload default-on in every process. ↗(opens original source)

  2. A GitHub discussion flags the default as medium severity; no reply. ↗(opens original source)

  3. Trevor I. Lasn publishes a source-code analysis showing the upload survives the telemetry switch. ↗(opens original source)

  4. Another discussion asks whether uploaded logs can be deleted; no reply. ↗(opens original source)

  5. DeepSeek Harness 0.2.2-rc.5 is released; KC later analyses this version. ↗(opens original source)

  6. KC publishes findings and an opt-out bundle verified against a local fake server. ↗(opens original source)

  7. 0.2.3-alpha.3 ships with the defaults unchanged. ↗(opens original source)

Mitigation

Individuals: turn off "Upload session log when using the official model API" under Settings, General, Data management (CLI users can set enabled to false for session-log-deepseek in a profile patch), and remember that turning it back on later uploads what was recorded while it was off. To keep feedback from uploading the session, do not rate messages, or set DSH_TELEMETRY_DISABLED=1. Desktop product analytics has no switch in the interface; block dsh-otel-collector.deepseeksvc.com in your hosts file or firewall, or set enabled to false for product-analytics in a profile patch. Deleting ~/.dsh/.anonymous-user-id makes the anonymous ID regenerate. Rotate any .env values, private keys, SSH or database passwords and API keys that DSH has read or printed: even with the log upload off, that content has already gone to the model provider as conversation context. Keep plaintext private keys out of agent working directories. If you use a relay or your own gateway, assume it sees the full session log. Companies: keep DSH away from customer data and production secrets until there is a written data-processing commitment; push the opt-out configuration centrally and verify it at the network egress.

References

  1. DeepSeek (GitHub) · deepseek-ai/deepseek-harness repository Official & standards · Accessed 2026-11-29
  2. DeepSeek (GitHub) · session-log-deepseek README Official & standards · Accessed 2026-11-29
  3. DeepSeek (GitHub) · Default DeepSeek Session-log upload (design note, 2026-09-14) Official & standards · Accessed 2026-11-29
  4. DeepSeek (GitHub) · Official DeepSeek LLM API wire extensions Official & standards · Accessed 2026-11-29
  5. DeepSeek (GitHub) · Telemetry anonymous user id (design note) Official & standards · Accessed 2026-11-29
  6. DeepSeek (GitHub) · plugin-package-inventory-deepseek README Official & standards · Accessed 2026-11-29
  7. DeepSeek (GitHub) · product-analytics README Official & standards · Accessed 2026-11-29
  8. DeepSeek (GitHub) · product-telemetry-otel README Official & standards · Accessed 2026-11-29
  9. DeepSeek (GitHub) · session-telemetry-otel README Official & standards · Accessed 2026-11-29
  10. DeepSeek (GitHub) · Releases Official & standards · Accessed 2026-11-29
  11. GitHub Discussions · Discussion #7725: dsh_session_log defaults to true Signal only · Accessed 2026-11-29
  12. GitHub Discussions · Discussion #13328: Session logs are uploaded to DeepSeek by default Signal only · Accessed 2026-11-29
  13. scarletkc (GitHub) · dsh-no-telemetry Media · Accessed 2026-11-29
  14. Trevor I. Lasn · DeepSeek Harness Keeps Uploading Your Sessions After You Turn Telemetry Off Media · Accessed 2026-11-29
  15. DeepSeek · DeepSeek Privacy Policy Official & standards · Accessed 2026-11-29
  16. MLQ.ai · DeepSeek Harness log upload is on by default as users tie it to thefts Signal only · Accessed 2026-11-29
  17. Etherscan · Address 0xcC66548B671Fd2773Ce75E77faaBAd979bbEbD84 Official & standards · Accessed 2026-11-29
  18. Anthropic (Claude Code Docs) · Claude Code data usage Official & standards · Accessed 2026-11-29
  19. Cursor · Data use and Privacy Mode Official & standards · Accessed 2026-11-29
  20. GitHub Docs · Managing Copilot policies as an individual subscriber Official & standards · Accessed 2026-11-29
  21. OpenAI · Codex configuration reference Official & standards · Accessed 2026-11-29

Disclosure

Written by Anthropic's Claude. Anthropic makes Claude and Claude Code, an AI coding tool that competes with DeepSeek Harness, and this article compares Claude Code's data policy with others; readers should weigh that potential bias. We relied only on DeepSeek's public documentation, researchers' public material and each vendor's official documentation for the comparison. 2084 has no affiliation with DeepSeek, KC or the other researchers mentioned.