trae-cn

LOW
maintainer logan_reed 4 votes scanned 2026-11-01 00:21:48.120785
View on AUR
Why flagged

The package downloads a prebuilt binary from the project's own CDN (trae.com.cn), which is plausibly official; the source is not executed remotely, and the build process installs only project files without obfuscation or code injection.

Triggered rules

Low AI review downgraded a static finding llm_review

The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-2507) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads a prebuilt binary from the project's own CDN (trae.com.cn), which is plausibly official; the source is not executed remotely, and the build process installs only project files without obfuscation or code injection.

1 higher static finding superseded - not the current verdict (shown for transparency)
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:20 source_x86_64=("Trae_CN-linux-x64-${pkgver}-${pkgrel}.tar.gz::https://lf-cdn.trae.com.cn/obj/trae-com-cn/pkg/app/releases/stable/2.3.97430/linux/TRAE_CN-linux-x64.tar.gz")

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: logan_reed <liulingzhang.work@icloud.com>
2# Contributor: springtwr <springtwr@outlook.com>
3
4pkgname=trae-cn
5pkgver=2.3.97430
6pkgrel=1
7pkgdesc="AI-powered IDE by ByteDance (Chinese Domestic Version)"
8arch=('x86_64' 'aarch64')
9url="https://www.trae.cn/"
10license=('LicenseRef-Trae')
11conflicts=('trae-cn-bin')
12depends=('nss' 'alsa-lib' 'gtk3' 'at-spi2-core' 'libsecret' 'libxkbfile' 'zeromq')
13optdepends=('libappindicator-gtk3: System tray support'
14 'xdg-utils: Open URLs and files with default applications'
15 'python: Python extension support'
16 'nodejs: Node.js extension scripts')
17options=('!strip' '!debug')
18install=${pkgname}.install
19source=("trae-cn.sh" "trae-cn.desktop")
20source_x86_64=("Trae_CN-linux-x64-${pkgver}-${pkgrel}.tar.gz::https://lf-cdn.trae.com.cn/obj/trae-com-cn/pkg/app/releases/stable/2.3.97430/linux/TRAE_CN-linux-x64.tar.gz")
21source_aarch64=("Trae_CN-linux-arm64-${pkgver}-${pkgrel}.tar.gz::https://lf-cdn.trae.com.cn/obj/trae-com-cn/pkg/app/releases/stable/2.3.97430/linux/TRAE_CN-linux-arm64.tar.gz")
22b2sums=('f7998b11d3f97f84895231ca1ca9a05bd3a97106f363744fc5f13402c15c419cc56d09e52c9366bfbd75c016b0aada69286bef8879df4925df0ef446212d7c45'
23 '02d2c5d433e4d56a958bc7766563d977d79070f06c94bfa5829d2eb3c20c50111c3ff5174109bdb6f8f20cafdf4730f053f37c3a7a03e6b0f466446981dcc407')
24b2sums_x86_64=('2c026dcd9fc7f67ff6c7e7b76c076c0e1561118eb8781f5c1060e1f5c903f0c89b3ff814157daf43ada47e8f4e91e3fe6aec687f66286a749c09b8a73b1d9826')
25b2sums_aarch64=('e7e65c4b6784779202970aee80daee1e4700db783a60e513c1b38f0745371107c05c00a20494a535e996df1ffc42f6df14018cf5df4812ab97806fd1897d96f2')
26
27package() {
28 install -d "${pkgdir}/opt/trae-cn"
29
30 for f in "${srcdir}"/*; do
31 case "${f##*/}" in
32 trae-cn.sh|trae-cn.desktop|*.tar.*) continue ;;
33 esac
34 cp -a "$f" "${pkgdir}/opt/trae-cn/"
35 done
36
37 # SUID sandbox
38 chmod 4755 "${pkgdir}/opt/trae-cn/chrome-sandbox"
39
40 # Launcher
41 install -Dm755 "${srcdir}/trae-cn.sh" "${pkgdir}/usr/bin/trae-cn"
42
43 # Desktop entry
44 install -Dm644 "${srcdir}/trae-cn.desktop" "${pkgdir}/usr/share/applications/trae-cn.desktop"
45
46 # Icon
47 install -Dm644 "${pkgdir}/opt/trae-cn/resources/app/resources/linux/code.png" "${pkgdir}/usr/share/icons/hicolor/512x512/apps/trae-cn.png"
48
49 # License
50 install -Dm644 "${pkgdir}/opt/trae-cn/resources/app/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
51 install -Dm644 "${pkgdir}/opt/trae-cn/resources/app/ThirdPartyNotices.txt" "${pkgdir}/usr/share/licenses/${pkgname}/ThirdPartyNotices"
52 install -Dm644 "${pkgdir}/opt/trae-cn/LICENSES.chromium.html" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSES.chromium.html"
53
54 # Shell completions
55 install -Dm644 "${pkgdir}/opt/trae-cn/resources/completions/bash/trae-cn" "${pkgdir}/usr/share/bash-completion/completions/trae-cn"
56 install -Dm644 "${pkgdir}/opt/trae-cn/resources/completions/zsh/_trae-cn" "${pkgdir}/usr/share/zsh/site-functions/_trae-cn"
57
58 # Remove unnecessary files
59 rm -rf "${pkgdir}/opt/trae-cn/node_modules"
60 find "${pkgdir}/opt/trae-cn" -name "*.asc" -delete
61 find "${pkgdir}/opt/trae-cn" -name "*.bat" -delete
62 find "${pkgdir}/opt/trae-cn" -type d -name "rush-logs" -exec rm -rf {} +
63
64 # Remove bundled GCC runtime libraries (conflict with system gcc-libs, breaks ckg indexing)
65 rm -fv "${pkgdir}/opt/trae-cn/resources/app/modules/ckg/binary/libstdc++.so.6"
66 rm -fv "${pkgdir}/opt/trae-cn/resources/app/modules/ckg/binary/libgcc_s.so.1"
67}
68

