spflashtool-bin

maintainer Omar007 · 36 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The package downloads a source archive from a non-whitelisted but project-related domain (spflashtools.com) which hosts the official SP Flash Tool; the build process installs only the project's own binaries and data, with no evidence of remote code execution or payload obfuscation.

Triggered rules

LOW AI review downgraded a static finding llm_review

The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads a source archive from a non-whitelisted but project-related domain (spflashtools.com) which hosts the official SP Flash Tool; the build process installs only the project's own binaries and data, with no evidence of remote code execution or payload obfuscation.

1 higher static finding superseded - not the current verdict (shown for transparency)
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:15 source=("https://spflashtools.com/wp-content/uploads/SP_Flash_Tool_v${pkgver}_Linux.zip"

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Omar Pakker <archlinux@opakker.nl>
2
3_pkgname=spflashtool
4pkgname="${_pkgname}-bin"
5pkgver="6.2228"
6pkgrel=1
7pkgdesc="SP Flash Tool is an application to flash your MediaTek (MTK) SmartPhone."
8arch=('x86_64')
9url="http://spflashtools.com/category/linux"
10license=('unknown')
11depends=('gcc-libs' 'qt5-serialport' 'qt5-xmlpatterns')
12makedepends=('gendesk')
13provides=("${_pkgname}")
14conflicts=("${_pkgname}")
15source=("https://spflashtools.com/wp-content/uploads/SP_Flash_Tool_v${pkgver}_Linux.zip"
16 'spflashtool.png'
17 '60-spflashtool.rules')
18sha256sums=('1f063c41bb199e39e0b22082a0a369f3078e2fcd048af7aba02f0d9b5d06ba64'
19 'fe0b9c1de77c687623bfc07733041d1387f755493cdf904e6afcb47f784d34c7'
20 'a0e20dea13cfc63a92444e3763c764701162cfb5a8d04092dc69169f4214fb8d')
21
22# Workaround for source file download, which requires the 'Referer' header to be set
23DLAGENTS=('https::/usr/bin/curl -gqb "" -fLC - --retry 3 --retry-delay 3 -o %o %u -e %u'
24 "${DLAGENTS[@]}")
25
26prepare() {
27 # Create .desktop file.
28 gendesk -f -n \
29 --pkgname "${_pkgname}" \
30 --pkgdesc "${pkgdesc}" \
31 --name "SP Flash Tool" \
32 --genericname "Firmware Flasher" \
33 --comment "MediaTek (MTK) Firmware Flasher" \
34 --exec "/usr/bin/${_pkgname}" \
35 --categories "System;"
36
37 # Create exec file. Required for the binary to find its own .so files
38 {
39 echo '#!/bin/sh'
40 echo 'export LD_LIBRARY_PATH="/opt/'"${_pkgname}"'"'
41 echo 'exec /opt/'"${_pkgname}"'/SPFlashToolV6 "${@}"'
42 } > "${srcdir}/${_pkgname}"
43}
44
45package() {
46 local folderName="SP_Flash_Tool_v${pkgver}_Linux"
47
48 # Clean files we do not need
49 rm -r "${srcdir}/${folderName}/Driver"
50 rm -r "${srcdir}/${folderName}/lib"
51 rm -r "${srcdir}/${folderName}/plugins"
52 rm "${srcdir}/${folderName}/99-ttyacms.rules"
53 rm "${srcdir}/${folderName}/modemmanagercmd.sh"
54 rm "${srcdir}/${folderName}/SPFlashToolV6.sh"
55
56 # Install remaining files
57 install -Dm644 -t "${pkgdir}/opt/${_pkgname}/" "${srcdir}/${folderName}/"*
58
59 # Mark the binary as executable and install the shell file created in prepare()
60 chmod 755 "${pkgdir}/opt/${_pkgname}/SPFlashToolV6"
61 install -Dm755 "${srcdir}/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
62
63 # Desktop file and icon
64 install -Dm644 "${srcdir}/${_pkgname}.png" "${pkgdir}/usr/share/pixmaps/${_pkgname}.png"
65 install -Dm644 "${srcdir}/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
66
67 # Udev rule
68 install -Dm644 "${srcdir}/60-${_pkgname}.rules" "${pkgdir}/usr/lib/udev/rules.d/60-${_pkgname}.rules"
69}
70

Scan history

Scanned at (UTC)SeverityRules
2026-08-03 00:08:14 LOW 2
2026-08-02 00:16:08 LOW 2
2026-08-01 00:11:18 LOW 2
2026-07-31 00:14:10 LOW 2
2026-07-30 00:17:23 LOW 2
2026-07-29 00:25:53 LOW 2
2026-07-28 00:07:28 LOW 2
2026-07-27 00:24:32 LOW 2
2026-07-26 00:07:32 LOW 2
2026-07-25 00:13:44 LOW 2
2026-07-24 00:02:28 LOW 2
2026-07-23 00:14:47 LOW 2
2026-07-22 00:29:32 LOW 2
2026-07-21 00:24:15 LOW 2
2026-07-20 00:19:49 LOW 2
2026-07-19 00:17:08 LOW 2
2026-07-18 00:14:48 LOW 2
2026-07-17 00:06:16 LOW 2
2026-07-16 00:05:41 LOW 2
2026-07-15 00:09:25 LOW 2

Report a package

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

0 / 4000
Your suggestion