baidu-translate-company-bin
The package installs a prebuilt Electron app binary (.deb) sourced from a personal GitHub account (kota-rina3/hokeshi) unrelated to Baidu's official infrastructure, making it unverifiable and trivially swappable by the repo owner; however checksums are provided and no obfuscated payloads or exfiltration are present.
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:28
"LICENSE.html::https://edu-wenku.bdimg.com/v1/pc/protocols/help24-new.htm"
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%): The package installs a prebuilt Electron app binary (.deb) sourced from a personal GitHub account (kota-rina3/hokeshi) unrelated to Baidu's official infrastructure, making it unverifiable and trivially swappable by the repo owner; however checksums are provided and no obfuscated payloads or exfiltration are present.
PKGBUILD
1 offending line(s) highlighted# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
pkgname=baidu-translate-company-bin
_zhsname='百度翻译企业版'
_debname=com.baidu.translateclient.company
pkgver=1.2.1
_electronversion=11
pkgrel=1
pkgdesc="Unoffical Baidu translate Company Client.${_zhsname}"
arch=(
'aarch64'
'x86_64'
)
url="https://fanyi.baidu.com/mtpe-organization"
_ghurl="https://github.com/kota-rina3/hokeshi"
license=('LicenseRef-custom')
provides=("${pkgname%-bin}=${pkgver}")
conflicts=(
"${pkgname%-bin}"
)
depends=(
"electron${_electronversion}-bin"
)
options=(
'!strip'
'!emptydirs'
)
source=(
"LICENSE.html::https://edu-wenku.bdimg.com/v1/pc/protocols/help24-new.htm"
"${pkgname%-bin}.sh"
)
source_aarch64=("${pkgname%-bin}-${pkgver}-aarch64.deb::${_ghurl}/releases/download/bdfanyi-company-${pkgver}/${_debname}_${pkgver}_arm64.deb")
source_x86_64=("${pkgname%-bin}-${pkgver}-x86_64.deb::${_ghurl}/releases/download/bdfanyi-company-${pkgver}/${_debname}_${pkgver}_amd64.deb")
sha256sums=('eb85aa9b3586dcd16b0f18b4b467b46b076688f9d1f723dea7f2eb92cd797ce7'
'fe033c7446c688abcb9a007d75f40eb9ca62756880cfde6be54fdf27a5bd94a8')
sha256sums_aarch64=('03d5248cad4ca923dcd8bb367c9d7e584bd87598a85497de338be2669d7584d5')
sha256sums_x86_64=('18d94cdc868777aa30a5d45d12283221c08f46dd3a30dcba97d298effd24a397')
_get_app_dir() {
find "${srcdir}" -type f -name "resources.pak" -print 2>/dev/null | while read f; do [ -d "${f%/*}/resources" ] && echo "${f%/*}" && break; done
}
_check_electron_version() {
echo "Verifying Electron version..."
local _main_exe=$(find "$(_get_app_dir)" -maxdepth 1 -type f -executable -printf '%s %p\n' | sort -nr | head -1 | cut -d' ' -f2-)
[[ -z "${_main_exe}" ]] && echo -e "\033[1;33mNote: Could not find Electron binary.\033[0m" && return
local _elec_ver=$(strings "${_main_exe}" | grep -oP 'Electron/\K[0-9]+' | head -1)
[[ -z "${_elec_ver}" ]] && echo -e "\033[1;33mNote: Could not determine Electron version.\033[0m" && return
[[ "${_elec_ver}" != "${_electronversion}" ]] &&
echo -e "\033[1;31mWarning: Electron version mismatch! Detected: ${_elec_ver}, Expected: ${_electronversion}\033[0m" ||
echo -e "Electron version verified: \033[1;31m${_elec_ver}\033[0m"
}
prepare() {
sed -i -e "
s/@electronversion@/${_electronversion}/g
s/@appname@/${pkgname%-bin}/g
s/@runname@/app/g
" "${srcdir}/${pkgname%-bin}.sh"
bsdtar -xf "${srcdir}/data."*
_check_electron_version
sed -i -e "
s/\/opt\/apps\/${_debname}\/files\///g
s/Icon=${_debname}/Icon=${pkgname%-bin}/g
" "${srcdir}/opt/apps/${_debname}/entries/applications/${_debname}.desktop"
local _app_dir="$(_get_app_dir)"
rm -rf "${_app_dir}/resources/elevate.exe"
}
package() {
install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
install -Dm755 -d "${pkgdir}/usr/lib/${pkgname%-bin}"
local _app_dir="$(_get_app_dir)"
cp -a "${_app_dir}/resources/." "${pkgdir}/usr/lib/${pkgname%-bin}/"
install -Dm644 "${srcdir}/opt/apps/${_debname}/entries/applications/${_debname}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-bin}.desktop"
find "${srcdir}" -type f \( -name "*.png" -o -name "*.svg" \) -path "*entries/icons/*" | while read -r _i; do
_icon_path="${_i#*entries/icons/}"
install -Dm644 "${_i}" "${pkgdir}/usr/share/icons/${_icon_path}"
done
install -Dm644 "${srcdir}/LICENSE.html" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-08 00:28:03 | Medium | 3 |
| 2026-10-08 00:09:18 | Medium | 3 |
| 2026-10-08 00:07:12 | Medium | 3 |