api-test-restassure
Pass
Audited by Gen Agent Trust Hub on Nov 10, 2026
Risk Level: SAFECOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill includes a shell script
scripts/run.shthat executespython3for parsing/generation andmvn testto execute the generated Java tests. This is the intended behavior for an automation tool. - [DYNAMIC_EXECUTION]: The script
scripts/generate_restassured_tests.pydynamically constructs a Java class file (GeneratedApiTest.java) based on input API definitions. The script employsjson.dumps()to escape user-provided strings (like paths and body content) before embedding them into the Java source code, which serves as a safeguard against basic code injection. - [INDIRECT_PROMPT_INJECTION]: The skill is designed to ingest and process untrusted external data formats such as OpenAPI, Swagger, Postman collections, and curl commands.
- Ingestion points:
scripts/parse_api_sources.pyreads various external file formats (JSON, YAML, WSDL, etc.) into the agent's context. - Boundary markers: The
SKILL.mdandprompts/api-test-restassure.mdprovide clear instructions to the agent to distinguish between confirmed facts and assumptions and to avoid inventing data. - Capability inventory: The skill has the capability to write files to the local filesystem and execute shell commands (
mvn,python3). - Sanitization: String literals from input data are escaped using JSON serialization in the generator script before being placed in the Java template.
- [CREDENTIALS_SAFE]: The skill explicitly enforces a policy against hardcoded secrets. The
SKILL.mdstates that authentication and keys must use placeholders or environment variables, andscripts/templates/restassured/src/test/resources/test.propertiescorrectly uses areplace-meplaceholder.
Audit Metadata