trae-cn-ide

LOW
maintainer lzsnyy 0 votes scanned 2026-11-03 12:09:28.176153
View on AUR
Why flagged

Downloads a prebuilt binary from lf-cdn.trae.com.cn, which is plausibly ByteDance/Trae's own official CDN for their Chinese domestic IDE product; checksums are provided (b2sums), so the binary is verifiable, making this a normal prebuilt-binary AUR package rather than a swappable-host risk.

Triggered rules

Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Low AI review downgraded a static finding llm_review

The static rules flagged this MEDIUM, but an AI model (anthropic/claude-sonnet-4.6) reviewed the full PKGBUILD and judged it LOW (confidence 70%): Downloads a prebuilt binary from lf-cdn.trae.com.cn, which is plausibly ByteDance/Trae's own official CDN for their Chinese domestic IDE product; checksums are provided (b2sums), so the binary is verifiable, making this a normal prebuilt-binary AUR package rather than a swappable-host risk.

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:19 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.98528/linux/TRAE_CN-linux-x64.tar.gz")

PKGBUILD

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

Scan history

Scanned at (UTC)SeverityRules
2026-11-03 12:09:28 Low 3
2026-11-03 12:04:35 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