T09 · Insecure Skill Coding Practices
- Location
scripts/do_extract_and_write.sh:203- Finding
Tool-Enabled Main Agent Processes Untrusted Conversation Content
- Content
View full analysis
&1 > "$AI_OUTPUT_FILE" & ``` ### Technical Analysis The script directs the OpenClaw main agent to analyze a conversation file and then invoke Feishu document, table, and messaging tools. Conversation files contain untrusted user-controlled text, but the implementation does not establish a reliable separation between data from the conversation and instructions the agent should follow. There is no deterministic parser, tool allowlist enforced by the script, output schema validator, human approval step, or dedicated least-privileged extraction agent. Consequently, instructions embedded in a stored conversation can influence the agent while it has access to write-capable tools. The use of `--agent main` increases the exposure because the main agent may possess more tools and permissions than are necessary for memory extraction. The exact impact depends on the tools and OAuth permissions configured in the OpenClaw environment. ### Att ...[truncated 1364 chars]- Remediation
View remediation
