add-cucumber-tests
Pass
Audited by Gen Agent Trust Hub on Oct 26, 2026
Risk Level: SAFECOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONDATA_EXFILTRATION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill ingests untrusted data in the form of functional specifications to generate Gherkin feature files. These feature files are then executed in an environment with high-privilege capabilities.
- Ingestion points: User-provided functional specifications (SKILL.md, Step 1).
- Boundary markers: The instructions do not define clear boundary markers or sanitization requirements for the input specification to prevent embedded instructions from influencing the generated tests.
- Capability inventory: The skill can write files to the project (
output_inin ObjectSteps.java), read files from the classpath (load), access environment variables and system properties (_envand_propertiesproxies), execute shell commands via Maven/Gradle wrappers, and reflectively call Java methods based on Gherkin step text. - Sanitization: The
output_inmethod inObjectSteps.javaincludes a path normalization check to prevent directory traversal outside of the resource folder. - [DYNAMIC_EXECUTION]: The framework makes extensive use of dynamic execution patterns to facilitate BDD testing.
- Reflection:
ObjectSteps.javausesMethods.invokeUncheckedandMethods.findMethodto dynamically map Gherkin text to Java method calls at runtime. This allows the execution of any method available on objects within the test context. - Templating: The skill uses Handlebars (
handlebars.compileInline) for dynamic string interpolation and logic within feature files, providing a surface for template injection if inputs are not strictly controlled. - [COMMAND_EXECUTION]: The skill instructions (SKILL.md, Step 4) direct the agent to execute shell commands using project build tools (
./mvnwand./gradlew) to verify the environment and run tests. - [DATA_EXFILTRATION]:
ObjectSteps.javaprovides proxies (_envand_properties) that allow test scenarios to read and set system environment variables and properties. In a CI/CD or developer environment, this capability could be used to expose sensitive credentials if a malicious scenario is generated.
Audit Metadata