letta-code-desktop-bin
The package downloads and executes an AppImage from a third-party hosting service (todesktop.com) without a verifiable upstream source, creating a supply-chain risk if the host is compromised.
Triggered rules
external_download_not_in_source
curl/wget fetches a URL on a non-allowlisted host that is not part of source=(), so it is not checksum-verified by makepkg.
-
PKGBUILD:27
curl -Lo "$_filename" "https://download.todesktop.com/${_todesktop_id}/${_filename}"
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:13
source=("latest-linux.yml::https://download.todesktop.com/${_todesktop_id}/latest-linux.yml"
llm_review
An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is MEDIUM (confidence 90%): The package downloads and executes an AppImage from a third-party hosting service (todesktop.com) without a verifiable upstream source, creating a supply-chain risk if the host is compromised.
PKGBUILD
2 offending line(s) highlighted# Maintainer: Kainoa Kanter <kainoa@t1c.dev>
pkgname=letta-code-desktop-bin
pkgver=0.34.10
pkgrel=1
pkgdesc="Letta lets you build agents that learn"
arch=('x86_64')
url="https://www.letta.com"
license=('custom')
depends=('electron')
makedepends=('npm')
options=('!strip')
_todesktop_id=260305dtu2nh5
source=("latest-linux.yml::https://download.todesktop.com/${_todesktop_id}/latest-linux.yml"
'patch-safestorage.sh')
sha256sums=('bfa259d08e586cb75259348c38711fdf85d0de75340a23ab2bbf566c744dcec1'
'e1327529ac049a94d70c39ef5c1a2de21c5bb91e031b293cff73588ead7a8753')
# pkgver() {
# grep '^version:' latest-linux.yml | awk '{print $2}'
# }
prepare() {
local _filename=$(grep '^path:' latest-linux.yml | awk '{print $2}')
local _sha512=$(grep '^sha512:' latest-linux.yml | tail -1 | awk '{print $2}')
# Download the latest AppImage
curl -Lo "$_filename" "https://download.todesktop.com/${_todesktop_id}/${_filename}"
# Verify integrity using the sha512 from latest-linux.yml
local _actual=$(openssl dgst -sha512 -binary "$_filename" | base64 -w0)
[[ "$_sha512" == "$_actual" ]] || { echo "SHA512 mismatch!"; return 1; }
chmod +x "$_filename"
./"$_filename" --appimage-extract
}
build() {
# Fix permissions; AppImage directories are 700 by default
chmod -R a-x+rX squashfs-root/
# Patch safeStorage to fall back to plaintext on unsupported desktops
bash "${srcdir}/patch-safestorage.sh" squashfs-root/resources/app.asar
}
package() {
install -dm755 "${pkgdir}/opt/${pkgname}"
cp -dpr --no-preserve=ownership squashfs-root/resources "${pkgdir}/opt/${pkgname}/"
# Wrapper script
install -Dm755 /dev/stdin "${pkgdir}/usr/bin/letta-code" <<EOF
#!/bin/sh
exec electron /opt/${pkgname}/resources/app.asar --no-sandbox "\$@"
EOF
# Desktop entry
install -Dm644 squashfs-root/letta-code.desktop \
"${pkgdir}/usr/share/applications/letta-code.desktop"
sed -i "s|Exec=AppRun.*|Exec=/usr/bin/letta-code %U|g" \
"${pkgdir}/usr/share/applications/letta-code.desktop"
# Icon
install -Dm644 squashfs-root/letta-code.png \
"${pkgdir}/usr/share/pixmaps/letta-code.png"
}
Changes since previous scan
--- PKGBUILD @ 2026-10-30 00:29+++ PKGBUILD @ 2026-11-01 00:21@@ -1,6 +1,6 @@ # Maintainer: Kainoa Kanter <kainoa@t1c.dev> pkgname=letta-code-desktop-bin-pkgver=0.33.6+pkgver=0.34.10 pkgrel=1 pkgdesc="Letta lets you build agents that learn" arch=('x86_64')Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-01 00:21:48 | Medium | 3 |
| 2026-10-31 00:07:41 | Medium | 3 |
| 2026-10-30 23:57:35 | Medium | 3 |
| 2026-10-30 00:29:30 | Medium | 3 |
| 2026-10-29 00:13:55 | Medium | 3 |
| 2026-10-28 00:06:54 | Medium | 3 |
| 2026-10-27 00:23:28 | Medium | 3 |
| 2026-10-26 00:12:40 | Medium | 3 |
| 2026-10-25 00:20:48 | Medium | 3 |
| 2026-10-24 00:14:55 | Medium | 3 |
| 2026-10-23 00:02:19 | Medium | 3 |
| 2026-10-22 00:13:10 | Medium | 3 |
| 2026-10-21 00:12:50 | Medium | 3 |
| 2026-10-20 00:10:31 | Medium | 3 |
| 2026-10-19 00:03:55 | Medium | 3 |
| 2026-10-18 00:06:55 | Medium | 3 |
| 2026-10-17 00:21:55 | Medium | 3 |
| 2026-10-16 00:12:47 | Medium | 3 |
| 2026-10-15 00:28:05 | Medium | 3 |
| 2026-10-14 00:06:47 | Medium | 3 |