T09 · Insecure Skill Coding Practices
- Location
tests/run-evals.mjs:241- Finding
Project source and secret-bearing files may be transmitted to an external model without explicit disclosure consent
- Content
View full analysis
`--- ${path.relative(workspaceDir, s.path)} ---\n${s.content.slice(0, 3000)}`) .join("\n\n") // Build judge prompt — include examples if provided (few-shot) let questionBlock = grader.question if (grader.examples) { questionBlock += `\n\n## Examples\n${grader.examples}` } const judgePrompt = `You are evaluating code quality. Review the following source files and answer this question: ${questionBlock} Answer with exactly "YES" or "NO" on the first line, followed by a brief explanation. ${fileSummary}` ``` ```js try { const { stdout } = await $({ timeout: 60000, })`claude ${judgeArgs}` ``` Tool-enabled agent runs are executed non-interactively with broad capabilities: ```js async function runClaude(taskPrompt, workspaceDir, systemPrompt = null) { const args = [ "-p", taskPrompt, "--permission-mode", "dontAsk", "--no-session- ...[truncated 4458 chars]- Remediation
View remediation
