T08 · Insecure Dependencies
- Location
install.sh:50- Finding
Unverified and Unpinned Remote Executable Installation
- Content
View full analysis
/dev/null; then # Extract tar -xzf "$FILENAME" # Install to /usr/local/bin (requires sudo) if [[ -w /usr/local/bin ]]; then mv bin/ztm /usr/local/bin/ztm chmod +x /usr/local/bin/ztm else echo -e "${YELLOW} Note: Need sudo to install to /usr/local/bin${NC}" sudo mv bin/ztm /usr/local/bin/ztm sudo chmod +x /usr/local/bin/ztm fi echo -e "${GREEN}✅ ZTM installed successfully!${NC}" else echo -e "${RED}❌ Failed to download ZTM${NC}" exit 1 fi # Cleanup cd / rm -rf "$TEMP_DIR" fi # Verify installation echo -e "${YELLOW}🔍 Step 2: Verifying ZTM...${NC}" ztm version ``` ### Technical Analysis The installer obtains the current release identifier dynamically from the GitHub API and downloads the corresponding archive. It does not pin an audited version or verify the archive using a trusted cryptographic signature or expected digest. After the download, the archive is extracted and its `ztm` executable is moved into `/usr/local/bin`. The installed executable is then invoked through `ztm version`, followed later by other `ztm` commands. Consequently, the effective code ...[truncated 1865 chars]- Remediation
View remediation
