report-skill-builder
Pass
Audited by Gen Agent Trust Hub on Aug 16, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: The skill invokes external processes via
subprocess.runto perform its core functions securely. Inscripts/new_report_skill.py, it executes a validator script to verify the report contract before generation. Inassets/run_report.py, it utilizes thedatabricksCLI to run SQL statements against a warehouse. To prevent command injection in generated reports, the tool includes asafe_tokenfunction that rejects inputs containing backticks, dollar signs, or backslashes. - [EXTERNAL_DOWNLOADS]: The generated report template (
assets/report-template.html) references the Apache ECharts library fromunpkg.com, which is a well-known CDN for JavaScript packages. This allows reports to render interactive visualizations while adhering to a strict Content Security Policy that blocks unauthorized network connections. - [INDIRECT_PROMPT_INJECTION]: The skill architecture creates an ingestion point for external data from databases which is then summarized by the agent. To mitigate risks, the system implements mandatory HTML escaping in
assets/render_report.pyfor all database content and AI-generated summaries, and provides specific instructions to the model to ground its summaries in the provided data. - [SAFE]: The skill implements a robust integrity protection mechanism using a
contract.manifest.jsonfile. Theverify_manifestfunction in the report runner calculates SHA-256 hashes of the SQL queries and refuses to execute if the files have drifted from the generated state, protecting against unauthorized modifications to the report logic.
Audit Metadata