spflashtool5-bin
This PKGBUILD downloads and installs a prebuilt closed-source binary (flash_tool) from spflashtools.com, which is a third-party aggregator/mirror site rather than the official MediaTek/SP Flash Tool vendor. The binary is executed directly on the user's system with LD_LIBRARY_PATH set to its own directory. While sha256sums are present (providing integrity checking against the specific file at time of packaging), the host is not an official vendor distribution channel — spflashtools.com is a community mirror that could substitute binaries without the maintainer's knowledge. The 'unknown' license also indicates the provenance is unclear. This is a genuine medium-severity supply-chain concern: an unofficial host serving executed binaries, not a false positive.
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:15
source=("https://spflashtools.com/wp-content/uploads/SP_Flash_Tool_v${pkgver}_Linux.zip"
llm_review
An AI model (anthropic/claude-4.6-sonnet-20260217) reviewed this and agrees it is MEDIUM (confidence 75%): This PKGBUILD downloads and installs a prebuilt closed-source binary (flash_tool) from spflashtools.com, which is a third-party aggregator/mirror site rather than the official MediaTek/SP Flash Tool vendor. The binary is executed directly on the user's system with LD_LIBRARY_PATH set to its own directory. While sha256sums are present (providing integrity checking against the specific file at time of packaging), the host is not an official vendor distribution channel — spflashtools.com is a community mirror that could substitute binaries without the maintainer's knowledge. The 'unknown' license also indicates the provenance is unclear. This is a genuine medium-severity supply-chain concern: an unofficial host serving executed binaries, not a false positive.
PKGBUILD
1 offending line(s) highlighted# Maintainer: Omar Pakker <archlinux@opakker.nl>
_pkgname=spflashtool5
pkgname="${_pkgname}-bin"
pkgver="5.2228"
pkgrel=1
pkgdesc="SP Flash Tool is an application to flash your MediaTek (MTK) SmartPhone. Version 5 variant."
arch=('x86_64')
url="http://spflashtools.com/category/linux"
license=('unknown')
depends=('gcc-libs' 'libpng12' 'qtwebkit')
makedepends=('gendesk')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("https://spflashtools.com/wp-content/uploads/SP_Flash_Tool_v${pkgver}_Linux.zip"
'spflashtool5.png'
'60-spflashtool5.rules')
sha256sums=('18b11eed341fd57feb7fbc58a7b8eb93429bacc7d25a993878af8a0b6e98df10'
'fe0b9c1de77c687623bfc07733041d1387f755493cdf904e6afcb47f784d34c7'
'a0e20dea13cfc63a92444e3763c764701162cfb5a8d04092dc69169f4214fb8d')
# Workaround for source file download, which requires the 'Referer' header to be set
DLAGENTS=('https::/usr/bin/curl -gqb "" -fLC - --retry 3 --retry-delay 3 -o %o %u -e %u'
"${DLAGENTS[@]}")
prepare() {
# Create .desktop file.
gendesk -f -n \
--pkgname "${_pkgname}" \
--pkgdesc "${pkgdesc}" \
--name "SP Flash Tool" \
--genericname "Firmware Flasher" \
--comment "MediaTek (MTK) Firmware Flasher" \
--exec "/usr/bin/${_pkgname}" \
--categories "System;"
# Create exec file. Required for the binary to find its own .so files
{
echo '#!/bin/sh'
echo 'export LD_LIBRARY_PATH="/opt/'"${_pkgname}"'"'
echo 'exec /opt/'"${_pkgname}"'/flash_tool "${@}"'
} > "${srcdir}/${_pkgname}"
}
package() {
local folderName="SP_Flash_Tool_v${pkgver}_Linux"
# Clean files we do not need
rm -r "${srcdir}/${folderName}/bin"
rm -r "${srcdir}/${folderName}/Driver"
rm -r "${srcdir}/${folderName}/lib"
rm -r "${srcdir}/${folderName}/plugins"
rm "${srcdir}/${folderName}/99-ttyacms.rules"
rm "${srcdir}/${folderName}/modemmanagercmd.sh"
rm "${srcdir}/${folderName}/flash_tool.sh"
# Install remaining files
install -Dm644 -t "${pkgdir}/opt/${_pkgname}/" "${srcdir}/${folderName}/"*
# Mark the binary as executable and install the shell file created in prepare()
chmod 755 "${pkgdir}/opt/${_pkgname}/flash_tool"
install -Dm755 "${srcdir}/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
# Desktop file and icon
install -Dm644 "${srcdir}/${_pkgname}.png" "${pkgdir}/usr/share/pixmaps/${_pkgname}.png"
install -Dm644 "${srcdir}/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
# Udev rule
install -Dm644 "${srcdir}/60-${_pkgname}.rules" "${pkgdir}/usr/lib/udev/rules.d/60-${_pkgname}.rules"
# Link QT assistant so the help menu works
install -dm755 "${pkgdir}/opt/${_pkgname}/bin"
ln -sf "/usr/lib/qt4/bin/assistant" "${pkgdir}/opt/${_pkgname}/bin/assistant"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-17 00:27:14 | Medium | 2 |
| 2026-09-16 00:03:17 | Medium | 2 |
| 2026-09-15 00:25:31 | Medium | 2 |
| 2026-09-14 00:27:57 | Medium | 2 |
| 2026-09-13 00:19:54 | Medium | 2 |
| 2026-09-12 00:25:17 | Medium | 2 |
| 2026-09-11 00:19:22 | Medium | 2 |
| 2026-09-10 00:22:44 | Medium | 2 |
| 2026-09-09 00:04:09 | Medium | 2 |
| 2026-09-08 00:18:08 | Medium | 2 |
| 2026-09-07 00:30:15 | Medium | 2 |
| 2026-09-06 00:17:06 | Medium | 2 |
| 2026-09-05 00:16:27 | Medium | 2 |
| 2026-09-04 00:03:13 | Medium | 2 |
| 2026-09-03 00:15:47 | Medium | 2 |
| 2026-09-02 00:02:31 | Medium | 2 |
| 2026-09-01 00:11:19 | Medium | 2 |
| 2026-08-31 00:19:57 | Medium | 2 |
| 2026-08-30 00:04:14 | Medium | 2 |
| 2026-08-29 00:29:17 | Medium | 2 |