Changes since previous scan

--- PKGBUILD @ 2026-10-27 00:23
+++ PKGBUILD @ 2026-11-01 00:21
@@ -2,7 +2,7 @@
# Contributor: springtwr <springtwr@outlook.com>
pkgname=trae-cn
-pkgver=2.3.91092
+pkgver=2.3.97430
pkgrel=1
pkgdesc="AI-powered IDE by ByteDance (Chinese Domestic Version)"
arch=('x86_64' 'aarch64')
@@ -17,12 +17,12 @@
options=('!strip' '!debug')
install=${pkgname}.install
source=("trae-cn.sh" "trae-cn.desktop")
-source_x86_64=("Trae_CN-linux-x64-${pkgver}-${pkgrel}.tar.gz::https://lf-cdn.trae.com.cn/obj/trae-com-cn/pkg/app/releases/stable/2.3.91092/linux/TRAE_CN-linux-x64.tar.gz")
-source_aarch64=("Trae_CN-linux-arm64-${pkgver}-${pkgrel}.tar.gz::https://lf-cdn.trae.com.cn/obj/trae-com-cn/pkg/app/releases/stable/2.3.91092/linux/TRAE_CN-linux-arm64.tar.gz")
+source_x86_64=("Trae_CN-linux-x64-${pkgver}-${pkgrel}.tar.gz::https://lf-cdn.trae.com.cn/obj/trae-com-cn/pkg/app/releases/stable/2.3.97430/linux/TRAE_CN-linux-x64.tar.gz")
+source_aarch64=("Trae_CN-linux-arm64-${pkgver}-${pkgrel}.tar.gz::https://lf-cdn.trae.com.cn/obj/trae-com-cn/pkg/app/releases/stable/2.3.97430/linux/TRAE_CN-linux-arm64.tar.gz")
b2sums=('f7998b11d3f97f84895231ca1ca9a05bd3a97106f363744fc5f13402c15c419cc56d09e52c9366bfbd75c016b0aada69286bef8879df4925df0ef446212d7c45'
'02d2c5d433e4d56a958bc7766563d977d79070f06c94bfa5829d2eb3c20c50111c3ff5174109bdb6f8f20cafdf4730f053f37c3a7a03e6b0f466446981dcc407')
-b2sums_x86_64=('46736b202a0a5db6b7f9b9ea5f1ad1c66a2117a14e0a5d89930f1cef73b5e1910015c3d4e254feaf28405a657189e4518720f89d68ef12540787161c3988c917')
-b2sums_aarch64=('1536cb2f6132d63f5c778a77baeec90d6b2f8f6326e1d43242ae51babf458ced59262e56895eb0de0bfa2519ef4061a767011f8f3806c93ca9dbd1a6dbdc4312')
+b2sums_x86_64=('2c026dcd9fc7f67ff6c7e7b76c076c0e1561118eb8781f5c1060e1f5c903f0c89b3ff814157daf43ada47e8f4e91e3fe6aec687f66286a749c09b8a73b1d9826')
+b2sums_aarch64=('e7e65c4b6784779202970aee80daee1e4700db783a60e513c1b38f0745371107c05c00a20494a535e996df1ffc42f6df14018cf5df4812ab97806fd1897d96f2')
package() {
install -d "${pkgdir}/opt/trae-cn"

Scan history

Scanned at (UTC)SeverityRules
2026-11-01 00:21:48 Low 2
2026-10-31 00:07:41 Low 2
2026-10-30 00:29:30 Low 2
2026-10-29 15:52:51 Medium 1
2026-10-29 00:13:55 Low 2
2026-10-28 00:06:54 Low 2
2026-10-27 13:48:00 Medium 1
2026-10-27 00:23:28 Low 2
2026-10-26 00:12:40 Low 2
2026-10-25 00:20:48 Low 2
2026-10-24 00:14:55 Low 2
2026-10-23 00:02:19 Low 2
2026-10-22 03:33:54 Medium 1
2026-10-22 00:13:10 Low 2
2026-10-21 00:12:50 Low 2
2026-10-20 00:10:31 Low 2
2026-10-19 00:03:55 Low 2
2026-10-18 00:06:55 Low 2
2026-10-17 00:21:55 Low 2
2026-10-16 00:12:47 Low 2

Report a package

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

0 / 4000
Your suggestion