openclaw-model-switch
Warn
Audited by Gen Agent Trust Hub on Jul 17, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONDATA_EXFILTRATIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The
scripts/switch-model.pyscript executes the system commandopenclaw gateway restartto apply changes after modifying configuration files. - [COMMAND_EXECUTION]: The troubleshooting guide in
references/troubleshooting-model-config.mdprovides instructions to generate a Python script (/tmp/cap.py) and execute it vianohupto run a local echo server for intercepting outgoing network traffic. - [DATA_EXFILTRATION]: The skill has a high degree of access to sensitive data as its primary purpose is reading and writing
openclaw.jsonconfiguration files, which contain plaintext API keys and authentication tokens. The troubleshooting instructions also guide the user/agent to capture and display these headers, creating an exposure risk. - [PROMPT_INJECTION]: The skill exhibits an indirect prompt injection surface by ingesting and acting upon the contents of existing configuration files.
- Ingestion points: Reads from
~/.openclaw/openclaw.jsonand several mirror paths during the discovery phase. - Boundary markers: None; the skill relies on standard JSON parsing and does not use specific markers to distinguish between configuration data and potentially malicious instructions embedded in fields like model names or IDs.
- Capability inventory: File system write access (config modification), local command execution (
openclawCLI), and network probing capabilities (curl). - Sanitization: Uses standard
json.loadandjson.dumpfor file processing, which prevents syntax-based injection but does not validate the semantic content of the configuration data.
Audit Metadata