T03 · Remote Payload Retrieval and Execution
- Location
install.sh:4- Finding
Unverified Remote Installer Download and Execution
- Content
View full analysis
&2 find "$TMP_DIR" -maxdepth 3 -print >&2 exit 1 fi bash "$INSTALLER" "$@" ``` ### Technical Analysis The installer downloads a compressed archive and immediately executes the `cli/install.sh` file extracted from it. It performs no SHA-256 verification, signature validation, publisher verification, or content review. The `AGENTAR_KIT_URL` environment variable can replace the default URL with an arbitrary source. The use of `curl -L` also follows redirects without restricting the destination origin or preventing an HTTPS-to-HTTP downgrade. Consequently, the effective code executed by this Skill can differ from the code that was statically audited. This behavior is unnecessary for the declared workflow because `SKILL.md:25-34` explicitly states that `agentar_cli.mjs` is bundled and that no download or copy is required. There is also a version discrepancy: the remote artifact is named `agentar-cli-v3.3.2`, while the bundled CLI declares version `3.4.2`. ### Attack Path 1. An attacker influences the environment in which the installer runs and sets `AGENTAR_KIT_URL` to an attacker-controlled URL. Alternatively, the release asset, hosting account, or redirect destination is compromised. 2. The attacker supplies a valid gzip archive containing `cli/install.sh`. 3. `curl` downloads the archive without integrity or authenticity validation. 4. `tar` ex ...[truncated 681 chars]- Remediation
View remediation
