gitcode-repo-daily
Pass
Audited by Gen Agent Trust Hub on Aug 13, 2026
Risk Level: SAFECOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/generate_daily_report.pyexecutespowershell.exeviasubprocess.check_outputto retrieve theGITCODE_TOKENfrom Windows User and Machine environment variables. While the arguments are hardcoded and intended for credential retrieval, this pattern involves spawning shell processes to interact with system configuration. - [PROMPT_INJECTION]: The skill is vulnerable to indirect prompt injection because it processes untrusted data from GitCode PR bodies and Issue comments to generate summaries.
- Ingestion points: External data is ingested in
scripts/generate_daily_report.pythrough GitCode API calls and subsequently read by the agent fromtemp_dir/report.json. - Boundary markers: There are no explicit instructions or delimiters provided to the agent to treat the ingested repository content as untrusted data or to ignore nested instructions.
- Capability inventory: The agent has the capability to execute shell commands (running the report script) and write to the local file system (creating summary files).
- Sanitization: The script truncates PR bodies to a maximum length but does not perform any sanitization or filtering to prevent instruction injection within the text.
Audit Metadata