trae
maintainer logan_reed
· 2 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package downloads a prebuilt IDE binary from a domain plausibly owned by the project (trae.com.cn), which is a normal distribution method for official releases; the binary is not executed in a dangerous way, and the rest of the PKGBUILD performs standard installation tasks.
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 IDE binary from a domain plausibly owned by the project (trae.com.cn), which is a normal distribution method for official releases; the binary is not executed in a dangerous way, and the rest of the PKGBUILD performs standard installation tasks.
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-linux-x64-${pkgver}-${pkgrel}.tar.gz::https://lf-cdn.trae.com.cn/obj/trae-com-cn/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
5
pkgver=2.3.61406
6
pkgrel=1
7
pkgdesc="AI-powered IDE by ByteDance"
8
arch=('x86_64' 'aarch64')
9
url="https://www.trae.cn/"
10
license=('LicenseRef-Trae')
11
conflicts=('trae-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.sh" "trae.desktop")
20
source_x86_64=("Trae-linux-x64-${pkgver}-${pkgrel}.tar.gz::https://lf-cdn.trae.com.cn/obj/trae-com-cn/pkg/app/releases/stable/2.3.61406/linux/Trae-linux-x64.tar.gz")
21
source_aarch64=("Trae-linux-arm64-${pkgver}-${pkgrel}.tar.gz::https://lf-cdn.trae.com.cn/obj/trae-com-cn/pkg/app/releases/stable/2.3.61406/linux/Trae-linux-arm64.tar.gz")
22
b2sums=('2331b0d37fff8478ea37cbf9e5c2e70a59631aae6efb44741fc6c1a8dce65557098e9dffa8c30148ef27432802bec3d1eda279021421e5d3f979e80900662726'
23
'656c5d6bea6ef15185e0d8ee0181276f6de3bfae8e66a2c65772a5f1354727952dd020dca057246139a2bab8f4805057fa2db367a6ba0a1b90d9ffd7fcab8412')
24
b2sums_x86_64=('a0507fb189820a341e56550eaee5692a94aa354932b8e702e27278e5f5866bd62e52def378ffdd11ec55d20de3cc9c87dba6f125723c741c9662917c0f7c3cfe')
25
b2sums_aarch64=('12b2ba04ba2c354194a5907870e33714c311503b4fc28fd4d65a7cf63064d4929cf86a135abd5a213f68fddd31263f70e83bbed6f6b80e99629cdf3ee0d5ecb8')
26
27
package() {
28
install -d "${pkgdir}/opt/trae"
29
30
for f in "${srcdir}"/*; do
31
case "${f##*/}" in
32
trae.sh|trae.desktop|*.tar.*) continue ;;
33
esac
34
cp -a "$f" "${pkgdir}/opt/trae/"
35
done
36
37
# SUID sandbox
38
chmod 4755 "${pkgdir}/opt/trae/chrome-sandbox"
39
40
# Launcher
41
install -Dm755 "${srcdir}/trae.sh" "${pkgdir}/usr/bin/trae"
42
43
# Desktop entry
44
install -Dm644 "${srcdir}/trae.desktop" "${pkgdir}/usr/share/applications/trae.desktop"
45
46
# Icon
47
install -Dm644 "${pkgdir}/opt/trae/resources/app/resources/linux/code.png" "${pkgdir}/usr/share/icons/hicolor/512x512/apps/trae.png"
48
49
# License
50
install -Dm644 "${pkgdir}/opt/trae/resources/app/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
51
install -Dm644 "${pkgdir}/opt/trae/resources/app/ThirdPartyNotices.txt" "${pkgdir}/usr/share/licenses/${pkgname}/ThirdPartyNotices"
52
install -Dm644 "${pkgdir}/opt/trae/LICENSES.chromium.html" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSES.chromium.html"
53
54
# Shell completions
55
install -Dm644 "${pkgdir}/opt/trae/resources/completions/bash/trae" "${pkgdir}/usr/share/bash-completion/completions/trae"
56
install -Dm644 "${pkgdir}/opt/trae/resources/completions/zsh/_trae" "${pkgdir}/usr/share/zsh/site-functions/_trae"
57
58
# Remove unnecessary files
59
rm -rf "${pkgdir}/opt/trae/node_modules"
60
find "${pkgdir}/opt/trae" -name "*.asc" -delete
61
find "${pkgdir}/opt/trae" -name "*.bat" -delete
62
find "${pkgdir}/opt/trae" -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/resources/app/modules/ckg/binary/libstdc++.so.6"
66
rm -fv "${pkgdir}/opt/trae/resources/app/modules/ckg/binary/libgcc_s.so.1"
67
}
68
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-pkgver=2.3.56917+pkgver=2.3.61406 pkgrel=1 pkgdesc="AI-powered IDE by ByteDance" arch=('x86_64' 'aarch64')@@ -17,12 +17,12 @@ options=('!strip' '!debug') install=${pkgname}.install source=("trae.sh" "trae.desktop")-source_x86_64=("Trae-linux-x64-${pkgver}-${pkgrel}.tar.gz::https://lf-cdn.trae.com.cn/obj/trae-com-cn/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.com.cn/obj/trae-com-cn/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.com.cn/obj/trae-com-cn/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.com.cn/obj/trae-com-cn/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 |