pytest
Warn
Audited by Gen Agent Trust Hub on Sep 5, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONCOMMAND_EXECUTIONCREDENTIALS_UNSAFEINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [DYNAMIC_EXECUTION]: The main SKILL.md file demonstrates the use of the
eval()function within atest_evalexample to process parametrized input strings. The use ofeval()represents a significant security risk as it allows for the execution of arbitrary Python code. - [COMMAND_EXECUTION]: The
references/plugin-misc.mdfile documents thepytest-bg-processplugin, which allows for the execution of arbitrary background shell commands (e.g.,redis-server) defined via thebackground-cmdconfiguration or environment variables. - [CREDENTIALS_UNSAFE]: The
references/plugin-postgresql.mdreference contains code examples with hardcoded placeholder credentials, such aspassword="secret". While common in documentation, these present a risk of credential exposure if copied verbatim into production or shared environments. - [EXTERNAL_DOWNLOADS]: The
references/plugin-misc.mdfile documentspytest-venv, which provides an API for programmatically installing external packages from remote repositories during test execution viavenv.install(). - [INDIRECT_PROMPT_INJECTION]:
references/advanced-patterns.mdprovides implementation patterns for custom test collectors that process external data files (e.g., YAML) into test items. - Ingestion points:
pytest_collect_filereads from the local file system usingself.path.open(). - Boundary markers: No explicit boundary markers or instructions to ignore embedded commands are present in the processing logic.
- Capability inventory: The skill provides instructions for substantial system interaction, including background process management, browser automation via Playwright, and access to Google Cloud Secret Manager.
- Sanitization: While
yaml.safe_load()is used to prevent arbitrary object instantiation during parsing, the content of the data is directly used to generate test metadata and drive test logic without further sanitization.
Audit Metadata