discord-ptb
maintainer timschumi
· 22 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package downloads a prebuilt tarball from Discord's own infrastructure (dl-ptb.discordapp.net), which is plausibly official despite not being on a whitelist; the source is not executed remotely, and the worst case of a swapped host would be supply-chain compromise, but the artifact is intended to be official.
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-2507) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads a prebuilt tarball from Discord's own infrastructure (dl-ptb.discordapp.net), which is plausibly official despite not being on a whitelist; the source is not executed remotely, and the worst case of a swapped host would be supply-chain compromise, but the artifact is intended to be official.
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:19
source=("https://dl-ptb.discordapp.net/apps/linux/$pkgver/$pkgname-$pkgver.tar.gz" -
PKGBUILD:20
"LICENSE-$pkgver.html::https://discordapp.com/terms"
PKGBUILD
2 offending line(s) highlighted
1
# Contributor: Filipe Laíns (FFY00) <lains@archlinux.org>
2
# Contributor: Morgan <morganamilo@archlinux.org>
3
# Contributor: Robin Candau <antiz@archlinux.org>
4
# Contributor: Christian Heusel <gromit@archlinux.org>
5
# Contributor: T.J. Townsend <blakkheim@archlinux.org>
6
7
pkgname=discord-ptb
8
_pkgname=DiscordPTB
9
pkgver=1.0.205
10
pkgrel=1
11
pkgdesc="All-in-one voice and text chat for gamers - public test build"
12
arch=('x86_64')
13
url='https://discord.com'
14
license=('custom')
15
options=(!debug !strip)
16
optdepends=('libpulse: PulseAudio support'
17
'libappindicator-gtk3: Systray indicator support'
18
'xdg-utils: For opening URLs and files')
19
source=("https://dl-ptb.discordapp.net/apps/linux/$pkgver/$pkgname-$pkgver.tar.gz"
20
"LICENSE-$pkgver.html::https://discordapp.com/terms"
21
"OSS-LICENSES-$pkgver.html::https://discordapp.com/licenses")
22
sha512sums=('a36b06c2f79291662116dc23d919a01fe8f6260b0e1aa0fb519dad88b977443f548ba9a29e6e4ff0e9b43970f4062aa880bd2482fa82ba2d8847bf790181fc12'
23
'SKIP'
24
'SKIP')
25
26
# Skip license hashes as they are unstable (discord#2)
27
# Since "updpkgsums"/"pkgctl version upgrade" overwrite the checksum array with
28
# literal hashes, set them to SKIP with indexed assignments (pacman-contrib#119)
29
# https://gitlab.archlinux.org/archlinux/packaging/packages/discord/-/issues/2
30
# https://gitlab.archlinux.org/pacman/pacman-contrib/-/issues/119
31
sha512sums[1]='SKIP'
32
sha512sums[2]='SKIP'
33
34
package() {
35
depends=('libnotify' 'libxss' 'nspr' 'nss' 'gtk3')
36
install -d "$pkgdir"/opt/$pkgname
37
cp -a $_pkgname/. "$pkgdir"/opt/$pkgname
38
39
chmod 755 "$pkgdir"/opt/$pkgname/$pkgname
40
41
rm "$pkgdir"/opt/$pkgname/postinst.sh
42
43
install -d "$pkgdir"/usr/bin
44
ln -s /opt/$pkgname/$pkgname "$pkgdir"/usr/bin/$pkgname
45
46
install -d "$pkgdir"/usr/share/applications
47
ln -s /opt/$pkgname/$pkgname.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop
48
49
install -d "$pkgdir"/usr/share/icons/hicolor/256x256/apps
50
ln -s /opt/$pkgname/discord.png "$pkgdir"/usr/share/icons/hicolor/256x256/apps/$pkgname.png
51
52
install -Dm644 LICENSE-$pkgver.html "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.html
53
install -Dm644 OSS-LICENSES-$pkgver.html "$pkgdir"/usr/share/licenses/$pkgname/OSS-LICENSES.html
54
}
55
Changes since previous scan
--- PKGBUILD @ 2026-07-30 00:17+++ PKGBUILD @ 2026-08-03 00:08@@ -6,7 +6,7 @@ pkgname=discord-ptb _pkgname=DiscordPTB-pkgver=1.0.204+pkgver=1.0.205 pkgrel=1 pkgdesc="All-in-one voice and text chat for gamers - public test build" arch=('x86_64')@@ -19,7 +19,7 @@ source=("https://dl-ptb.discordapp.net/apps/linux/$pkgver/$pkgname-$pkgver.tar.gz" "LICENSE-$pkgver.html::https://discordapp.com/terms" "OSS-LICENSES-$pkgver.html::https://discordapp.com/licenses")-sha512sums=('a6751efd8df41ef5f70effafc3e67b22762f221f1a6b1b96c8464dcfccd271463190c24b6f14d72670c5d563b15de4516fe602797118152cdbc727829bbc5ca9'+sha512sums=('a36b06c2f79291662116dc23d919a01fe8f6260b0e1aa0fb519dad88b977443f548ba9a29e6e4ff0e9b43970f4062aa880bd2482fa82ba2d8847bf790181fc12' 'SKIP' 'SKIP') 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 23:17:02 | MEDIUM | 1 |
| 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 21:35:42 | MEDIUM | 1 |
| 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 19:25:44 | MEDIUM | 1 |
| 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 |