Repository navigation
[Security][Privacy] dsh_session_log defaults to true — the full session event stream (incl. absolute cwd) rides on every DeepSeek protocol request #7725
zhangyan8216
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Verified on master @
46a7f68b(0.1.7-rc.1) on 2026-09-24 (introduced by PR #4183 /2389b65246; baseline audit @ddefc45f). Posting per the #1220 convention. Severity: Medium (CWE-359 / CWE-532).Problem
packages/session/session-log-deepseek/src/index.ts(L44-46):When enabled, the request contribution attaches, on every DeepSeek protocol request:
tool/resultfull data, approval gestures;defaultbranch (L92-103), unknown event types are passed through verbatim as opaque ignorable records.So the default posture flipped: every deployment that doesn't know this field exists sends its non-message event stream and local path metadata to whatever endpoint the protocol client is configured with — including third-party providers (custom baseURL, per #3792), not only api.deepseek.com.
Honest boundaries: the provider already receives the message bodies themselves; against the official endpoint the incremental exposure is the non-message events + cwd metadata.
Prior art (deliberately scoped)
/api/session.export+ FULL telemetry exports;Suggested fixes
false, or require explicit consent before the first send;defaultbranch should redact/drop unknown event types instead of passing them verbatim;All reactions