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"
}
Changes since previous scan
--- PKGBUILD @ 2026-09-03 00:15+++ PKGBUILD @ 2026-09-17 00:27@@ -1,7 +1,7 @@ # Maintainer: Andy <this.is.apb@gmail.com> pkgname=idrive-bin-pkgver=3.12.0-pkgrel=2+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"@@ -9,6 +9,12 @@ # 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.@@ -16,7 +22,7 @@ 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/download-for-linux/linux-bin/idriveforlinux.bin")+source=("idriveforlinux.bin::https://www.idrivedownloads.com/downloads/linux/linux-bin/idriveforlinux.bin") sha256sums=('SKIP') pkgver() {@@ -43,6 +49,17 @@ 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.Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-17 00:27:14 | Low | 2 |
| 2026-09-16 00:03:17 | Low | 2 |
| 2026-09-15 00:25:31 | Low | 2 |
| 2026-09-14 00:27:57 | Low | 2 |
| 2026-09-13 00:19:54 | Low | 2 |
| 2026-09-12 00:25:17 | Low | 2 |
| 2026-09-11 00:19:22 | Low | 2 |
| 2026-09-10 00:22:44 | Low | 2 |
| 2026-09-09 00:04:09 | Low | 2 |
| 2026-09-08 00:18:08 | Low | 2 |
| 2026-09-07 00:30:15 | Low | 2 |
| 2026-09-06 00:17:06 | Low | 2 |
| 2026-09-05 00:16:27 | Low | 2 |
| 2026-09-04 00:03:13 | Low | 2 |
| 2026-09-03 21:54:41 | Medium | 1 |
| 2026-09-03 00:15:47 | Medium | 2 |
| 2026-09-02 00:02:31 | Medium | 2 |
| 2026-09-01 00:11:19 | Medium | 2 |
| 2026-08-31 00:19:57 | Medium | 2 |
| 2026-08-30 00:04:14 | Medium | 2 |