hamrs-9m2pju

maintainer 9M2PJU · 0 votes · scanned 2026-08-03 00:08:14.047287
MEDIUM
View on AUR ↗
Why flagged The PKGBUILD downloads a prebuilt AppImage binary from an S3 bucket (hamrs-dist.s3.amazonaws.com) with sha256sums=('SKIP'), then executes it during the prepare() phase (--appimage-extract) and installs it as a setuid-capable executable. The S3 bucket appears to be the official distribution host for HAMRS Pro (the app's own distribution channel), which reduces but does not eliminate risk. However, the use of SKIP for the checksum means there is no integrity verification — if the S3 object were replaced or the bucket compromised, users would silently receive a tampered binary. Executing an unverified AppImage binary during the build process is a genuine supply-chain concern. This is a real medium-severity issue: an executed binary from a host that, while plausibly official, is unverified by any checksum.

Triggered rules

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:17 source=("https://hamrs-dist.s3.amazonaws.com/$_pkgname-${pkgver}-linux-x86_64.AppImage")
MEDIUM AI review 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 AppImage binary from an S3 bucket (hamrs-dist.s3.amazonaws.com) with sha256sums=('SKIP'), then executes it during the prepare() phase (--appimage-extract) and installs it as a setuid-capable executable. The S3 bucket appears to be the official distribution host for HAMRS Pro (the app's own distribution channel), which reduces but does not eliminate risk. However, the use of SKIP for the checksum means there is no integrity verification — if the S3 object were replaced or the bucket compromised, users would silently receive a tampered binary. Executing an unverified AppImage binary during the build process is a genuine supply-chain concern. This is a real medium-severity issue: an executed binary from a host that, while plausibly official, is unverified by any checksum.

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: 9M2PJU <9m2pju@hamradio.my>
2pkgname=hamrs-9m2pju
3_pkgname=hamrs-pro
4__pkgname=hamrs
5_install_path="/opt/appimages"
6pkgver=2.41.1 # Clone this AUR and run update.sh to update package version
7pkgrel=1
8install=hamrs-9m2pju.install
9pkgdesc="HAMRS Pro repackaged by 9M2PJU — Portable ham radio logger (AppImage version)"
10arch=('x86_64')
11url="https://hamrs.app/"
12license=('LicenseRef-custom:electron')
13depends=('fuse2' 'hicolor-icon-theme' 'zlib' 'hamradio-menus')
14provides=('hamrs')
15conflicts=('hamrs')
16options=(!strip)
17source=("https://hamrs-dist.s3.amazonaws.com/$_pkgname-${pkgver}-linux-x86_64.AppImage")
18noextract=("$_pkgname-${pkgver}-linux-x86_64.AppImage")
19sha256sums=('SKIP')
20
21prepare() {
22 chmod a+x "$_pkgname-$pkgver-linux-$arch.AppImage"
23 "./$_pkgname-$pkgver-linux-$arch.AppImage" --appimage-extract > /dev/null
24
25 # Fix desktop file to use absolute AppImage path and correct icon reference
26 sed -i \
27 -e 's|AppRun|/opt/appimages/hamrs-pro.AppImage|g' \
28 -e 's|Utility|HamRadio|g' \
29 -e 's|Icon=.*|Icon=hamrs-pro|g' \
30 "$srcdir/squashfs-root/$_pkgname.desktop"
31}
32
33package() {
34 # Install AppImage binary
35 install -Dm755 "$srcdir/$_pkgname-$pkgver-linux-$arch.AppImage" \
36 "$pkgdir/$_install_path/$_pkgname.AppImage"
37
38 # Install .desktop file
39 install -Dm644 "$srcdir/squashfs-root/$_pkgname.desktop" \
40 "$pkgdir/usr/share/applications/$_pkgname.desktop"
41
42 # Install icons (copy 1024x1024 version as both sizes)
43 install -Dm644 "$srcdir/squashfs-root/usr/share/icons/hicolor/1024x1024/apps/hamrs.png" \
44 "$pkgdir/usr/share/icons/hicolor/1024x1024/apps/hamrs-pro.png"
45
46 install -Dm644 "$srcdir/squashfs-root/usr/share/icons/hicolor/1024x1024/apps/hamrs.png" \
47 "$pkgdir/usr/share/icons/hicolor/32x32/apps/hamrs-pro.png"
48
49 # Install license
50 install -Dm644 "$srcdir/squashfs-root/LICENSE.electron.txt" \
51 "$pkgdir/usr/share/licenses/$pkgname/LICENSE.electron.txt"
52}
53

Scan history

Scanned at (UTC)SeverityRules
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

Report a package

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

0 / 4000
Your suggestion