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 95%): 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.32.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=('b29ae5ae9e325a88ab11083178cbbd0bdd2685d2aad660a4278ef0fd6c9fe6c5'
'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-09-15 00:25+++ PKGBUILD @ 2026-09-17 00:27@@ -1,6 +1,6 @@ # Maintainer: Kainoa Kanter <kainoa@t1c.dev> pkgname=letta-code-desktop-bin-pkgver=0.32.8+pkgver=0.32.10 pkgrel=1 pkgdesc="Letta lets you build agents that learn" arch=('x86_64')@@ -12,7 +12,7 @@ _todesktop_id=260305dtu2nh5 source=("latest-linux.yml::https://download.todesktop.com/${_todesktop_id}/latest-linux.yml" 'patch-safestorage.sh')-sha256sums=('e879b254807176eff271a3459a8f33ac59b128e73fe3426b48a76692921f9fc5'+sha256sums=('b29ae5ae9e325a88ab11083178cbbd0bdd2685d2aad660a4278ef0fd6c9fe6c5' 'e1327529ac049a94d70c39ef5c1a2de21c5bb91e031b293cff73588ead7a8753') # pkgver() {Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-17 00:27:14 | Medium | 3 |
| 2026-09-16 00:03:17 | Medium | 3 |
| 2026-09-15 23:20:44 | Medium | 3 |
| 2026-09-15 00:25:31 | Medium | 3 |
| 2026-09-14 23:18:17 | Medium | 3 |
| 2026-09-14 00:27:57 | Medium | 3 |
| 2026-09-13 00:19:54 | Medium | 3 |
| 2026-09-12 00:25:17 | Medium | 3 |
| 2026-09-11 00:19:22 | Medium | 3 |
| 2026-09-10 00:22:44 | Medium | 3 |
| 2026-09-09 00:04:09 | Medium | 3 |
| 2026-09-08 00:18:08 | Medium | 3 |
| 2026-09-07 00:30:15 | Medium | 3 |
| 2026-09-06 00:17:06 | Medium | 3 |
| 2026-09-05 00:16:27 | Medium | 3 |
| 2026-09-04 00:03:13 | Medium | 3 |
| 2026-09-03 23:55:21 | Medium | 3 |
| 2026-09-03 00:15:47 | Medium | 3 |
| 2026-09-02 00:02:31 | Medium | 3 |
| 2026-09-01 01:46:26 | Medium | 3 |