nowledge-mem
The package downloads a prebuilt .deb from a non-whitelisted, project-specific domain (download-mem.nowledge.co), which could host unverifiable executable code; while the build process unpacks and installs it transparently, the source is a binary blob not built from auditable source, creating a supply-chain risk if the host is compromised.
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:37
"nowledge-mem-$pkgver.deb::https://download-mem.nowledge.co/app/$pkgver/$CARCH-unknown-linux-gnu.deb"
llm_review
An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is MEDIUM (confidence 90%): The package downloads a prebuilt .deb from a non-whitelisted, project-specific domain (download-mem.nowledge.co), which could host unverifiable executable code; while the build process unpacks and installs it transparently, the source is a binary blob not built from auditable source, creating a supply-chain risk if the host is compromised.
PKGBUILD
1 offending line(s) highlighted# Maintainer: Qingxu <me@linioi.com>
pkgname=nowledge-mem
pkgver=0.10.62
pkgrel=1
pkgdesc='Local-first memory and context management system for AI-powered workflows'
url='https://mem.nowledge.co'
arch=(
'x86_64'
)
license=(
'LicenseRef-proprietary'
)
depends=(
'gtk3'
'webkit2gtk-4.1'
'libayatana-appindicator'
)
makedepends=(
'zstd'
)
optdepends=(
'gnome-keyring: for credential storage'
'xdg-utils: for opening links and nowledgemem:// URLs'
)
provides=(
'nmem-cli'
)
conflicts=(
'nmem-cli'
'nowledge-mem-bin'
)
options=(
'!strip'
'!debug'
)
source_x86_64=(
"nowledge-mem-$pkgver.deb::https://download-mem.nowledge.co/app/$pkgver/$CARCH-unknown-linux-gnu.deb"
)
noextract=(
"nowledge-mem-$pkgver.deb"
)
sha256sums_x86_64=('9366ba745139c49139c80e3078fd2c55e6434c7b7effb75821d0c11745aa846d')
package() {
local _deb="$srcdir/nowledge-mem-$pkgver.deb"
ar p "$_deb" data.tar.gz | tar xz -C "$pkgdir"
chmod -R u=rwX,go=rX "$pkgdir"
local _app_dir="$pkgdir/usr/lib/Nowledge Mem"
local _up_dir="$_app_dir/_up_"
local _runtime_archive="$_up_dir/python-runtime.tar.zst"
# Upstream ships the Python runtime compressed and unpacks it in postinst;
# unpack at build time instead so pacman owns every installed file.
if [[ -f "$_runtime_archive" ]]; then
tar --zstd -xf "$_runtime_archive" -C "$_up_dir"
if [[ -f "$_up_dir/runtime-version.txt" ]]; then
cp "$_up_dir/runtime-version.txt" "$_up_dir/python-standalone/.runtime-version"
fi
rm -f "$_runtime_archive"
fi
# The upstream Debian layout puts the Tauri GUI in /usr/bin while its
# Rust backend lives under /usr/lib, so automatic backend discovery fails.
[[ -x "$pkgdir/usr/bin/nowledge-mem" ]]
[[ -x "$_up_dir/rust-backend/nmem-server" ]]
mv "$pkgdir/usr/bin/nowledge-mem" "$_app_dir/nowledge-mem"
cat > "$pkgdir/usr/bin/nowledge-mem" << 'EOF'
#!/bin/sh
: "${NMEM_SERVER_BIN:=/usr/lib/Nowledge Mem/_up_/rust-backend/nmem-server}"
export NMEM_SERVER_BIN
exec "/usr/lib/Nowledge Mem/nowledge-mem" "$@"
EOF
chmod 755 "$pkgdir/usr/bin/nowledge-mem"
# Expose the bundled Rust CLIs on PATH. Upstream's Debian package ships
# them under the private application directory without creating links.
local _rust_backend="$_up_dir/rust-backend"
[[ -x "$_rust_backend/nmem" ]]
[[ -x "$_rust_backend/browse-now" ]]
ln -s '/usr/lib/Nowledge Mem/_up_/rust-backend/nmem' \
"$pkgdir/usr/bin/nmem"
ln -s '/usr/lib/Nowledge Mem/_up_/rust-backend/browse-now' \
"$pkgdir/usr/bin/browse-now"
# Upstream ships no license file; record where the terms live.
install -Dm644 /dev/stdin \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE" << 'EOF'
Nowledge Mem is proprietary software.
Terms of service: https://mem.nowledge.co/terms
EOF
}
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 |