T01 · Skill Instruction Hijacking
- Location
index.js:69- Finding
Untrusted Reviewed Code Can Hijack LLM Review Instructions
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This is a coherent AI code-review skill with no evidence of hidden execution, persistence, credential access, or destructive behavior, though users should treat submitted code and generated reports as sensitive.
Install only if you are comfortable sending reviewed code to whichever LLM implementation you configure. Do not submit proprietary code, secrets, or regulated data unless your LLM provider and logging environment are approved, and do not rely on the report as a sole security gate because source-code comments may influence LLM output.
index.js:69Untrusted Reviewed Code Can Hijack LLM Review Instructions
The skill sends user-supplied source code to an LLM via this.manager.coordinate(task) after embedding the full code into prompts, but there is no built-in disclosure, consent flow, or data-handling warning. This can expose proprietary code, secrets, or regulated data to an external model provider, especially in a code-review tool where users may submit sensitive repositories.
The example prints both the full source code under review and the generated review report directly to stdout, which can expose sensitive code, secrets embedded in code samples, or security findings to terminal logs, CI logs, or shared consoles. In this skill's context, the reviewed input is arbitrary user-supplied code, so the example normalizes potentially unsafe disclosure behavior even though it appears intended only as a demo.