kimi-ui-agent
Pass
Audited by Gen Agent Trust Hub on Jun 25, 2026
Risk Level: SAFECOMMAND_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The CLI interacts with the local environment by executing binaries such as
gitandbun. It mitigates shell injection risks by utilizing ashellQuoteutility to escape paths and aslugifyfunction to sanitize branch names and run identifiers. - [DATA_EXPOSURE]: The skill includes a proactive redaction system in
scripts/lib/redact.ts. This module uses regular expressions to identify and strip common credential formats (e.g., Moonshot API keys, Bearer tokens, and generic key/token patterns) from user-provided task descriptions before they are written to implementation artifacts or prompt files. - [PROMPT_INJECTION]: The skill manages indirect prompt injection risks by enforcing a human-in-the-loop workflow. It processes untrusted task descriptions as input but requires agents to first generate a
PLAN.mdwhich must be reviewed by the user. It also uses explicit boundary markers in the generatedKIMI_PROMPT.mdto scope the sub-agent's instructions. - [SAFE]: Extensive filesystem safety checks are implemented, including
resolveInsideto prevent directory traversal andassertNonSymlinkAncestorto reject writes through malicious symbolic links. All state is maintained in isolated directories underXDG_STATE_HOMEor project-local.agentsfolders with restricted file permissions (0o600).
Audit Metadata