qe-coverage-analysis
Warn
Audited by Gen Agent Trust Hub on Sep 18, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [DYNAMIC_EXECUTION]: The
SKILL.mdfile contains a 'Run History' section that instructs the agent to execute anode -eshell command. This template requires the agent to dynamically construct a JavaScript snippet by interpolating variables such asSTATEMENTS,BRANCHES, andGAPSdirectly into the code string. This practice of generating and executing code from potentially untrusted variables facilitates command injection or arbitrary code execution if those variables contain malicious payloads from manipulated coverage reports.\n- [INDIRECT_PROMPT_INJECTION]: The skill is designed to ingest and analyze data from external coverage reports (Istanbul, c8, lcov). Since these files are generated outside the trusted environment, they represent an attack surface where malicious content could be embedded to influence the agent's logic or exploit the dynamic execution vulnerability in the history logging step.\n - Ingestion points: External test coverage reports (Istanbul, c8, lcov) and source files specified in the
aqecommand arguments.\n - Boundary markers: There are no explicit delimiters or instructions defining how to distinguish trusted agent commands from untrusted report content.\n
- Capability inventory: The skill utilizes shell command execution via the
aqeCLI and dynamic JavaScript execution vianode -e.\n - Sanitization: The instructions do not define any validation, filtering, or escaping protocols for data extracted from external reports before it is processed or interpolated into scripts.\n- [COMMAND_EXECUTION]: The skill's workflow relies on the execution of shell commands, including a custom
aqeutility and thenoderuntime. While these tools are central to the skill's stated purpose of coverage analysis, their use in combination with unsanitized external data provides the primitive necessary for the higher-severity risks identified.
Audit Metadata