T09 · Insecure Skill Coding Practices
Error
- Location
hooks/beforeTaskExecute.ts:23- Finding
Local Code Execution Confirmation Can Be Bypassed
- Content
View full analysis
; } ``` ### Technical Analysis The local-code safety control can be bypassed through three related weaknesses: 1. **Fail-open intent filtering** The hook only protects tasks whose `intent` exactly matches one of eight hardcoded values. If the intent is absent, misspelled, renamed by the platform, or represented by another code-related intent, the function returns without requiring confirmation. The available `task.kind` property is also ignored. 2. **Substring-based confirmation** The code treats the task as confirmed whenever the configured phrase appears anywhere in the latest user message. This does not prov ...[truncated 2676 chars]- Remediation
View remediation
