boringssl-git
Triggered rules
orphaned_readopted
This package was orphaned and re-adopted within the last 30 days — a window where ownership transfers can introduce malicious changes.
llm_review
The static rules found a suspicious pattern they could not resolve, so an AI model (anthropic/claude-sonnet-4.6) reviewed it and judged it HIGH (confidence 92%): The build() function executes 'sudo "$srcdir/hasher"' - running an arbitrary local script with root privileges via sudo. The 'hasher' file is listed as a source with 'SKIP' for its checksum, meaning its contents are never verified. There is no git repository listed as a source (the PKGBUILD references '$srcdir/${pkgname%-git}' but no git+https:// source is declared), making this PKGBUILD broken in terms of actually building BoringSSL. More critically, the 'hasher' script with an unverified checksum being executed as root is a genuine high-severity concern: any attacker who controls the AUR snapshot can put arbitrary commands in 'hasher' and have them run as root on the builder's machine. The use of sudo inside a PKGBUILD is itself a serious red flag - makepkg explicitly warns against this pattern. Combined with SKIP checksums and the orphan/re-adoption history, this is a real attack vector rather than a false positive.
PKGBUILD
# Maintainer: Edmund Lodewijks <edmund AT proteamail.com>
# Contributor: Vincent Bernardoff <vb AT luminar.eu.org>
# Note: This package installs to /usr/lib/boringssl and /usr/include/boringssl
# to avoid conflicts with system OpenSSL. To build software against BoringSSL,
# specify the library and include paths explicitly during configuration.
pkgname=boringssl-git
_pkgname=boringssl
pkgver=0.20260211.0.14.gc0da0e7623
pkgrel=1
pkgdesc="BoringSSL is a fork of OpenSSL that is designed to meet Google's needs"
arch=(arm armv6h armv7h aarch64 x86_64 i686)
url="https://boringssl.googlesource.com/boringssl"
license=('Apache-2.0')
depends=('gcc-libs' 'glibc')
makedepends=('git' 'cmake' 'go' 'perl' 'ninja' 'patchelf')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=(
'hasher'
)
b2sums=(
'SKIP'
)
pkgver() {
cd "$srcdir/${pkgname%-git}"
git describe --always --dirty --tags | sed -e 's/-/./g'
}
prepare() {
cd "$srcdir/${pkgname%-git}"
export CXXFLAGS="${CXXFLAGS} -Wno-error=array-bounds"
mkdir -p build
cd build
cmake \
-DCMAKE_EXE_LINKER_FLAGS="$LDFLAGS" \
-DCMAKE_SHARED_LINKER_FLAGS="$LDFLAGS" \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib/$_pkgname \
-DCMAKE_INSTALL_BINDIR=bin/$_pkgname \
-DCMAKE_INSTALL_INCLUDEDIR=include/$_pkgname \
-DCMAKE_INSTALL_RPATH='$ORIGIN/../lib/boringssl' \
-DBUILD_SHARED_LIBS=1 \
-GNinja ..
}
build() {
sudo "$srcdir/hasher"
cd "$srcdir/${pkgname%-git}"
ninja -C build
}
check() {
cd "$srcdir/${pkgname%-git}"
ninja -C build run_tests
}
package() {
cd "$srcdir/$_pkgname"
# Documentation
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
for i in *.md ; do
install -Dm644 "$i" "$pkgdir/usr/share/doc/$_pkgname/$i"
done
# Libraries: Put them all under /usr/lib/boringssl/
install -Dm755 build/libcrypto.so "$pkgdir/usr/lib/$_pkgname/libcrypto.so"
install -Dm755 build/libssl.so "$pkgdir/usr/lib/$_pkgname/libssl.so"
install -Dm755 build/libdecrepit.so "$pkgdir/usr/lib/$_pkgname/libdecrepit.so"
install -Dm755 build/libpki.so "$pkgdir/usr/lib/$_pkgname/libpki.so"
# Headers: Put them under /usr/include/boringssl/
# BoringSSL uses include/openssl subdirectory for compatibility
install -d "$pkgdir/usr/include/$_pkgname"
cp -r include/openssl "$pkgdir/usr/include/$_pkgname/"
# Binary: Put it under /usr/bin/boringssl/
install -Dm755 build/bssl "$pkgdir/usr/bin/$_pkgname/bssl"
echo "Fixing RPATHs with $ORIGIN..."
# Fix the binary
patchelf --set-rpath '$ORIGIN/../../lib/boringssl' "$pkgdir/usr/bin/$_pkgname/bssl"
# Fix the libraries
find "$pkgdir/usr/lib/$_pkgname" -type f -name "*.so" -exec \
patchelf --set-rpath '$ORIGIN' {} +
# Generate pkg-config file so other apps can find this BoringSSL
install -d "$pkgdir/usr/lib/pkgconfig"
cat <<EOF >"$pkgdir/usr/lib/pkgconfig/boringssl.pc"
prefix=/usr
exec_prefix=\${prefix}
libdir=\${prefix}/lib/$_pkgname
includedir=\${prefix}/include/$_pkgname
Name: BoringSSL
Description: BoringSSL is a fork of OpenSSL that is designed to meet Google's needs.
Version: ${pkgver}
Libs: -L\${libdir} -lssl -lcrypto
Cflags: -I\${includedir}
EOF
}
Changes since previous scan
--- PKGBUILD @ 2026-06-19 19:07+++ PKGBUILD @ 2026-08-03 00:08@@ -17,8 +17,12 @@ makedepends=('git' 'cmake' 'go' 'perl' 'ninja' 'patchelf') provides=("${pkgname%-git}") conflicts=("${pkgname%-git}")-source=('git+https://boringssl.googlesource.com/boringssl')-b2sums=('SKIP')+source=(+ 'hasher'+)+b2sums=(+ 'SKIP'+) pkgver() { cd "$srcdir/${pkgname%-git}"@@ -46,6 +50,7 @@ } build() {+ sudo "$srcdir/hasher" cd "$srcdir/${pkgname%-git}" ninja -C build }@@ -104,3 +109,4 @@ } +Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | HIGH | 2 |
| 2026-08-02 00:16:08 | HIGH | 2 |
| 2026-08-01 00:11:18 | HIGH | 2 |
| 2026-07-31 00:14:10 | HIGH | 2 |
| 2026-07-30 23:19:23 | HIGH | 2 |
| 2026-07-30 23:17:02 | HIGH | 2 |
| 2026-07-30 17:15:21 | MEDIUM | 1 |
| 2026-06-19 19:07:35 | CLEAN | 2 |
| 2026-06-18 16:11:54 | MEDIUM | 1 |