kata-research-phase
Fail
Audited by Gen Agent Trust Hub on Sep 18, 2026
Risk Level: HIGHCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADSDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill takes user input from
$ARGUMENTSand interpolates it into bash shell commands without sufficient sanitization. InSKILL.md, Step 1 usesgrep -A5 "Phase ${PHASE}:" .planning/ROADMAP.mdwhere${PHASE}can be controlled by a user to execute arbitrary shell commands (e.g., by providing1\"; id; #as the phase number). Similar patterns exist in Step 2 and Step 3 where the variable is used infind,ls, andcatcommands. - [INDIRECT_PROMPT_INJECTION]: The skill spawns a
kata-phase-researchersubagent that is explicitly instructed to useWebSearchandWebFetchto gather information from the internet. This untrusted content could contain malicious instructions designed to alter the subagent's research output or manipulate the planning process. - Ingestion points: External data enters the context through
WebSearchandWebFetchoperations as defined inreferences/phase-researcher-instructions.md. - Boundary markers: The instructions command the agent to produce a structured
RESEARCH.mdfile, but there are no boundary markers or instructions to isolate or treat external content as untrusted data during processing. - Capability inventory: The subagent has the capability to write research files to the project's
.planningdirectory and commit those changes to a git repository. - Sanitization: The skill relies on a soft "Verification Protocol" (asking the LLM to cross-reference sources) rather than technical sanitization or filtering of the ingested content.
- [EXTERNAL_DOWNLOADS]: The researcher subagent is instructed to download documentation and community patterns from various external sources using
WebFetchand search engines. - [DYNAMIC_EXECUTION]: The skill uses the
Task()function to dynamically generate prompts and spawn a subagent at runtime. It also executes a local Node.js scriptscripts/kata-lib.cjsto manage project configurations.
Recommendations
- AI detected serious security threats
Audit Metadata