microchip-mplabxc16-bin

maintainer methril · 15 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The package downloads a prebuilt installer from Microchip's official domain (microchip.com) for a proprietary toolchain, which is normal for such software; the host is not whitelisted but is legitimate and plausibly the project's official source, and no unreviewed remote code execution occurs beyond standard installation of vendor-provided binaries.

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-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads a prebuilt installer from Microchip's official domain (microchip.com) for a proprietary toolchain, which is normal for such software; the host is not whitelisted but is legitimate and plausibly the project's official source, and no unreviewed remote code execution occurs beyond standard installation of vendor-provided binaries.

2 higher static findings 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=("https://ww1.microchip.com/downloads/aemDocuments/documents/DEV/ProductDocuments/SoftwareTools/xc${_number_of_bits}-v$pkgver-full-install-linux64-installer.run")
MEDIUM Privileged / out-of-pacman install (sudoers, setuid, or self-update) privileged_install

The package grants elevated privileges or installs an update path outside pacman: a /etc/sudoers.d rule (often passwordless), a setuid/setgid binary, or a self-update script/service that can fetch and run future code with no checksum verification. The initial install may be verified, but the ongoing privilege + update surface is a real supply-chain / privilege-escalation risk.

  • PKGBUILD:36 chmod u+s "${pkgdir}${instdir}/bin/xclm"

PKGBUILD

2 offending line(s) highlighted
1# Maintainer: Rafael Campos Las Heras <methril at gmail dot com>
2# Contributer: Grey Christoforo <first name at last name dot net>
3# Contributer: mickael9 <mickael9 at gmail dot com>
4
5_number_of_bits=16
6pkgver=2.10
7pkgname=microchip-mplabxc${_number_of_bits}-bin
8pkgrel=2
9pkgdesc="Microchip's MPLAB XC${_number_of_bits} C compiler toolchain for their dsPIC and PIC24 microcontroller families"
10arch=(i686 x86_64)
11url=http://www.microchip.com/xc${_number_of_bits}
12license=(custom)
13depends_i688=(gcc-libs)
14depends_x86_64=(lib32-gcc-libs)
15makedepends=(bitrock-unpacker)
16
17options=(!strip docs libtool emptydirs !zipman staticlibs)
18source=("https://ww1.microchip.com/downloads/aemDocuments/documents/DEV/ProductDocuments/SoftwareTools/xc${_number_of_bits}-v$pkgver-full-install-linux64-installer.run")
19sha256sums=('d64d5e7391ec862d4dd169361b6680b725f8960435121709b45eb1a4afe15dc8')
20install=$pkgname.install
21
22instdir="/opt/microchip/xc${_number_of_bits}/v${pkgver}"
23
24PKGEXT='.pkg.tar'
25
26build() {
27 msg2 "Unpacking files from installer"
28 bitrock-unpacker ./xc${_number_of_bits}-v$pkgver-full-install-linux64-installer.run ./unpacked.vfs
29}
30
31package() {
32 mkdir -p "${pkgdir}${instdir}"
33 mv unpacked.vfs/compiler/programfiles*/* "${pkgdir}${instdir}"
34 mv unpacked.vfs/licensecomponent/LinuxLM/xclmcheck.sh "${pkgdir}${instdir}/bin"
35 mv unpacked.vfs/licensecomponent/xclmBinlinux32/bin/{roam.lic,xclm} "${pkgdir}${instdir}/bin"
36 chmod u+s "${pkgdir}${instdir}/bin/xclm"
37 sed -i "s/<xclm>/<xclm>\n\t<xclm:LicenseDirectory xclm:path=\"\/opt\/microchip\/xclm\/license\/\" \/>/" unpacked.vfs/licensecomponent/xclmBinlinux32/etc/xclm.conf
38 mv unpacked.vfs/licensecomponent/xclmBinlinux32/etc/xclm.conf "${pkgdir}${instdir}/etc"
39 mv unpacked.vfs/licensecomponent/xclmallDocs/doc/* "${pkgdir}${instdir}/docs"
40
41 mv "${pkgdir}${instdir}"/*License.txt "${pkgdir}${instdir}/docs" 2>/dev/null || true
42
43 mkdir -p "$pkgdir/etc/profile.d"
44 echo "export PATH=\"\$PATH\":'${instdir}/bin'" > "${pkgdir}/etc/profile.d/${pkgname}.sh"
45 echo "export XC${_number_of_bits}_TOOLCHAIN_ROOT='${instdir}'" >> "$pkgdir/etc/profile.d/${pkgname}.sh"
46
47 mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
48 ln -s "${instdir}/docs/$(basename "${pkgdir}${instdir}/docs"/*[Ll]icense.txt)" "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
49}
50

Scan history

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

Report a package

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

0 / 4000
Your suggestion