explore-code
Warn
Audited by Gen Agent Trust Hub on Sep 14, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The script
scripts/write_outputs.pyimplements dynamic module loading based on computed file paths. - The function
load_shared_moduleresolves the location of a script namedwrite_explore_bundle.pyby traversing parent directories (parents[3]andparents[2]). - It uses
importlib.utilto load and execute the script found at the calculated path. - This mechanism executes code from locations outside the skill's immediate directory, which can be risky if the environment's directory structure is not strictly controlled.
- [INDIRECT_PROMPT_INJECTION]: The skill's planning script ingests untrusted data from multiple sources.
- Ingestion points:
scripts/plan_code_changes.pyreads the contents of the target repository's source code and processes external JSON files provided via command-line arguments (--idea-card-json,--analysis-json,--variant-spec-json). - Boundary markers: There are no visible delimiters or guardrail instructions used when processing these external files to prevent embedded instructions from influencing the agent.
- Capability inventory: The skill identifies specific code blocks for modification and handles the execution of output-writing scripts.
- Sanitization: Data extracted from JSON payloads is interpolated into strings for rationale and summary reporting without escaping or validation against malicious instruction patterns.
Audit Metadata