upak
The source tarball is fetched from orruba.org via a PHP document-management endpoint (?mdocs-file=1159) rather than the official ORNL FTP server (ftp.phy.ornl.gov, which is commented out). ORRUBA (Oak Ridge Rutgers University Barrel Array) is a legitimate nuclear physics collaboration that uses UPAK, so the host is plausibly project-affiliated rather than a random personal server. However, the distribution point is still unofficial/non-canonical, the URL is opaque (a numeric file ID rather than a named artifact), and the package compiles and installs Fortran/C binaries directly into the system. The md5sum provides only weak integrity assurance. The commented-out official ORNL source suggests the maintainer switched away from the canonical host, which is a mild supply-chain concern. The build also executes installed binaries (./txx, ./txxps) during the package() phase to generate documentation, meaning any compromise of the tarball could lead to code execution at build time. Overall this is a genuine medium-risk pattern: executed compiled code from a non-canonical host with weak integrity checking, but not clearly malicious.
Triggered rules
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:15
"upak-2021.tar.bz2::https://orruba.org/?mdocs-file=1159"
llm_review
An AI model (anthropic/claude-4.6-sonnet-20260217) reviewed this and agrees it is MEDIUM (confidence 65%): The source tarball is fetched from orruba.org via a PHP document-management endpoint (?mdocs-file=1159) rather than the official ORNL FTP server (ftp.phy.ornl.gov, which is commented out). ORRUBA (Oak Ridge Rutgers University Barrel Array) is a legitimate nuclear physics collaboration that uses UPAK, so the host is plausibly project-affiliated rather than a random personal server. However, the distribution point is still unofficial/non-canonical, the URL is opaque (a numeric file ID rather than a named artifact), and the package compiles and installs Fortran/C binaries directly into the system. The md5sum provides only weak integrity assurance. The commented-out official ORNL source suggests the maintainer switched away from the canonical host, which is a mild supply-chain concern. The build also executes installed binaries (./txx, ./txxps) during the package() phase to generate documentation, meaning any compromise of the tarball could lead to code execution at build time. Overall this is a genuine medium-risk pattern: executed compiled code from a non-canonical host with weak integrity checking, but not clearly malicious.
PKGBUILD
1 offending line(s) highlighted# Maintainer: Luis Sarmiento <Luis.Sarmiento-ala-nuclear.lu.se>
# Co-Maintainer: effeffe - Filippo Falezza <filippo dot falezza at outlook dot com>
pkgname=upak
pkgver=10.6.8 # <-- current source doesn't have a version. We keep the last known one
pkgrel=14
pkgdesc="HRIBF Data Acquisition and analysis."
url="ftp://ftp.phy.ornl.gov/pub/upak/README.html"
arch=('x86_64')
license=('unknown')
depends=('libx11' 'tcsh' 'bash')
makedepends=('gcc-fortran>=4.2')
options=(staticlibs emptydirs)
source=(
"upak-2021.tar.bz2::https://orruba.org/?mdocs-file=1159"
#"https://ftp.phy.ornl.gov/fauxtp/${pkgname}/${pkgname}-src.tgz"
"upak.install")
md5sums=(
'75b58c32a5e339dcba36c2ca3039bff6'
'28ee91c3b9ad3ac1be306fb8c0eb1f35')
install="${pkgname}.install"
prepare(){
cd ${srcdir}/${pkgname}
#replace /usr/hhirf with /opt/hhirf
find . -type f -exec sed -i 's|/usr/hhirf|/opt/hhirf|g' {} +
find . -type f -exec sed -i 's|/usr/local/hhirf|/opt/hhirf|g' {} +
}
package(){
cd ${srcdir}/${pkgname}
make clean
make -j1 INSTALLDIR="${pkgdir}/opt/hhirf" all # <-- this already goes to ${pkgdir} therefore must be package() not build()
cd ${srcdir}/${pkgname}
install -m644 Dreadme/README-Apr07 ${pkgdir}/opt/hhirf/doc
install -m644 Dreadme/readme.{tex,doc} ${pkgdir}/opt/hhirf/doc
install -m644 Dreadme/dvd.{tex,doc} ${pkgdir}/opt/hhirf/doc
## This is for compatibility while we work on patching most files of the program
#ln -s /opt/hhirf ${pkgdir}/usr/local/hhirf
#ln -s /opt/hhirf ${pkgdir}/usr/hhirf
cd $pkgdir/opt/hhirf
for file in $(ls doc/*.doc);do
file=$(basename -s .doc $file)
./txx doc/$file x
./txxps $file
rm $file.txx
mv $file.ps doc/
done
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-17 00:27:14 | Medium | 2 |
| 2026-09-16 00:03:17 | Medium | 2 |
| 2026-09-15 00:25:31 | Medium | 2 |
| 2026-09-14 00:27:57 | Medium | 2 |
| 2026-09-13 00:19:54 | Medium | 2 |
| 2026-09-12 00:25:17 | Medium | 2 |
| 2026-09-11 00:19:22 | Medium | 2 |
| 2026-09-10 00:22:44 | Medium | 2 |
| 2026-09-09 00:04:09 | Medium | 2 |
| 2026-09-08 00:18:08 | Medium | 2 |
| 2026-09-07 00:30:15 | Medium | 2 |
| 2026-09-06 00:17:06 | Medium | 2 |
| 2026-09-05 00:16:27 | Medium | 2 |
| 2026-09-04 00:03:13 | Medium | 2 |
| 2026-09-03 00:15:47 | Medium | 2 |
| 2026-09-02 00:02:31 | Medium | 2 |
| 2026-09-01 00:11:19 | Medium | 2 |
| 2026-08-31 00:19:57 | Medium | 2 |
| 2026-08-30 00:04:14 | Medium | 2 |
| 2026-08-29 00:29:17 | Medium | 2 |