T01 · Skill Instruction Hijacking
- Location
scripts/build_banker_prompt.py:7- Finding
Untrusted parameters and raw-data filenames are embedded directly into an executable agent prompt
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill has a legitimate CN banker-memo purpose, but it needs review because unvalidated filenames, paths, and parameters are embedded into a prompt sent to a main agent that can write files.
Install only if you intend to run a China-focused banker-memo workflow on raw-data you trust. Use a fresh output directory, avoid attacker-supplied filenames or JSON snapshots, and run the report agent with read access limited to the validated raw-data directory and write access limited to the chosen output directory.
scripts/build_banker_prompt.py:7Untrusted parameters and raw-data filenames are embedded directly into an executable agent prompt
Without declared permissions the skill's intent is opaque and cannot be validated.
The manifest description restricts use to CN companies and uses Chinese trigger phrases and output framing without any opt-in or alternative language/locale behavior. This is a natural-language locale constraint that appears mandatory rather than user-selectable.
The prompt content is written as a mandatory Chinese analyst persona and requires producing a Chinese investment memo for named Chinese audiences, but it does not offer any language or locale opt-in. Under the policy, forcing a specific language without user choice is a natural-language policy violation unless the constraint is explicitly justified.
The emitted prompt is entirely in Chinese and instructs the model to act as a China-focused investment banker for a Chinese listed company, which imposes a specific language/locale on downstream behavior. Under the stated policy, forcing a language without user choice or explicit opt-in is a natural-language policy concern.
The workflow instructs the agent to run commands that generate prompts, write deliverables, and compile outputs without an explicit warning or consent checkpoint about filesystem modifications. In an agentic environment, silent writes can overwrite existing work, create unexpected artifacts, or operate on attacker-influenced paths if raw_dir/out_dir are not tightly controlled.