eusoft-ting-de-bin
The package downloads a prebuilt .deb from a non-whitelisted, project-owned but non-standard host (static.frdic.com), which is used to extract and install an unverifiable binary Electron application, creating a supply-chain risk if the host were compromised.
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:21
"${pkgname%-bin}-${pkgver}.deb::https://static.frdic.com/pkg/${_pkgname}/${_pkgname}.deb" -
PKGBUILD:22
"LICENSE.html::https://www.eudic.net/v4/en/home/privacy"
llm_review
An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is MEDIUM (confidence 85%): The package downloads a prebuilt .deb from a non-whitelisted, project-owned but non-standard host (static.frdic.com), which is used to extract and install an unverifiable binary Electron application, creating a supply-chain risk if the host were compromised.
PKGBUILD
2 offending line(s) highlighted# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
_pkgname=ting_de
pkgname="eusoft-${_pkgname//_/-}-bin"
_zhname='每日德语听力'
pkgver=26.9.1
_electronversion=22
pkgrel=1
pkgdesc="听力统计、笔记同步、语音高亮跟随,让您轻松愉快学德语"
arch=('x86_64')
url="https://www.godic.net/ting"
license=('LicenseRef-custom')
conflicts=(
"${pkgname%-bin}"
"eudic-${_pkgname//_/-}"
"${_pkgname//_/-}")
depends=(
"electron${_electronversion}"
'ffmpeg'
)
source=(
"${pkgname%-bin}-${pkgver}.deb::https://static.frdic.com/pkg/${_pkgname}/${_pkgname}.deb"
"LICENSE.html::https://www.eudic.net/v4/en/home/privacy"
"${pkgname%-bin}.sh"
)
sha256sums=('46ff02b3bd5d08289ce230530d2000f2b1b4a876328900d623ffca94f810b2bb'
'926546d03b551cca9d4ef027f5119e70db3cce2bc25b25bd838c97d73ee824c4'
'a774c2f54fbbeeaac3cefc0f7250796d30c86d27f0fd40b7eaf9c0fdb021623d')
_get_app_dir() {
find "${srcdir}" -type d -name "node_modules" -prune -o -type f -name "resources.pak" -print0 | xargs -0 dirname | head -n 1
}
_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.asar/g
s/@cfgdirname@/${pkgname%-bin}/g
" "${srcdir}/${pkgname%-bin}.sh"
bsdtar -xf "${srcdir}/data."*
_check_electron_version
sed -i -e "
s/\"\/opt\/${_zhname}\/${_pkgname}\"/${pkgname%-bin}/g
s/Icon=${_pkgname}/Icon=${pkgname%-bin}/g
" "${srcdir}/usr/share/applications/${_pkgname}.desktop"
ln -sf "/usr/bin/ffmpeg" "${srcdir}/opt/${_zhname}/resources/app.asar.unpacked/ffmpeg-linux-x64"
}
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}/usr/share/applications/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-bin}.desktop"
find "${srcdir}" -type f \( -name "*.png" -o -name "*.svg" \) -path "*share/icons/*" | while read -r _i; do
_extension="${_i##*.}"
_icon_path="${_i#*share/icons/}"
_target_dir="/usr/share/icons/$(dirname "${_icon_path}")"
install -Dm644 "${_i}" "${pkgdir}${_target_dir}/${pkgname%-bin}.${_extension}"
done
install -Dm644 "${srcdir}/LICENSE.html" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
Changes since previous scan
--- PKGBUILD @ 2026-06-20 16:03+++ PKGBUILD @ 2026-09-21 05:34@@ -2,8 +2,8 @@ _pkgname=ting_de pkgname="eusoft-${_pkgname//_/-}-bin" _zhname='每日德语听力'-pkgver=10.2.0-_electronversion=11+pkgver=26.9.1+_electronversion=22 pkgrel=1 pkgdesc="听力统计、笔记同步、语音高亮跟随,让您轻松愉快学德语" arch=('x86_64')@@ -22,12 +22,21 @@ "LICENSE.html::https://www.eudic.net/v4/en/home/privacy" "${pkgname%-bin}.sh" )-sha256sums=('d758d44503db2bce5b5b22ebf1228ac9378f2d4e81f963bc89c4c34d00ea4b69'- '7f16e15435a7380645f8573fd7333f67c16811c04c15364d2e5d7bd44fa5e23a'- 'f2fe8c189974ffb9d445e9a42bd4f1d5b60185607c3fcafae79ab44be224e013')-_get_electron_version() {- _electronversion="$(strings "${srcdir}/opt/${_zhname}/${_pkgname}" | grep '^Chrome/[0-9.]* Electron/[0-9]' | cut -d'/' -f3 | cut -d'.' -f1)"- echo -e "The electron version is: \033[1;31m${_electronversion}\033[0m"+sha256sums=('46ff02b3bd5d08289ce230530d2000f2b1b4a876328900d623ffca94f810b2bb'+ '926546d03b551cca9d4ef027f5119e70db3cce2bc25b25bd838c97d73ee824c4'+ 'a774c2f54fbbeeaac3cefc0f7250796d30c86d27f0fd40b7eaf9c0fdb021623d')+_get_app_dir() {+ find "${srcdir}" -type d -name "node_modules" -prune -o -type f -name "resources.pak" -print0 | xargs -0 dirname | head -n 1+}+_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 "@@ -35,10 +44,9 @@ s/@appname@/${pkgname%-bin}/g s/@runname@/app.asar/g s/@cfgdirname@/${pkgname%-bin}/g- s/@options@//g " "${srcdir}/${pkgname%-bin}.sh" bsdtar -xf "${srcdir}/data."*- _get_electron_version+ _check_electron_version sed -i -e " s/\"\/opt\/${_zhname}\/${_pkgname}\"/${pkgname%-bin}/g s/Icon=${_pkgname}/Icon=${pkgname%-bin}/g@@ -47,14 +55,16 @@ } package() { install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"- install -Dm644 "${srcdir}/opt/${_zhname}/resources/app.asar" -t "${pkgdir}/usr/lib/${pkgname%-bin}"- cp -Pr --no-preserve=ownership "${srcdir}/opt/${_zhname}/resources/app.asar.unpacked" "${pkgdir}/usr/lib/${pkgname%-bin}"- install -Dm644 "${srcdir}/opt/${_zhname}/swiftshader/"* -t "${pkgdir}/usr/lib/${pkgname%-bin}/swiftshader"+ 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}/usr/share/applications/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-bin}.desktop"- _icon_sizes=(32x32 128x128 256x256)- for _icons in "${_icon_sizes[@]}";do- install -Dm644 "${srcdir}/usr/share/icons/hicolor/${_icons}/apps/${_pkgname}.png" \- "${pkgdir}/usr/share/icons/hicolor/${_icons}/apps/${pkgname%-bin}.png"- done+ find "${srcdir}" -type f \( -name "*.png" -o -name "*.svg" \) -path "*share/icons/*" | while read -r _i; do+ _extension="${_i##*.}"+ _icon_path="${_i#*share/icons/}"+ _target_dir="/usr/share/icons/$(dirname "${_icon_path}")"+ install -Dm644 "${_i}" "${pkgdir}${_target_dir}/${pkgname%-bin}.${_extension}"+ done install -Dm644 "${srcdir}/LICENSE.html" -t "${pkgdir}/usr/share/licenses/${pkgname}" }+Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-21 05:34:06 | Medium | 2 |
| 2026-06-20 16:03:41 | Clean | 2 |
| 2026-06-20 00:50:07 | Medium | 2 |
| 2026-06-20 00:18:46 | Medium | 1 |
| 2026-06-19 23:51:18 | Medium | 2 |
| 2026-06-19 19:07:35 | Low | 2 |
| 2026-06-18 16:11:54 | Medium | 1 |