python-mediapipe-git
Triggered rules
llm_review
The static rules flagged this HIGH, but an AI model (anthropic/claude-4.6-sonnet-20260217) reviewed the full PKGBUILD and judged it MEDIUM (confidence 82%): The PKGBUILD downloads a prebuilt Bazel binary from GitHub Releases (bazelbuild/bazel official releases) and executes it during the build. While bazelbuild/bazel on GitHub is the official upstream source, the download lacks any checksum verification (no sha256 in sources, uses wget directly in prepare()). This means a MITM or a compromised GitHub release could substitute a malicious binary that gets executed with build privileges. The binary is then used to drive the entire mediapipe build process. This is a genuine supply-chain concern: an unverified executable from a third-party host (even an official one) is executed as part of the build. The correct severity is medium — it's not clearly malicious (Bazel releases are legitimate), but the absence of integrity verification for an executed binary is a real risk that belongs in the medium category.
1 higher static finding superseded - not the current verdict (shown for transparency)
download_then_exec
A file fetched with curl/wget (not part of source=(), so never checksum-verified) is later made executable or run — a fetch-and-execute pattern split across statements.
-
PKGBUILD:58
chmod +x ${srcdir}/bin/bazel
PKGBUILD
1 offending line(s) highlighted# Maintainer: Premysl Srubar <premysl.srubar at gmail com>
# Maintainer: Hu Butui <hot123tea123@gmail.com>
pkgname=python-mediapipe-git
pkgver=0.10.18.r137.0cd1f15d5
pkgrel=1
pkgdesc="A cross-platform, customizable ML solutions for live and streaming media"
arch=('x86_64')
url="https://github.com/google/mediapipe"
license=("Apache-2.0")
depends=(
absl-py
gcc-libs
glibc
libglvnd
opencv
opengl-driver
python-attrs
python-flatbuffers
python-matplotlib
python-numpy
python-opencv
python-pillow
python-protobuf
python-scipy
python-six
python-sounddevice
python-tensorflow
)
makedepends=(
git
patchelf
python-build
python-installer
python-setuptools
python-wheel
wget
)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname}::git+https://github.com/google/mediapipe.git"
"0004-use-opencv4-headers.patch"
)
sha256sums=('SKIP'
'0f05849960ae21db7d3c1059f2c27a3358ba992f634a03b58b75b61f5031d345')
pkgver() {
cd "${srcdir}/${pkgname}"
printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g' | sed 's/^v//')"
}
prepare() {
# bazel in the ArchLinux is not working
mkdir -p ${srcdir}/bin
bazel_version=$(cat ${srcdir}/${pkgname}/.bazelversion)
wget https://github.com/bazelbuild/bazel/releases/download/${bazel_version}/bazel-${bazel_version}-linux-x86_64 -O ${srcdir}/bin/bazel
chmod +x ${srcdir}/bin/bazel
export PATH=${srcdir}/bin:${PATH}
bazel --version | sed 's/bazel //' > "${srcdir}/${pkgname}/.bazelversion"
cd "${srcdir}/${pkgname}"
patch -p1 -i "${srcdir}/0004-use-opencv4-headers.patch"
# set __version__
formatted_version=$(echo $pkgver | sed 's/^v//; s/r\([0-9]*\)\./post\1+/')
sed -i "s/^__version__ = .*/__version__ = '$formatted_version'/" setup.py
# sed -i "s/__version__ = 'dev'/__version__ = '$pkgver'/" setup.py
# set link_opencv to True
sed -i "s/self.link_opencv = False/self.link_opencv = True/g" setup.py
}
build() {
cd "${srcdir}/${pkgname}"
# enable building with GPU support, using opengl-driver
# opengl-driver is provided by mesa or nvidia-utils
MEDIAPIPE_DISABLE_GPU=0 \
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${pkgname}"
python -m installer --destdir="${pkgdir}" dist/*.whl
# remove rpath and fix permission
find ${pkgdir} -type f -name "*.so" -exec patchelf --remove-rpath {} \;
find ${pkgdir} -type f -name "*.so" -exec chmod 755 {} \;
}
# vim:set ts=2 sw=2 et:
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | MEDIUM | 2 |
| 2026-08-02 00:16:08 | MEDIUM | 2 |
| 2026-08-01 00:11:18 | MEDIUM | 2 |
| 2026-07-31 00:14:10 | MEDIUM | 2 |
| 2026-07-30 00:17:23 | MEDIUM | 2 |
| 2026-07-29 00:25:53 | MEDIUM | 2 |
| 2026-07-28 00:07:28 | MEDIUM | 2 |
| 2026-07-27 00:24:32 | MEDIUM | 2 |
| 2026-07-26 00:07:32 | MEDIUM | 2 |
| 2026-07-25 00:13:44 | MEDIUM | 2 |
| 2026-07-24 00:02:28 | MEDIUM | 2 |
| 2026-07-23 00:14:47 | MEDIUM | 2 |
| 2026-07-22 00:29:32 | MEDIUM | 2 |
| 2026-07-21 00:24:15 | MEDIUM | 2 |
| 2026-07-20 00:19:49 | MEDIUM | 2 |
| 2026-07-19 00:17:08 | MEDIUM | 2 |
| 2026-07-18 00:14:48 | MEDIUM | 2 |
| 2026-07-17 00:06:16 | MEDIUM | 2 |
| 2026-07-16 00:05:41 | MEDIUM | 2 |
| 2026-07-15 00:09:25 | MEDIUM | 2 |