eusoft-ting-de-bin

MEDIUM
maintainer zxp19821005 0 votes scanned 2026-11-05 00:01:40.459668
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

Scan history

Scanned at (UTC)SeverityRules
2026-11-05 00:01:40 Medium 2
2026-11-04 00:25:23 Medium 2
2026-11-03 00:01:00 Medium 2
2026-11-02 00:26:00 Medium 2
2026-11-01 00:21:48 Medium 2
2026-10-31 00:07:41 Medium 2
2026-10-30 00:29:30 Medium 2
2026-10-29 00:13:55 Medium 2
2026-10-28 00:06:54 Medium 2
2026-10-27 00:23:28 Medium 2
2026-10-26 00:12:40 Medium 2
2026-10-25 00:20:48 Medium 2
2026-10-24 00:14:55 Medium 2
2026-10-23 00:02:19 Medium 2
2026-10-22 00:13:10 Medium 2
2026-10-21 00:12:50 Medium 2
2026-10-20 00:10:31 Medium 2
2026-10-19 00:03:55 Medium 2
2026-10-18 00:06:55 Medium 2
2026-10-17 00:21:55 Medium 2

Report a package

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

0 / 4000
Your suggestion