T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:67- Finding
Unpinned Remote Repository Is Retrieved and Executed
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 67–84
Vulnerability Type: Remote Payload Retrieval and Execution
Risk Level: HighThe skill instructs the agent to clone a mutable external GitHub repository and subsequently execute Python scripts obtained from that repository:
markdown ## Clone the repository ```bash git clone git@github.com:qweadzchn/DrawForge.git cd DrawForgeIf SSH is not available, use HTTPS instead.
Read order
Read these files first:
AGENT_START_HERE.mdAGENT_GUIDE.mdGET_STARTED.mddocs/human/setup/AGENT_COLD_START_SMOKE_TEST.mdMODE_POLICY.md
text The remotely retrieved scripts are then executed at lines 91–93: ```powershell python Setup\prepare_smoke_test.py --config Setup\examples\smoke-test-inputpng-1.json python Setup\run_draw_job.py --config Setup\examples\smoke-test-inputpng-1.json python Setup\execute_drawdsl.py --config Setup\examples\smoke-test-inputpng-1.json --round 1 --save-finalTechnical Analysis
The clone command does not pin the repository to a reviewed commit hash or cryptographically verified release. It therefore retrieves the repository's mutable default branch. Although the audited package contains only documentation, its prescribed workflow establishes a remote code-execution channel whose effective payload can change after the skill package has been reviewed or published.
The workflow also tells the agent to load instruction documents from the remote repository before executing its scripts. Those files and scripts are outside the audited package and could be modified by a compromised maintainer account, repository compromise, or an unsafe future update.
The package declares
VISIO_BRIDGE_TOKENas an environment requirement. If that secret is available to the processes being run, remotely supplied Python code may be able to read it from the process environment. The exact behavior of t ...[truncated 1745 chars]- Remediation
View remediation
Remediation Suggestions
- Pin the external repository to a specific, reviewed commit hash rather than executing its mutable default branch.
- Publish a signed release and verify its signature or a trusted cryptographic checksum before running any retrieved file.
- Record the expected repository owner, URL, commit identifier, and verification procedure directly in
SKILL.md. - Require review of the listed agent-instruction documents, executable scripts, and local imports before execution.
- Run the smoke test in an isolated environment with minimal filesystem and network access.
- Do not expose
VISIO_BRIDGE_TOKENduring cloning, documentation review, dependency installation, or preparation stages. Inject it only into the specific process that requires bridge access. - Use a short-lived, least-privileged bridge token and ensure that child processes do not inherit it unless necessary.
- Consider vendoring the reviewed bootstrap scripts into the audited package or distributing a checksum-verified release archive so the executed content matches the reviewed content.
