youdaodict-bin
Installs a prebuilt Electron app (.deb) from a personal third-party GitHub repo (kota-rina3/hokeshi) unrelated to official Youdao/NetEase infrastructure; while checksums are present, the binary is unofficial and unverifiable, posing a supply-chain risk.
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:22
"LICENSE.html::https://c.youdao.com/dict/law/youdaofanyi_pc_privacy.html"
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 75%): Installs a prebuilt Electron app (.deb) from a personal third-party GitHub repo (kota-rina3/hokeshi) unrelated to official Youdao/NetEase infrastructure; while checksums are present, the binary is unofficial and unverifiable, posing a supply-chain risk.
PKGBUILD
1 offending line(s) highlighted# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
_appname=youdao
pkgname="${_appname}dict-bin"
_debname="netease.${_appname}.dict.otohime"
pkgver=11.3.26.0
_electronversion=42
pkgrel=1
pkgdesc="Third-party A copy of Youdao Dict translation.有道翻译复刻版"
arch=(
'aarch64'
'x86_64'
)
url="http://cidian.youdao.com/"
_dlurl="https://github.com/kota-rina3/hokeshi"
license=('LicenseRef-youdaodict')
provides=("${pkgname%-bin}=${pkgver}")
conflicts=("${pkgname%-bin}")
depends=(
"electron${_electronversion}"
)
source=(
"LICENSE.html::https://c.youdao.com/dict/law/youdaofanyi_pc_privacy.html"
"${pkgname%-bin}.js"
"${pkgname%-bin}.sh"
)
source_aarch64=("${pkgname%-bin}-${pkgver}-aarch64.deb::${_dlurl}/releases/download/${pkgname%-bin}-v${pkgver}/${_debname}_${pkgver}_arm64.deb")
source_x86_64=("${pkgname%-bin}-${pkgver}-x86_64.deb::${_dlurl}/releases/download/${pkgname%-bin}-v${pkgver}/${_debname}_${pkgver}_amd64.deb")
sha256sums=('5d60752880454c54621bfe3c8a886c714f6f47f7fe4890b230e9cd7f78e300f5'
'562897be8a17076176f8d985c0d7bc1c685f2e7c9b3a932339ce015963243627'
'e0aa8bf265dbd30108314bbd34948d9d878320f97d6b4e5d85e1ce6f83a655e1')
sha256sums_aarch64=('7210f5ba4f5894311c3e1bb8d5a9e7216a501431f9acb63a7cefb7bf465c6f15')
sha256sums_x86_64=('43e2f891b20fa3ffd52b18c948abb17c6c7136bf93f7db18dc9f51e23abfbe3e')
_get_app_dir() {
find "${srcdir}" -type f -name "resources.pak" ! -path "*/node_modules/*" -printf '%h\n' 2>/dev/null \
| while read -r d; do [[ -d "${d}/resources" ]] && { echo "$d"; return 0; }; done
}
_check_electron_version() {
local _v=$(strings "$(find "$(_get_app_dir)" -maxdepth 1 -type f \
-executable -printf '%s %p\n' | sort -nr | head -1 | cut -d' ' -f2-)" \
| grep -oP 'Electron/\K[0-9]+' | head -1)
[[ -z "$_v" ]] && { echo -e "\033[1;33mNote: Could not check version.\033[0m"; return; }
(( _v == _electronversion )) && c=32 || c=31
echo -e "Electron version: \033[1;${c}m$_v$([[ $c -eq 31 ]] && echo " (expected $_electronversion)")\033[0m"
}
_install_icons() {
local _src="${1:-${srcdir}}" _name="${pkgname%-bin}" _icon _ext _size _dest
while IFS= read -r -d '' _icon; do
_ext="${_icon##*.}"
_size=$(echo "${_icon%/*}" | grep -oE '[0-9]+x[0-9]+|scalable' | head -1)
[[ -z "${_size}" ]] && _size=$([[ "${_ext}" == svg ]] && echo scalable || od -An -tu1 -j16 -N8 "${_icon}" 2>/dev/null | awk '{printf "%dx%d",$1*16777216+$2*65536+$3*256+$4,$5*16777216+$6*65536+$7*256+$8}')
[[ "${_size}" =~ ^[0-9]+x[0-9]+$ ]] || _size=scalable
_dest=$([[ "${_icon}" == */share/pixmaps/* ]] && echo pixmaps || echo "icons/hicolor/${_size}/apps")
install -Dm644 "${_icon}" "${pkgdir}/usr/share/${_dest}/${_name}.${_ext}"
done < <(find "${_src}" \( -path '*/share/icons/*' -o -path '*/share/pixmaps/*' -o -path '*entries/icons/*' \) -type f \( -name '*.png' -o -name '*.svg' \) -print0 2>/dev/null)
}
prepare() {
sed -i -e "
s/@electronversion@/${_electronversion}/g
s/@appname@/${pkgname%-bin}/g
" "${srcdir}/${pkgname%-bin}.sh" "${srcdir}/${pkgname%-bin}.js"
bsdtar -xf "${srcdir}/data."*
_check_electron_version
sed -i -e "
s/Exec=\/opt\/apps\/${_debname}\/files\/${_appname}.sh/Exec=${pkgname%-bin} %U/g
s/Icon=\/opt\/apps\/${_debname}\/files\/resources\/${_appname}.png/Icon=${pkgname%-bin}/g
" "${srcdir}/opt/apps/${_debname}/entries/applications/${_appname}.desktop"
}
package() {
install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
install -Dm644 "${srcdir}/${pkgname%-bin}.js" -t "${pkgdir}/usr/lib/${pkgname%-bin}"
cp -a "$(_get_app_dir)/resources/." "${pkgdir}/usr/lib/${pkgname%-bin}/"
install -Dm644 "${srcdir}/opt/apps/${_debname}/entries/applications/${_appname}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-bin}.desktop"
_install_icons
install -Dm644 "${srcdir}/LICENSE.html" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-05 10:11:24 | Medium | 3 |
| 2026-11-05 10:09:05 | Medium | 3 |