T08 · Insecure Dependencies
- Location
SKILL.md:35- Finding
Unpinned Third-Party Package Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 35-36
Vulnerability Type: Unpinned dependency installation
Risk Level: MediumVulnerable Code
bash # Install surreal-sync (Rust binary) cargo install surreal-syncTechnical Analysis
The installation command does not pin
surreal-syncto a specific version and does not use a locked dependency graph. Consequently, it installs whichever package version is current when the command is executed, rather than necessarily installing the upstream release identified in the Skill metadata.Cargo packages can execute build scripts and compile transitive dependencies during installation. If the package, its registry account, or one of its dependencies is compromised, running this command could execute attacker-controlled build logic and install a malicious binary. The reviewed documentation therefore does not ensure that future users execute the same code associated with the audited snapshot.
Attack Path
- An attacker compromises the
surreal-syncregistry package, a maintainer account, or a transitive dependency. - The attacker publishes a malicious release or dependency update.
- A user follows the documented
cargo install surreal-synccommand. - Cargo retrieves the mutable latest release and its dependency graph.
- Malicious build logic executes with the privileges of the user running Cargo, or a malicious executable is installed.
- The installed program may subsequently access database credentials and migration data supplied during synchronization.
Impact Assessment
Successful exploitation may allow arbitrary code execution under the installing user's account. Accessible source-database credentials, SurrealDB credentials, local files, environment variables, and migration data could be exposed or modified. If installation is performed by an administrator or privileged automation account, the impact extends to all resources ...[truncated 26 chars]
- An attacker compromises the
- Remediation
View remediation
Remediation Suggestions
- Pin the package to the reviewed release:
bash cargo install surreal-sync --version 0.3.4 --locked - Confirm that the documented package version corresponds to the repository commit declared in the metadata.
- Verify release provenance and checksums before installation.
- Review and lock transitive dependencies.
- In controlled environments, install from an internally verified artifact repository rather than resolving mutable public-registry content during deployment.
- Run installation and migration under a dedicated, unprivileged account.
- Pin the package to the reviewed release:
