idrive-bin
The package downloads a prebuilt binary installer from the official vendor domain (idrivedownloads.com) which is plausibly owned by IDrive; despite the unverifiable checksum, it is a legitimate source for the software and no malicious behavior is evident.
Triggered rules
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-2507) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads a prebuilt binary installer from the official vendor domain (idrivedownloads.com) which is plausibly owned by IDrive; despite the unverifiable checksum, it is a legitimate source for the software and no malicious behavior is evident.
1 higher static finding superseded - not the current verdict (shown for transparency)
source_untrusted_domain
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
-
PKGBUILD:25
source=("idriveforlinux.bin::https://www.idrivedownloads.com/downloads/linux/linux-bin/idriveforlinux.bin")
PKGBUILD
1 offending line(s) highlighted# Maintainer: Andy <this.is.apb@gmail.com>
pkgname=idrive-bin
pkgver=3.15.0
pkgrel=1
pkgdesc="IDrive cloud backup for Linux - official interactive menu (idrive) and idevsutil engines"
arch=('x86_64')
url="https://www.idrive.com/online-backup-linux-scripts"
license=('LicenseRef-IDrive')
# popt: required by the idevsutil/idevsutil_dedup transfer engines (not part of
# base). curl/cronie/which: used by idrive at runtime for transfers and scheduling.
depends=('popt' 'curl' 'cronie' 'which')
# Cloud Drive (3.15.0+) is enabled from the idrive menu; its bundled install.sh
# would otherwise pull these in itself via `pacman -Sy`, which is a partial
# upgrade. Install them with pacman first instead.
optdepends=('valkey: Cloud Drive sync (redis-compatible server)'
'python: Cloud Drive sync'
'python-psutil: Cloud Drive sync')
provides=('idrive')
conflicts=('idrive')
# Vendored prebuilt binaries: don't strip/relink, and skip the static-lib check.
options=('!strip' '!emptydirs' 'staticlibs')
install="$pkgname.install"
# Upstream serves a single, unversioned "latest" installer, so the checksum
# cannot be pinned; pkgver() below reads the real version out of it after download.
source=("idriveforlinux.bin::https://www.idrivedownloads.com/downloads/linux/linux-bin/idriveforlinux.bin")
sha256sums=('SKIP')
pkgver() {
grep -m1 -aoP '^APPVERSION="\K[^"]+' "$srcdir/idriveforlinux.bin"
}
package() {
cd "$srcdir"
# The .bin is a shell self-extractor with a gzipped tar appended after a
# line matching __idrive__; unpack that payload into /opt (DESTPARENT).
local marker
marker=$(awk '/^__idrive__/ {print NR + 1; exit}' idriveforlinux.bin)
# --no-same-owner: ignore the uids baked into the vendor tar so everything
# ends up root-owned under fakeroot.
install -d "$pkgdir/opt"
tail -n +"$marker" idriveforlinux.bin | tar xz --no-same-owner -C "$pkgdir/opt"
local dest="$pkgdir/opt/IDriveForLinux"
local deps="$dest/bin/Idrivelib/dependencies"
# Place the main menu binary for this architecture (k3 = modern kernels),
# mirroring what the upstream installer does, then drop the other arches.
tar xzf "$deps/linuxbin/k3/$CARCH/idrive.tar.gz" --no-same-owner -C "$dest/bin/"
chmod 0755 "$dest/bin/idrive"
rm -rf "$deps/linuxbin"
# Same for the Cloud Drive binary (x86_64 only, hence the guard): the
# installer unpacks it next to the install.sh/uninstall.sh helpers that
# already ship in dependencies/cloud-drive, then drops the per-arch dir.
if [ -f "$deps/cloudbin/k3/$CARCH/cloud-drive.tar.gz" ]; then
tar xzf "$deps/cloudbin/k3/$CARCH/cloud-drive.tar.gz" \
--no-same-owner -C "$deps/cloud-drive/"
chmod 0755 "$deps/cloud-drive/cloud-drive"
fi
chmod 0755 "$deps/cloud-drive/install.sh" "$deps/cloud-drive/uninstall.sh"
rm -rf "$deps/cloudbin"
# Keep only the generic Linux transfer engines; the NAS-appliance variants
# (QNAP/Synology/Netgear/Vault) are useless on a desktop/server install.
find "$deps/evsbin" -type f -name '*.tar.gz' ! -name 'IDrive_linux_*' -delete
# Bundled python is per-arch; keep only this architecture's copy.
find "$deps/pythonbin" -mindepth 1 -maxdepth 1 ! -name k3 -exec rm -rf {} +
find "$deps/pythonbin/k3" -mindepth 1 -maxdepth 1 ! -name "$CARCH" -exec rm -rf {} +
# CLI entry point. idrive keeps its state under /opt and schedules root cron
# jobs, so it must run as root; the wrapper escalates via sudo when needed.
# It also enters the app's bin dir first, since idrive resolves some paths
# relative to the working directory.
install -d "$pkgdir/usr/bin"
cat > "$pkgdir/usr/bin/idrive" <<-'EOF'
#!/bin/sh
if [ "$(id -u)" -ne 0 ]; then
if command -v sudo >/dev/null 2>&1; then
exec sudo -- "$0" "$@"
fi
echo "idrive must be run as root; re-run with: sudo idrive" >&2
exit 1
fi
cd /opt/IDriveForLinux/bin && exec ./idrive "$@"
EOF
chmod 0755 "$pkgdir/usr/bin/idrive"
# Proprietary license: ship a pointer to the canonical Terms of Service plus
# the bundled readme. The full terms are not redistributed as text.
install -d "$pkgdir/usr/share/licenses/$pkgname"
cat > "$pkgdir/usr/share/licenses/$pkgname/LICENSE" <<-'EOF'
IDrive for Linux is proprietary software, Copyright IDrive Inc.
Use is governed by the IDrive Terms of Service:
https://www.idrive.com/terms-and-conditions
This package redistributes the unmodified official installer payload
from https://www.idrive.com/online-backup-linux-scripts for convenience.
EOF
install -m644 "$dest/bin/readme.txt" \
"$pkgdir/usr/share/licenses/$pkgname/readme.txt"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-01 00:21:48 | Low | 2 |
| 2026-10-31 00:07:41 | Low | 2 |
| 2026-10-30 00:29:30 | Low | 2 |
| 2026-10-29 00:13:55 | Low | 2 |
| 2026-10-28 00:06:54 | Low | 2 |
| 2026-10-27 00:23:28 | Low | 2 |
| 2026-10-26 00:12:40 | Low | 2 |
| 2026-10-25 00:20:48 | Low | 2 |
| 2026-10-24 00:14:55 | Low | 2 |
| 2026-10-23 00:02:19 | Low | 2 |
| 2026-10-22 00:13:10 | Low | 2 |
| 2026-10-21 00:12:50 | Low | 2 |
| 2026-10-20 00:10:31 | Low | 2 |
| 2026-10-19 00:03:55 | Low | 2 |
| 2026-10-18 00:06:55 | Low | 2 |
| 2026-10-17 00:21:55 | Low | 2 |
| 2026-10-16 00:12:47 | Low | 2 |
| 2026-10-15 00:28:05 | Low | 2 |
| 2026-10-14 00:06:47 | Low | 2 |
| 2026-10-13 00:23:45 | Low | 2 |