coze-bin

MEDIUM
maintainer zxp19821005 0 votes scanned 2026-09-23 11:42:33.790858
View on AUR
Why flagged

The prebuilt .deb binaries are downloaded from a personal/unofficial GitHub repository (kota-rina3/hokeshi) rather than an official Coze release infrastructure, making them unverifiable and trivially swappable by the repo owner; while checksums are provided, the source is not the official vendor and could silently distribute malicious Electron app bundles.

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:23 "LICENSE.html::https://docs.coze.cn/guides_terms-of-service"
Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Medium AI review llm_review

An AI model (anthropic/claude-sonnet-4.6) reviewed this and agrees it is MEDIUM (confidence 70%): The prebuilt .deb binaries are downloaded from a personal/unofficial GitHub repository (kota-rina3/hokeshi) rather than an official Coze release infrastructure, making them unverifiable and trivially swappable by the repo owner; while checksums are provided, the source is not the official vendor and could silently distribute malicious Electron app bundles.

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2pkgname=coze-bin
3_pkgname=Coze
4_debname="com.${pkgname%-bin}.uos"
5pkgver=1.1.39
6_electronversion=39
7pkgrel=1
8pkgdesc="Unofficial Linux version of Coze client.Work is handed over to coze, creation doesn't have to wait.扣子客户端非官方Linux版.工作交给扣子,创造不必等待."
9arch=(
10 'aarch64'
11 'x86_64'
12)
13url="https://www.coze.cn"
14_ghurl="https://github.com/kota-rina3/hokeshi"
15license=('LicenseRef-custom')
16provides=("${pkgname%-bin}=${pkgver}")
17conflicts=("${pkgname%-bin}")
18depends=(
19 "electron${_electronversion}"
20 'python'
21)
22source=(
23 "LICENSE.html::https://docs.coze.cn/guides_terms-of-service"
24 "${pkgname%-bin}.sh"
25)
26source_aarch64=("${pkgname%-bin}-${pkgver}-aarch64.deb::${_ghurl}/releases/download/${pkgname%-bin}-${pkgver}/${_debname}_${pkgver}_arm64.deb")
27source_x86_64=("${pkgname%-bin}-${pkgver}-x86_64.deb::${_ghurl}/releases/download/${pkgname%-bin}-${pkgver}/${_debname}_${pkgver}_amd64.deb")
28sha256sums=('08ae9b4bb725b1611f3c4150d49d54b9b60f72b2b2c18d63d8c8bc4336de9696'
29 '5ec6b59a287204cbcbac040071f19d88897a0cb3156e794e6f05847cf5449a9e')
30sha256sums_aarch64=('a6c454448f839f15440314d58a42116a52bfc32adcdb1e358c24550b2aedaeb4')
31sha256sums_x86_64=('9f3257506841fe71ed8eda2e6a4963f1fdab60b5faaa0117b05112d1b87555b6')
32_get_app_dir() {
33 find "${srcdir}" -type d -name "node_modules" -prune -o -type f -name "resources.pak" -print0 | xargs -0 dirname | head -n 1
34}
35_check_electron_version() {
36 echo "Verifying Electron version..."
37 local _main_exe=$(find "$(_get_app_dir)" -maxdepth 1 -type f -executable -printf '%s %p\n' | sort -nr | head -1 | cut -d' ' -f2-)
38 [[ -z "${_main_exe}" ]] && echo -e "\033[1;33mNote: Could not find Electron binary.\033[0m" && return
39 local _elec_ver=$(strings "${_main_exe}" | grep -oP 'Electron/\K[0-9]+' | head -1)
40 [[ -z "${_elec_ver}" ]] && echo -e "\033[1;33mNote: Could not determine Electron version.\033[0m" && return
41 [[ "${_elec_ver}" != "${_electronversion}" ]] &&
42 echo -e "\033[1;31mWarning: Electron version mismatch! Detected: ${_elec_ver}, Expected: ${_electronversion}\033[0m" ||
43 echo -e "Electron version verified: \033[1;31m${_elec_ver}\033[0m"
44}
45prepare() {
46 sed -i -e "
47 s/@electronversion@/${_electronversion}/g
48 s/@appname@/${pkgname%-bin}/g
49 s/@runname@/app.asar/g
50 s/@cfgdirname@/${_pkgname}/g
51 " "${srcdir}/${pkgname%-bin}.sh"
52 bsdtar -xf "${srcdir}/data."*
53 _check_electron_version
54 sed -i -e "
55 s/\/opt\/apps\/${_debname}\/files\/${pkgname%-bin}/${pkgname%-bin} %U/g
56 s/\/opt\/apps\/${_debname}\/files\/resources\/${pkgname%-bin}.png/${pkgname%-bin}/g
57 " "${srcdir}/opt/apps/${_debname}/entries/applications/${pkgname%-bin}.desktop"
58 local _app_dir=$(_get_app_dir)
59 rm -rf "${_app_dir}/resources/elevate.exe"
60}
61package() {
62 install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
63 install -Dm755 -d "${pkgdir}/usr/lib/${pkgname%-bin}"
64 local _app_dir=$(_get_app_dir)
65 cp -a "${_app_dir}/resources/." "${pkgdir}/usr/lib/${pkgname%-bin}/"
66 install -Dm644 "${_app_dir}/resources/icon.png" "${pkgdir}/usr/share/icons/hicolor/256x256/apps/${pkgname%-bin}.png"
67 install -Dm644 "${srcdir}/opt/apps/${_debname}/entries/applications/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
68 install -Dm644 "${srcdir}/LICENSE.html" -t "${pkgdir}/usr/share/licenses/${pkgname}"
69}

Scan history

Scanned at (UTC)SeverityRules
2026-09-23 11:42:33 Medium 3
2026-09-23 11:40:33 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