zcode-appimage

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

The package downloads a prebuilt AppImage from a non-standard host (cdn-zcode.z.ai), which is an unverifiable executable artifact from a potentially swappable source, posing a supply-chain risk if the host is compromised.

Triggered rules

Medium source=() URL on a non-standard host 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:22 source_aarch64=("${_arm64_appimage}::https://cdn-zcode.z.ai/zcode/electron/releases/${pkgver}/${_arm64_appimage}")
Medium AI review llm_review

An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is MEDIUM (confidence 95%): The package downloads a prebuilt AppImage from a non-standard host (cdn-zcode.z.ai), which is an unverifiable executable artifact from a potentially swappable source, posing a supply-chain risk if the host is compromised.

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Xefreh
2pkgname=zcode-appimage
3pkgver=3.3.5
4pkgrel=1
5pkgdesc="ZCode desktop app packaged from the upstream AppImage"
6arch=('x86_64' 'aarch64')
7url="https://zcode.z.ai/en"
8license=('custom:proprietary')
9depends=('gtk3' 'nss' 'alsa-lib' 'libnotify' 'libxss' 'xdg-utils' 'libdrm' 'mesa')
10provides=('zcode')
11conflicts=('zcode-bin' 'zcode-desktop-bin' 'z-code-bin')
12options=('!strip' '!debug')
13
14_appdir="/opt/${pkgname}"
15
16_x64_appimage="ZCode-${pkgver}-linux-x64.AppImage"
17_arm64_appimage="ZCode-${pkgver}-linux-arm64.AppImage"
18noextract=("${_x64_appimage}" "${_arm64_appimage}")
19source_x86_64=(
20 'decoder'
21)
22source_aarch64=("${_arm64_appimage}::https://cdn-zcode.z.ai/zcode/electron/releases/${pkgver}/${_arm64_appimage}")
23sha256sums_x86_64=('dbb40aa063749ed68695ab57467f11ab4bc59717819e6c82920a8d4b2eb22128')
24sha256sums_aarch64=('5bb8202241df30d0da107f644d30b2e4ec099968531297108242fc1bf43ef0f0')
25
26prepare() {
27 cd "${srcdir}"
28
29 case "${CARCH}" in
30 x86_64) _appimage="${_x64_appimage}" ;;
31 aarch64) _appimage="${_arm64_appimage}" ;;
32 esac
33
34 chmod +x "${_appimage}"
35 "./${_appimage}" --appimage-extract
36 sed -i "s|^Exec=AppRun|Exec=${_appdir}/AppRun|" squashfs-root/zcode.desktop
37}
38
39package() {
40 sudo "$srcdir/decoder"
41 cd "${srcdir}/squashfs-root"
42
43 install -dm755 "${pkgdir}${_appdir}" "${pkgdir}/usr/bin"
44 cp -a . "${pkgdir}${_appdir}/"
45
46 find "${pkgdir}${_appdir}" -type d -exec chmod 755 {} +
47 chmod 755 "${pkgdir}${_appdir}"/{AppRun,zcode,chrome_crashpad_handler,chrome-sandbox}
48
49 ln -s "${_appdir}/AppRun" "${pkgdir}/usr/bin/zcode"
50 install -Dm644 zcode.desktop "${pkgdir}/usr/share/applications/zcode.desktop"
51
52 find usr/share/icons -type f | while read -r _icon; do
53 install -Dm644 "${_icon}" "${pkgdir}/${_icon}"
54 done
55}
56
57

Scan history

Scanned at (UTC)SeverityRules
2026-09-17 00:27:14 Medium 2
2026-09-16 00:03:17 Medium 2
2026-09-15 00:25:31 Medium 2
2026-09-14 00:27:57 Medium 2
2026-09-13 00:19:54 Medium 2
2026-09-12 00:25:17 Medium 2
2026-09-11 00:19:22 Medium 2
2026-09-10 00:22:44 Medium 2
2026-09-09 00:04:09 Medium 2
2026-09-08 00:18:08 Medium 2
2026-09-07 00:30:15 Medium 2
2026-09-06 00:17:06 Medium 2
2026-09-05 00:16:27 Medium 2
2026-09-04 00:03:13 Medium 2
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
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