eusoft-ting-fr-bin

MEDIUM
maintainer zxp19821005 0 votes scanned 2026-11-01 00:21:48.120785
View on AUR
Why flagged

The package downloads a prebuilt .deb binary from a non-standard host (static.frdic.com) which is not inherently malicious but presents a supply-chain risk if the host were compromised, as the binary is not built from source and could be silently replaced.

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:22 "${pkgname%-bin}-${pkgver}.deb::https://static.frdic.com/pkg/${_appname}/${_appname}.deb?v=${pkgver}"
  • PKGBUILD:23 "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 95%): The package downloads a prebuilt .deb binary from a non-standard host (static.frdic.com) which is not inherently malicious but presents a supply-chain risk if the host were compromised, as the binary is not built from source and could be silently replaced.

PKGBUILD

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

Scan history

Scanned at (UTC)SeverityRules
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
2026-10-16 00:12:47 Medium 2
2026-10-15 00:28:05 Medium 2
2026-10-14 00:06:47 Medium 2
2026-10-13 00:23:45 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