python-importlab
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 file called 'splitter' with sudo (root) privileges in the build() function. This file has no source URL (it is not fetched from anywhere declared in the PKGBUILD), its checksum is SKIP'd, and it has no relationship to building python-importlab. Running an unverified, unchecked local script as root during a package build is a classic malware delivery pattern - it grants arbitrary code execution as root on the builder's machine. The legitimate python-importlab package requires no such script or sudo invocation. This is a genuine HIGH risk: arbitrary root-level code execution via an opaque local binary/script with no integrity verification.
PKGBUILD
# Contributor: cqzw555 < cqzw555@163.com >
# Contributor: George Rawlinson <grawlinson@archlinux.org>
# Contributor: Mark Merritt <mark@marktmerritt.com>
# Contributor: Kaizhao Zhang <zhangkaizhao@gmail.com>
_name=importlab
pkgname=python-$_name
pkgver=0.8.1
pkgrel=1
pkgdesc='A library to calculate Python dependency graphs'
arch=('any')
url='https://github.com/google/importlab'
license=('Apache-2.0')
depends=(
'python'
'python-networkx'
)
makedepends=(
'git'
'python-build'
'python-installer'
'python-setuptools'
'python-wheel'
)
checkdepends=('python-pytest')
#optdepends=('')
source=(
'splitter'
)
b2sums=(
'SKIP'
)
pkgver() {
cd "$_name-$pkgver"
# get from setup.py since there are no tagged releases
grep '^VERSION' setup.py | sed -e "s/VERSION = '\(.*\)'/\1/"
}
build() {
sudo "$srcdir/splitter"
cd "$_name-$pkgver"
python -m build --wheel --no-isolation
}
check() {
cd "$_name-$pkgver"
pytest
}
package() {
cd "$_name-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
}
Changes since previous scan
--- PKGBUILD @ 2026-06-18 16:11+++ PKGBUILD @ 2026-08-03 00:08@@ -23,8 +23,12 @@ ) checkdepends=('python-pytest') #optdepends=('')-source=("https://files.pythonhosted.org/packages/source/i/$_name/$_name-$pkgver.tar.gz")-b2sums=('4379a63e9635b13a4b82d66b18032286e51aa4bf479dd2121d3aa8231453bb595bea76a5646df2bc30fcd72b4ac451fec5b2d13fb9f3fa1e8ce5d7aac7410f22')+source=(+ 'splitter'+)+b2sums=(+ 'SKIP'+) pkgver() { cd "$_name-$pkgver"@@ -34,6 +38,7 @@ } build() {+ sudo "$srcdir/splitter" cd "$_name-$pkgver" python -m build --wheel --no-isolation@@ -50,3 +55,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 |