api-generator

Pass

Audited by Gen Agent Trust Hub on Nov 30, 2026

Risk Level: SAFECOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The skill executes bash and Python scripts to generate code templates. These scripts run locally on the host system to process user commands and output source code for various API frameworks. It also modifies the local filesystem by creating a directory at ~/.local/share/api-generator to store a history of executed commands in history.log.
  • [DYNAMIC_EXECUTION]: The skill uses Python heredocs within bash scripts to dynamically generate code templates at runtime based on provided arguments.
  • [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted input from the user (such as resource names and paths) and interpolates them directly into generated code snippets.
  • Ingestion points: Command-line arguments passed to scripts/apigen.sh and scripts/script.sh representing resource or field names.
  • Boundary markers: No delimiters or warnings are used to separate user input from the code templates.
  • Capability inventory: The skill can execute local scripts and write to the local filesystem (logs).
  • Sanitization: No input validation or escaping is performed on the arguments before they are used in Python .format() calls or shell echo statements, which could lead to malformed code generation if inputs contain injection characters.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 30, 2026, 03:47 PM