commit-message-generator
Pass
Audited by Gen Agent Trust Hub on Aug 4, 2026
Risk Level: SAFEPROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection because it ingests untrusted data (file names and diff content) from the local repository via
scripts/analyze-diff.py. An attacker could name a file in a way that attempts to influence the agent's behavior or trigger unintended command execution when the agent processes the file list. \n - Ingestion points: The
scripts/analyze-diff.pyscript reads file paths and status information directly from the git working tree viagit diffandgit ls-filescalls incollect_staged,collect_unstaged_tracked, andcollect_untrackedfunctions. \n - Boundary markers: The instructions in
SKILL.mdlack explicit delimiters or instructions to the agent to ignore embedded commands or treating the script's output as potentially malicious content. \n - Capability inventory: The skill requires the agent to use
git addandgit commitcommands, providing a mechanism for the agent to modify the repository based on the analyzed data. \n - Sanitization: There is no evidence of sanitization or escaping of file paths or diff content before they are presented to the agent. \n- [COMMAND_EXECUTION]: The skill uses a helper script,
scripts/analyze-diff.py, which executes shell commands viasubprocess.runto interact withgit. \n - The script uses
subprocess.runwith hardcoded lists of arguments (e.g.,['git', 'diff', '--staged', '--name-status']), which is a secure pattern for calling external binaries. \n - The agent is instructed to execute
git addandgit commitbased on the output, which are necessary for the skill's primary function but involve the construction and execution of shell commands.
Audit Metadata