-
Notifications
You must be signed in to change notification settings - Fork 103
kimi engine: review pack travels via argv; adopt a private prompt input when the CLI supports one #193
Copy link
Copy link
Open
Labels
P2Normal priority bug or improvement with limited blast radius.Normal priority bug or improvement with limited blast radius.clawsweeper:needs-security-reviewClawSweeper marked this issue as needing security-sensitive review.ClawSweeper marked this issue as needing security-sensitive review.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:securityThis issue is about security boundaries, credentials, authz, sandboxing, or sensitive data.This issue is about security boundaries, credentials, authz, sandboxing, or sensitive data.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Description
Activity
Metadata
Metadata
Assignees
Labels
P2Normal priority bug or improvement with limited blast radius.Normal priority bug or improvement with limited blast radius.clawsweeper:needs-security-reviewClawSweeper marked this issue as needing security-sensitive review.ClawSweeper marked this issue as needing security-sensitive review.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:securityThis issue is about security boundaries, credentials, authz, sandboxing, or sensitive data.This issue is about security boundaries, credentials, authz, sandboxing, or sensitive data.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Type
Fields
Priority
None yet
Problem
The Kimi review engine passes the entire validated review pack as the value of
-p/--prompt(autoreviewrun_kimi, thecmd = [kimi_bin, "--prompt", prompt, ...]construction). Process command lines are observable by other local users/processes on multi-user hosts (ps eww,/proc/<pid>/cmdline), so every diff/dataset byte that is not a TruffleHog-detected credential is exposed for the duration of the Kimi run. SKILL.md documents the argv budget (120 KiB POSIX / 30 KiB Windows), so this is a known tradeoff — but it is weaker than every other engine's private-file/stdin transport.Constraint
Kimi Code CLI 0.31.1 offers no private prompt input for non-interactive runs:
kimi --helpshows only-p, --prompt <prompt>; there is no stdin mode, no prompt-file flag, and--agent-fileis the trusted agent definition, not a user-prompt channel (routing the untrusted pack through it would blur the trust boundary the isolation design depends on).Ask
When the Kimi CLI grows a private prompt path (stdin or file), switch the engine transport to it and drop the argv budgeting. Until then this issue records the accepted exposure: same-host process inspection during the run, on multi-user hosts, of non-credential review content (credentials remain blocked by the pre-send TruffleHog scan).
Flagged by ClawSweeper on openclaw/openclaw#130122 (mirror sync).