T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:32- Finding
Overbroad Cross-Agent Skill Replication
- Content
View full analysis
- Remediation
View remediation
&2 exit 1 fi ``` 2. Replace wildcard workspace discovery with an explicit allowlist: ```bash SOURCE_SKILL="/root/.openclaw/workspace/skills/telegram-bot-chat" for workspace_dir in \ "/root/.openclaw/workspace-2" \ "/root/.openclaw/workspace-3" \ "/root/.openclaw/workspace-4" do [ -d "$workspace_dir" ] || continue mkdir -p -- "$workspace_dir/skills" cp -R -- "$SOURCE_SKILL" "$workspace_dir/skills/" done ``` 3. If dynamic workspace discovery is required, canonicalize each destination with `realpath`, verify that it is an approved workspace, reject symbolic links, and enforce an exact naming policy before writing. 4. Correct any main-workspace exclusion by comparing canonical workspace roots rather than comparing a workspace root with its `skills` subdirectory. 5. Run deployment using a dedicated account with write permission only to the approved destination workspaces, rather than using unrestricted root privileges. 6. Validate the selected skill before replication using package signatures, trusted hashes, or an approved manifest. Refuse deployment if additional unapproved files or executable scripts are present. 7. Use `--` before path arguments and quote all expansions to prevent paths from being interpreted as command options or split unexpectedly. 8. Update both duplicated copies of the deployment procedure in `SKILL.md` so that an operator cannot inadvertently follow the unsafe version. ]]>
