github-pr-workflow
Fail
Audited by Gen Agent Trust Hub on Jun 29, 2026
Risk Level: HIGHCREDENTIALS_UNSAFEDATA_EXFILTRATIONPROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [CREDENTIALS_UNSAFE]: The skill attempts to automatically harvest GitHub authentication tokens from the local file system. It specifically targets the
~/.git-credentialsfile to extract plaintext credentials if theGITHUB_TOKENenvironment variable is not set.\n - Evidence: In
SKILL.md, the commandGITHUB_TOKEN=$(grep "github.com" ~/.git-credentials 2>/dev/null | head -1 | sed 's|https://[^:]*:\([^@]*\)@.*|\1|')is used to scrape tokens.\n- [DATA_EXFILTRATION]: Credentials harvested from local files are automatically transmitted in the headers ofcurlrequests to the GitHub API. While GitHub is a well-known service, the automated collection and transmission of local secrets is a high-risk pattern.\n - Evidence: The
$GITHUB_TOKENvariable is used in multiple API calls tohttps://api.github.comacrossSKILL.mdandreferences/ci-troubleshooting.md.\n- [PROMPT_INJECTION]: The skill is vulnerable to indirect prompt injection because it downloads, extracts, and reads external CI log files without any sanitization or boundary markers.\n - Ingestion points: The skill downloads logs to
/tmp/ci-logs.zip, extracts them, and reads the content of all.txtfiles inSKILL.mdandreferences/ci-troubleshooting.md.\n - Boundary markers: None. No delimiters or instructions are used to prevent the agent from following malicious commands potentially embedded in the log content.\n
- Capability inventory: The agent has the ability to execute git commands (commit, push, delete), make authenticated API calls (merge, create PRs), and modify local files.\n
- Sanitization: No sanitization or validation is performed on the ingested log data before it is read into the context.\n- [COMMAND_EXECUTION]: The skill executes shell commands to manage the git lifecycle and process JSON data. It uses
unzipto handle downloaded archives andpython3 -cfor parsing. The use ofunzip -oon remote content in a shared directory without integrity verification is a noted security concern.
Recommendations
- AI detected serious security threats
Audit Metadata