Skip to content

Checking your reading list…

Retry

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

Information Security
9 min read

DeepSeek Harness Data Upload Vulnerability Exposed; Developer Open-Sources Privacy Plugin to Block Telemetry

A developer reverse-engineered DeepSeek Harness 0.2.2-rc.5, discovering multiple hidden data upload channels including session logs, identity headers, and telemetry, then released an open-source plugin that disables telemetry modules and filters network requests to prevent sensitive data leakage.

Background: Suspected Wallet Theft Triggers Investigation

On November 26, a user on X (Lee) reported a cryptocurrency wallet theft involving an estimated 15–20 wallets and losses around $500,000. The user suspected that private keys stored in a local .env.local file were read by DeepSeek Harness (DSH) without proper sanitization, printed in tool output, and then uploaded via the default session-log upload mechanism. This claim has not been independently forensically verified, but it sparked widespread privacy concerns.

Reverse Engineering DSH 0.2.2-rc.5

On November 25, developer KC unpacked the DSH 0.2.2-rc.5 installer and, using a local mock server, captured network traffic. The analysis revealed multiple default-enabled data upload paths .

1. Session Log Upload ( dsh_session_log )

When calling DeepSeek's official models, DSH attaches a dsh_session_log field to requests. This field contains not only chat history (user messages, model replies, system prompts) but also file contents read by agents and command execution results . Notably, if a user switches from a third-party model (e.g., Claude, GPT) to a DeepSeek model within the same session, the prior conversation history may also be included in the upload. However, API keys and third-party endpoint addresses are not packaged.

If a custom API endpoint is configured for the DeepSeek adapter (e.g., a third-party proxy), session logs are sent to that address instead of the official DeepSeek API.

The session-log upload toggle does not delete logs; it only pauses transmission. Logs generated while disabled are retained and may be resent when the toggle is re-enabled. Forked sessions can also re-upload inherited history.

2. Identity Headers and Plugin Manifest

Every DeepSeek request includes two headers: x-deepseek-harness-user-id (anonymous user ID) and x-deepseek-harness-session-id (current session ID). Additionally, the request body carries a dsh_plugin_packages field listing installed plugin names and versions.

3. Desktop Telemetry

DSH records user actions such as sending messages, switching models, adjusting thinking intensity, compressing context, creating branch sessions, and installing/uninstalling plugins. Device information — CPU model, core count, memory size, OS version — is also collected. If the user is logged into a DeepSeek account, the account user_id and device_id are attached.

4. OpenTelemetry Feedback Upload

When a user clicks the message feedback button, DSH uploads the entire conversation via OpenTelemetry (OTLP). This channel operates independently of the session-log upload. The application provides no UI switch to disable it; the only way is setting the environment variable DSH_TELEMETRY_DISABLED.

Open-Source Protection Plugin: dsh-no-telemetry

To mitigate these issues, KC released the dsh-no-telemetry plugin (repository: ScarletKc/dsh-no-telemetry). The plugin implements a two-layer defense:

Layer 1: Bundle-Level Module Disabling

Using DSH's Bundle mechanism, the plugin disables the built-in modules responsible for data reporting: session-log upload, plugin-manifest reporting, OpenTelemetry feedback upload, and desktop telemetry. This consolidates multiple scattered reporting switches into a single configuration.

Layer 2: Host-Process Request Filter

Because future DSH versions might introduce new reporting fields or miss some requests, a second layer runs in the Host process. It intercepts outgoing network requests and:

Removes all headers matching x-deepseek-harness-*.

Strips all top-level dsh_* fields from request bodies.

Blocks any Fetch requests destined for *.deepseeksvc.com.

Thus, even if a reporting module remains active, identifying headers and log fields are filtered before the request leaves the machine.

Verification Script

The plugin includes a packet-capture verification script. Users can run a local mock server, compare traffic before and after plugin installation, and confirm that dsh_session_log, dsh_plugin_packages, and identity headers no longer appear while normal model requests continue to function.

Installation Steps

Open DeepSeek Harness → Plugins → Add Plugin → paste the repository URL ( ScarletKc/dsh-no-telemetry) and install.

Fully quit and restart DSH to activate the plugin.

In the Plugins list, ensure the dsh-no-telemetry toggle is enabled.

Optionally, go to Settings → General and keep Upload Session Log turned off.

Test Results

According to KC's published tests, after installing the plugin the original request fields ( dsh_session_log, dsh_plugin_packages, and related identity headers) are absent, while regular model inference requests remain unaffected.

Packet capture showing data upload paths
Packet capture showing data upload paths
Plugin installation UI
Plugin installation UI
Settings page with Upload Session Log toggle
Settings page with Upload Session Log toggle

For attribution, corrections or content rights, contactadmin@besthub.dev

Report an issue with this article

Discussion 0

Questions, practical examples and thoughtful responses.

Open full discussion