zcode-appimage

MEDIUM
maintainer norahvandersande 0 votes scanned 2026-11-01 00:21:48.120785
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-11-01 00:21:48 Medium 2
2026-10-31 00:07:41 Medium 2
2026-10-30 00:29:30 Medium 2
2026-10-29 00:13:55 Medium 2
2026-10-28 00:06:54 Medium 2
2026-10-27 00:23:28 Medium 2
2026-10-26 00:12:40 Medium 2
2026-10-25 00:20:48 Medium 2
2026-10-24 00:14:55 Medium 2
2026-10-23 00:02:19 Medium 2
2026-10-22 00:13:10 Medium 2
2026-10-21 00:12:50 Medium 2
2026-10-20 00:10:31 Medium 2
2026-10-19 00:03:55 Medium 2
2026-10-18 00:06:55 Medium 2
2026-10-17 00:21:55 Medium 2
2026-10-16 00:12:47 Medium 2
2026-10-15 00:28:05 Medium 2
2026-10-14 00:06:47 Medium 2
2026-10-13 00:23:45 Medium 2

Report a package

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

0 / 4000
Your suggestion