review-code
Pass
Audited by Gen Agent Trust Hub on Nov 10, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTIONCREDENTIALS_UNSAFE
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill reviews code changes by passing diff output to an AI subagent. Malicious code comments or commit messages in the diff could be used to inject instructions aimed at misleading the subagent into suggesting harmful fixes or generating deceptive comments.
- Ingestion points:
SKILL.mdorchestrates the retrieval of code diffs into patch files (Step 1). - Boundary markers: Delimiters are used in the prompt template (
references/code-review-prompt.md), but there are no explicit instructions for the model to ignore or escape instructions contained within the diff content itself. - Capability inventory: The skill has the authority to modify the working directory (
--fix) and post comments to pull requests (--comment). - Sanitization:
references/finding-anchors.jsverifies the physical location of findings (line numbers), but the content of the suggestions is not sanitized for malicious logic. - [COMMAND_EXECUTION]: The workflow relies on shell commands (
git,gh,node,awk) and interpolates variables derived from user-provided targets like PR numbers and branch names. - Evidence:
SKILL.mdcontains bash snippets for resolving pull request bases and generating patches. Although helper scripts likereferences/pr-inline-comment.jsperform regex validation on PR numbers, the overall orchestration relies on the agent's safe construction of commands. - [CREDENTIAL_UNSAFE]: The skill handles sensitive credentials for Bitbucket, Jira, and GitHub, reading from environment variables and local files like
.envand.secrets/tooling.env. - Evidence:
references/bb-auth.jsandreferences/bitbucket-auth.shfacilitate the construction of authorization headers. - Mitigation: A sophisticated redaction system in
references/defer-mutation.jsidentifies and masks secrets (using environment sweeps and pattern matching) to prevent accidental exposure in logs and handover documentation.
Audit Metadata