aliyunpan-cli-bin
Triggered rules
pip_install_external
`pip install <package>` fetches an unpinned package from PyPI at build time, outside source=() and makepkg's checksums.
-
PKGBUILD:25
pip install -r requirements.txt -
PKGBUILD:26
pip install pyinstaller
llm_review
An AI model (anthropic/claude-4.6-sonnet-20260217) reviewed this and agrees it is MEDIUM (confidence 75%): The PKGBUILD runs `pip install -r requirements.txt` and `pip install pyinstaller` during the prepare() phase, pulling Python packages from PyPI without pinned versions or checksums. This is a genuine supply-chain concern: any of those PyPI packages could be compromised or typosquatted, and the installed code gets compiled into a standalone binary via PyInstaller and then installed to /usr/bin. Additionally, the dlnap dependency is pulled from a GitHub master branch tarball with SKIP checksum, meaning it is not integrity-verified. The combination of unverified external code execution during build and bundling into a shipped binary represents a real (if not clearly malicious) supply-chain risk. The source tarball itself comes from the official GitHub releases page, which is fine, but the pip-based dependency resolution without lockfile/hashes undermines reproducibility and security.
PKGBUILD
2 offending line(s) highlighted# Maintainer: Atom Long <atom.long@hotmail.com>
_pkgname=aliyunpan
pkgname=${_pkgname}-cli-bin
pkgver=3.0.9
pkgrel=1
pkgdesc="Aliyunpan CLI"
arch=('any')
url="https://github.com/wxy1343/aliyunpan"
license=("GPL-3.0")
makedepends=('python-pip')
provides=("aliyunpan" "aliyunpan-cli")
conflicts=("aliyunpan" "aliyunpan-cli")
source=(${_pkgname}-${pkgver}.tar.gz::"${url}/archive/refs/tags/v${pkgver}.tar.gz"
dlnap-master.tar::"https://github.com/cherezov/dlnap/archive/master.tar.gz"
"0001-upgrade-requirements.patch")
sha256sums=('bcf6aefbf2990dd1f81a24b9307363b2198d5540b22c6099d4a56ff25010cba4'
'SKIP'
'130eae5955b74cdc9984c1bc69982480d0b38fdbe719de068a7a12dcc4c8b3d3')
prepare() {
cd "${_pkgname}-${pkgver}"
mv -vTf "${srcdir}"/dlnap-master dlnap
patch -Np1 -i "${srcdir}/0001-upgrade-requirements.patch"
pip install -r requirements.txt
pip install pyinstaller
export PATH=${HOME}/.local/bin:${PATH}
}
build() {
cd ${_pkgname}-${pkgver}
pyinstaller -F aliyunpan/main.py -n aliyunpan-cli
}
package() {
cd ${_pkgname}-${pkgver}
install -Dm755 ./dist/aliyunpan-cli "$pkgdir/usr/bin/aliyunpan-cli"
ln -vsf aliyunpan-cli $pkgdir/usr/bin/aliyunpan
}
# vim: set et ts=2 sw=2:
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 |