elegant-reports
Warn
Audited by Gen Agent Trust Hub on Sep 17, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONDATA_EXFILTRATIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The
generatePdfCurlfunction ingenerate.jsis vulnerable to shell command injection. It constructs acurlcommand string by interpolating theoutputPathvariable directly into a string that is then executed viachild_process.execSync. A maliciously crafted filename could escape the single quotes used in the command string to execute arbitrary shell commands on the host system. - [DATA_EXFILTRATION]: The skill transmits the content of reports to an external third-party API (
api.nutrient.io) to perform HTML-to-PDF conversion. While this behavior is disclosed in the skill's documentation, it involves sending potentially sensitive user data to a remote service, which represents a data exfiltration risk if the documents contain private information. - [INDIRECT_PROMPT_INJECTION]: The skill creates a surface for indirect prompt injection by reading and processing markdown files from the filesystem. If these files are provided by an untrusted source, they could contain instructions designed to influence the behavior of the agent during the generation process.
- Ingestion points: Markdown input files read using
fs.readFileSyncingenerate.js. - Boundary markers: No boundary markers or instructions are provided to the agent to treat document content as passive data.
- Capability inventory: The skill has the ability to execute shell commands (
execSync), write files to the disk (fs.writeFileSync), and perform network operations (axios,curl). - Sanitization: The markdown-to-HTML parser in
generate.jsperforms only minimal HTML escaping for code blocks and lacks comprehensive sanitization for the rest of the content.
Audit Metadata