korai
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-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 |