T09 · Insecure Skill Coding Practices
- Location
scripts/code-review-robust.sh:22- Finding
Untrusted PR content is reviewed by a privileged, stateful main agent
- Content
View full analysis
&1) || true ``` The `TASK` excerpt above is an English rendering of the original task text while preserving the security-relevant paths, endpoint, and instructions. ### Technical Analysis The script delegates review of contributor-controlled PR content to the OpenClaw `main` agent. The task directs that agent to retrieve the PR diff, reveals the local GitCode credential path, and directs it to write to a workspace report file. No control shown in the audited code: - Restricts the agent to a dedicated, least-privileged review profile. - Removes filesystem or network tools not required for analysis. - Treats instructions embedded in source code, comments, filenames, or diff text as untrusted data. - Prevents the agent from reading files other than the intended PR data. - Prevents secrets or unrelated workspace content from being included in the generated report. The session identifier is reused for all PRs in the same repository during a given day. Consequently, malicious content encountered while reviewing one PR can potentially influence ...[truncated 2140 chars]- Remediation
View remediation
