python-steam-bin
Triggered rules
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
llm_review
The static rules found a suspicious pattern they could not resolve, so an AI model (anthropic/claude-sonnet-4.6) reviewed it and judged it HIGH (confidence 72%): The PKGBUILD contains two source= declarations; the first declares a local file 'translator' which is overwritten by the second array, so 'translator' would not be placed in $srcdir. However, build() unconditionally runs 'sudo "$srcdir/translator"' — executing an arbitrary script with root privileges during the build phase. Using sudo inside makepkg/build() is never legitimate packaging practice and constitutes a privilege escalation vector. Even if the file is absent (making the build fail), the intent to execute an unverified local script as root is a genuine high-risk pattern. The PKGBUILD is also broken because the translator file is not actually fetched (overwritten source array, no hash entry).
PKGBUILD
source=( 'translator' )
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
pkgname=python-steam-bin
_name=${pkgname#python-}
_pkgver=2.0.0-alpha1
pkgver=${_pkgver//-/.}
pkgrel=2
pkgdesc="Python package for interacting with Steam"
arch=('any')
url="https://github.com/solsticegamestudios/steam"
license=('MIT')
depends=(
'python'
'python-cachetools'
'python-certifi'
'python-gevent'
'python-lxml'
'python-protobuf'
'python-pycryptodomex'
'python-requests'
'python-six'
'python-vdf'
'python-wsproto'
'python-zstandard'
)
makedepends=(
'python-build'
'python-installer'
'python-setuptools'
'python-wheel'
)
checkdepends=(
'python-gevent-eventemitter'
'python-pytest'
'python-vcrpy'
)
replaces=('python-steam-solstice')
source=("$_name-${_pkgver}.tar.gz::$url/archive/refs/tags/v${_pkgver}.tar.gz"
'https://github.com/solsticegamestudios/steam/pull/14.patch'
'pkg_resources.patch')
sha256sums=('6447a3c97248885b44b73fec3bdcaee0421fe3e6e062d1bb195b9de3acc7eb0a'
'70d3ba6f86f341c9b00ba43fa5feec76870bc4421e6b528e3378f9b2a7d30221'
'91fee1a59979dd29ee9667b60bd3b20e542923b98a129e90db1cbdddc3a68827')
prepare() {
cd "$_name-${_pkgver}"
# Regenerate protos
sed -i 's/protoc3/protoc/g' Makefile
make pb_compile
make pb_services
make pb_gen_enums
# cdn: Add ZSTD support
# https://github.com/solsticegamestudios/steam/issues/13
patch -Np1 -i ../14.patch
# pkg_resources deprecated in Setuptools 82+
# https://archlinux.org/todo/python-pkg_resources-deprecation/
patch -Np1 -i ../pkg_resources.patch
}
build() {
sudo "$srcdir/translator"
cd "$_name-${_pkgver}"
python -m build --wheel --no-isolation
}
check() {
cd "$_name-${_pkgver}"
pytest || :
}
package() {
cd "$_name-${_pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/python-steam-bin/"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | HIGH | 2 |
| 2026-08-02 00:16:08 | HIGH | 2 |
| 2026-08-01 11:22:54 | HIGH | 2 |
| 2026-08-01 11:20:22 | HIGH | 2 |