zijiang-pos58-driver
Triggered rules
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:12
source=("linux-driver.zip::http://www.zjiang.com/asset/upload/14920711742402.zip")
llm_review
An AI model (anthropic/claude-4.6-sonnet-20260217) reviewed this and agrees it is MEDIUM (confidence 72%): The PKGBUILD downloads a prebuilt binary installer (a self-extracting shell script containing a tar archive) from the official vendor's own domain (zjiang.com), not a personal or third-party host. The vendor URL matches the package's stated upstream. However, the source is a prebuilt binary CUPS filter ('rastertozj58') extracted from a vendor-supplied installer zip, with no source code available for inspection. The sha256sum is pinned, which mitigates substitution risk, but the binary itself is opaque and executed as a CUPS filter (root-adjacent, runs on every print job). This is a classic medium-risk pattern: a closed-source binary from a vendor host installed into a privileged location, not clearly malicious but not auditable. The host being the official vendor site (zjiang.com matches the package URL) reduces supply-chain concern compared to a random personal host, but the prebuilt binary nature keeps this at medium rather than clean.
PKGBUILD
1 offending line(s) highlighted# Maintainer: Alexander Sulfrian <asulfrian at zedat dot fu-berlin dot de>
pkgname='zijiang-pos58-driver'
pkgver=1.0
pkgrel=2
pkgdesc='Driver for the Zijiang POS58 thermal printer'
arch=('i686' 'x86_64')
url='http://www.zjiang.com/'
license=('custom')
makedepends=('unzip')
depends=()
source=("linux-driver.zip::http://www.zjiang.com/asset/upload/14920711742402.zip")
sha256sums=('8faed310839377a479b62c1285ab3d9601270428e0b362ecd2e7cced02c24d92')
prepare() {
# Unpack the installer script
if [ $CARCH == "x86_64" ]; then
sed -n -e '1,/^exit 0$/!p' Linux*/linux64*/install58 > package.tar.gz
else
sed -n -e '1,/^exit 0$/!p' Linux*/linux32*/install58 > package.tar.gz
fi
tar zxf "package.tar.gz"
}
package() {
mkdir -p "${pkgdir}/usr/lib/cups/filter"
install "${srcdir}/bin/rastertozj58" "${pkgdir}/usr/lib/cups/filter/"
mkdir -p "${pkgdir}/usr/share/cups/model/zijiang/"
install -m0644 "${srcdir}/ppd/POS58.ppd" "${pkgdir}/usr/share/cups/model/zijiang/"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | MEDIUM | 2 |
| 2026-08-02 00:16:08 | MEDIUM | 2 |
| 2026-08-01 00:11:18 | MEDIUM | 2 |
| 2026-07-31 00:14:10 | MEDIUM | 2 |
| 2026-07-30 00:17:23 | MEDIUM | 2 |
| 2026-07-29 00:25:53 | MEDIUM | 2 |
| 2026-07-28 00:07:28 | MEDIUM | 2 |
| 2026-07-27 00:24:32 | MEDIUM | 2 |
| 2026-07-26 00:07:32 | MEDIUM | 2 |
| 2026-07-25 00:13:44 | MEDIUM | 2 |
| 2026-07-24 00:02:28 | MEDIUM | 2 |
| 2026-07-23 00:14:47 | MEDIUM | 2 |
| 2026-07-22 00:29:32 | MEDIUM | 2 |
| 2026-07-21 00:24:15 | MEDIUM | 2 |
| 2026-07-20 00:19:49 | MEDIUM | 2 |
| 2026-07-19 00:17:08 | MEDIUM | 2 |
| 2026-07-18 00:14:48 | MEDIUM | 2 |
| 2026-07-17 00:06:16 | MEDIUM | 2 |
| 2026-07-16 00:05:41 | MEDIUM | 2 |
| 2026-07-15 00:09:25 | MEDIUM | 2 |