api-contract-validator
Pass
Audited by Gen Agent Trust Hub on Sep 22, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill instructions and provided code samples facilitate the ingestion and processing of external, untrusted data from API responses and OpenAPI specifications.
- Ingestion points: Data is ingested via
loadOpenAPISpecandloadJSONSchemainschema-loader.tsfrom the file system, and through API response bodies invalidate-responses.spec.tsandschema-validation.spec.tsfrom remote network endpoints. - Boundary markers: The skill does not define specific boundary markers or instructions to the agent to disregard potential instructions embedded within the API response data or specification files.
- Capability inventory: The skill's environment includes file system read access (
fs.readFileSync) and network request capabilities via Playwright and REST Assured. - Sanitization: The skill employs the
Ajvlibrary for schema validation, which enforces that ingested data matches a predefined structural contract, providing a layer of validation against malformed payloads. - [DYNAMIC_EXECUTION]: The skill uses the
Ajvlibrary to validate data against JSON schemas, which involves runtime code generation. - Evidence: The
validateAgainstSchemafunction incontract-helpers.tscallsajv.compile(schema), which dynamically generates validation functions from schema definitions to perform checks at runtime.
Audit Metadata