T01 · Skill Instruction Hijacking
- Location
references/orchestrator-cron.md:66- Finding
Autonomous worker command and instruction injection through untrusted project task content
- Content
View full analysis
/tmp/lrt-[PROJECT_SLUG]-worker.log 2>&1 & echo $! > $PID_FILE sleep 2 && kill -0 $(cat $PID_FILE) 2>/dev/null && echo "worker verified" || echo "WARNING: worker failed to start" The task prompt must include: - "Read [CONTEXT_FILE] and TODO.md for project context." - The specific task description copied from TODO.md. - "Run tests before committing. Fix failures before proceeding." - "Check off the completed item in TODO.md." - "Commit and push using the project's commit convention." - "Run: openclaw system event --text 'Done: [BRIEF_SUMMARY]' --mode now" ``` Related template: ```text You are working on [PROJECT_NAME]. Read [CONTEXT_FILE] and TODO.md for full context. YOUR TASK: [Paste the specific task description from TODO.md] ``` ### Technical Analysis The orchestrator reads task content from repository-controlled `TODO.md` and copies it into `[TASK_PROMPT]`. That prompt is then interpolated into a shell command inside single quotes: ```sh nohup [AGENT_COMMAND] '[TASK_PROMPT]' ``` No escaping, argument-array construction, content validation, or trust-boundary enforcement is specified. If task or context content contains a single quote followed by shell syntax, it can terminate the quoted argument and inject additional shell commands. The injected commands execute with the operating-system permissions and credentials of ...[truncated 2499 chars]- Remediation
View remediation
