T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:14- Finding
Unverified Remote Installer Is Downloaded and Executed Directly
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 14
Vulnerability Type: Remote payload retrieval and execution
Risk Level: HighVulnerable Code:
yaml install: - kind: shell cmd: "curl -fsSL https://raw.githubusercontent.com/Agent-Gen-com/tesla-cli/main/install.sh | sh" bins: [teslacli]The same installation command is repeated in the user-facing installation instructions at line 33:
sh curl -fsSL https://raw.githubusercontent.com/Agent-Gen-com/tesla-cli/main/install.sh | shTechnical Analysis
The installation process downloads
install.shfrom the mutablemainbranch of an external GitHub repository and pipes its contents directly intosh. No immutable commit, release version, cryptographic signature, or checksum is specified. The downloaded content is also not saved for inspection before execution.Consequently, the effective code executed during installation can differ from the content available when this Skill was reviewed. Compromise of the repository, its maintainer account, GitHub delivery infrastructure, or the referenced branch could substitute arbitrary shell commands. Those commands execute with all permissions available to the user installing the Skill.
Downloading an installer is relevant to the declared need to install
teslacli, but direct execution of an unpinned and unverified remote script is not the minimum privilege or minimum trust approach required for that purpose. The project contains onlySKILL.md, so the actual installer and installed CLI behavior cannot be statically verified from the audited artifact.Attack Path
- An attacker compromises the external repository, a maintainer account, or another component capable of changing the
mainbranch'sinstall.sh. - The attacker adds arbitrary shell commands to the installer.
- A user or agent installs the Skill through its metadata command or follows the documented instal ...[truncated 1402 chars]
- An attacker compromises the external repository, a maintainer account, or another component capable of changing the
- Remediation
View remediation
Remediation Suggestions
- Remove the
curl | shinstallation pattern from both Skill metadata and documentation. - Reference an immutable, reviewed release version or commit rather than the mutable
mainbranch. - Download the installer or release artifact to a local file without executing it immediately.
- Publish and verify a SHA-256 checksum and, preferably, a cryptographic signature from a separately protected signing key.
- Abort installation on any signature, checksum, platform, or expected-file mismatch.
- Allow the installer content to be inspected before execution and document exactly which files and directories it modifies.
- Avoid elevated privileges; install only into a user-scoped directory unless the user explicitly approves a justified privileged operation.
- Prefer a trusted package manager or bundle reviewed installation code with the Skill so its behavior is covered by the same audit.
- Pin all binaries and transitive components installed by the script, and provide reproducible build information or provenance attestations.
- Perform a separate security review of
install.shand the resultingteslacliexecutable before granting them access to Tesla credentials or vehicle-control authorization.
- Remove the
