T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:33- Finding
Installation and Execution of Mutable Remote Code
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 33
Vulnerability Type: Remote payload retrieval and insecure dependency installation
Risk Level: Highbash pip install https://github.com/Panniantong/agent-reach/archive/main.zipTechnical Analysis
The installation command retrieves a Python package directly from the mutable
mainbranch of a personal GitHub repository. It does not pin an immutable release, commit hash, package digest, or cryptographic signature.Installing a remote Python package can execute package build and installation logic. Consequently, the effective code executed by this Skill can change after the Skill itself has been reviewed. The later documented invocation of
agent-reach install --env=autofurther expands the supply-chain surface by installing multiple additional tools and runtimes.The external network access is necessary for the Skill's installer functionality, but retrieving executable code from a mutable branch is not the minimum privilege or trust necessary to provide that functionality. An immutable, verified artifact would achieve the same purpose with substantially less risk.
Attack Path
- An attacker compromises the upstream GitHub account, repository, or
mainbranch, or a malicious upstream change is accepted. - The user or Agent runs the documented
pip installcommand. pipdownloads the current repository archive rather than a previously reviewed version.- Malicious packaging or module code executes during installation or subsequent invocation.
- The payload operates with the privileges of the user running the Agent and can access resources available to that account.
Impact Assessment
Successful exploitation can result in arbitrary code execution with the Agent user's privileges. Depending on the local environment, this could expose user files, browser data, API credentials, platform cookies, Agent configuration, SSH credenti ...[truncated 370 chars]
- An attacker compromises the upstream GitHub account, repository, or
- Remediation
View remediation
Remediation Suggestions
- Pin the dependency to a reviewed, immutable release or full Git commit hash rather than
main. - Download a versioned artifact and verify its SHA-256 digest before installation.
- Use
pip --require-hasheswith a locked dependency manifest where feasible. - Publish verified releases through a controlled package registry and use signed release artifacts.
- Pin and audit all transitive dependencies installed by
agent-reach install. - Display the complete installation plan and obtain explicit user approval before installing runtimes, global command-line tools, or system packages.
- Run installation in an isolated virtual environment or container with restricted filesystem and network access.
- Disable automatic update behavior unless updates are immutable, authenticated, and explicitly approved.
- Pin the dependency to a reviewed, immutable release or full Git commit hash rather than
