trae-cn
maintainer logan_reed
· 3 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package downloads a prebuilt binary from a domain owned by the project's vendor (ByteDance), which is not on the whitelist but is plausibly official; the binary is checksum-verified and the package does not execute arbitrary remote code or exfiltrate data.
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 a domain owned by the project's vendor (ByteDance), which is not on the whitelist but is plausibly official; the binary is checksum-verified and the package does not execute arbitrary remote code or exfiltrate data.
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.62837/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
4
pkgname=trae-cn
5
pkgver=2.3.62837
6
pkgrel=1
7
pkgdesc="AI-powered IDE by ByteDance (Chinese Domestic Version)"
8
arch=('x86_64' 'aarch64')
9
url="https://www.trae.cn/"
10
license=('LicenseRef-Trae')
11
conflicts=('trae-cn-bin')
12
depends=('nss' 'alsa-lib' 'gtk3' 'at-spi2-core' 'libsecret' 'libxkbfile' 'zeromq')
13
optdepends=('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')
17
options=('!strip' '!debug')
18
install=${pkgname}.install
19
source=("trae-cn.sh" "trae-cn.desktop")
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.62837/linux/Trae_CN-linux-x64.tar.gz")
21
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.62837/linux/Trae_CN-linux-arm64.tar.gz")
22
b2sums=('f7998b11d3f97f84895231ca1ca9a05bd3a97106f363744fc5f13402c15c419cc56d09e52c9366bfbd75c016b0aada69286bef8879df4925df0ef446212d7c45'
23
'02d2c5d433e4d56a958bc7766563d977d79070f06c94bfa5829d2eb3c20c50111c3ff5174109bdb6f8f20cafdf4730f053f37c3a7a03e6b0f466446981dcc407')
24
b2sums_x86_64=('b57442ba6b6e0d5894c44e200e9de456acf4e81e89cf1bfe8ad3747361a8350738b0d678de4edc749dee4fb1c6904dcd2fe99b11a11140b000a32f3e9469ac95')
25
b2sums_aarch64=('d3e1ea75490febf55011a6f735ca109fc64aec58a25b948c4bfef9ed3e7d10d7c58da821e1354e24a2f721ced4b5be4debc5056b0fd937b3ec6a352896d8125a')
26
27
package() {
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-07-31 00:14+++ PKGBUILD @ 2026-08-03 00:08@@ -2,7 +2,7 @@ # Contributor: springtwr <springtwr@outlook.com> pkgname=trae-cn-pkgver=2.3.59356+pkgver=2.3.62837 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.59356/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.59356/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.62837/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.62837/linux/Trae_CN-linux-arm64.tar.gz") b2sums=('f7998b11d3f97f84895231ca1ca9a05bd3a97106f363744fc5f13402c15c419cc56d09e52c9366bfbd75c016b0aada69286bef8879df4925df0ef446212d7c45' '02d2c5d433e4d56a958bc7766563d977d79070f06c94bfa5829d2eb3c20c50111c3ff5174109bdb6f8f20cafdf4730f053f37c3a7a03e6b0f466446981dcc407')-b2sums_x86_64=('0081fd77e7cd02c9c011fd81ade1614a209e5c26b9590a28fe017a9705e9cf281cb36a17d54c5add7886fb03ba0342e4c2c9b2a31a16684019f9c2254f64d461')-b2sums_aarch64=('cbdaa9a21aaac63324c5a4114eea3b3b0713ad79d17e13c19b996bf7e670e270118810496c7370923f8d0594c15aed0832343b334db64f1286276e5ce70270d1')+b2sums_x86_64=('b57442ba6b6e0d5894c44e200e9de456acf4e81e89cf1bfe8ad3747361a8350738b0d678de4edc749dee4fb1c6904dcd2fe99b11a11140b000a32f3e9469ac95')+b2sums_aarch64=('d3e1ea75490febf55011a6f735ca109fc64aec58a25b948c4bfef9ed3e7d10d7c58da821e1354e24a2f721ced4b5be4debc5056b0fd937b3ec6a352896d8125a') package() { install -d "${pkgdir}/opt/trae-cn"Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | LOW | 2 |
| 2026-08-02 00:16:08 | LOW | 2 |
| 2026-08-01 00:11:18 | LOW | 2 |
| 2026-07-31 11:17:50 | MEDIUM | 1 |
| 2026-07-31 00:14:10 | LOW | 2 |
| 2026-07-30 00:17:23 | LOW | 2 |
| 2026-07-29 00:25:53 | LOW | 2 |
| 2026-07-28 00:07:28 | LOW | 2 |
| 2026-07-27 11:35:00 | MEDIUM | 1 |
| 2026-07-27 00:24:32 | LOW | 2 |
| 2026-07-26 00:07:32 | LOW | 2 |
| 2026-07-25 00:13:44 | LOW | 2 |
| 2026-07-24 00:02:28 | LOW | 2 |
| 2026-07-23 00:14:47 | LOW | 2 |
| 2026-07-22 21:22:00 | MEDIUM | 1 |
| 2026-07-22 00:29:32 | LOW | 2 |
| 2026-07-21 00:24:15 | LOW | 2 |
| 2026-07-20 11:14:00 | MEDIUM | 1 |
| 2026-07-20 00:19:49 | LOW | 2 |
| 2026-07-19 00:17:08 | LOW | 2 |