dimagent-bin
The package downloads a prebuilt .deb binary from a non-standard, project-specific host (dimcode.echooai.com) which is not the project's main domain and could allow silent replacement of the executable; this creates a supply-chain risk despite the checksum.
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:14
source=("$_deb::https://dimcode.echooai.com/updates/stable/linux/x64/DimAgent-$pkgver.deb")
llm_review
An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is MEDIUM (confidence 90%): The package downloads a prebuilt .deb binary from a non-standard, project-specific host (dimcode.echooai.com) which is not the project's main domain and could allow silent replacement of the executable; this creates a supply-chain risk despite the checksum.
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.33
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')
options=('!strip' '!debug' '!lto')
_deb=DimAgent-$pkgver.deb
source=("$_deb::https://dimcode.echooai.com/updates/stable/linux/x64/DimAgent-$pkgver.deb")
sha512sums=('329f0b651b9c364043377c0993dd9ec607633299b23d6192a118314813378c78f9cecd706f572535ec0bab701f7ae71825973a8d4305cce4b86b786db353f755')
# 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-desktop"
install -Dm644 "$pkgdir/opt/DimAgent/LICENSE.electron.txt" \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE.electron.txt"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-17 00:21:55 | Medium | 2 |
| 2026-10-16 00:12:47 | Medium | 2 |
| 2026-10-15 00:28:05 | Medium | 2 |
| 2026-10-14 00:06:47 | Medium | 2 |
| 2026-10-13 00:23:45 | Medium | 2 |
| 2026-10-12 00:18:51 | Medium | 2 |
| 2026-10-11 00:26:05 | Medium | 2 |
| 2026-10-10 00:11:52 | Medium | 2 |
| 2026-10-09 00:05:33 | Medium | 2 |
| 2026-10-08 00:28:03 | Medium | 2 |
| 2026-10-07 00:21:34 | Medium | 2 |
| 2026-10-06 00:13:36 | Medium | 2 |
| 2026-10-05 00:08:03 | Medium | 2 |
| 2026-10-04 00:18:08 | Medium | 2 |
| 2026-10-03 00:23:04 | Medium | 2 |
| 2026-10-02 00:00:32 | Medium | 2 |
| 2026-10-01 00:02:06 | Medium | 2 |
| 2026-09-30 00:20:07 | Medium | 2 |
| 2026-09-29 00:07:46 | Medium | 2 |
| 2026-09-28 00:28:32 | Medium | 2 |