senior-backend
Fail
Audited by Gen Agent Trust Hub on Sep 7, 2026
Risk Level: HIGHDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The
scripts/api_scaffolder.pyscript generates Express.js route handlers by directly interpolating paths and methods from an OpenAPI specification into string templates. Because these values are not properly escaped, a malicious specification can include sequences (e.g., closing quotes and semicolons) to inject and execute arbitrary code within the generated files. This poses a high risk if an agent or developer scaffolds code from an untrusted specification and then executes the resulting application. - [INDIRECT_PROMPT_INJECTION]: The skill provides tools (
api_scaffolder.pyanddatabase_migration_tool.py) that ingest potentially untrusted external files such as OpenAPI specs and SQL schemas. These ingestion points allow for indirect prompt injection, where malicious instructions or payloads within the data files can influence the generated code or system analysis without direct user interaction. - Ingestion points:
scripts/api_scaffolder.py(OpenAPI specs) andscripts/database_migration_tool.py(SQL schema files). - Boundary markers: The script templates do not use boundary markers or delimiters to isolate untrusted input from the generated code structure.
- Capability inventory:
api_scaffolder.pyhas file-writing capabilities;api_load_tester.pycan perform network requests. - Sanitization: Sanitization is limited to basic regex for identifiers and does not prevent code injection in URL paths or other schema-derived fields.
Recommendations
- AI detected serious security threats
Audit Metadata