flaggems-pr-review-flagos
Pass
Audited by Gen Agent Trust Hub on Jul 18, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: The skill executes shell commands using
subprocess.runin its internal scripts (fetch_pr_diff.py,review_operator.py, andpost_review.py) to interact withgitand thegh(GitHub CLI) tool. All executions use list-based arguments, avoiding shell interpolation and minimizing the risk of command injection. - [EXTERNAL_DOWNLOADS]: Pull Request diffs and file contents are downloaded from GitHub via the
ghCLI. These operations target a well-known technology service and are necessary for the skill's primary function of code review. - [DATA_EXFILTRATION]: While the skill accesses file contents and handles a GitHub token (
GH_TOKEN), no data is sent to external or untrusted domains. All network communication is restricted to the GitHub API via official tooling. - [CREDENTIALS_UNSAFE]: The skill correctly manages authentication by requiring the user to set the
GH_TOKENas an environment variable or authenticate viagh auth login. No sensitive keys are hardcoded in the skill's files. - [PROMPT_INJECTION]: The instructions in
SKILL.mdare descriptive and procedural, focusing on the environment validation and review workflow. There are no attempts to override system behavior or bypass safety guardrails. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted code content from external contributors' PRs. However, the core analysis is performed using Python's
astmodule and regular expressions within localized scripts, rather than directly prompting the LLM with raw, untrusted code strings, which mitigates the risk of indirect injection.
Audit Metadata