letta-code-desktop-bin

MEDIUM
maintainer That1Calculator 0 votes scanned 2026-11-01 00:21:48.120785
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 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
1# Maintainer: Kainoa Kanter <kainoa@t1c.dev>
2pkgname=letta-code-desktop-bin
3pkgver=0.34.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=('bfa259d08e586cb75259348c38711fdf85d0de75340a23ab2bbf566c744dcec1'
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-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)SeverityRules
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

Report a package

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

0 / 4000
Your suggestion