integration-flow-testing

Warn

Audited by Gen Agent Trust Hub on Sep 28, 2026

Risk Level: MEDIUMDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [DYNAMIC_EXECUTION]: The script scripts/generate.py contains logic in _load_snapshot_programmatic that dynamically modifies the Python system path to include a directory based on the user's home path (~/.claude/skills/wiring-query/scripts) and imports a module named loader. This dynamic loading from a computed path is a security risk as it makes the skill's behavior dependent on external files that may be modified or compromised. \n- [INDIRECT_PROMPT_INJECTION]: The skill is vulnerable to indirect injection via the contract map it processes. \n
  • Ingestion points: The skill reads the contract-map.yaml file provided via the contract_map_path argument in generate_tests. \n
  • Boundary markers: No explicit boundary markers or directives are used when processing the contract map to prevent the agent from obeying embedded instructions. \n
  • Capability inventory: The skill has the capability to write .py (pytest) and .js (jest) files to the filesystem and create transition requests in the .ledger/requests/ directory. \n
  • Sanitization: The _render_integration_test_pytest function in scripts/generate.py interpolates endpoint and failure_mode values from the contract map into docstrings without escaping sequences like \"\"\". This allows an attacker to inject arbitrary code into the generated test files.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Sep 28, 2026, 12:52 PM