forgejo-api
Pass
Audited by Gen Agent Trust Hub on Aug 15, 2026
Risk Level: SAFEEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: The script
scripts/refresh_forgejo_api_docs.pyis designed to download a Swagger/OpenAPI JSON specification from a remote URL provided via the--source-urlargument or theFORGEJO_SWAGGER_URLenvironment variable. This uses theurllib.request.urlopenmethod to fetch external data into the local environment. - [COMMAND_EXECUTION]: The skill provides numerous templates and instructions for the agent to construct and execute
curlcommands. These commands are intended to interact with a Forgejo instance and include sensitive operations such as creating repositories, managing Actions secrets, and performing administrative tasks via theSudoheader. - [INDIRECT_PROMPT_INJECTION]: The skill has a significant attack surface for indirect prompt injection as it ingests and processes untrusted external data (API specifications) to generate local documentation and influence agent behavior.
- Ingestion points:
scripts/refresh_forgejo_api_docs.pyfetches theswagger.v1.jsonfile from a remote host. - Boundary markers: The generated markdown files in
references/tags/andreferences/overview.mdlack explicit delimiters or instructions to ignore potentially malicious content embedded in the API summaries or descriptions. - Capability inventory: The skill allows the agent to generate and execute
curlcommands, write files to thereferences/directory, and query the local API snapshot usingscripts/query_forgejo_api.py. - Sanitization: The scripts perform standard JSON parsing and use regex-based slugifying for tag names, but they do not perform deep sanitization of the natural language fields (summaries, descriptions) within the API specification.
Audit Metadata