pencil-dev-appimage
The package downloads a prebuilt AppImage from a non-whitelisted host (pencil.dev), which is an unverifiable executable; if the domain were compromised, an attacker could silently replace the binary, posing a supply-chain risk.
Triggered rules
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
source=("Pencil-linux-x86_64-${pkgver}.AppImage::https://www.pencil.dev/download/Pencil-linux-x86_64.AppImage"
llm_review
An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is MEDIUM (confidence 90%): The package downloads a prebuilt AppImage from a non-whitelisted host (pencil.dev), which is an unverifiable executable; if the domain were compromised, an attacker could silently replace the binary, posing a supply-chain risk.
PKGBUILD
1 offending line(s) highlighted# Maintainer: Crosery <luoxi2024@gmail.com>
pkgname=pencil-dev-appimage
pkgver=1.2.0
pkgrel=1
pkgdesc="Design on canvas. Land in code. Increases engineering speed by bringing designing directly into your IDE. (AppImage)"
arch=('x86_64')
url="https://pencil.dev"
license=('custom')
provides=('pencil-dev')
conflicts=('pencil-dev' 'pencil-dev-bin')
depends=('fuse2' 'zlib' 'hicolor-icon-theme')
install="${pkgname}.install"
options=('!strip' '!debug')
source=("Pencil-linux-x86_64-${pkgver}.AppImage::https://www.pencil.dev/download/Pencil-linux-x86_64.AppImage"
"LICENSE"
"${pkgname}.install")
sha256sums=('f1220a87d52da551fa729e2c53014388a3774ed4634428559aa0eb10dcc30510'
'SKIP'
'SKIP')
noextract=("Pencil-linux-x86_64-${pkgver}.AppImage")
prepare() {
chmod +x "${srcdir}/Pencil-linux-x86_64-${pkgver}.AppImage"
"${srcdir}/Pencil-linux-x86_64-${pkgver}.AppImage" --appimage-extract >/dev/null 2>&1
}
package() {
# Install AppImage
install -Dm755 "${srcdir}/Pencil-linux-x86_64-${pkgver}.AppImage" \
"${pkgdir}/opt/${pkgname}/pencil-dev.AppImage"
# Create launcher script
install -d "${pkgdir}/usr/bin"
cat > "${pkgdir}/usr/bin/pencil-dev" << 'LAUNCHER'
#!/bin/bash
exec /opt/pencil-dev-appimage/pencil-dev.AppImage --no-sandbox "$@"
LAUNCHER
chmod 755 "${pkgdir}/usr/bin/pencil-dev"
# Install desktop entry from extracted AppImage
if [ -f "${srcdir}/squashfs-root/pencil.desktop" ]; then
install -Dm644 "${srcdir}/squashfs-root/pencil.desktop" \
"${pkgdir}/usr/share/applications/pencil-dev.desktop"
# Fix desktop entry
sed -i 's|^Exec=.*|Exec=pencil-dev %U|' \
"${pkgdir}/usr/share/applications/pencil-dev.desktop"
sed -i 's|^Name=.*|Name=Pencil|' \
"${pkgdir}/usr/share/applications/pencil-dev.desktop"
else
# Fallback desktop entry
install -d "${pkgdir}/usr/share/applications"
cat > "${pkgdir}/usr/share/applications/pencil-dev.desktop" << EOF
[Desktop Entry]
Name=Pencil
Comment=Design on canvas. Land in code.
Exec=pencil-dev %U
Icon=pencil-dev
Type=Application
Categories=Development;Graphics;
MimeType=x-scheme-handler/pencil;
EOF
chmod 644 "${pkgdir}/usr/share/applications/pencil-dev.desktop"
fi
# Install icons from extracted AppImage
for size in 16 32 48 64 128 256 512; do
icon="${srcdir}/squashfs-root/usr/share/icons/hicolor/${size}x${size}/apps/pencil.png"
if [ -f "${icon}" ]; then
install -Dm644 "${icon}" \
"${pkgdir}/usr/share/icons/hicolor/${size}x${size}/apps/pencil-dev.png"
fi
done
# Fallback: use any .png found in squashfs-root
if [ ! -f "${pkgdir}/usr/share/icons/hicolor/256x256/apps/pencil-dev.png" ]; then
for icon in "${srcdir}"/squashfs-root/*.png; do
if [ -f "${icon}" ]; then
install -Dm644 "${icon}" \
"${pkgdir}/usr/share/icons/hicolor/256x256/apps/pencil-dev.png"
break
fi
done
fi
# Install MCP server to a stable path (AppImage mount point changes on each launch)
if [ -f "${srcdir}/squashfs-root/resources/app.asar.unpacked/out/mcp-server-linux-x64" ]; then
install -Dm755 "${srcdir}/squashfs-root/resources/app.asar.unpacked/out/mcp-server-linux-x64" \
"${pkgdir}/opt/${pkgname}/mcp-server"
fi
# Install license
if [ -f "${srcdir}/LICENSE" ]; then
install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
fi
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-17 00:27:14 | Medium | 2 |
| 2026-09-16 00:03:17 | Medium | 2 |
| 2026-09-15 00:25:31 | Medium | 2 |
| 2026-09-14 00:27:57 | Medium | 2 |
| 2026-09-13 00:19:54 | Medium | 2 |
| 2026-09-12 00:25:17 | Medium | 2 |
| 2026-09-11 00:19:22 | Medium | 2 |
| 2026-09-10 00:22:44 | Medium | 2 |
| 2026-09-09 00:04:09 | Medium | 2 |
| 2026-09-08 00:18:08 | Medium | 2 |
| 2026-09-07 00:30:15 | Medium | 2 |
| 2026-09-06 00:17:06 | Medium | 2 |
| 2026-09-05 00:16:27 | Medium | 2 |
| 2026-09-04 00:03:13 | Medium | 2 |
| 2026-09-03 00:15:47 | Medium | 2 |
| 2026-09-02 00:02:31 | Medium | 2 |
| 2026-09-01 00:11:19 | Medium | 2 |
| 2026-08-31 00:19:57 | Medium | 2 |
| 2026-08-30 00:04:14 | Medium | 2 |
| 2026-08-29 00:29:17 | Medium | 2 |