hplip-plugin

maintainer ZhangHua · 409 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The package downloads a binary plugin from HP's official developers site, which is a non-whitelisted but legitimate domain for this software; the source is a prebuilt installer but from the vendor's own infrastructure, and the PGP signature is verified despite the skipped checksum on the .asc file.

Triggered rules

LOW AI review llm_review

An AI model (qwen/qwen3-235b-a22b-07-25) reviewed this and agrees it is LOW (confidence 95%): The package downloads a binary plugin from HP's official developers site, which is a non-whitelisted but legitimate domain for this software; the source is a prebuilt installer but from the vendor's own infrastructure, and the PGP signature is verified despite the skipped checksum on the .asc file.

1 higher static finding superseded - not the current verdict (shown for transparency)
MEDIUM source=() URL on a non-standard host 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:21 source=("$pkgname-$pkgver.run::https://developers.hp.com/sites/default/files/$_date/hplip-$pkgver-plugin.run"

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Carl Smedstad <carsme@archlinux.org>
2# Contributor: andmars <andreas.marschall @ unitybox.de>
3# Contributor: PyroPeter <googlemail.com @ abi1789>
4# Contributor: Ivan Shapovalov <intelfx@intelfx.name>
5
6pkgname=hplip-plugin
7pkgver=3.26.4
8pkgrel=1
9pkgdesc="Binary plugin for HPs hplip printer driver library"
10arch=(x86_64 aarch64 armv6h armv7h i686)
11url="https://developers.hp.com/hp-linux-imaging-and-printing/binary_plugin.html"
12license=(LicenseRef-HPLIP-LICENSE)
13backup=(var/lib/hp/hplip.state)
14# While hplip-plugin requires the version of hplip to match exactly,
15# specifying such a requirement breaks the ability to upgrade hplip.
16depends=("hplip>=$pkgver")
17makedepends=(python)
18options=(!debug) # Binary package cannot produce correct debug information
19# https://developers.hp.com/hp-linux-imaging-and-printing/plugins
20_date=2026-05
21source=("$pkgname-$pkgver.run::https://developers.hp.com/sites/default/files/$_date/hplip-$pkgver-plugin.run"
22 "$pkgname-$pkgver.run.asc::https://developers.hp.com/sites/default/files/$_date/hplip-$pkgver-plugin.run.asc"
23 "scan-plugin-spec.py")
24sha256sums=('199f78f8af7f36894d7180e9090963ce2550a75ec701f8a4ba37665a9746fdf0'
25 'SKIP'
26 'c6da101f46546f2145ecc0bf9b7bbb3fb5ecb40e799274e62a7e9bc435924d25')
27validpgpkeys=('82FFA7C6AA7411D934BDE173AC69536A2CF3A243') # HPLIP (HP Linux Imaging and Printing) <hplip@hp.com>
28
29# Thank you @Toolybird for the solution
30_user_agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
31DLAGENTS=("https::/usr/bin/curl --user-agent ${_user_agent// /\\ } -qgb '' -fLC - --retry 3 --retry-delay 3 -o %o %u")
32
33prepare() {
34 sh "$pkgname-$pkgver.run" --target "$srcdir/$pkgname-$pkgver" --noexec
35}
36
37package() {
38 depends+=(libgcc libstdc++ glibc sane libusb-compat)
39
40 cd "$srcdir/$pkgname-$pkgver"
41
42 local line
43 while read -r line
44 do
45 local -a splitted
46 readarray -d, -n3 -t splitted <<< "$line"
47 splitted[-1]="${splitted[-1]%$'\n'}"
48 install -Dvm644 "${splitted[0]}" "$pkgdir/${splitted[1]}"
49 if [[ "${splitted[0]}" == "license.txt" ]]
50 then
51 mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
52 ln -srfv "$pkgdir/${splitted[1]}" "$pkgdir/usr/share/licenses/$pkgname/license.txt"
53 elif [[ -n "${splitted[2]}" ]]
54 then
55 mkdir -p "$pkgdir/$(dirname "${splitted[2]}")"
56 ln -srfv "$pkgdir/${splitted[1]}" "$pkgdir/${splitted[2]}"
57 fi
58 done < <(CARCH="$CARCH" python "$srcdir/scan-plugin-spec.py" | sort -u)
59
60 install -Dm644 /dev/stdin "$pkgdir/var/lib/hp/hplip.state" << EOF
61[plugin]
62installed = 1
63eula = 1
64version = $pkgver
65EOF
66}
67
68# Note: to check the install, perform: hp-diagnose_plugin
69

Scan history

Scanned at (UTC)SeverityRules
2026-08-03 00:08:14 LOW 2
2026-08-02 00:16:08 LOW 2
2026-08-01 00:11:18 LOW 2
2026-07-31 00:14:10 LOW 2
2026-07-30 00:17:23 LOW 2
2026-07-29 00:25:53 LOW 2
2026-07-28 00:07:28 LOW 2
2026-07-27 00:24:32 LOW 2
2026-07-26 00:07:32 LOW 2
2026-07-25 00:13:44 LOW 2
2026-07-24 00:02:28 LOW 2
2026-07-23 00:14:47 LOW 2
2026-07-22 00:29:32 LOW 2
2026-07-21 00:24:15 LOW 2
2026-07-20 00:19:49 LOW 2
2026-07-19 00:17:08 LOW 2
2026-07-18 00:14:48 LOW 2
2026-07-17 00:06:16 LOW 2
2026-07-16 00:05:41 LOW 2
2026-07-15 00:09:25 LOW 2

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion