generating-compliance-reports
Warn
Audited by Gen Agent Trust Hub on Sep 9, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONPRIVILEGE_ESCALATIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The utility script
scripts/generate_report.pycontains agenerate_scriptmethod that automates the creation of bash scripts (.shfiles) using content provided via the--contentargument. - [PRIVILEGE_ESCALATION]: Within
scripts/generate_report.py, thegenerate_scriptmethod explicitly grants executable permissions to dynamically created files usingfile_path.chmod(0o755), which can be used to prepare malicious payloads for execution. - [DYNAMIC_EXECUTION]: The skill supports runtime script generation where shell commands are assembled and written to the filesystem, providing a mechanism for executing arbitrary code generated during a session.
- [INDIRECT_PROMPT_INJECTION]: The skill instructions in
SKILL.mdrequire the agent to scan and process external codebase files, infrastructure configurations, and policy documents, which are untrusted sources. - Ingestion points: Codebase, infrastructure configs, and policy documents in
${CLAUDE_SKILL_DIR}/are scanned for evidence as per instruction step 3. - Boundary markers: There are no instructions providing delimiters or warnings to ignore embedded instructions within the scanned data.
- Capability inventory: The skill has file-writing capabilities and can generate executable scripts via
scripts/generate_report.py. - Sanitization: The skill lacks sanitization mechanisms for the data ingested during the scanning process before it is used to generate reports or scripts.
Audit Metadata