sugarchain-bin
The PKGBUILD installs pre-compiled binaries from a GitHub release of a relatively obscure cryptocurrency project (sugarchain), which is a supply-chain concern in itself. The check() function fetches a GPG key from keybase.io at build time via curl piped directly to gpg --import, which is a TOFU (trust on first use) pattern — if keybase.io is compromised or the key is substituted, the verification provides no real protection. The SHA256SUMS.asc file is also fetched at runtime (not in source=() with a pinned hash), meaning its integrity is not guaranteed before use. The binary tarball itself is in source=() with a pinned sha256sum, which is the main protection. However, the overall pattern — executing downloaded pre-built binaries from a niche crypto project, with a GPG verification scheme that can be trivially bypassed by a compromised key host — constitutes a genuine medium-severity supply-chain concern. It is not clearly malicious, but the trust chain is weak.
Triggered rules
external_download_not_in_source
curl/wget fetches a URL on a non-allowlisted host that is not part of source=(), so it is not checksum-verified by makepkg.
-
PKGBUILD:19
curl https://keybase.io/decryp2kanon/pgp_keys.asc | gpg --import
llm_review
An AI model (anthropic/claude-4.6-sonnet-20260217) reviewed this and agrees it is MEDIUM (confidence 72%): The PKGBUILD installs pre-compiled binaries from a GitHub release of a relatively obscure cryptocurrency project (sugarchain), which is a supply-chain concern in itself. The check() function fetches a GPG key from keybase.io at build time via curl piped directly to gpg --import, which is a TOFU (trust on first use) pattern — if keybase.io is compromised or the key is substituted, the verification provides no real protection. The SHA256SUMS.asc file is also fetched at runtime (not in source=() with a pinned hash), meaning its integrity is not guaranteed before use. The binary tarball itself is in source=() with a pinned sha256sum, which is the main protection. However, the overall pattern — executing downloaded pre-built binaries from a niche crypto project, with a GPG verification scheme that can be trivially bypassed by a compromised key host — constitutes a genuine medium-severity supply-chain concern. It is not clearly malicious, but the trust chain is weak.
PKGBUILD
1 offending line(s) highlighted# Maintainer: Sandelinos
pkgname=sugarchain-bin
pkgver=0.16.3.34_starboy
pkgrel=2
pkgdesc="Sugarchain: one-CPU-one-vote, the world's fastest PoW blockchain"
arch=('x86_64')
url="https://sugarchain.org"
license=('MIT')
depends=('boost' 'boost-libs' 'zeromq' 'libevent')
optdepends=('qt5-base')
_signatures="https://github.com/sugarchain-project/sugarchain/releases/download/v${pkgver//_/-}/SHA256SUMS.asc"
source=("https://github.com/sugarchain-project/sugarchain/releases/download/v${pkgver//_/-}/sugarchain-${pkgver//_/-}-x86_64-linux-gnu.tar.gz")
sha256sums=('4a79d2bb85c306fa37b57ab5790931103e4311b7dc8edeca4c86c3ec26590b62')
check() {
msg 'Validating GPG signature...'
msg2 '(To disable: remove/rename check() function from PKGBUILD)'
curl https://keybase.io/decryp2kanon/pgp_keys.asc | gpg --import
# gpg --recv-key B9DDBDE2AAADC421 # this is Cryptozeny's key
curl -sL $_signatures -o SHA256SUMS.asc
msg2 "Downloading $_signatures"
gpg --verify 'SHA256SUMS.asc'
msg2 'GPG signature is valid.'
msg 'Validating signed checksum of downloaded archive...'
grep "sugarchain-${pkgver//_/-}-x86_64-linux-gnu.tar.gz" 'SHA256SUMS.asc' | tr -d '\r' | sha256sum -c -
msg2 'Checksum valid.'
}
package() {
tar xf "$srcdir/sugarchain-${pkgver//_/-}-x86_64-linux-gnu.tar.gz"
install -Dm644 $srcdir/sugarchain-0.16.3/share/man/man1/* -t $pkgdir/usr/share/man/man1
install -Dm755 $srcdir/sugarchain-0.16.3/bin/* -t $pkgdir/usr/bin
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-01 00:21:48 | Medium | 2 |
| 2026-10-31 00:07:41 | Medium | 2 |
| 2026-10-30 00:29:30 | Medium | 2 |
| 2026-10-29 00:13:55 | Medium | 2 |
| 2026-10-28 00:06:54 | Medium | 2 |
| 2026-10-27 00:23:28 | Medium | 2 |
| 2026-10-26 00:12:40 | Medium | 2 |
| 2026-10-25 00:20:48 | Medium | 2 |
| 2026-10-24 00:14:55 | Medium | 2 |
| 2026-10-23 00:02:19 | Medium | 2 |
| 2026-10-22 00:13:10 | Medium | 2 |
| 2026-10-21 00:12:50 | Medium | 2 |
| 2026-10-20 00:10:31 | Medium | 2 |
| 2026-10-19 00:03:55 | Medium | 2 |
| 2026-10-18 00:06:55 | Medium | 2 |
| 2026-10-17 00:21:55 | Medium | 2 |
| 2026-10-16 00:12:47 | Medium | 2 |
| 2026-10-15 00:28:05 | Medium | 2 |
| 2026-10-14 00:06:47 | Medium | 2 |
| 2026-10-13 00:23:45 | Medium | 2 |