eusoft-ting-de-bin

MEDIUM
maintainer zxp19821005 0 votes scanned 2026-09-21 05:34:06.811684
View on AUR
Why flagged

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

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: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"
Medium AI review 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
1# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2_pkgname=ting_de
3pkgname="eusoft-${_pkgname//_/-}-bin"
4_zhname='每日德语听力'
5pkgver=26.9.1
6_electronversion=22
7pkgrel=1
8pkgdesc="听力统计、笔记同步、语音高亮跟随,让您轻松愉快学德语"
9arch=('x86_64')
10url="https://www.godic.net/ting"
11license=('LicenseRef-custom')
12conflicts=(
13 "${pkgname%-bin}"
14 "eudic-${_pkgname//_/-}"
15 "${_pkgname//_/-}")
16depends=(
17 "electron${_electronversion}"
18 'ffmpeg'
19)
20source=(
21 "${pkgname%-bin}-${pkgver}.deb::https://static.frdic.com/pkg/${_pkgname}/${_pkgname}.deb"
22 "LICENSE.html::https://www.eudic.net/v4/en/home/privacy"
23 "${pkgname%-bin}.sh"
24)
25sha256sums=('46ff02b3bd5d08289ce230530d2000f2b1b4a876328900d623ffca94f810b2bb'
26 '926546d03b551cca9d4ef027f5119e70db3cce2bc25b25bd838c97d73ee824c4'
27 'a774c2f54fbbeeaac3cefc0f7250796d30c86d27f0fd40b7eaf9c0fdb021623d')
28_get_app_dir() {
29 find "${srcdir}" -type d -name "node_modules" -prune -o -type f -name "resources.pak" -print0 | xargs -0 dirname | head -n 1
30}
31_check_electron_version() {
32 echo "Verifying Electron version..."
33 local _main_exe=$(find "$(_get_app_dir)" -maxdepth 1 -type f -executable -printf '%s %p\n' | sort -nr | head -1 | cut -d' ' -f2-)
34 [[ -z "${_main_exe}" ]] && echo -e "\033[1;33mNote: Could not find Electron binary.\033[0m" && return
35 local _elec_ver=$(strings "${_main_exe}" | grep -oP 'Electron/\K[0-9]+' | head -1)
36 [[ -z "${_elec_ver}" ]] && echo -e "\033[1;33mNote: Could not determine Electron version.\033[0m" && return
37 [[ "${_elec_ver}" != "${_electronversion}" ]] &&
38 echo -e "\033[1;31mWarning: Electron version mismatch! Detected: ${_elec_ver}, Expected: ${_electronversion}\033[0m" ||
39 echo -e "Electron version verified: \033[1;31m${_elec_ver}\033[0m"
40}
41prepare() {
42 sed -i -e "
43 s/@electronversion@/${_electronversion}/g
44 s/@appname@/${pkgname%-bin}/g
45 s/@runname@/app.asar/g
46 s/@cfgdirname@/${pkgname%-bin}/g
47 " "${srcdir}/${pkgname%-bin}.sh"
48 bsdtar -xf "${srcdir}/data."*
49 _check_electron_version
50 sed -i -e "
51 s/\"\/opt\/${_zhname}\/${_pkgname}\"/${pkgname%-bin}/g
52 s/Icon=${_pkgname}/Icon=${pkgname%-bin}/g
53 " "${srcdir}/usr/share/applications/${_pkgname}.desktop"
54 ln -sf "/usr/bin/ffmpeg" "${srcdir}/opt/${_zhname}/resources/app.asar.unpacked/ffmpeg-linux-x64"
55}
56package() {
57 install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
58 install -Dm755 -d "${pkgdir}/usr/lib/${pkgname%-bin}"
59 local _app_dir=$(_get_app_dir)
60 cp -a "${_app_dir}/resources/." "${pkgdir}/usr/lib/${pkgname%-bin}/"
61 install -Dm644 "${srcdir}/usr/share/applications/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-bin}.desktop"
62 find "${srcdir}" -type f \( -name "*.png" -o -name "*.svg" \) -path "*share/icons/*" | while read -r _i; do
63 _extension="${_i##*.}"
64 _icon_path="${_i#*share/icons/}"
65 _target_dir="/usr/share/icons/$(dirname "${_icon_path}")"
66 install -Dm644 "${_i}" "${pkgdir}${_target_dir}/${pkgname%-bin}.${_extension}"
67 done
68 install -Dm644 "${srcdir}/LICENSE.html" -t "${pkgdir}/usr/share/licenses/${pkgname}"
69}
70

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)SeverityRules
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

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion