icloud-for-linux-git

MEDIUM
maintainer alki 5 votes scanned 2026-09-17 00:27:14.276658
View on AUR
Why flagged

The PKGBUILD pulls electron and electron-packager from npm at build time (npm install electron electron-packager) without pinning versions or providing checksums. These are large, complex packages (electron especially bundles a full Chromium build) fetched from the npm registry at whatever version npm resolves to. The resulting Electron binary is then executed via npx electron-packager to produce the final packaged application. While npm/electron are well-known packages and this is a common Electron app packaging pattern, the lack of any version pinning or integrity verification means a compromised or malicious version of either package could execute arbitrary code during the build. This is a genuine supply-chain concern: undeclared external binary dependencies fetched and executed without checksums. The source repo itself is a personal GitHub project (not an official vendor), and the sha256sums is SKIP. This is a real medium-severity supply-chain risk, not a false positive.

Triggered rules

Medium npm/yarn/pnpm install of an undeclared external package npm_install_external

Runs `npm/yarn/pnpm install <package>` for a package not in source=(), pulling unpinned, unreviewed code at build time. Severity downgraded: the package declares/looks like a Node.js consumer, where build-time installs are expected.

  • PKGBUILD:26 npm install electron electron-packager
Medium npx/bunx/deno executes a remote package remote_code_tool

`npx`/`bunx`/`pnpm dlx`/`deno run <url>` downloads AND runs a remote package at build time — the moral equivalent of piping a download into a shell. Severity downgraded: Node.js consumer context.

  • PKGBUILD:27 npx electron-packager . --overwrite --platform=linux --output=release-build --prune=true
Medium AI review llm_review

An AI model (anthropic/claude-4.6-sonnet-20260217) reviewed this and agrees it is MEDIUM (confidence 75%): The PKGBUILD pulls electron and electron-packager from npm at build time (npm install electron electron-packager) without pinning versions or providing checksums. These are large, complex packages (electron especially bundles a full Chromium build) fetched from the npm registry at whatever version npm resolves to. The resulting Electron binary is then executed via npx electron-packager to produce the final packaged application. While npm/electron are well-known packages and this is a common Electron app packaging pattern, the lack of any version pinning or integrity verification means a compromised or malicious version of either package could execute arbitrary code during the build. This is a genuine supply-chain concern: undeclared external binary dependencies fetched and executed without checksums. The source repo itself is a personal GitHub project (not an official vendor), and the sha256sums is SKIP. This is a real medium-severity supply-chain risk, not a false positive.

PKGBUILD

2 offending line(s) highlighted
1# Maintainer: Wojciech M. Wnuk <laniusone@pm.me>
2
3_pkgbase="icloud-for-linux"
4pkgname="$_pkgbase-git"
5pkgver=r38.66d3cd9
6pkgrel=1
7pkgdesc="iCloud for Linux"
8arch=("x86_64")
9url="https://github.com/wmwnuk/icloud-for-linux"
10license=("GPL")
11depends=('npm' 'nss')
12makedepends=('git')
13provides=("$_pkgbase")
14conflicts=("$_pkgbase")
15backup=()
16source=("git+https://github.com/wmwnuk/icloud-for-linux")
17sha256sums=('SKIP')
18
19pkgver() {
20 cd $_pkgbase
21 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
22}
23
24build() {
25 cd icloud-for-linux
26 npm install electron electron-packager
27 npx electron-packager . --overwrite --platform=linux --output=release-build --prune=true
28}
29
30package() {
31 mkdir -p "$pkgdir"/usr/bin
32 mkdir -p "$pkgdir"/usr/lib/icloud-for-linux
33 mkdir -p "$pkgdir"/usr/share/applications
34 mkdir -p "$pkgdir"/usr/share/icons/hicolor/256x256/apps
35 cp icloud-for-linux/desktop/* "$pkgdir"/usr/share/applications
36 cp icloud-for-linux/icons/* "$pkgdir"/usr/share/icons/hicolor/256x256/apps
37 cp -r icloud-for-linux/icloud-for-linux-linux-x64/* "$pkgdir"/usr/lib/icloud-for-linux/
38 ln -s /usr/lib/icloud-for-linux/icloud-for-linux "$pkgdir"/usr/bin/
39}
40

Scan history

Scanned at (UTC)SeverityRules
2026-09-17 00:27:14 Medium 3
2026-09-16 00:03:17 Medium 3
2026-09-15 00:25:31 Medium 3
2026-09-14 00:27:57 Medium 3
2026-09-13 00:19:54 Medium 3
2026-09-12 00:25:17 Medium 3
2026-09-11 00:19:22 Medium 3
2026-09-10 00:22:44 Medium 3
2026-09-09 00:04:09 Medium 3
2026-09-08 00:18:08 Medium 3
2026-09-07 00:30:15 Medium 3
2026-09-06 00:17:06 Medium 3
2026-09-05 00:16:27 Medium 3
2026-09-04 00:03:13 Medium 3
2026-09-03 00:15:47 Medium 3
2026-09-02 00:02:31 Medium 3
2026-09-01 00:11:19 Medium 3
2026-08-31 00:19:57 Medium 3
2026-08-30 00:04:14 Medium 3
2026-08-29 00:29:17 Medium 3

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion