T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:269- Finding
Unattended Installation of Mutable Remote Repository Content
- Content
View full analysis
"$TMPDIR/archive.tar.gz" mkdir "$TMPDIR/extracted" tar xzf "$TMPDIR/archive.tar.gz" -C "$TMPDIR/extracted" --strip-components=1 cp -R "$TMPDIR/extracted/"* ./ rm -rf "$TMPDIR" ``` ``` ### Technical Analysis The update procedure downloads an archive from the mutable `main` branch and copies its files directly over the installed skill. It does not pin an immutable commit, verify a cryptographic checksum, authenticate a release signature, validate an allowlist of files, or require user review before installation. The remote version comparison is not a security control. Both `skill.json` and the archive come from the same mutable repository, so an attacker who controls the repository can change the version and payload together. Because skill instructions determine subsequent agent behavior, replacing `SKILL.md` or adding executable components can alter future tool use and data access. The use of a temporary directory does not mitigate supply-chain compromise. Additionally, the archive is extracted without an explicit preliminary inspection for unsafe archive entries. ### Attack Path 1. An attacker compromises t ...[truncated 1193 chars]- Remediation
View remediation
