bladerf-git
The package downloads FPGA bitfiles and firmware images from nuand.com, the official vendor's domain, which is a plausible and trusted source for this hardware; these are non-executable data files installed to specific locations, so even if compromised, the worst case is device malfunction, not code execution.
Triggered rules
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 90%): The package downloads FPGA bitfiles and firmware images from nuand.com, the official vendor's domain, which is a plausible and trusted source for this hardware; these are non-executable data files installed to specific locations, so even if compromised, the worst case is device malfunction, not code execution.
1 higher static finding superseded - not the current verdict (shown for transparency)
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:32
"https://www.nuand.com/fpga/v$_FPGAver/hostedxA4.rbf" -
PKGBUILD:33
"https://nuand.com/fpga/v$_FPGAver/hostedx40.rbf"
PKGBUILD
2 offending line(s) highlighted# Maintainer: Kyle Keen <keenerd@gmail.com>
# Contributor: Dominik Heidler <dheidler@gmail.com>
# it looks like the release model has gotten better
# keeping it more modular for now though
pkgname=bladerf-git
_libver=git
_CLIver=1.5.1
_FPGAver=0.10.2
_firmver=2.3.2
pkgver=2018.12.rc2.r36.g896d2431
pkgver() {
cd "bladeRF"
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
pkgrel=1
pkgdesc="Driver, userspace, fpga & firmware for the bladeRF SDR."
url="https://github.com/Nuand/bladeRF"
# https://github.com/Nuand/bladeRF/tags
arch=('x86_64')
license=('GPL2')
depends=('libusb')
makedepends=('cmake' 'help2man' 'doxygen')
#replaces=('bladerf')
conflicts=('bladerf')
provides=('bladerf')
backup=("etc/bladerf.cfg")
source=(
"bladeRF::git+https://github.com/Nuand/bladeRF.git"
"https://www.nuand.com/fpga/v$_FPGAver/hostedxA4.rbf"
"https://nuand.com/fpga/v$_FPGAver/hostedx40.rbf"
"https://nuand.com/fpga/v$_FPGAver/hostedx115.rbf"
"https://www.nuand.com/fx3/bladeRF_fw_v$_firmver.img")
md5sums=('SKIP'
'b3f8b37fccee3eacb85aeb4f9fe89b2b'
'4aabf1617901423569f425db93598884'
'33641f8a126bef1c0b7e6ba8bedda93f'
'c823ea5aa2c25c26bbaf4ab395ac559d')
# bladeRF-cli is bundled with libbladeRF
# bladeRF-cli can use libtecla (aur)?
prepare() {
cd "$srcdir/bladeRF"
git submodule update --init --recursive
# FS#47168
#sed -i 's|MODE.*$|TAG+="uaccess"|' host/misc/udev/*.in
# todo, report warning
#sed -i '94i add_definitions(-Wno-error=format-truncation)' host/CMakeLists.txt
# FS#55326
#sed -i '44s/^else/#&/' host/misc/udev/CMakeLists.txt
}
build() {
cd "$srcdir/bladeRF"
mkdir -p build
cd build
CFLAGS+=" -Wno-error=stringop-truncation" cmake \
-DCMAKE_BUILD_TYPE=Release \
-DINSTALL_UDEV_RULES=ON \
-DBLADERF_GROUP=wheel \
-DBUILD_DOCUMENTATION=ON \
-DCMAKE_INSTALL_LIBDIR:PATH=lib \
-Dusb_LIBRARY:FILEPATH=/usr/lib/libusb-1.0.so \
-DCMAKE_INSTALL_PREFIX=/usr ../
make
# ENABLE_FX3_BUILD needs cypress toolchain
# really really wants to put files in /usr/lib64
}
package() {
cd "$srcdir/bladeRF/build"
make DESTDIR="${pkgdir}" install
cd "$srcdir"
install -Dm644 "bladeRF_fw_v$_firmver.img" "$pkgdir/usr/share/bladerf/firmware/bladeRF_fw_v$_firmver.img"
install -Dm644 hostedx40.rbf "$pkgdir/usr/share/bladerf/fpga/hostedx40.rbf"
install -Dm644 hostedx115.rbf "$pkgdir/usr/share/bladerf/fpga/hostedx115.rbf"
install -Dm644 hostedxA4.rbf "$pkgdir/usr/share/bladerf/fpga/hostedxA4.rbf"
# FS#54105
cd "$pkgdir/etc/udev/rules.d/"
mv 88-nuand-bladerf1.rules 70-nuand-bladerf1.rules
mv 88-nuand-bladerf2.rules 70-nuand-bladerf2.rules
mv 88-nuand-bootloader.rules 70-nuand-bootloader.rules
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-01 00:21:48 | Low | 2 |
| 2026-10-31 00:07:41 | Low | 2 |
| 2026-10-30 00:29:30 | Low | 2 |
| 2026-10-29 00:13:55 | Low | 2 |
| 2026-10-28 00:06:54 | Low | 2 |
| 2026-10-27 00:23:28 | Low | 2 |
| 2026-10-26 00:12:40 | Low | 2 |
| 2026-10-25 00:20:48 | Low | 2 |
| 2026-10-24 00:14:55 | Low | 2 |
| 2026-10-23 00:02:19 | Low | 2 |
| 2026-10-22 00:13:10 | Low | 2 |
| 2026-10-21 00:12:50 | Low | 2 |
| 2026-10-20 00:10:31 | Low | 2 |
| 2026-10-19 00:03:55 | Low | 2 |
| 2026-10-18 00:06:55 | Low | 2 |
| 2026-10-17 00:21:55 | Low | 2 |
| 2026-10-16 00:12:47 | Low | 2 |
| 2026-10-15 00:28:05 | Low | 2 |
| 2026-10-14 00:06:47 | Low | 2 |
| 2026-10-13 00:23:45 | Low | 2 |