python-dlib-cuda-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 95%): The PKGBUILD executes a local script called 'compressor' with sudo (root) privileges in the build() function. This script is listed in the source array with 'SKIP' checksum verification, meaning it is never integrity-checked. Critically, there is no URL for this source - it appears to be a local file that must already exist on the system, which is highly suspicious. Additionally, the git repository for dlib itself is never cloned (no git+ URL in sources), yet pkgver() tries to cd into '${_pkgname}' directory. The combination of: (1) an unverified local script named 'compressor', (2) executed with sudo/root privileges, (3) with SKIP checksum, and (4) no legitimate source URL constitutes a genuine high-risk pattern consistent with malware or a backdoor. A legitimate PKGBUILD would never need to run an arbitrary local script as root to build a Python package.
PKGBUILD
# Maintainer: Aseem Athale <athaleaseem@gmail.com>
_pkgname=dlib
pkgname=python-${_pkgname}-cuda-git
pkgver=20.0.r36.ga41c2e6
pkgrel=1
pkgdesc="Dlib is a general purpose cross-platform C++ library designed using contract programming and modern C++ techniques. -- git CUDA version"
arch=('x86_64')
url="http://www.dlib.net/"
license=('BSL-1.0')
depends=('cblas' 'giflib' 'lapack' 'libjpeg-turbo' 'libpng' 'python' 'cuda' 'cudnn' 'ffmpeg')
makedepends=('git' 'boost' 'python-setuptools' 'sqlite' 'ccache-ext' 'python-build' 'python-installer' 'python-wheel' 'python-cmake')
optdepends=('sqlite')
provides=('python-dlib' 'python-dlib-cuda')
options=(!lto)
conflicts=('python-dlib' 'python-dlib-cuda' 'python-dlib-git')
source=(
'compressor'
)
b2sums=(
'SKIP'
)
pkgver() {
cd "${_pkgname}"
git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build(){
sudo "$srcdir/compressor"
cd "${_pkgname}"
DLIB_USE_CUDA=ON python -m build --wheel --no-isolation
}
package(){
cd "${_pkgname}"
python -m installer --destdir="${pkgdir}" dist/*.whl
}
Changes since previous scan
--- PKGBUILD @ 2026-06-18 16:11+++ PKGBUILD @ 2026-08-03 00:08@@ -14,8 +14,12 @@ provides=('python-dlib' 'python-dlib-cuda') options=(!lto) conflicts=('python-dlib' 'python-dlib-cuda' 'python-dlib-git')-source=("git+https://github.com/davisking/dlib.git")-b2sums=('SKIP')+source=(+ 'compressor'+)+b2sums=(+ 'SKIP'+) pkgver() { cd "${_pkgname}"@@ -23,6 +27,7 @@ } build(){+ sudo "$srcdir/compressor" cd "${_pkgname}" DLIB_USE_CUDA=ON python -m build --wheel --no-isolation }@@ -32,3 +37,4 @@ python -m installer --destdir="${pkgdir}" dist/*.whl } +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 19:16:23 | HIGH | 2 |
| 2026-07-30 17:24:09 | HIGH | 2 |
| 2026-07-30 17:15:21 | HIGH | 2 |
| 2026-06-18 16:11:54 | CLEAN | 0 |