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.sh that executes python3 for parsing/generation and mvn test to execute the generated Java tests. This is the intended behavior for an automation tool.
  • [DYNAMIC_EXECUTION]: The script scripts/generate_restassured_tests.py dynamically constructs a Java class file (GeneratedApiTest.java) based on input API definitions. The script employs json.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.py reads various external file formats (JSON, YAML, WSDL, etc.) into the agent's context.
  • Boundary markers: The SKILL.md and prompts/api-test-restassure.md provide 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.md states that authentication and keys must use placeholders or environment variables, and scripts/templates/restassured/src/test/resources/test.properties correctly uses a replace-me placeholder.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 10, 2026, 12:46 AM