chatpad-ai-bin

maintainer zxp19821005 · 0 votes · scanned 2026-08-03 00:08:14.047287
MEDIUM
View on AUR ↗
Why flagged The PKGBUILD downloads a prebuilt AppImage from dl.todesktop.com, which is ToDesktop's official distribution CDN (a legitimate Electron app packaging/distribution service used by many commercial apps). The URL lacks a version path component, meaning the same URL could theoretically serve different content over time, though the sha256sum provides integrity verification. The AppImage is executed during the build (--appimage-extract) to unpack its contents, and the app.asar and native libraries are installed. While ToDesktop is a legitimate vendor, it is not a first-party GitHub release or a well-known package mirror — it's a third-party distribution service, and the URL structure (no version in path) is unusual. The sha256sum mitigates substitution risk for the current build, but the non-versioned URL means future pkgrel bumps could silently pull different content if the sum isn't updated. This is a genuine medium supply-chain concern: executed binary from a non-canonical host with a non-versioned URL, even if the current hash is correct.

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:21 "${pkgname%-bin}-${pkgver}.AppImage::https://dl.todesktop.com/230313oyppkw40a"
MEDIUM AI review llm_review

An AI model (anthropic/claude-4.6-sonnet-20260217) reviewed this and agrees it is MEDIUM (confidence 72%): The PKGBUILD downloads a prebuilt AppImage from dl.todesktop.com, which is ToDesktop's official distribution CDN (a legitimate Electron app packaging/distribution service used by many commercial apps). The URL lacks a version path component, meaning the same URL could theoretically serve different content over time, though the sha256sum provides integrity verification. The AppImage is executed during the build (--appimage-extract) to unpack its contents, and the app.asar and native libraries are installed. While ToDesktop is a legitimate vendor, it is not a first-party GitHub release or a well-known package mirror — it's a third-party distribution service, and the URL structure (no version in path) is unusual. The sha256sum mitigates substitution risk for the current build, but the non-versioned URL means future pkgrel bumps could silently pull different content if the sum isn't updated. This is a genuine medium supply-chain concern: executed binary from a non-canonical host with a non-versioned URL, even if the current hash is correct.

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2pkgname=chatpad-ai-bin
3_pkgname=Chatpad-AI
4pkgver=1.4.0
5_electronversion=25
6pkgrel=10
7pkgdesc="Not just another ChatGPT user-interface!"
8arch=("x86_64")
9url="https://chatpad.ai/"
10_ghurl="https://github.com/deiucanta/chatpad"
11license=('AGPL-3.0-only')
12provides=("${pkgname%-bin}=${pkgver}")
13conflicts=("${pkgname%-bin}")
14depends=(
15 "electron${_electronversion}"
16)
17makedepends=(
18 'fuse2'
19)
20source=(
21 "${pkgname%-bin}-${pkgver}.AppImage::https://dl.todesktop.com/230313oyppkw40a"
22 "${pkgname%-bin}.sh"
23)
24sha256sums=('05593b7575fe119cb08aa6049cb93d76dc2cfe0cc86fc0db2d22601f453d9c93'
25 '291f50480f5a61bc9c68db7d44cd0412071128706baa868a9cb854f8779a1980')
26pkgver() {
27 cd "${srcdir}/squashfs-root"
28 grep "X-AppImage-Version" "${_pkgname}.desktop" | sed "s/X-AppImage-Version=//g"
29}
30prepare() {
31 sed -i -e "
32 s/@electronversion@/${_electronversion}/g
33 s/@appname@/${pkgname%-bin}/g
34 s/@runname@/app.asar/g
35 s/@cfgdirname@/${_pkgname//-/}/g
36 s/@options@//g
37 " "${srcdir}/${pkgname%-bin}.sh"
38 chmod +x "${srcdir}/${pkgname%-bin}-${pkgver}.AppImage"
39 "${srcdir}/${pkgname%-bin}-${pkgver}.AppImage" --appimage-extract > /dev/null
40 sed -i -i "
41 s/AppRun --no-sandbox/${pkgname%-bin}/g
42 s/${_pkgname}/${pkgname%-bin}/g
43 " "${srcdir}/squashfs-root/${_pkgname}.desktop"
44}
45package() {
46 install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
47 install -Dm644 "${srcdir}/squashfs-root/resources/app.asar" -t "${pkgdir}/usr/lib/${pkgname%-bin}"
48 install -Dm644 "${srcdir}/squashfs-root/usr/lib/"* -t "${pkgdir}/usr/lib/${pkgname%-bin}/lib"
49 install -Dm644 "${srcdir}/squashfs-root/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-bin}.desktop"
50 _icon_sizes=(16x16 32x32 48x48 64x64 128x128 256x256 512x512 1024x1024)
51 for _icons in "${_icon_sizes[@]}";do
52 install -Dm644 "${srcdir}/squashfs-root/usr/share/icons/hicolor/${_icons}/apps/${_pkgname}.png" \
53 "${pkgdir}/usr/share/icons/hicolor/${_icons}/apps/${pkgname%-bin}.png"
54 done
55}

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