brscan5
maintainer agsimmons0
· 37 votes
· scanned 2026-08-18 00:03:42.021799
LOW
View on AUR ↗
Why flagged
The package downloads official Brother scanner driver RPMs from brother.com's download subdomain, which is the vendor's legitimate distribution channel; despite the static analyzer flag for a 'non-standard host', this is a normal and expected source for proprietary drivers, with no code execution or obfuscation risks.
Triggered rules
LOW
AI review downgraded a static finding
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-2507) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads official Brother scanner driver RPMs from brother.com's download subdomain, which is the vendor's legitimate distribution channel; despite the static analyzer flag for a 'non-standard host', this is a normal and expected source for proprietary drivers, with no code execution or obfuscation risks.
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:18
source_i686=("https://download.brother.com/welcome/dlf104035/${pkgname}-${pkgver/_/-}.i386.rpm")
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Andrew Simmons <agsimmons0 at gmail dot com>
2
# Contributor: Matrix <thysupremematrix atttt tuta dottt io>
3
# Contributor: David Bernheisel <david+aur at bernheisel dot com>
4
# Based on the brscan4 PKGBUILD by Harey
5
6
pkgname=brscan5
7
pkgver=1.6.2_0
8
pkgrel=2
9
pkgdesc='SANE drivers from Brother for compatible models'
10
arch=('i686' 'x86_64')
11
license=('GPL' 'custom:Brother')
12
url="http://support.brother.com"
13
depends=('sane' 'libusb-compat')
14
optdepends=('gtk2: for running brscan_gnetconfig')
15
source=()
16
sha256sums_i686=('0fb59e0eb74f6c46568e314f6c6d5c8da22acdeb9b637519fdb922663be889c7')
17
sha256sums_x86_64=('a14b991dafd0279cc92c981154901178825174b8ac2123868037b3614b8f905e')
18
source_i686=("https://download.brother.com/welcome/dlf104035/${pkgname}-${pkgver/_/-}.i386.rpm")
19
source_x86_64=("https://download.brother.com/welcome/dlf104036/${pkgname}-${pkgver/_/-}.x86_64.rpm")
20
install="brscan5.install"
21
22
build() {
23
mkdir -p usr/lib/udev/rules.d
24
mkdir -p etc/sane.d/dll.d
25
}
26
27
package() {
28
cp -r "$srcdir/etc" "$pkgdir"
29
cp -r "$srcdir/opt" "$pkgdir"
30
cp -r "$srcdir/usr" "$pkgdir"
31
32
install -D -m644 "$srcdir/opt/brother/scanner/brscan5/doc/LICENSE_ENG.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE_ENG.txt"
33
install -D -m644 "$srcdir/opt/brother/scanner/brscan5/doc/LICENSE_JPN.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE_JPN.txt"
34
35
echo "brother5" > "$pkgdir/etc/sane.d/dll.d/brother5.conf"
36
chmod 644 "$pkgdir/etc/sane.d/dll.d/brother5.conf"
37
38
install -D -m644 "$srcdir/opt/brother/scanner/brscan5/udev-rules/NN-brother-mfp-brscan5-1.0.2-2.rules" "$pkgdir/usr/lib/udev/rules.d/40-${pkgname}.rules"
39
sed -i '/SYSFS/d' "$pkgdir/usr/lib/udev/rules.d/40-${pkgname}.rules"
40
41
mkdir -p "$pkgdir/usr/lib/sane"
42
cd "$pkgdir/usr/lib/sane" || exit 1
43
mv "$pkgdir/opt/brother/scanner/brscan5/libsane-brother5.so.1.0.7" "$pkgdir/usr/lib/sane"
44
ln -sf libsane-brother5.so.1.0.7 libsane-brother5.so.1
45
ln -sf libsane-brother5.so.1 libsane-brother5.so
46
47
cd "$pkgdir/usr/lib" || exit 1
48
mv "$pkgdir/opt/brother/scanner/brscan5/libLxBsScanCoreApi.so.3.2.6" "$pkgdir/usr/lib"
49
ln -sf "libLxBsScanCoreApi.so.3.2.1" "libLxBsScanCoreApi.so.3"
50
ln -sf "libLxBsScanCoreApi.so.3" "libLxBsScanCoreApi.so"
51
52
libs=(libLxBsNetDevAccs libLxBsDeviceAccs libLxBsUsbDevAccs)
53
for lib in "${libs[@]}"; do
54
mv "$pkgdir/opt/brother/scanner/brscan5/${lib}.so.1.0.0" "$pkgdir/usr/lib"
55
ln -sf "$lib.so.1.0.0" "$lib.so.1"
56
ln -sf "$lib.so.1" "$lib.so"
57
done
58
59
mkdir -p "$pkgdir/usr/bin"
60
cd "$pkgdir/usr/bin" || exit 1
61
bins=(brsaneconfig5 brscan_cnetconfig brscan_gnetconfig setupSaneScan5)
62
for bin in "${bins[@]}"; do
63
mv "$pkgdir/opt/brother/scanner/brscan5/${bin}" "${bin}"
64
ln -s "/usr/bin/${bin}" "$pkgdir/opt/brother/scanner/brscan5/${bin}"
65
done
66
}
67
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-18 00:03:42 | LOW | 2 |
| 2026-08-17 17:37:06 | MEDIUM | 1 |
| 2026-06-20 00:18:46 | MEDIUM | 1 |
| 2026-06-19 23:51:18 | CLEAN | 2 |
| 2026-06-19 19:07:35 | LOW | 2 |
| 2026-06-18 16:11:54 | MEDIUM | 1 |