polify-bin
The package downloads a prebuilt binary tarball from a non-whitelisted host, but it is a legitimate release artifact for the project, signed with a PGP key, and the worst case of a swapped source would be code execution; however, the use of a verifiable signature and project-specific infrastructure lowers the risk compared to unverified binaries from arbitrary hosts.
Triggered rules
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads a prebuilt binary tarball from a non-whitelisted host, but it is a legitimate release artifact for the project, signed with a PGP key, and the worst case of a swapped source would be code execution; however, the use of a verifiable signature and project-specific infrastructure lowers the risk compared to unverified binaries from arbitrary hosts.
1 higher static finding superseded - not the current verdict (shown for transparency)
source_untrusted_domain
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
-
PKGBUILD:22
source=("polify-${pkgver}-linux-x86_64.tar.zst::https://buildhut.fly.dev/api/apps/Polify/latest/linux/x86_64/tar.zst"
PKGBUILD
1 offending line(s) highlighted# Maintainer: drzoidberg <drzoidberg+aur@cloudblock.dev>
#
# Binary release PKGBUILD for polify-bin on AUR.
# Source URLs use buildhut stable redirect endpoints.
# The CI publish-aur-bin task updates pkgver, sha256sums, and b2sums
# after each successful build before pushing to AUR.
pkgname=polify-bin
pkgver=0.2.7
pkgrel=1
pkgdesc="Cross-platform music manager with multi-source library, audio fingerprinting, and ID3 tag editing"
arch=('x86_64')
url="https://buildhut.fly.dev/apps/Polify"
license=('MIT')
depends=('gtk3' 'libepoxy' 'xz' 'mpv' 'ffmpeg' 'sqlite' 'libsecret'
'gstreamer' 'gst-plugins-base' 'gst-plugins-good' 'gst-libav'
'libayatana-appindicator' 'flac' 'opus' 'libogg' 'libvorbis')
makedepends=('patchelf')
provides=('polify')
conflicts=('polify' 'polify-git')
validpgpkeys=('EF27591A48D4B6F7C7E55F49EC8E0E98E7C13D19')
source=("polify-${pkgver}-linux-x86_64.tar.zst::https://buildhut.fly.dev/api/apps/Polify/latest/linux/x86_64/tar.zst"
"polify-${pkgver}-linux-x86_64.tar.zst.sig::https://buildhut.fly.dev/api/apps/Polify/latest/linux/x86_64/tar.zst/signature")
sha256sums=('SKIP'
'SKIP')
b2sums=('SKIP'
'SKIP')
# Expected tarball layout (from make release):
# bundle/ — Flutter Linux release bundle contents (includes onnxruntime libs)
# polify.desktop — XDG desktop entry
# polify.png — Application icon
package() {
cd "$srcdir"
# Application bundle
install -d "$pkgdir/usr/lib/polify"
cp -a bundle/* "$pkgdir/usr/lib/polify/"
chmod -R 755 "$pkgdir/usr/lib/polify"
# Replace link-time canonical appindicator with ayatana.
# The CI may link against libappindicator3 but the runtime code
# dlopens libayatana-appindicator3 first — mixing both causes segfaults.
patchelf --replace-needed libappindicator3.so.1 libayatana-appindicator3.so.1 \
"$pkgdir/usr/lib/polify/lib/libsystem_tray_plugin.so" 2>/dev/null || true
# Replace Debian-style vorbis sonames with Arch sonames
patchelf --replace-needed libvorbis.so.0.4.9 libvorbis.so.0 \
"$pkgdir/usr/lib/polify/lib/libflutter_soloud_plugin.so" 2>/dev/null || true
patchelf --replace-needed libvorbisfile.so.3.3.8 libvorbisfile.so.3 \
"$pkgdir/usr/lib/polify/lib/libflutter_soloud_plugin.so" 2>/dev/null || true
# Fix RUNPATH: remove build directory references so the linker finds
# co-located libraries in $ORIGIN (the lib/ directory)
# - Main binary: needs $ORIGIN/lib to find plugins
# - Plugin .so files: need $ORIGIN to find co-located libraries
patchelf --set-rpath '$ORIGIN/lib' "$pkgdir/usr/lib/polify/polify" 2>/dev/null || true
find "$pkgdir/usr/lib/polify/lib" -type f \( -name '*.so' -o -name '*.so.*' \) \
-exec patchelf --set-rpath '$ORIGIN' {} + 2>/dev/null || true
# Strip debug symbols and unneeded metadata
find "$pkgdir/usr/lib/polify" -type f \( -name '*.so' -o -name '*.so.*' \
-o -not -name '*.*' \) -exec strip --strip-unneeded {} + 2>/dev/null || true
# Symlink to /usr/bin
install -d "$pkgdir/usr/bin"
ln -s /usr/lib/polify/polify "$pkgdir/usr/bin/polify"
# Desktop entry and icon
install -Dm644 polify.desktop "$pkgdir/usr/share/applications/polify.desktop"
install -Dm644 polify.png "$pkgdir/usr/share/pixmaps/polify.png"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-17 00:27:14 | Low | 2 |
| 2026-09-16 00:03:17 | Low | 2 |
| 2026-09-15 00:25:31 | Low | 2 |
| 2026-09-14 00:27:57 | Low | 2 |
| 2026-09-13 00:19:54 | Low | 2 |
| 2026-09-12 00:25:17 | Low | 2 |
| 2026-09-11 00:19:22 | Low | 2 |
| 2026-09-10 00:22:44 | Low | 2 |
| 2026-09-09 00:04:09 | Low | 2 |
| 2026-09-08 00:18:08 | Low | 2 |
| 2026-09-07 00:30:15 | Low | 2 |
| 2026-09-06 00:17:06 | Low | 2 |
| 2026-09-05 00:16:27 | Low | 2 |
| 2026-09-04 00:03:13 | Low | 2 |
| 2026-09-03 00:15:47 | Low | 2 |
| 2026-09-02 00:02:31 | Low | 2 |
| 2026-09-01 00:11:19 | Low | 2 |
| 2026-08-31 00:19:57 | Low | 2 |
| 2026-08-30 00:04:14 | Low | 2 |
| 2026-08-29 00:29:17 | Low | 2 |