T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:86- Finding
Mutable Remote Installation Script Is Executed Directly by a Shell
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 86
Vulnerability Type: Remote payload retrieval and execution
Risk Level: CriticalVulnerable Code:
bash curl -fsSL https://aichan-server-474569752665.us-central1.run.app/install.sh | shTechnical Analysis
The documented installation command downloads a mutable shell script from an external Cloud Run endpoint and immediately passes its contents to
sh. The command does not pin a version, verify a checksum or signature, preserve the script for inspection, or otherwise establish that the downloaded content matches an audited release.Because the effective payload is controlled by the remote endpoint at execution time, it can change after this Skill has been reviewed. The Skill states that the script can install Rust/Cargo when Cargo is unavailable and then install or update
aichan, so its effects are not inherently limited to placing one application binary.Requiring user permission before installation reduces accidental execution but does not verify or constrain the remote payload. This installation method exceeds the minimum privileges necessary because a verified, immutable application artifact could be installed without granting an unreviewed script general command execution under the user's account.
Attack Path
- An attacker compromises the Cloud Run deployment, its maintainer account, or another component capable of changing the response from the installer endpoint.
- The attacker modifies
install.shto include malicious shell commands. - A user or agent follows the installation instructions.
curlretrieves the attacker-controlled response and streams it directly tosh.- The malicious commands execute immediately with all privileges available to the invoking user.
Impact Assessment
The payload receives arbitrary command execution with the invoking user's privileges. It could read or modify user-accessibl ...[truncated 367 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove the
curl | shinstallation path. - Publish immutable, versioned release artifacts through a controlled release channel.
- Provide cryptographic checksums and preferably signed provenance or signatures using a separately trusted verification key.
- Require users to download the artifact or installer to a local file, verify its integrity, and inspect it before execution.
- Install only the required
aichanexecutable rather than automatically installing an unrelated toolchain. - Pin the expected release version and reject unexpected redirects or content.
- Document the exact files and directories modified by installation and run with ordinary user privileges.
- Remove the
