api-test-pytest
Pass
Audited by Gen Agent Trust Hub on Nov 10, 2026
Risk Level: SAFEDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [DYNAMIC_EXECUTION]: The skill dynamically generates Python test scripts (
test_generated_api.py) from parsed API definitions and subsequently executes them using thepytestframework. This is the core functional purpose of the skill. - [INDIRECT_PROMPT_INJECTION]: The skill possesses an attack surface for indirect prompt injection as it ingests and parses untrusted external data formats (OpenAPI, Postman, Insomnia, Curl). It mitigates these risks through explicit instructions to the AI agent to avoid inventing missing data, to use environment variable placeholders for credentials, and by using Python's
repr()for safe string interpolation when generating the test code inscripts/generate_pytest_tests.py. - [COMMAND_EXECUTION]: Orchestration scripts such as
scripts/run.shexecute shell commands to parse input files, generate code, and trigger the test runner. These operations are scoped to the skill's internal templates and generated output files. - [EXTERNAL_DOWNLOADS]: Standard, well-known Python packages (
pytestandrequests) are listed with specific versions inscripts/templates/pytest/requirements.txtfor use in the generated automation environment.
Audit Metadata