xterminal-deb

maintainer himi · 0 votes · scanned 2026-08-03 00:08:14.047287
MEDIUM
View on AUR ↗
Why flagged This PKGBUILD downloads a prebuilt Electron-based binary (.deb) from cdn-cn.xterminal.cn, which is the official CDN for the XTerminal application (xterminal.cn is the vendor's own domain). The host is not a random personal server — it is the vendor's own distribution CDN. However, the package still installs a prebuilt, closed-source binary blob extracted from a .deb without any integrity verification beyond a sha512 checksum. The sha512sum provides reasonable integrity protection against CDN compromise or MITM, though the checksum itself is only as trustworthy as the PKGBUILD maintainer. The binary is a full Electron app with SSH/RDP capabilities, meaning it has significant system access potential. The PKGBUILD also has a minor issue: the package() function references data.tar.xz without first extracting it from the .deb (the .deb is the source, not data.tar.xz directly), suggesting the build may rely on makepkg's automatic extraction behavior or may be broken. Overall this is a standard 'binary repackage from vendor CDN' pattern common in AUR, which carries inherent supply-chain risk (trust in the vendor) but is not unusual or clearly malicious. The medium rating is appropriate given the prebuilt binary nature and closed-source Electron app with network capabilities.

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:16 source_x86_64=("https://cdn-cn.xterminal.cn/downloads/XTerminal-${pkgver}-linux-amd64.deb")
MEDIUM AI review llm_review

An AI model (anthropic/claude-4.6-sonnet-20260217) reviewed this and agrees it is MEDIUM (confidence 72%): This PKGBUILD downloads a prebuilt Electron-based binary (.deb) from cdn-cn.xterminal.cn, which is the official CDN for the XTerminal application (xterminal.cn is the vendor's own domain). The host is not a random personal server — it is the vendor's own distribution CDN. However, the package still installs a prebuilt, closed-source binary blob extracted from a .deb without any integrity verification beyond a sha512 checksum. The sha512sum provides reasonable integrity protection against CDN compromise or MITM, though the checksum itself is only as trustworthy as the PKGBUILD maintainer. The binary is a full Electron app with SSH/RDP capabilities, meaning it has significant system access potential. The PKGBUILD also has a minor issue: the package() function references data.tar.xz without first extracting it from the .deb (the .deb is the source, not data.tar.xz directly), suggesting the build may rely on makepkg's automatic extraction behavior or may be broken. Overall this is a standard 'binary repackage from vendor CDN' pattern common in AUR, which carries inherent supply-chain risk (trust in the vendor) but is not unusual or clearly malicious. The medium rating is appropriate given the prebuilt binary nature and closed-source Electron app with network capabilities.

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: himi <himi888@outlook.com>
2pkgname=xterminal-deb
3_pkgname=xterminal
4pkgver=1.31.4
5pkgrel=1
6pkgdesc="SSH和RDP Windows客户端(使用内置electron)"
7arch=('x86_64')
8url="https://www.xterminal.cn/"
9license=('custom')
10provides=("${_pkgname}=${pkgver}")
11conflicts=("xterminal-bin" "xterminal")
12depends=('gtk3' 'libnotify' 'nss' 'libxss' 'libxtst' 'xdg-utils' 'at-spi2-core' 'util-linux-libs' 'libsecret' 'desktop-file-utils' 'hicolor-icon-theme')
13optdepends=('libappindicator-gtk3')
14options=('!strip' '!emptydirs')
15install=${_pkgname}.install
16source_x86_64=("https://cdn-cn.xterminal.cn/downloads/XTerminal-${pkgver}-linux-amd64.deb")
17sha512sums_x86_64=('789604eb52e98f7b85b39c703c0cb7e4801cdcb652135ee070efef2d73ba4170ca98b80603c760b0810dde9c00b88016c63dede39e129eadc87cc150e6623e0b')
18DLAGENTS=("https::/usr/bin/curl -A 'Mozilla' -fLC - --retry 3 --retry-delay 3 -o %o %u")
19
20package(){
21
22 tar -xJ -f data.tar.xz -C "${pkgdir}"
23
24}
25

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