T09 · Insecure Skill Coding Practices
- Location
SKILL.md:143- Finding
Untrusted Agent Requests Can Trigger Insufficiently Constrained Infrastructure Operations
- Content
View full analysis
; -- 2. Assess and update verdict UPDATE agent_requests SET verdict = 'approved', security_assessment = 'Low risk: standard package install on managed VM', resolved_at = NOW(), resolved_by = 'sysclaw' WHERE id = ; -- 3. Log to worklog INSERT INTO worklog (request_id, action, target, command, status) VALUES (, '', '', '', 'in_progress'); -- 4. Execute the action (SSH to target, run command, verify) -- 5. Update worklog with result UPDATE worklog SET status = 'completed', result = '', completed_at = NOW() WHERE id = ; -- 6. Write response notification back to agent INSERT INTO notifications (recipient, sender, related_request, message, urgency) VALUES ('jobhunter', 'sysclaw', , 'Request #5 DONE: cron installed and verified on MB-OpenClaw-01', 'normal'); -- 7. Mark sysclaw's notification as read UPDATE notifications SET read = TRUE WHERE id = ; ``` ```markdown ### Execution by Request Type | Request type | Action | |---|---| | `info` | SSH to target, run check, write result to worklog + notification | | `software` | SSH to target, install package, verify service running | | `config` | SSH to target, apply config change, verify | | `service` | SSH to target, restart/stop/start service, verify status | | `resource` | Create DB/user/allocation if SysClaw has access; escalate infrastructure requests | | `deployment` | SSH to target, deploy per request details, verify | | `access` | **Escalate to human operator** — never auto-approved | ``` ```markdown ## Cron Job Behavior The `sysclaw-notification-check` OpenClaw cron job ru ...[truncated 3964 chars]- Remediation
View remediation
