geminishell

MEDIUM
maintainer strawhatluffy 0 votes scanned 2026-09-17 00:27:14.276658
View on AUR
Why flagged

This PKGBUILD pulls from a personal GitHub repo on the main branch (no pinned commit, sha256sums='SKIP'), then at build time runs 'pip install -r requirements.txt' and 'pip install pyinstaller' inside a venv — downloading arbitrary PyPI packages with no version pinning or integrity verification. The resulting PyInstaller binary bundles all those dynamically-fetched packages and is installed to /usr/bin. The combination of: (1) unpinned git HEAD from a personal repo, (2) unpinned/unverified pip dependencies, and (3) the final artifact being a compiled executable placed in /usr/bin constitutes a genuine supply-chain risk — any of the upstream sources (git repo, requirements.txt contents, PyPI packages) could be altered to inject malicious code that ends up executed as a bundled binary. This is a real medium-severity concern, not a false positive.

Triggered rules

Medium pip install of an external package pip_install_external

`pip install <package>` fetches an unpinned package from PyPI at build time, outside source=() and makepkg's checksums.

  • PKGBUILD:19 pip install -r requirements.txt
  • PKGBUILD:20 pip install pyinstaller
Medium AI review llm_review

An AI model (anthropic/claude-4.6-sonnet-20260217) reviewed this and agrees it is MEDIUM (confidence 72%): This PKGBUILD pulls from a personal GitHub repo on the main branch (no pinned commit, sha256sums='SKIP'), then at build time runs 'pip install -r requirements.txt' and 'pip install pyinstaller' inside a venv — downloading arbitrary PyPI packages with no version pinning or integrity verification. The resulting PyInstaller binary bundles all those dynamically-fetched packages and is installed to /usr/bin. The combination of: (1) unpinned git HEAD from a personal repo, (2) unpinned/unverified pip dependencies, and (3) the final artifact being a compiled executable placed in /usr/bin constitutes a genuine supply-chain risk — any of the upstream sources (git repo, requirements.txt contents, PyPI packages) could be altered to inject malicious code that ends up executed as a bundled binary. This is a real medium-severity concern, not a false positive.

PKGBUILD

2 offending line(s) highlighted
1# Maintainer: Kshitij Aucharmal <kshitijaucharmal21@gmail.com>
2
3pkgname=geminishell
4pkgver=1.0.0
5pkgrel=1
6pkgdesc="A shell program written in Python"
7arch=('any')
8url="https://github.com/kshitijaucharmal/geminishell" # Replace with your project's URL
9license=('Apache')
10depends=('python' 'python-pip') # Add other dependencies if needed
11source=("git+https://github.com/kshitijaucharmal/$pkgname.git#branch=main")
12sha256sums=('SKIP') # Not required when using git
13
14build() {
15 cd "$srcdir/$pkgname"
16 # Create virtual environment and install dependencies
17 python -m venv env
18 source env/bin/activate
19 pip install -r requirements.txt
20 pip install pyinstaller
21
22 # Build the application
23 pyinstaller src/__main__.py --clean -n geminishell --distpath target
24
25 deactivate
26
27 # Remove virtual environment
28 rm -rf env
29}
30
31package() {
32 cd "$srcdir/$pkgname"
33
34 # Install the binary into /usr/bin
35 install -Dm755 "target/geminishell/geminishell" "$pkgdir/usr/bin/geminishell"
36
37 # Install the LICENSE file
38 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
39}
40

Scan history

Scanned at (UTC)SeverityRules
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

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion