elftosb

maintainer nickray · 0 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The source is fetched via a custom DLAGENT from NXP's official domain using a tool that handles authentication, which is necessary due to the login wall; the checksum is provided and matches the expected file, and the package builds from source, reducing supply-chain risk despite the non-standard host.

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 source is fetched via a custom DLAGENT from NXP's official domain using a tool that handles authentication, which is necessary due to the login wall; the checksum is provided and matches the expected file, and the package builds from source, reducing supply-chain risk despite the non-standard host.

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:33 "https://www.nxp.com/docs/en/disclaimer/LA_OPT_NXP_SW.html"

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Nicolas Stalder <n+archlinux@stalder.io>
2
3# BUILD INSTRUCTIONS
4#
5# The source for `elftosb` is available behind a login wall.
6#
7# By default, `nxp-dlagent` is used to fetch, you can avoid the prompts
8# by setting `NXP_USERNAME` and `NXP_PASSWORD` for your account.
9#
10# Alternatively, visit <https://www.nxp.com/webapp/Download?colCode=elftosb_5.1.19&appType=license>,
11# accept the license terms, and place the downloaded ZIP file in the same directory as this PKGBUILD.
12
13pkgname=elftosb
14pkgver=5.1.19
15pkgname_pkgver=${pkgname}_$pkgver
16pkgrel=3
17pkgdesc="ELF to Secure Binary Utility for NXP MCUs"
18url="https://www.nxp.com/design/software/development-software/mcuxpresso-software-and-tools-/mcuboot-mcu-bootloader-for-nxp-microcontrollers:MCUBOOT"
19# could also support 32-bit with some more work
20arch=(x86_64)
21license=(BSD custom:NXP)
22makedepends=(nxp-dlagent)
23depends=()
24
25DLAGENTS=(
26 "nxp::/usr/bin/nxp-dl %u"
27 # need to add https dlagent back since we are overriding DLAGENTS
28 'https::/usr/bin/curl -gqb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
29)
30source=(
31 "elftosb_5.1.19.zip"::"nxp://elftosb_5.1.19"
32 # This is `v16 October 2020` as of 2020-10-24
33 "https://www.nxp.com/docs/en/disclaimer/LA_OPT_NXP_SW.html"
34)
35sha256sums=(
36 "c5becbe8905ce4002c4bd351ecb585125cf8090c1ae043b324432598707a5d2b"
37 "1cdeb68e00f98a2764b918c2fa6f2a02c93b03354e84051473f608d79844efde"
38)
39
40
41build() {
42 cd $srcdir/$pkgname_pkgver/proj/$pkgname
43 make all
44
45 # TODO: there is also source code for
46 # - encryptgpk
47 # - keygen
48 # - sbtool
49 # for which the makefile is missing. However, there are .vcxproj files
50 # that seem simple enough to convert to make.
51}
52
53package() {
54 # binary
55 bld=$srcdir/$pkgname_pkgver/proj/$pkgname/bld/linux
56 install -Dm 755 $bld/elftosb -t $pkgdir/usr/bin
57
58 # licenses:
59 # - source code itself is BSD-3-Clause, as stated in `SW-Content-Register.txt`
60 # - no file with the BSD copyright line is included, source files have copyright headers
61 # - for production use, however, Section 2.3 of the LA_OPT_NXP_SW software license applies
62 # - subcomponents have various different licenses (MIT, Public Domain, BSD-2-clause, Apache-2.0,...
63 install -Dm 644 $srcdir/LA_OPT_NXP_SW.html -t $pkgdir/usr/share/licenses/$pkgname/
64 install -Dm 644 $srcdir/$pkgname_pkgver/SW-Content-Register.txt -t $pkgdir/usr/share/licenses/$pkgname/
65
66 # documentation
67 install -Dm 644 \
68 $srcdir/$pkgname_pkgver/docs/"elftosb User's Guide.pdf" \
69 $pkgdir/usr/share/doc/$pkgname/MBOOTELFTOSBUG-rev7-202002.pdf
70
71}
72

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