trae-sg
maintainer logan_reed
· 0 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package downloads a prebuilt binary from a CDN domain (lf-cdn.trae.ai) that is plausibly owned by the project (trae.ai), and while the host is not on a standard whitelist, the binary is checksum-verified and the package installs only expected application files without executing remote code or exfiltrating 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 CDN domain (lf-cdn.trae.ai) that is plausibly owned by the project (trae.ai), and while the host is not on a standard whitelist, the binary is checksum-verified and the package installs only expected application files without executing remote code or exfiltrating 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:21
source_x86_64=("Trae-linux-x64-${pkgver}-${pkgrel}.tar.gz::https://lf-cdn.trae.ai/obj/trae-ai-sg/pkg/app/releases/stable/2.3.61406/linux/Trae-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-sg
5
pkgver=2.3.61406
6
pkgrel=1
7
pkgdesc="AI-powered IDE by ByteDance (Singapore CDN)"
8
arch=('x86_64' 'aarch64')
9
url="https://www.trae.cn/"
10
license=('LicenseRef-Trae')
11
provides=("trae=$pkgver")
12
conflicts=('trae' 'trae-bin')
13
depends=('nss' 'alsa-lib' 'gtk3' 'at-spi2-core' 'libsecret' 'libxkbfile' 'zeromq')
14
optdepends=('libappindicator-gtk3: System tray support'
15
'xdg-utils: Open URLs and files with default applications'
16
'python: Python extension support'
17
'nodejs: Node.js extension scripts')
18
options=('!strip' '!debug')
19
install=trae.install
20
source=("trae.sh" "trae.desktop")
21
source_x86_64=("Trae-linux-x64-${pkgver}-${pkgrel}.tar.gz::https://lf-cdn.trae.ai/obj/trae-ai-sg/pkg/app/releases/stable/2.3.61406/linux/Trae-linux-x64.tar.gz")
22
source_aarch64=("Trae-linux-arm64-${pkgver}-${pkgrel}.tar.gz::https://lf-cdn.trae.ai/obj/trae-ai-sg/pkg/app/releases/stable/2.3.61406/linux/Trae-linux-arm64.tar.gz")
23
b2sums=('2331b0d37fff8478ea37cbf9e5c2e70a59631aae6efb44741fc6c1a8dce65557098e9dffa8c30148ef27432802bec3d1eda279021421e5d3f979e80900662726'
24
'656c5d6bea6ef15185e0d8ee0181276f6de3bfae8e66a2c65772a5f1354727952dd020dca057246139a2bab8f4805057fa2db367a6ba0a1b90d9ffd7fcab8412')
25
b2sums_x86_64=('a0507fb189820a341e56550eaee5692a94aa354932b8e702e27278e5f5866bd62e52def378ffdd11ec55d20de3cc9c87dba6f125723c741c9662917c0f7c3cfe')
26
b2sums_aarch64=('12b2ba04ba2c354194a5907870e33714c311503b4fc28fd4d65a7cf63064d4929cf86a135abd5a213f68fddd31263f70e83bbed6f6b80e99629cdf3ee0d5ecb8')
27
28
package() {
29
install -d "${pkgdir}/opt/trae"
30
31
for f in "${srcdir}"/*; do
32
case "${f##*/}" in
33
trae.sh|trae.desktop|*.tar.*) continue ;;
34
esac
35
cp -a "$f" "${pkgdir}/opt/trae/"
36
done
37
38
# SUID sandbox
39
chmod 4755 "${pkgdir}/opt/trae/chrome-sandbox"
40
41
# Launcher
42
install -Dm755 "${srcdir}/trae.sh" "${pkgdir}/usr/bin/trae"
43
44
# Desktop entry
45
install -Dm644 "${srcdir}/trae.desktop" "${pkgdir}/usr/share/applications/trae.desktop"
46
47
# Icon
48
install -Dm644 "${pkgdir}/opt/trae/resources/app/resources/linux/code.png" "${pkgdir}/usr/share/icons/hicolor/512x512/apps/trae.png"
49
50
# License
51
install -Dm644 "${pkgdir}/opt/trae/resources/app/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
52
install -Dm644 "${pkgdir}/opt/trae/resources/app/ThirdPartyNotices.txt" "${pkgdir}/usr/share/licenses/${pkgname}/ThirdPartyNotices"
53
install -Dm644 "${pkgdir}/opt/trae/LICENSES.chromium.html" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSES.chromium.html"
54
55
# Shell completions
56
install -Dm644 "${pkgdir}/opt/trae/resources/completions/bash/trae" "${pkgdir}/usr/share/bash-completion/completions/trae"
57
install -Dm644 "${pkgdir}/opt/trae/resources/completions/zsh/_trae" "${pkgdir}/usr/share/zsh/site-functions/_trae"
58
59
# Remove unnecessary files
60
rm -rf "${pkgdir}/opt/trae/node_modules"
61
find "${pkgdir}/opt/trae" -name "*.asc" -delete
62
find "${pkgdir}/opt/trae" -name "*.bat" -delete
63
find "${pkgdir}/opt/trae" -type d -name "rush-logs" -exec rm -rf {} +
64
65
# Remove bundled GCC runtime libraries (conflict with system gcc-libs, breaks ckg indexing)
66
rm -fv "${pkgdir}/opt/trae/resources/app/modules/ckg/binary/libstdc++.so.6"
67
rm -fv "${pkgdir}/opt/trae/resources/app/modules/ckg/binary/libgcc_s.so.1"
68
}
69
Changes since previous scan
--- PKGBUILD @ 2026-07-30 00:17+++ PKGBUILD @ 2026-08-03 00:08@@ -2,7 +2,7 @@ # Contributor: springtwr <springtwr@outlook.com> pkgname=trae-sg-pkgver=2.3.56917+pkgver=2.3.61406 pkgrel=1 pkgdesc="AI-powered IDE by ByteDance (Singapore CDN)" arch=('x86_64' 'aarch64')@@ -18,12 +18,12 @@ options=('!strip' '!debug') install=trae.install source=("trae.sh" "trae.desktop")-source_x86_64=("Trae-linux-x64-${pkgver}-${pkgrel}.tar.gz::https://lf-cdn.trae.ai/obj/trae-ai-sg/pkg/app/releases/stable/2.3.56917/linux/Trae-linux-x64.tar.gz")-source_aarch64=("Trae-linux-arm64-${pkgver}-${pkgrel}.tar.gz::https://lf-cdn.trae.ai/obj/trae-ai-sg/pkg/app/releases/stable/2.3.56917/linux/Trae-linux-arm64.tar.gz")+source_x86_64=("Trae-linux-x64-${pkgver}-${pkgrel}.tar.gz::https://lf-cdn.trae.ai/obj/trae-ai-sg/pkg/app/releases/stable/2.3.61406/linux/Trae-linux-x64.tar.gz")+source_aarch64=("Trae-linux-arm64-${pkgver}-${pkgrel}.tar.gz::https://lf-cdn.trae.ai/obj/trae-ai-sg/pkg/app/releases/stable/2.3.61406/linux/Trae-linux-arm64.tar.gz") b2sums=('2331b0d37fff8478ea37cbf9e5c2e70a59631aae6efb44741fc6c1a8dce65557098e9dffa8c30148ef27432802bec3d1eda279021421e5d3f979e80900662726' '656c5d6bea6ef15185e0d8ee0181276f6de3bfae8e66a2c65772a5f1354727952dd020dca057246139a2bab8f4805057fa2db367a6ba0a1b90d9ffd7fcab8412')-b2sums_x86_64=('5357b7cd2d5510ebea429d069405b662884c3eba1415de499119d196a3ad2d8f2f257b88de29d813c2feba28057dcba6fa07a810080cef21ebdb037d2325f49c')-b2sums_aarch64=('b92f480afb712f00436bd35f161c673c5621e87ffa1f523e73d39530c4667eecf4aa8fd2b7a3b45fb7edd5beeaf304716d8870b731526d9888af360ec7227c2c')+b2sums_x86_64=('a0507fb189820a341e56550eaee5692a94aa354932b8e702e27278e5f5866bd62e52def378ffdd11ec55d20de3cc9c87dba6f125723c741c9662917c0f7c3cfe')+b2sums_aarch64=('12b2ba04ba2c354194a5907870e33714c311503b4fc28fd4d65a7cf63064d4929cf86a135abd5a213f68fddd31263f70e83bbed6f6b80e99629cdf3ee0d5ecb8') package() { install -d "${pkgdir}/opt/trae"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 00:14:10 | LOW | 2 |
| 2026-07-30 21:16:48 | MEDIUM | 1 |
| 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 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 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 |
| 2026-07-18 00:14:48 | LOW | 2 |
| 2026-07-17 09:54:28 | MEDIUM | 1 |