snapchat-nativefier
maintainer saltedcoffii
· 1 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The flagged non-standard host is for a plain JavaScript file from the AUR itself, which is safe; the package builds from source using nativefier on a legitimate web URL, and the only external downloads are a logo and a benign inject script, posing no execution risk.
Triggered rules
LOW
AI review downgraded a static finding
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The flagged non-standard host is for a plain JavaScript file from the AUR itself, which is safe; the package builds from source using nativefier on a legitimate web URL, and the only external downloads are a logo and a benign inject script, posing no execution risk.
1 higher static finding superseded - not the current verdict (shown for transparency)
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:14
"https://upload.wikimedia.org/wikipedia/en/c/c4/Snapchat_logo.svg"
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Cassandra Watergate (saltedcoffii) <cassandrajwatergate@gmail.com>
2
3
pkgname=snapchat-nativefier
4
pkgver=0.1.1
5
pkgrel=1
6
pkgdesc="Snapchat web built with nativefier (electron)"
7
arch=("armv7l" "i686" "x86_64")
8
url="https://web.${pkgname%-nativefier}.com"
9
license=("custom")
10
depends=("gtk3" "libxss" "nss")
11
optdepends=("libindicator-gtk3")
12
makedepends=("imagemagick" "inkscape" "nodejs-nativefier" "unzip")
13
source=(
14
"https://upload.wikimedia.org/wikipedia/en/c/c4/Snapchat_logo.svg"
15
"whatsapp-nativefier-inject.js::https://aur.archlinux.org/cgit/aur.git/plain/whatsapp-nativefier-inject.js?h=whatsapp-nativefier"
16
"${pkgname}.desktop"
17
)
18
sha256sums=('73b811daaddb6eac1dde7f110850148ca273cb108e4f4cd95ac1d4d1b72eeab2'
19
'SKIP'
20
'46ff7aa6dbe376cf081411419bd30249e5b6babc50abfa2bde15f4d659a64bf4')
21
22
build() {
23
cd "${srcdir}"
24
25
inkscape -w 1024 -h 1024 Snapchat_logo.svg -o Snapchat_logo.png
26
magick Snapchat_logo.png -resize 194x194 snapchat-nativefier.png
27
28
nativefier \
29
--name "Snapchat" \
30
--icon "${pkgname}.png" \
31
--width "800px" \
32
--height "600px" \
33
--user-agent "Mozilla/5.0 (X11; Linux $(uname -m)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.167 Safari/537.36" \
34
--inject "whatsapp-nativefier-inject.js" \
35
--verbose \
36
--single-instance \
37
--tray \
38
"${url}"
39
}
40
41
package() {
42
install -dm755 "${pkgdir}/"{opt,usr/{bin,share/{applications,licenses/${pkgname}}}}
43
44
_folder=$(ls "${srcdir}" | grep "[Ss]napchat[-]*linux-")
45
_binary=$(ls "${srcdir}/${_folder}" | grep "[Ss]napchat")
46
47
cp -rL "${srcdir}/${_folder}" "${pkgdir}/opt/${pkgname}"
48
ln -s "/opt/${pkgname}/${_binary}" "${pkgdir}/usr/bin/${pkgname}"
49
install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
50
install -Dm644 "${pkgdir}/opt/${pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
51
for _size in "192x192" "128x128" "96x96" "64x64" "48x48" "32x32" "24x24" "22x22" "20x20" "16x16" "8x8"; do
52
install -dm755 "${pkgdir}/usr/share/icons/hicolor/${_size}/apps"
53
magick convert "${srcdir}/Snapchat_logo.png" -strip -resize "${_size}" "${pkgdir}/usr/share/icons/hicolor/${_size}/apps/${pkgname}.png"
54
done
55
}
56
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | LOW | 2 |
| 2026-08-02 00:16:08 | LOW | 2 |
| 2026-08-01 00:11:18 | LOW | 2 |
| 2026-07-31 00:14:10 | LOW | 2 |
| 2026-07-30 00:17:23 | LOW | 2 |
| 2026-07-29 00:25:53 | LOW | 2 |
| 2026-07-28 00:07:28 | LOW | 2 |
| 2026-07-27 00:24:32 | LOW | 2 |
| 2026-07-26 00:07:32 | LOW | 2 |
| 2026-07-25 00:13:44 | LOW | 2 |
| 2026-07-24 00:02:28 | LOW | 2 |
| 2026-07-23 00:14:47 | LOW | 2 |
| 2026-07-22 00:29:32 | LOW | 2 |
| 2026-07-21 00:24:15 | LOW | 2 |
| 2026-07-20 00:19:49 | LOW | 2 |
| 2026-07-19 00:17:08 | LOW | 2 |
| 2026-07-18 00:14:48 | LOW | 2 |
| 2026-07-17 00:06:16 | LOW | 2 |
| 2026-07-16 00:05:41 | LOW | 2 |
| 2026-07-15 00:09:25 | LOW | 2 |