discord-ptb

LOW
maintainer timschumi 22 votes scanned 2026-11-02 00:26:00.633185
View on AUR
Why flagged

The package downloads a prebuilt tarball from Discord's official PTB domain, which is plausibly the project's own release infrastructure; despite the non-whitelisted host and skipped license checksums, the source is official and the worst case of a swapped host would be code execution, but no obfuscation or malicious behavior is present.

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 official PTB domain, which is plausibly the project's own release infrastructure; despite the non-whitelisted host and skipped license checksums, the source is official and the worst case of a swapped host would be code execution, but no obfuscation or malicious behavior is present.

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
7pkgname=discord-ptb
8_pkgname=DiscordPTB
9pkgver=1.0.225
10pkgrel=1
11pkgdesc="All-in-one voice and text chat for gamers - public test build"
12arch=('x86_64')
13url='https://discord.com'
14license=('custom')
15options=(!debug !strip)
16optdepends=('libpulse: PulseAudio support'
17 'libappindicator-gtk3: Systray indicator support'
18 'xdg-utils: For opening URLs and files')
19source=("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")
22sha512sums=('227905da1a73cb60912e32337093f246f310dbf6de3ba1424f0626210a25a775defcd178c1522a10a703ca01da70c73b82f541a32b7801b73f06958d207f374a'
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
31sha512sums[1]='SKIP'
32sha512sums[2]='SKIP'
33
34package() {
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-10-29 00:13
+++ PKGBUILD @ 2026-11-02 00:26
@@ -6,7 +6,7 @@
pkgname=discord-ptb
_pkgname=DiscordPTB
-pkgver=1.0.224
+pkgver=1.0.225
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=('3c1ac84a07328085b11ae66a89c7a83f4b185fd0dedb3312cedd4829448cb2bd6fa7a25fbac5b91417f2b18e878cf89e5034c3f66b7a533b288eee9a76336b63'
+sha512sums=('227905da1a73cb60912e32337093f246f310dbf6de3ba1424f0626210a25a775defcd178c1522a10a703ca01da70c73b82f541a32b7801b73f06958d207f374a'
'SKIP'
'SKIP')

Scan history

Scanned at (UTC)SeverityRules
2026-11-02 00:26:00 Low 2
2026-11-01 00:21:48 Low 2
2026-10-31 00:07:41 Low 2
2026-10-30 00:29:30 Low 2
2026-10-29 19:53:24 Medium 1
2026-10-29 00:13:55 Medium 2
2026-10-28 00:06:54 Medium 2
2026-10-27 00:23:28 Medium 2
2026-10-26 00:12:40 Medium 2
2026-10-25 00:20:48 Medium 2
2026-10-24 00:14:55 Medium 2
2026-10-23 19:38:15 Medium 2
2026-10-23 01:36:19 Medium 1
2026-10-23 00:02:19 Low 2
2026-10-22 13:35:05 Medium 1
2026-10-22 03:33:54 Medium 2
2026-10-22 00:13:10 Medium 2
2026-10-21 00:12:50 Medium 2
2026-10-20 05:27:35 Medium 2
2026-10-20 00:10:31 Low 2

Report a package

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

0 / 4000
Your suggestion