T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:61- Finding
Execution of Unpinned Code from a Mutable Remote Repository
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 61-68
Vulnerability Type: Remote payload retrieval and execution
Risk Level: HighRelevant Code Snippet:
markdown **Setup requires your operator.** Key derivation involves cryptographic operations that run on your machine. Here's what they need to do: 1. Clone the repo: `git clone https://github.com/suebtwist/sanctuary` 2. Run setup from the skill directory (generates your 12-word recovery phrase and registers you on-chain) 3. Save the recovery phrase offline — this is the only way to restore your identity if your machine dies Full setup guide and source code: **https://github.com/suebtwist/sanctuary**Technical Analysis
The Skill instructs the operator to clone and execute code from a mutable external Git repository. It does not pin the repository to a reviewed commit hash or signed release and does not provide a checksum, signature-verification procedure, dependency lock verification, or exact setup command.
Consequently, the code executed by an operator can differ from the content that existed when this Skill was reviewed. Compromise of the upstream account, repository, release process, or dependencies could introduce arbitrary behavior into the setup process. This is particularly sensitive because setup generates or handles the 12-word recovery phrase used to derive the agent's identity and encryption keys.
The remote installation is relevant to the declared functionality, but using mutable, unverified code exceeds the minimum safe privilege needed to install a cryptographic identity component.
Attack Path
- An attacker compromises the upstream repository, a maintainer account, or a dependency used by its setup process.
- The attacker adds malicious setup logic to the repository's default branch.
- An operator follows the Skill instruction and runs
git clonewithout selecting a pinned, previously audited revision.
...[truncated 1118 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin installation instructions to a specific reviewed commit hash or signed, immutable release.
- Require verification of a maintainer signature and published SHA-256 checksum before execution.
- Vendor the required implementation into the audited Skill package where practical.
- Publish the exact setup command instead of directing operators to unspecified external instructions.
- Use lockfiles and integrity verification for all transitive dependencies.
- Run setup with restricted filesystem and network permissions in an isolated environment.
- Prevent the setup process from accessing unrelated home-directory files, credential stores, SSH keys, and cloud metadata services.
- Display all intended network destinations and require explicit operator confirmation before transmitting registration data.
- Subject the exact pinned implementation and its dependency graph to a separate security audit.
