qoder-cn-ide-bin

MEDIUM
maintainer zxp19821005 0 votes scanned 2026-09-22 07:39:05.601057
View on AUR
Why flagged

The package downloads a prebuilt RPM binary from an Alibaba OSS bucket (aliyuncs.com) belonging to the project's own infrastructure, but this is an unofficial Chinese IDE with few votes, a non-standard distribution host, and the binary is executed directly via Electron — if the OSS bucket were compromised or swapped, arbitrary code would run; however the checksum is present and the host appears to be the project's own CDN, making this a borderline medium rather than high.

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:29 "${pkgname%-bin}-${pkgver}.rpm::https://qoder-ide-cn.oss-cn-hangzhou.aliyuncs.com/qoder/release/lastest/${pkgname%-bin}_${CARCH}.rpm"
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 65%): The package downloads a prebuilt RPM binary from an Alibaba OSS bucket (aliyuncs.com) belonging to the project's own infrastructure, but this is an unofficial Chinese IDE with few votes, a non-standard distribution host, and the binary is executed directly via Electron — if the OSS bucket were compromised or swapped, arbitrary code would run; however the checksum is present and the host appears to be the project's own CDN, making this a borderline medium rather than high.

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2_appname=qoder-cn
3pkgname="${_appname}-ide-bin"
4_pkgname='Qoder IDE'
5pkgver=1.31.2
6_electronversion=42
7pkgrel=1
8pkgdesc="面向真实软件开发的 AI 原生 Qoder CN IDE。"
9arch=('x86_64')
10url="https://qoder.cn"
11license=('LicenseRef-custom')
12conflicts=("${pkgname%-bin}")
13provides=("${pkgname%-bin}=${pkgver}")
14depends=(
15 "electron${_electronversion}"
16 'libxkbfile'
17 'nodejs'
18 'python'
19)
20optdepends=(
21 'bash'
22 'zsh'
23)
24options=(
25 '!emptydirs'
26 '!strip'
27)
28source=(
29 "${pkgname%-bin}-${pkgver}.rpm::https://qoder-ide-cn.oss-cn-hangzhou.aliyuncs.com/qoder/release/lastest/${pkgname%-bin}_${CARCH}.rpm"
30 "LICENSE.html"
31 "${pkgname%-bin}.js"
32 "${pkgname%-bin}.sh"
33)
34sha256sums=('7f529095ff9d74504202a945365dc1c98a770fe47e064f007b096c0f7c3b93f7'
35 'd93359b3ca57aec94960975eec23b6412dc8fc0c5b5fcbce57bee0931e01ec61'
36 '144551f99c19e89223da901011e9d237904bd895900676b9b69d317bcb4181b8'
37 '700067aa4b354a91ab3374b5495af9eb3093855a3d8016a8303e88abf3470599')
38pkgver() {
39 cd "${srcdir}/usr/share/${pkgname%-bin}/resources/app"
40 grep '"version":' featureFlags.json | awk -F'"version": "' '{print $2}' | awk -F',' '{print $1}' | tr -d '"'
41}
42_get_app_dir() {
43 find "${srcdir}" -type f -name "resources.pak" -exec dirname {} + | head -n 1
44}
45_check_electron_version() {
46 echo "Verifying Electron version..."
47 local _main_exe=$(find "$(_get_app_dir)" -maxdepth 1 -type f -executable -printf '%s %p\n' | sort -nr | head -1 | cut -d' ' -f2-)
48 [[ -z "${_main_exe}" ]] && echo -e "\033[1;33mNote: Could not find Electron binary.\033[0m" && return
49 local _elec_ver=$(strings "${_main_exe}" | grep -oP 'Electron/\K[0-9]+' | head -1)
50 [[ -z "${_elec_ver}" ]] && echo -e "\033[1;33mNote: Could not determine Electron version.\033[0m" && return
51 [[ "${_elec_ver}" != "${_electronversion}" ]] &&
52 echo -e "\033[1;31mWarning: Electron version mismatch! Detected: ${_elec_ver}, Expected: ${_electronversion}\033[0m" ||
53 echo -e "Electron version verified: \033[1;31m${_elec_ver}\033[0m"
54}
55prepare() {
56 _check_electron_version
57 sed -i -e "
58 s/@electronversion@/${_electronversion}/g
59 s/@appname@/${pkgname%-bin}/g
60 s/@runname@/app/g
61 s/@cfgdirname@/${_pkgname}/g
62 " "${srcdir}/${pkgname%-bin}.sh"
63 sed -i "s/@ELECTRON@/electron${_electronversion}/g" "${srcdir}/${pkgname%-bin}.js"
64 sed -i "s/\/usr\/share\/${pkgname%-bin}\///g" "${srcdir}/usr/share/applications/${pkgname%-bin}"*.desktop
65 local _app_dir=$(_get_app_dir)
66 find "${_app_dir}/resources/app" \( -name "*win32*" -o -name "*darwin*" -o -name "*arm*" \) -exec rm -rf {} +
67 rm -rf \
68 "${_app_dir}/resources/app/node_modules/windows-foreground-love" \
69 "${_app_dir}/resources/app/node_modules/native-is-elevated"
70}
71package() {
72 install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
73 install -Dm755 "${srcdir}/${pkgname%-bin}.js" -t "${pkgdir}/usr/lib/${pkgname%-bin}"
74 local _app_dir=$(_get_app_dir)
75 cp -a "${_app_dir}/resources/app/"* "${pkgdir}/usr/lib/${pkgname%-bin}/"
76 install -Dm644 "${srcdir}/usr/share/pixmaps/${pkgname%-bin}.png" -t "${pkgdir}/usr/share/pixmaps"
77 install -Dm644 "${srcdir}/usr/share/applications/${pkgname%-bin}"* -t "${pkgdir}/usr/share/applications"
78 install -Dm644 "${srcdir}/usr/share/appdata/${pkgname%-bin}.appdata.xml" -t "${pkgdir}/usr/share/appdata"
79 install -Dm644 "${srcdir}/usr/share/mime/packages/${pkgname%-bin}-workspace.xml" -t "${pkgdir}/usr/share/mime/packages"
80 if [ -x "/usr/bin/zsh" ];then
81 install -Dm644 "${srcdir}/usr/share/bash-completion/completions/${_appname}" "${pkgdir}/usr/share/bash-completion/completions/${pkgname%-bin}"
82 fi
83 if [ -x "/usr/bin/zsh" ];then
84 install -Dm644 "${srcdir}/usr/share/zsh/site-functions/_${_appname}" "${pkgdir}/usr/share/zsh/site-functions/_${pkgname%-bin}"
85 fi
86 install -Dm644 "${srcdir}/LICENSE.html" -t "${pkgdir}/usr/share/licenses/${pkgname}"
87}

Scan history

Scanned at (UTC)SeverityRules
2026-09-22 07:39:05 Medium 3
2026-09-22 07:37:25 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