anythingllm-desktop-bin

maintainer impulse · 9 votes · scanned 2026-08-03 00:08:14.047287
MEDIUM
View on AUR ↗
Why flagged The package downloads a prebuilt AppImage from a non-standard host (cdn.anythingllm.com), which is not on the standard whitelist; while the domain appears legitimate and hosts official releases, the lack of verifiable source control and use of a third-party CDN for executable binaries creates a supply-chain risk if the CDN were compromised or the download silently swapped.

Triggered rules

MEDIUM source=() URL on a non-standard host 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:36 source_aarch64=("${pkgname%-bin}-${pkgver}-aarch64.AppImage::https://cdn.anythingllm.com/latest/${_pkgname//-/}-Arm64.AppImage")
MEDIUM AI review llm_review

An AI model (qwen/qwen3-235b-a22b-07-25) reviewed this and agrees it is MEDIUM (confidence 95%): The package downloads a prebuilt AppImage from a non-standard host (cdn.anythingllm.com), which is not on the standard whitelist; while the domain appears legitimate and hosts official releases, the lack of verifiable source control and use of a third-party CDN for executable binaries creates a supply-chain risk if the CDN were compromised or the download silently swapped.

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2_appname=anythingllm
3pkgname="${_appname}-desktop-bin"
4_pkgname=Anything-LLM-Desktop
5pkgver=1.15.0
6_electronversion=31
7pkgrel=1
8pkgdesc="The all-in-one AI application, tool suite, and API for RAG & Agents for Docker & Desktop.(Prebuilt version.Use system-wide electron)"
9arch=(
10 'aarch64'
11 'x86_64'
12)
13url="https://anythingllm.com/"
14_ghurl="https://github.com/Mintplex-Labs/anything-llm"
15license=('MIT')
16provides=("${pkgname%-bin}=${pkgver}")
17conflicts=(
18 "${pkgname%-bin}"
19 "${_appname}"
20)
21depends=(
22 "electron${_electronversion}"
23 'ollama'
24)
25optdepends=(
26 'ollama-cuda'
27 'ollama-rocm'
28)
29makedepends=(
30 'asar'
31)
32options=(
33 '!strip'
34)
35source=("${pkgname%-bin}.sh")
36source_aarch64=("${pkgname%-bin}-${pkgver}-aarch64.AppImage::https://cdn.anythingllm.com/latest/${_pkgname//-/}-Arm64.AppImage")
37source_x86_64=("${pkgname%-bin}-${pkgver}-x86_64.AppImage::https://cdn.anythingllm.com/latest/${_pkgname//-/}.AppImage")
38sha256sums=('31ad33b633744f5361abd964be306cea53ae1050e760c787115f7eca60045ae6')
39sha256sums_aarch64=('1b948c5090c398f03218d891fcbec8df7be0d0188cd1cf0bf2c881b5df9ac5f2')
40sha256sums_x86_64=('0e4fc5786cde7c00a2265c937fefc155cf1926bc85f46abc056c59a9778069cb')
41pkgver() {
42 cd "${srcdir}/squashfs-root"
43 set -o pipefail
44 grep "X-AppImage-Version" "${pkgname%-bin}.desktop" | sed "s/X-AppImage-Version=//;s/-/_/g"
45}
46_get_electron_version() {
47 _elec_ver="$(strings "${srcdir}/squashfs-root/${pkgname%-bin}" | grep '^Chrome/[0-9.]* Electron/[0-9]' | cut -d'/' -f3 | cut -d'.' -f1)"
48 echo -e "The electron version is: \033[1;31m${_elec_ver}\033[0m"
49}
50prepare() {
51 sed -i -e "
52 s/@electronversion@/${_electronversion}/g
53 s/@appname@/${pkgname%-bin}/g
54 s/@runname@/app.asar/g
55 s/@cfgdirname@/${_pkgname}/g
56 s/@options@/env ELECTRON_OZONE_PLATFORM_HINT=auto/g
57 " "${srcdir}/${pkgname%-bin}.sh"
58 if [ ! -x "${srcdir}/${pkgname%-bin}-${pkgver}-${CARCH}.AppImage" ];then
59 chmod +x "${srcdir}/${pkgname%-bin}-${pkgver}-${CARCH}.AppImage"
60 fi
61 if [ -d "${srcdir}/squashfs-root" ];then
62 rm -rf "${srcdir}/squashfs-root"
63 fi
64 "${srcdir}/${pkgname%-bin}-${pkgver}-${CARCH}.AppImage" --appimage-extract > /dev/null
65 _get_electron_version
66 sed -i "s/AppRun --no-sandbox/${pkgname%-bin}/g" "${srcdir}/squashfs-root/${pkgname%-bin}.desktop"
67 find "${srcdir}/squashfs-root/resources" -type d -exec chmod 755 {} +
68 asar e "${srcdir}/squashfs-root/resources/app.asar" "${srcdir}/app.asar.unpacked"
69 rm -rf "${srcdir}/squashfs-root/resources/app.asar"
70 find "${srcdir}/app.asar.unpacked/dist-electron" -type f -exec sed -i "s/process.resourcesPath/\'\/usr\/lib\/${pkgname%-bin}\'/g" {} \;
71 asar p "${srcdir}/app.asar.unpacked" "${srcdir}/squashfs-root/resources/app.asar"
72 ln -sf "/usr/bin/ollama" "${srcdir}/squashfs-root/resources/ollama/bin/llm"
73 _file_list=(libggml-base.so libggml-cpu-alderlake.so libggml-cpu-haswell.so libggml-cpu-icelake.so libggml-cpu-sandybridge.so \
74 libggml-cpu-skylakex.so libggml-cpu-sse42.so libggml-cpu-x64.so libggml-cuda.so libggml-hip.so)
75 for _files in "${_file_list[@]}";do
76 ln -sf "/usr/lib/ollama/${_files}" "${srcdir}/squashfs-root/resources/ollama/lib/${_files}"
77 done
78}
79package() {
80 install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
81 install -Dm755 -d "${pkgdir}/usr/lib/${pkgname%-bin}"
82 find "${srcdir}/squashfs-root/resources" -maxdepth 1 -type f -exec install -Dm644 -t "${pkgdir}/usr/lib/${pkgname%-bin}" {} +
83 if find "${srcdir}/squashfs-root/resources" -mindepth 1 -maxdepth 1 -type d | read; then
84 for _subdir in "${srcdir}/squashfs-root/resources/"*; do
85 if [ -d "${_subdir}" ]; then
86 cp -Pr --no-preserve=ownership "${_subdir}" "${pkgdir}/usr/lib/${pkgname%-bin}"
87 fi
88 done
89 fi
90 install -Dm644 "${srcdir}/squashfs-root/usr/lib/"* -t "${pkgdir}/usr/lib/${pkgname%-bin}/lib"
91 install -Dm644 "${srcdir}/squashfs-root/usr/share/icons/hicolor/0x0/apps/${pkgname%-bin}.png" -t "${pkgdir}/usr/share/pixmaps"
92 install -Dm644 "${srcdir}/squashfs-root/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
93 install -Dm644 "${srcdir}/squashfs-root/"LICENSE* -t "${pkgdir}/usr/share/licenses/${pkgname}"
94}
95

Scan history

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

Report a package

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

0 / 4000
Your suggestion