piranha-servlet
The PKGBUILD downloads a prebuilt JAR (executable code) from Maven Central using curl inside package() rather than declaring it in source=() with a checksum. While Maven Central is a legitimate and well-known repository, bypassing makepkg's integrity verification (no sha256sums/b2sums) means there is no tamper detection — a compromised or MITM'd response would be silently installed. The JAR is executed at runtime by the JVM, so it constitutes executed code without integrity verification. This is a genuine, if moderate, supply-chain concern: not clearly malicious, but the missing checksum on an executed artifact from an external host warrants MEDIUM. Additionally, the 'install $startdir/$pkgname' line installs a file from the source tree that is not declared in source=() either, which is another unverified artifact.
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:20
curl -OL "https://repo1.maven.org/maven2/cloud/piranha/dist/piranha-dist-servlet/$pkgver/piranha-dist-servlet-$pkgver.jar"
llm_review
An AI model (anthropic/claude-4.6-sonnet-20260217) reviewed this and agrees it is MEDIUM (confidence 85%): The PKGBUILD downloads a prebuilt JAR (executable code) from Maven Central using curl inside package() rather than declaring it in source=() with a checksum. While Maven Central is a legitimate and well-known repository, bypassing makepkg's integrity verification (no sha256sums/b2sums) means there is no tamper detection — a compromised or MITM'd response would be silently installed. The JAR is executed at runtime by the JVM, so it constitutes executed code without integrity verification. This is a genuine, if moderate, supply-chain concern: not clearly malicious, but the missing checksum on an executed artifact from an external host warrants MEDIUM. Additionally, the 'install $startdir/$pkgname' line installs a file from the source tree that is not declared in source=() either, which is another unverified artifact.
PKGBUILD
1 offending line(s) highlighted# Maintainer: Abderrahman-byte <el.abderrahman00@gmail.com>
# Contributor: Abderrahman-byte <el.abderrahman00@gmail.com>
pkgname=piranha-servlet
pkgver=23.1.0
pkgrel=1
pkgdesc="Piranha is a cloud native extensible runtime, which delivers various integration libraries facilitating running applications in a non application server centric way."
arch=("any")
url="https://github.com/piranhacloud/piranha"
depends=("jre-openjdk")
provides=("piranha-servlet")
package() {
mkdir -p $pkgdir/usr/share/piranha-cloud/
mkdir -p $pkgdir/usr/bin/
cd $pkgdir/usr/share/piranha-cloud/
curl -OL "https://repo1.maven.org/maven2/cloud/piranha/dist/piranha-dist-servlet/$pkgver/piranha-dist-servlet-$pkgver.jar"
ln -s ./piranha-dist-servlet-$pkgver.jar $pkgdir/usr/share/piranha-cloud/piranha-dist-servlet.jar
install $startdir/$pkgname $pkgdir/usr/bin/$pkgname
}
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 |