dimagent-bin
A prebuilt binary .deb is downloaded from a non-official CDN host (dimcode.echooai.com) unrelated to the project's own domain (dimagent.cn), making it a swappable third-party artifact; the sha512 checksum provides some integrity guarantee but the host is not the project's canonical infrastructure, and the package installs a setuid Electron binary directly into the system.
Triggered rules
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:16
source=("$_deb::https://dimcode.echooai.com/updates/stable/linux/x64/DimAgent-$pkgver.deb")
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
llm_review
An AI model (anthropic/claude-sonnet-4.6) reviewed this and agrees it is MEDIUM (confidence 70%): A prebuilt binary .deb is downloaded from a non-official CDN host (dimcode.echooai.com) unrelated to the project's own domain (dimagent.cn), making it a swappable third-party artifact; the sha512 checksum provides some integrity guarantee but the host is not the project's canonical infrastructure, and the package installs a setuid Electron binary directly into the system.
PKGBUILD
1 offending line(s) highlighted# Maintainer: DimAgent <app@fazhitech.com>
# Generated by scripts/generate-desktop-aur-package.mjs — do not edit by hand.
pkgname=dimagent-bin
pkgver=0.9.19
pkgrel=1
pkgdesc="DimAgent desktop client — AI coding agent"
arch=('x86_64')
url="https://dimagent.cn"
license=('LicenseRef-DimAgent-EULA')
depends=('gtk3' 'nss' 'alsa-lib' 'libcups' 'libxtst' 'libxss' 'libsecret' 'libnotify' 'at-spi2-core' 'mesa' 'xdg-utils')
optdepends=('libappindicator-gtk3: tray icon on desktops without StatusNotifier')
provides=('dimagent')
conflicts=('dimagent')
options=('!strip' '!debug' '!lto')
_deb=DimAgent-$pkgver.deb
source=("$_deb::https://dimcode.echooai.com/updates/stable/linux/x64/DimAgent-$pkgver.deb")
sha512sums=('3b7ff836e19872a22650ab3c15ea08bfa87b9516634ad33f9ab782c48e062282bc3e8ec79d1224ddbd63b60e6f558cfb8a150c1e67ee892a0dbc549347fe1536')
# makepkg has no extractor for .deb, and the payload is unpacked in package()
# straight into $pkgdir anyway.
noextract=("$_deb")
package() {
bsdtar -O -xf "$srcdir/$_deb" data.tar.xz | bsdtar -C "$pkgdir" -xf -
# Debian's changelog has no meaning in a pacman package.
rm -rf "$pkgdir/usr/share/doc"
# Electron's sandbox helper has to be setuid root or the app refuses to start
# with "SUID sandbox helper binary was found, but is not configured correctly".
# The .deb sets this from its postinst, which pacman never runs.
chmod 4755 "$pkgdir/opt/DimAgent/chrome-sandbox"
# The .deb ships no launcher on PATH; its desktop entry runs the binary by
# absolute path.
install -d "$pkgdir/usr/bin"
ln -s "/opt/DimAgent/DimAgent" "$pkgdir/usr/bin/dimagent"
install -Dm644 "$pkgdir/opt/DimAgent/LICENSE.electron.txt" \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE.electron.txt"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-02 09:54:23 | Medium | 3 |
| 2026-09-02 09:50:35 | Medium | 3 |