knyttstories
maintainer Dani0x1B
· 11 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package downloads a game data archive from a non-whitelisted but plausible fan site; it is not executed directly and the worst case is data tampering, not code execution.
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 package downloads a game data archive from a non-whitelisted but plausible fan site; it is not executed directly and the worst case is data tampering, not code execution.
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
"http://egomassive.com/ks+/KS121.zip"
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Daniel Escoz <darkhogg+aur@gmail.com>
2
# Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
3
pkgname=knyttstories
4
pkgver=1.2.1
5
pkgrel=7
6
pkgdesc="In Knytt Stories, each level is its own little adventure. One level is included with the game, where you have to stop a machine that draws the life out of the planet. An official expansion pack is also featured at the website with four original levels."
7
# url="http://nifflas.ni2.se/" # it's down as of 2025-04-27
8
url="http://egomassive.com/ks/" # not the actual original site but the closest right now...
9
arch=('i686' 'x86_64')
10
depends=(wine)
11
makedepends=('unzip')
12
source=(knyttstories
13
msvcp60.zip
14
"http://egomassive.com/ks+/KS121.zip"
15
knyttstories.desktop
16
knyttstories.png)
17
license=('freeware')
18
install=knyttstories.install
19
md5sums=('b34bc8c1f391c9a5efb9e984606a6c16'
20
'e27d1c3b981aff789500e0ba2cd05616'
21
'6d5c344fcd9b7c20df003abf03e44777'
22
'f41b9e383744e08ac5de5fe7330a3735'
23
'd997338aae63d77ce4bedcd218dcb5d2')
24
25
package() {
26
# Initial directories for game files
27
install -d -m755 $pkgdir/usr/share/knyttstories
28
mv $srcdir/"Knytt Stories"/* $pkgdir/usr/share/knyttstories/
29
install -d -m775 -o root -g games $pkgdir/var/games/knyttstories
30
mv $pkgdir/usr/share/knyttstories/Worlds $pkgdir/var/games/knyttstories/
31
32
# We need this DLL for the override else knyttstories won't work
33
mv $srcdir/msvcp60.dll $pkgdir/usr/share/knyttstories/msvcp60.dll
34
35
# Now lets manually change all the permissions since its a Windows game
36
find $pkgdir/usr/share/knyttstories -type d -exec chmod 755 "{}" \;
37
find $pkgdir/usr/share/knyttstories -type f -exec chmod 644 "{}" \;
38
find $pkgdir/var/games/knyttstories -type d -exec chmod 775 "{}" \;
39
find $pkgdir/var/games/knyttstories -type f -exec chmod 644 "{}" \;
40
find $pkgdir/var/games/knyttstories -type d -exec chown root:games "{}" \;
41
find $pkgdir/var/games/knyttstories -type f -exec chown root:games "{}" \;
42
43
# Install scripts for the user to run
44
install -d -m755 $pkgdir/usr/bin
45
install -m755 knyttstories $pkgdir/usr/bin
46
47
# Install icon
48
install -Dm644 ${srcdir}/knyttstories.desktop ${pkgdir}/usr/share/applications/knyttstories.desktop
49
install -Dm644 ${srcdir}/knyttstories.png ${pkgdir}/usr/share/pixmaps/knyttstories.png
50
}
51
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 |