letta-code-desktop-bin

MEDIUM
maintainer That1Calculator 0 votes scanned 2026-09-17 00:27:14.276658
View on AUR
Why flagged

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

Medium External download from an untrusted host, not in source=() 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}"
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:13 source=("latest-linux.yml::https://download.todesktop.com/${_todesktop_id}/latest-linux.yml"
Medium AI review 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
1# Maintainer: Kainoa Kanter <kainoa@t1c.dev>
2pkgname=letta-code-desktop-bin
3pkgver=0.32.10
4pkgrel=1
5pkgdesc="Letta lets you build agents that learn"
6arch=('x86_64')
7url="https://www.letta.com"
8license=('custom')
9depends=('electron')
10makedepends=('npm')
11options=('!strip')
12_todesktop_id=260305dtu2nh5
13source=("latest-linux.yml::https://download.todesktop.com/${_todesktop_id}/latest-linux.yml"
14 'patch-safestorage.sh')
15sha256sums=('b29ae5ae9e325a88ab11083178cbbd0bdd2685d2aad660a4278ef0fd6c9fe6c5'
16 'e1327529ac049a94d70c39ef5c1a2de21c5bb91e031b293cff73588ead7a8753')
17
18# pkgver() {
19# grep '^version:' latest-linux.yml | awk '{print $2}'
20# }
21
22prepare() {
23 local _filename=$(grep '^path:' latest-linux.yml | awk '{print $2}')
24 local _sha512=$(grep '^sha512:' latest-linux.yml | tail -1 | awk '{print $2}')
25
26 # Download the latest AppImage
27 curl -Lo "$_filename" "https://download.todesktop.com/${_todesktop_id}/${_filename}"
28
29 # Verify integrity using the sha512 from latest-linux.yml
30 local _actual=$(openssl dgst -sha512 -binary "$_filename" | base64 -w0)
31 [[ "$_sha512" == "$_actual" ]] || { echo "SHA512 mismatch!"; return 1; }
32
33 chmod +x "$_filename"
34 ./"$_filename" --appimage-extract
35}
36
37build() {
38 # Fix permissions; AppImage directories are 700 by default
39 chmod -R a-x+rX squashfs-root/
40
41 # Patch safeStorage to fall back to plaintext on unsupported desktops
42 bash "${srcdir}/patch-safestorage.sh" squashfs-root/resources/app.asar
43}
44
45package() {
46 install -dm755 "${pkgdir}/opt/${pkgname}"
47 cp -dpr --no-preserve=ownership squashfs-root/resources "${pkgdir}/opt/${pkgname}/"
48
49 # Wrapper script
50 install -Dm755 /dev/stdin "${pkgdir}/usr/bin/letta-code" <<EOF
51#!/bin/sh
52exec electron /opt/${pkgname}/resources/app.asar --no-sandbox "\$@"
53EOF
54
55 # Desktop entry
56 install -Dm644 squashfs-root/letta-code.desktop \
57 "${pkgdir}/usr/share/applications/letta-code.desktop"
58 sed -i "s|Exec=AppRun.*|Exec=/usr/bin/letta-code %U|g" \
59 "${pkgdir}/usr/share/applications/letta-code.desktop"
60
61 # Icon
62 install -Dm644 squashfs-root/letta-code.png \
63 "${pkgdir}/usr/share/pixmaps/letta-code.png"
64}
65

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)SeverityRules
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

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion