zcode
Downloads and installs a prebuilt proprietary Electron binary (.deb) from cdn-zcode.z.ai, a non-whitelisted CDN that could be swapped; however, SHA256 checksums are provided and the host appears to be the project's own official CDN (matching the project URL domain z.ai), reducing but not eliminating supply-chain risk for an unverifiable closed-source binary.
Triggered rules
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:32
source_x86_64=("ZCode-${pkgver}-linux-x64.deb::https://cdn-zcode.z.ai/zcode/electron/releases/${pkgver}/linux-x64/ZCode-${pkgver}-linux-x64.deb")
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
llm_review
An AI model (anthropic/claude-sonnet-4.6) reviewed this and agrees it is MEDIUM (confidence 70%): Downloads and installs a prebuilt proprietary Electron binary (.deb) from cdn-zcode.z.ai, a non-whitelisted CDN that could be swapped; however, SHA256 checksums are provided and the host appears to be the project's own official CDN (matching the project URL domain z.ai), reducing but not eliminating supply-chain risk for an unverifiable closed-source binary.
PKGBUILD
1 offending line(s) highlighted# Maintainer: duanluan <duanluan@outlook.com>
pkgname=zcode
_pkgname=zcode
_appdir=ZCode
pkgver=3.8.1
pkgrel=1
pkgdesc='ZCode desktop app repackaged from official Linux release'
arch=('x86_64' 'aarch64')
url='https://zcode.z.ai/en'
license=('LicenseRef-Proprietary')
depends=(
'alsa-lib'
'at-spi2-core'
'gtk3'
'hicolor-icon-theme'
'libnotify'
'libsecret'
'libxss'
'libxtst'
'nss'
'util-linux-libs'
'xdg-utils'
)
optdepends=(
'libappindicator-gtk3: system tray indicator support'
)
makedepends=('libarchive')
provides=("zcode-desktop-bin=${pkgver}")
options=('!strip' '!lto')
install="${pkgname}.install"
source_x86_64=("ZCode-${pkgver}-linux-x64.deb::https://cdn-zcode.z.ai/zcode/electron/releases/${pkgver}/linux-x64/ZCode-${pkgver}-linux-x64.deb")
source_aarch64=("ZCode-${pkgver}-linux-arm64.deb::https://cdn-zcode.z.ai/zcode/electron/releases/${pkgver}/linux-arm64/ZCode-${pkgver}-linux-arm64.deb")
noextract=("ZCode-${pkgver}-linux-x64.deb" "ZCode-${pkgver}-linux-arm64.deb")
sha256sums_x86_64=('5871877629eb56f608251a95efa92bf8c2ae0645e3d67ae0dcb5c02121e45575')
sha256sums_aarch64=('bedfeb45f87ec6cfd0257b5416c30bc94397e6c7d3c82d39da08c379a8b76569')
package() {
local _extractdir _deb_arch
_extractdir="$(mktemp -d)"
trap 'rm -rf "${_extractdir}"' EXIT
case "${CARCH}" in
x86_64) _deb_arch='x64' ;;
aarch64) _deb_arch='arm64' ;;
esac
bsdtar -C "${_extractdir}" -xf "${srcdir}/ZCode-${pkgver}-linux-${_deb_arch}.deb"
bsdtar -C "${_extractdir}" -xf "${_extractdir}/data.tar.xz"
install -dm755 \
"${pkgdir}/opt" \
"${pkgdir}/usr/bin" \
"${pkgdir}/usr/share"
cp -a "${_extractdir}/opt/${_appdir}" "${pkgdir}/opt/"
cp -a "${_extractdir}/usr/share/icons" "${pkgdir}/usr/share/"
install -Dm644 "${_extractdir}/usr/share/applications/${_pkgname}.desktop" \
"${pkgdir}/usr/share/applications/${_pkgname}.desktop"
ln -s "/opt/${_appdir}/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
chmod 0755 "${pkgdir}/opt/${_appdir}/chrome-sandbox"
install -Dm644 "${_extractdir}/opt/${_appdir}/LICENSE.electron.txt" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.electron.txt"
install -Dm644 "${_extractdir}/opt/${_appdir}/LICENSES.chromium.html" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSES.chromium.html"
if [[ -f "${_extractdir}/usr/share/doc/${_pkgname}/changelog.gz" ]]; then
install -Dm644 "${_extractdir}/usr/share/doc/${_pkgname}/changelog.gz" \
"${pkgdir}/usr/share/doc/${pkgname}/changelog.gz"
fi
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-21 21:19:14 | Medium | 3 |
| 2026-08-21 21:15:20 | Medium | 2 |