api-contract-auditor
Warn
Audited by Gen Agent Trust Hub on Aug 3, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The validation script
scripts/validate.shis vulnerable to Python script injection. It interpolates the$SPEC_PATHshell variable directly into a single-quoted Python string literal within apython3 -ccommand. A maliciously crafted filename (e.g.,test.json' + __import__('os').system('whoami') + ') would escape the literal and execute arbitrary Python code. - [PROMPT_INJECTION]: The skill is designed to process untrusted external data (API specifications). This introduces an indirect prompt injection surface where instructions embedded in a specification's metadata or descriptions could manipulate agent behavior.
- Ingestion points: User-provided OpenAPI, GraphQL, or gRPC specification files as defined in
SKILL.md. - Boundary markers: None; the agent is instructed to review the full content of provided specifications without explicit isolation.
- Capability inventory: Subprocess execution via
scripts/validate.shand general analytical reasoning. - Sanitization: None; the validation script checks for file format but does not sanitize content for embedded instructions.
- [SAFE]: The
validate.shscript correctly utilizesyaml.safe_load()for YAML parsing, adhering to best practices to prevent YAML-based deserialization attacks.
Audit Metadata