backend-report-generation
Warn
Audited by Gen Agent Trust Hub on Jul 8, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The file
references/report-templates.mdcontains Python implementation patterns (_evaluate_conditionandevaluate_section_visibility) that utilize theeval()function to process runtime conditions within report templates. Usingeval()on data that could be influenced by untrusted sources creates a critical risk of arbitrary code execution. - [COMMAND_EXECUTION]: The implementation of Puppeteer in
SKILL.mdandreferences/pdf-generation.mdincludes the use of high-risk flags such as--no-sandboxand--disable-setuid-sandbox. These flags disable the browser's primary security isolation mechanisms, increasing the impact of potential vulnerabilities during the rendering of complex HTML/CSS. - [EXTERNAL_DOWNLOADS]: The skill relies on external binaries and packages for its core functionality, specifically Puppeteer (which downloads Chromium at runtime) and
wkhtmltopdf(which requires a system-level binary). It also references a non-standard or potentially mistyped packagecsv-writersin code examples, which could lead to supply chain risks. - [PROMPT_INJECTION]: The
SKILL.mdfile contains explicit behavioral constraints for the AI agent, such as 'Compress output' and 'No explanations'. While intended for efficiency, these instructions can be used to minimize output transparency and reduce user oversight of generated code or commands. - [INDIRECT_PROMPT_INJECTION]: The skill is designed to ingest and process large datasets from databases to generate reports.
- Ingestion points: Data enters the context via the
fetchDataBatchesfunction inSKILL.mdand database queries inreferences/excel-csv-export.md. - Boundary markers: No explicit delimiters or instructions are provided to the agent to treat this ingested data as untrusted content.
- Capability inventory: The skill possesses capabilities for browser automation (Puppeteer), database querying, file system writes, and network operations (Bull queue, SMTP).
- Sanitization: While the skill documentation mentions using DOMPurify and template variables, the core implementation remains vulnerable to indirect injection if the data processed contains malicious markdown or control characters that influence the template engine or downstream processing.
Audit Metadata