Skip to content

kimi engine: review pack travels via argv; adopt a private prompt input when the CLI supports one #193

Description

@steipete

Problem

The Kimi review engine passes the entire validated review pack as the value of -p/--prompt (autoreview run_kimi, the cmd = [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 --help shows only -p, --prompt <prompt>; there is no stdin mode, no prompt-file flag, and --agent-file is 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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal priority bug or improvement with limited blast radius.clawsweeper:needs-security-reviewClawSweeper 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:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:securityThis 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.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions