provider-switch
Pass
Audited by Gen Agent Trust Hub on Nov 30, 2026
Risk Level: SAFECOMMAND_EXECUTIONDATA_EXFILTRATIONPERSISTENCEINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill executes local shell scripts (
scripts/check-status.sh,scripts/detect-mode.sh,scripts/read-secret.sh,scripts/write-alias.sh,scripts/verify-providers.sh) and a Python helper (scripts/provider-alias.py) to manage shell configuration. It also invokescurlto communicate with API provider endpoints.\n- [DATA_EXFILTRATION]: It accesses and modifies the user's shell profile (~/.zshrc) and reads API keys from environment variables or local files (e.g., ~/.claude-PRV.key). It transmits these keys to authorized provider endpoints (DeepSeek, Z.ai/GLM, Qwen, MiniMax, OpenRouter) to verify connectivity.\n- [PERSISTENCE]: The skill establishes persistent shell aliases by appending configuration blocks to the user's ~/.zshrc file, allowing custom Claude Code environments to be launched in future sessions.\n- [INDIRECT_PROMPT_INJECTION]: The skill exhibits an attack surface for indirect prompt injection as it ingests external model metadata and user-provided model identifiers to construct shell aliases. It implements mitigations including regex validation and structured data processing to prevent malicious data from influencing generated commands.\n- [DYNAMIC_EXECUTION]: It generates shell alias definitions from fixed templates and writes them to the user's shell configuration file, subsequently verifying them by sourcing the profile in a new shell instance.
Audit Metadata