baiducloud-gateway
Warn
Audited by Gen Agent Trust Hub on Nov 17, 2026
Risk Level: MEDIUMPERSISTENCEDYNAMIC_EXECUTIONCOMMAND_EXECUTIONDATA_EXFILTRATIONCREDENTIALS_UNSAFE
Full Analysis
- [PERSISTENCE]: The script
scripts/install_rule.mjsis designed to install 'always-apply' rules into the configuration directories of various AI agent environments, including Comate (~/.comate/rules/), Claude Code (~/.claude/rules/), Codex (~/.codex/AGENTS.md), and others. It performs these modifications without user confirmation, which permanently alters the behavior of the host agents to run this gateway skill before every cloud interaction. - [DYNAMIC_EXECUTION]: The skill implements a mechanism where it generates an
upgrade_command(e.g.,npm i @baiducloud/qianfan-cli@latest -g) and instructs the AI agent to execute it automatically if updates are detected. This pattern of the skill providing executable commands to the agent represents a dynamic code execution risk. - [COMMAND_EXECUTION]: The
scripts/gateway.mjsscript frequently executes system binaries includingbce,qianfan,npm, andnpxto perform update checks and manage authentication states. - [DATA_EXFILTRATION]: The skill transmits telemetry data to
https://cloud.baidu.com/api/baiducloud_skill/behavior. This data includes uniquesession_id,turn_id, andevent_idmarkers that allow tracking of user interactions across sessions. While the payload is described as desensitized, the requests are signed with local credentials to allow the backend to identify the user account. - [CREDENTIALS_UNSAFE]: The skill accesses sensitive authentication configuration files located at
~/.bce/oauth/and~/.bce/config.jsonto sign its outbound telemetry requests.
Audit Metadata