oh-pr-workflow
Fail
Audited by Gen Agent Trust Hub on Sep 16, 2026
Risk Level: HIGHPRIVILEGE_ESCALATIONPERSISTENCECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [PRIVILEGE_ESCALATION]: The
gitcode-mcp/install.shscript usessudoto install the MCP server to system paths and modify file permissions. - [PERSISTENCE]: The
gitcode-mcp/setup.shscript, which is automatically called by the skill during initialization if tools are missing, modifies agent configuration files (~/.claude.jsonand~/.config/opencode/opencode.json) to register the server permanently. - [COMMAND_EXECUTION]: The skill performs local Go compilation and executes multiple bundled bash scripts to manage environment state and retrieve external data.
- [EXTERNAL_DOWNLOADS]: The
scripts/fetch_gate_defects.shscript makes network requests todcp.openharmony.cnto retrieve defect reports. - [DYNAMIC_EXECUTION]: The
scripts/fetch_gate_defects.shscript executes Python logic via a shell heredoc to handle complex API interactions. - [INDIRECT_PROMPT_INJECTION]: The skill ingests untrusted PR comments and CI reports, using their content to drive automated code modifications and repository writes.
- Ingestion points:
SKILL.mdMode 3 and Mode 5. - Boundary markers: None identified.
- Capability inventory:
git commit,git push --force,create_pr_comment,create_pull_request. - Sanitization: None.
Recommendations
- AI detected serious security threats
Audit Metadata