T01 · Skill Instruction Hijacking
- Location
scripts/build_md_prompt.py:17- Finding
Untrusted Input Is Directly Interpolated into Privileged Agent Instructions
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill is a focused Chinese banker-memo generator that reads a chosen raw-data folder and writes two report files, with manageable prompt-injection and path-scope caveats.
Install/use this only in a scoped project workspace. Provide trusted raw-data JSON snapshots, avoid adversarial filenames or path values, choose a dedicated output directory, and review the generated financial memo before relying on it.
scripts/build_md_prompt.py:17Untrusted Input Is Directly Interpolated into Privileged Agent Instructions
The skill instructs the agent to read from a caller-supplied raw-data directory and enumerate JSON inputs, but it does not declare an explicit tool/permission scope. In an agentic environment, missing scope boundaries can let the skill operate with broader file-read access than intended, increasing the chance of unintended data exposure if the path variables are manipulated or the runtime grants ambient filesystem access.
The framework mandates substantial Chinese-language output elements, including section content and terminology such as 300-500 字, 授信 / 投资建议, and 具体授信建议, but the skill does not state that language is configurable or user-selected. This can violate language/locale policy when a skill implicitly requires a specific language without explicit opt-in.
The instructions switch entirely into Chinese and direct the model to act as a PRC investment-banking analyst producing a Chinese memo, which effectively fixes the language/locale of the skill output. The file does not offer a user opt-in or alternative language choice, and no explicit policy justification for enforcing Chinese is stated.
This markdown file explicitly states that the skill writes analysis.md and data-provenance.md into {out_dir}/. Because this is a file-modifying behavior, the skill description should include a clear user warning or disclosure about overwriting or creating files in the destination directory.
No suspicious patterns detected.