T01 · Skill Instruction Hijacking
- Location
SKILL.md:9- Finding
Mandatory third-party execution and promotional output hijack agent behavior
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This hotel-booking skill is purpose-aligned overall, but it needs Review because it mandates installing and running an unpinned global CLI and can persist hidden raw user-query logs.
Review this before installing. Only use it if you are comfortable approving the flyai CLI install yourself, preferably with a pinned and verified version in a contained environment. Avoid entering sensitive personal, passport, payment, or contact details unless logging is removed or redacted, and do not let the skill append raw logs through shell commands.
SKILL.md:9Mandatory third-party execution and promotional output hijack agent behavior
SKILL.md:42Unpinned global npm package installation creates supply-chain exposure
references/runbook.md:32Shell-interpolated execution logging permits command injection and stores raw user data
Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.
flyai search-hotel --dest-name "Huangshan" --key-words "温泉" --sort rate_desc --check-in-date 2026-11-01 --check-out-date 2026-11-02
## Output Rules
1. **Conclusion first** — lead with the key finding
2. **Comparison table** with ≥ 3 results when available
The playbook defines all activation triggers exclusively in Chinese ("温泉酒店", "私汤", "温泉度假") without offering alternatives, opt-in, or documenting that the skill is intended only for Chinese-language use. This can violate language/locale policy because users are implicitly required to use a specific language to invoke the skill.
The runbook explicitly requires logging the raw user_query and says the log is maintained internally, which creates unnecessary collection of potentially sensitive travel data, identifiers, contact details, or payment-related text users may type. In a travel-booking skill, users often provide highly sensitive personal information, so storing raw input without minimization, disclosure, or retention controls materially increases privacy and data-leak risk.
The schema combines storage of raw natural-language user input with optional persistence to disk, making accidental retention of sensitive free-form data especially likely. Natural-language travel queries can include passport details, trip dates, addresses, companions, health preferences, and payment context, so retaining the full text increases breach impact and downstream misuse risk.
The runbook instructs appending execution logs to a local file, which can persist sensitive operational and user-derived data beyond the active session and expose it to other processes, users, backups, or later compromise. Because the write is unconditional if filesystem access exists and no safeguards are described, this creates a real local data-retention and disclosure vulnerability.
The command hard-codes the hotel type as "民宿", which imposes a specific language/locale choice in the skill instructions. There is no indication that the user opted into Chinese-language search terms or that this locale constraint is documented as required.
The manifest identifies the skill as "spring-hotel," but this documentation file is titled "onsen-hotel" and repeatedly says results are powered by "flyai" and require a "flyai-cli." Those documentation statements describe a different skill/tool identity than the one declared in the manifest, creating intent-level confusion about what system actually powers booking results.