korai
The PKGBUILD runs 'pip install --upgrade mangadex-downloader' inside the package() function, which downloads and executes arbitrary Python code from PyPI at build/install time without any version pinning or integrity verification. This is a genuine supply-chain concern: the --upgrade flag means whatever version PyPI serves at that moment is installed, bypassing pacman's dependency tracking and reproducibility guarantees. Additionally, the package installs a .so extension into /home/$USER/.local/share rather than a proper system path, and the sha512sum appears to have an incorrect length (127 hex chars instead of 128), suggesting a possible integrity issue. The pip install is the primary concern — it executes unverified, unpinned external code during packaging, which is a real medium-severity supply-chain risk.
Triggered rules
pip_install_external
`pip install <package>` fetches an unpinned package from PyPI at build time, outside source=() and makepkg's checksums.
-
PKGBUILD:48
pip install --upgrade mangadex-downloader
llm_review
An AI model (anthropic/claude-4.6-sonnet-20260217) reviewed this and agrees it is MEDIUM (confidence 85%): The PKGBUILD runs 'pip install --upgrade mangadex-downloader' inside the package() function, which downloads and executes arbitrary Python code from PyPI at build/install time without any version pinning or integrity verification. This is a genuine supply-chain concern: the --upgrade flag means whatever version PyPI serves at that moment is installed, bypassing pacman's dependency tracking and reproducibility guarantees. Additionally, the package installs a .so extension into /home/$USER/.local/share rather than a proper system path, and the sha512sum appears to have an incorrect length (127 hex chars instead of 128), suggesting a possible integrity issue. The pip install is the primary concern — it executes unverified, unpinned external code during packaging, which is a real medium-severity supply-chain risk.
PKGBUILD
1 offending line(s) highlighted# Contributor: DisableGraphics elchifladod@gmail.com
pkgbase="korai"
pkgname="korai"
pkgrel=2
pkgver=0.2.1
pkgdesc="Fast, reliable and feature-packed manga and comics reader"
arch=("any")
url='https://github.com/DisableGraphics/Korai'
makedepends=("git" "imagemagick")
depends=("libarchive" "gtkmm3" "webkit2gtk" "vte3" "mangodl")
conflicts=("korai-git")
license=("GPL")
source=("${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha512sums=('2f40b9bbddc3aca79fd6c4c34e78a68eea89bb9fb289f4324636829a0586bb9e8ee15db89fb5faba3ac98b2a2dbf4b474a0b7e93eb24a9da2354af1e3f688964')
prepare() {
cd ${srcdir}/${pkgname^}-${pkgver}
make -j$(nproc)
}
package() {
install -Dm755 ${pkgname^}-${pkgver}/build/${pkgname} "${pkgdir}/usr/bin/${pkgname}"
install -Dm755 ${pkgname^}-${pkgver}/build/korai-extensions/savepos.so "${pkgdir}/home/${USER}/.local/share/korai-extensions/savepos.so"
echo "Converting icon..."
convert ${pkgname^}-${pkgver}/src/icon.xpm ${pkgname^}-${pkgver}/src/icon.png
install -Dm755 ${pkgname^}-${pkgver}/src/icon.png "${pkgdir}/usr/share/icons/korai.png"
echo "Adding application menu..."
if [ -f "${pkgname^}-${pkgver}/korai.desktop" ]; then
rm -f "${pkgname^}-${pkgver}/korai.desktop"
fi
touch "${pkgname^}-${pkgver}/korai.desktop"
echo "#!/usr/bin/env xdg-open
[Desktop Entry]
Version=Git
Type=Application
Name=Korai
Comment=\"Fast, reliable and feature-packed manga/comic book reader\"
Exec=/usr/bin/korai
Icon=/usr/share/icons/korai.png
Path=/home/$USER/.local/share
Terminal=false
StartupNotify=false
Categories=Network;" >> "${pkgname^}-${pkgver}/korai.desktop"
install -Dm755 ${pkgname^}-${pkgver}/korai.desktop "${pkgdir}/usr/share/applications/korai.desktop"
pip install --upgrade mangadex-downloader
echo "Korai requires mangadex-downloader (only available using pip) to download MangaDex manga directly"
}
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 |