T01 · Skill Instruction Hijacking
- Location
references/cron-setup.md:12- Finding
Untrusted Merge Request Content Is Loaded as Agent Instructions
- Content
View full analysis
b. Read review rules: {baseDir}/references/review-guidelines.md c. Check for custom rules: node {baseDir}/scripts/gitlab-api.js get-file .gitlab-review-prompt.md d. Review each file, skip lock/min/generated files e. For each issue, write JSON to a temp file first, then post inline comment via --file: node {baseDir}/scripts/gitlab-api.js post-comment --file /tmp/comment-N.json IMPORTANT: Never pass JSON directly on the command line! Always use the write tool to create a file, then pass it via --file. f. Post summary note: node {baseDir}/scripts/gitlab-api.js post-note ' g. ⚠️ CRITICAL: Immediately after posting the summary note for this MR, use the read tool to read {baseDir}/mr-reviewed.json, append this MR's record, then use the write tool to write the full file back. You MUST write back after EACH MR — never batch writes after reviewing all MRs. If the file doesn't exist, create it as an empty JSON object first. 4. Process all unreviewed MRs in this run. If no new MRs, reply NO_REPLY. 5. Do not ask for permission — execute directly." ``` The behavior is also declared in `SKILL.md:64-66`: ```markdown ## Review Rules - **Default**: [references/review-guidelines.md](references/review-guidelines.md) — severity levels, output form ...[truncated 2614 chars]- Remediation
View remediation
