focusatwill-appimage

maintainer orphaned · 0 votes · scanned 2026-08-03 00:08:14.047287
MEDIUM
View on AUR ↗
Why flagged The PKGBUILD downloads a prebuilt AppImage binary from an S3 bucket (faw-desktop.s3.amazonaws.com) that is the vendor's own distribution channel for the Focus@Will desktop app. The AppImage is extracted and executed during the prepare() phase (--appimage-extract) and then installed as a setuid-755 executable. While S3 is not an 'official' distro mirror, this appears to be the upstream vendor's own S3 bucket used for distribution, which is a common pattern for Electron/AppImage apps. A sha512sum is provided, which mitigates substitution attacks. However, the source is still a prebuilt binary from a non-auditable third-party host (not a VCS tag or official package repository), and the binary is executed during build. This is a genuine medium-severity supply-chain concern: if the S3 bucket were compromised or the object replaced (the checksum would catch this, but only if the PKGBUILD is kept up to date), malicious code could be delivered. The sha512 checksum provides meaningful but not complete protection. This is a legitimate medium — not a false positive — but also not a high-severity active attack.

Triggered rules

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:15 https://faw-desktop.s3.amazonaws.com/${_filename}
MEDIUM AI review llm_review

An AI model (anthropic/claude-4.6-sonnet-20260217) reviewed this and agrees it is MEDIUM (confidence 82%): The PKGBUILD downloads a prebuilt AppImage binary from an S3 bucket (faw-desktop.s3.amazonaws.com) that is the vendor's own distribution channel for the Focus@Will desktop app. The AppImage is extracted and executed during the prepare() phase (--appimage-extract) and then installed as a setuid-755 executable. While S3 is not an 'official' distro mirror, this appears to be the upstream vendor's own S3 bucket used for distribution, which is a common pattern for Electron/AppImage apps. A sha512sum is provided, which mitigates substitution attacks. However, the source is still a prebuilt binary from a non-auditable third-party host (not a VCS tag or official package repository), and the binary is executed during build. This is a genuine medium-severity supply-chain concern: if the S3 bucket were compromised or the object replaced (the checksum would catch this, but only if the PKGBUILD is kept up to date), malicious code could be delivered. The sha512 checksum provides meaningful but not complete protection. This is a legitimate medium — not a false positive — but also not a high-severity active attack.

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Trustin Lee <t@motd.kr>
2
3pkgname=focusatwill-appimage
4pkgver=2.0.0
5pkgrel=1
6pkgdesc="Focus@Will combines neuroscience and music to boost productivity."
7provides=('focusatwill')
8conflicts=('focusatwill')
9arch=('x86_64')
10url="https://focusatwill.com/"
11options=(!strip)
12_desktop_name=focusatwill.desktop
13_filename=focusatwill-${pkgver}.AppImage
14source=(
15 https://faw-desktop.s3.amazonaws.com/${_filename}
16)
17sha512sums=('af50f014738ae2128fd219ed5783da5a33bc82f272c60de14d93f70f1e55fe0b54ea133e223610e8456153c585357a0acb6202463f54b7d793e8b6b771a18d6d')
18
19
20prepare() {
21 cd "$srcdir"
22 rm -rf squashfs-root
23 chmod +x $_filename
24 ./$_filename --appimage-extract
25 sed -i -e "s|Exec=.\+|Exec=env APPIMAGELAUNCHER_DISABLE=1 DESKTOPINTEGRATION=0 /usr/bin/focusatwill.AppImage --disable-seccomp-filter-sandbox|" squashfs-root/${_desktop_name}
26}
27
28package() {
29 echo "Starting install"
30 install -Dm755 $_filename "$pkgdir"/usr/bin/focusatwill.AppImage
31 echo "Installing desktop launch file to $pkgdir/usr/bin/focusatwill.AppImage"
32 install -Dm755 squashfs-root/${_desktop_name} "$pkgdir"/usr/share/applications/${_desktop_name}
33 echo "Installing icons"
34 for res in "16x16" "32x32" "48x48" "64x64" "128x128" "256x256" "512x512"; do
35 install -Dm644 squashfs-root/usr/share/icons/hicolor/$res/apps/focusatwill.png $pkgdir/usr/share/icons/hicolor/$res/apps/focusatwill.png
36 done
37}
38

Scan history

Scanned at (UTC)SeverityRules
2026-08-03 00:08:14 MEDIUM 2
2026-08-02 00:16:08 MEDIUM 2
2026-08-01 00:11:18 MEDIUM 2
2026-07-31 00:14:10 MEDIUM 2
2026-07-30 00:17:23 MEDIUM 2
2026-07-29 00:25:53 MEDIUM 2
2026-07-28 00:07:28 MEDIUM 2
2026-07-27 00:24:32 MEDIUM 2
2026-07-26 00:07:32 MEDIUM 2
2026-07-25 00:13:44 MEDIUM 2
2026-07-24 00:02:28 MEDIUM 2
2026-07-23 00:14:47 MEDIUM 2
2026-07-22 00:29:32 MEDIUM 2
2026-07-21 00:24:15 MEDIUM 2
2026-07-20 00:19:49 MEDIUM 2
2026-07-19 00:17:08 MEDIUM 2
2026-07-18 00:14:48 MEDIUM 2
2026-07-17 00:06:16 MEDIUM 2
2026-07-16 00:05:41 MEDIUM 2
2026-07-15 00:09:25 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