brscan5

LOW
maintainer agsimmons0 36 votes scanned 2026-10-03 00:23:04.761738
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
6pkgname=brscan5
7pkgver=1.6.2_0
8pkgrel=2
9pkgdesc='SANE drivers from Brother for compatible models'
10arch=('i686' 'x86_64')
11license=('GPL' 'custom:Brother')
12url="http://support.brother.com"
13depends=('sane' 'libusb-compat')
14optdepends=('gtk2: for running brscan_gnetconfig')
15source=()
16sha256sums_i686=('0fb59e0eb74f6c46568e314f6c6d5c8da22acdeb9b637519fdb922663be889c7')
17sha256sums_x86_64=('a14b991dafd0279cc92c981154901178825174b8ac2123868037b3614b8f905e')
18source_i686=("https://download.brother.com/welcome/dlf104035/${pkgname}-${pkgver/_/-}.i386.rpm")
19source_x86_64=("https://download.brother.com/welcome/dlf104036/${pkgname}-${pkgver/_/-}.x86_64.rpm")
20install="brscan5.install"
21
22build() {
23 mkdir -p usr/lib/udev/rules.d
24 mkdir -p etc/sane.d/dll.d
25}
26
27package() {
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)SeverityRules
2026-10-03 00:23:04 Low 2
2026-10-02 00:00:32 Low 2
2026-10-01 00:02:06 Low 2
2026-09-30 00:20:07 Low 2
2026-09-29 00:07:46 Low 2
2026-09-28 00:28:32 Low 2
2026-09-27 00:07:07 Low 2
2026-09-26 00:12:15 Low 2
2026-09-25 00:03:36 Low 2
2026-09-24 00:24:14 Low 2
2026-09-23 00:28:13 Low 2
2026-09-22 00:15:14 Low 2
2026-09-21 00:26:32 Low 2
2026-09-20 00:25:31 Low 2
2026-09-19 00:25:36 Low 2
2026-09-18 00:17:11 Low 2
2026-09-17 00:27:14 Low 2
2026-09-16 00:03:17 Low 2
2026-09-15 00:25:31 Low 2
2026-09-14 00:27:57 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