rescribe-bin

MEDIUM
maintainer rescribe 1 votes scanned 2026-11-01 00:21:48.120785
View on AUR
Why flagged

The PKGBUILD downloads a prebuilt binary zip from cli.rescribe.dev (a personal/project subdomain, not a major distribution channel), extracts and installs a native binary (rescribe) and a native Node.js addon (nodegit.node), and also executes a postinstall.sh script from within the zip at build time. There is no PGP signature verification, only an MD5 checksum (which is weak and trivially collided). The combination of: (1) a prebuilt binary from an unofficial host, (2) a native .node addon (which is a shared library executed in-process), and (3) execution of an arbitrary shell script (postinstall.sh) extracted from the same untrusted zip, constitutes a genuine supply-chain risk. If the host or the zip is compromised, arbitrary code runs during package installation. This is a textbook medium-severity supply-chain concern.

Triggered rules

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:26 source=("https://cli.rescribe.dev/linux.zip")
Medium AI review llm_review

An AI model (anthropic/claude-4.6-sonnet-20260217) reviewed this and agrees it is MEDIUM (confidence 85%): The PKGBUILD downloads a prebuilt binary zip from cli.rescribe.dev (a personal/project subdomain, not a major distribution channel), extracts and installs a native binary (rescribe) and a native Node.js addon (nodegit.node), and also executes a postinstall.sh script from within the zip at build time. There is no PGP signature verification, only an MD5 checksum (which is weak and trivially collided). The combination of: (1) a prebuilt binary from an unofficial host, (2) a native .node addon (which is a shared library executed in-process), and (3) execution of an arbitrary shell script (postinstall.sh) extracted from the same untrusted zip, constitutes a genuine supply-chain risk. If the host or the zip is compromised, arbitrary code runs during package installation. This is a textbook medium-severity supply-chain concern.

PKGBUILD

1 offending line(s) highlighted
1# This is the reScribe AUR PKGBUILD file.
2# For more information, see 'man PKGBUILD'.
3# Maintainer: reScribe <rescribe.dev@gmail.com>
4
5pkgname=rescribe-bin
6# update version in package.json, not here
7pkgver=0.0.27
8pkgrel=1
9epoch=
10pkgdesc="reScribe code search engine. CLI for interacting with reScribe api."
11arch=("x86_64")
12url="https://rescribe.dev"
13license=("CC-BY-NC-SA-4.0")
14groups=()
15depends=()
16makedepends=()
17checkdepends=()
18optdepends=()
19provides=()
20conflicts=()
21replaces=()
22backup=()
23options=("!strip")
24install=$pkgname.install
25changelog=
26source=("https://cli.rescribe.dev/linux.zip")
27noextract=()
28md5sums=("149103a115a22ebbfb21c110df220787")
29validpgpkeys=()
30
31package() {
32 mkdir -p "$pkgdir/usr/bin"
33 chmod +x rescribe
34 mv rescribe "$pkgdir/usr/bin"
35 mv nodegit.node "$pkgdir/usr/bin"
36 mkdir -p "$pkgdir/home/$USER"
37
38 ./postinstall.sh $pkgdir
39}
40

Scan history

Scanned at (UTC)SeverityRules
2026-11-01 00:21:48 Medium 2
2026-10-31 00:07:41 Medium 2
2026-10-30 00:29:30 Medium 2
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 00:02:19 Medium 2
2026-10-22 00:13:10 Medium 2
2026-10-21 00:12:50 Medium 2
2026-10-20 00:10:31 Medium 2
2026-10-19 00:03:55 Medium 2
2026-10-18 00:06:55 Medium 2
2026-10-17 00:21:55 Medium 2
2026-10-16 00:12:47 Medium 2
2026-10-15 00:28:05 Medium 2
2026-10-14 00:06:47 Medium 2
2026-10-13 00:23:45 Medium 2

Report a package

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

0 / 4000
Your suggestion