T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:68- Finding
Execution of Mutable and Unverified Code from an External Repository
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 68-104
Vulnerability Type:T03: Remote Payload Retrieval and Execution
Risk Level: HighThe skill directs agents to clone a mutable external GitHub repository and execute Python scripts that are not included in the reviewed package.
Vulnerable Code
markdown The full project lives in the GitHub repository: `https://github.com/qweadzchn/DiagForge` ## Recommended workflow 1. Clone the GitHub repository locally. 2. Read the cold-start entry documents. 3. Run the canonical smoke test before doing open-ended drawing work. 4. Only then move on to real jobs or system improvements. ## Clone the repository ```bash git clone git@github.com:qweadzchn/DiagForge.git cd DiagForgeIf 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
Canonical smoke test
From the repo root:
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-finaltext ### Technical Analysis The package contains only documentation and does not include the Python scripts it instructs the agent to run. The clone command does not pin the repository to an immutable commit, verify a cryptographic checksum, or validate a trusted signature. Consequently, the code executed by an agent can differ from the code that existed when this skill was reviewed. The prescribed read order also introduces additional mutable external instructions before execution. Although no malicious content was found in the local documentation itself, neither those external document ...[truncated 1775 chars]- Remediation
View remediation
Remediation Suggestions
- Pin the upstream repository to a specific, reviewed commit hash rather than cloning and executing the default branch.
- Verify the expected commit identity, signed tag, or release signature before executing any code.
- Publish cryptographic hashes for every script and configuration file used by the smoke test, and abort execution if verification fails.
- Prefer bundling the minimum required scripts in the skill package so their exact contents are included in the security review.
- Require explicit user confirmation before cloning external content or executing any retrieved script.
- Run the smoke test in a sandbox with restricted filesystem access, minimal environment variables, no unnecessary credentials, and network access disabled unless explicitly required.
- Avoid exposing
VISIO_BRIDGE_TOKENto setup stages that do not require it. Provide the token only to the specific bridge process that consumes it. - Review and pin transitive Python dependencies and modules imported by the three entry-point scripts.
- Document the exact trusted repository owner, revision, verification procedure, and expected script hashes in
SKILL.md.
