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 the pytest framework. 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 in scripts/generate_pytest_tests.py.
  • [COMMAND_EXECUTION]: Orchestration scripts such as scripts/run.sh execute 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 (pytest and requests) are listed with specific versions in scripts/templates/pytest/requirements.txt for use in the generated automation environment.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 10, 2026, 12:54 AM