dpatch

maintainer orphaned · 0 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The source is a prebuilt Debian .deb package pulled from http.debian.net, which is the official Debian HTTP redirector/mirror network (a legitimate Debian infrastructure host, not a personal or unofficial host). The package is an 'any'-arch Perl/shell script package (dpatch), not a native binary, so the risk from the prebuilt artifact is lower than for compiled code. A sha256sum is provided and pinned, which mitigates substitution attacks at the mirror level. The main concerns are: (1) http:// rather than https:// means the download is not transport-encrypted, but the sha256 check compensates; (2) extracting a .deb directly with dpkg-deb and installing its contents into pkgdir is non-standard but not malicious. Overall this is sloppy/non-standard packaging (pulling from Debian instead of building from source) but not a genuine supply-chain threat given the hash pin and the nature of the content.

Triggered rules

LOW AI review downgraded a static finding llm_review

The static rules flagged this MEDIUM, but an AI model (anthropic/claude-4.6-sonnet-20260217) reviewed the full PKGBUILD and judged it LOW (confidence 82%): The source is a prebuilt Debian .deb package pulled from http.debian.net, which is the official Debian HTTP redirector/mirror network (a legitimate Debian infrastructure host, not a personal or unofficial host). The package is an 'any'-arch Perl/shell script package (dpatch), not a native binary, so the risk from the prebuilt artifact is lower than for compiled code. A sha256sum is provided and pinned, which mitigates substitution attacks at the mirror level. The main concerns are: (1) http:// rather than https:// means the download is not transport-encrypted, but the sha256 check compensates; (2) extracting a .deb directly with dpkg-deb and installing its contents into pkgdir is non-standard but not malicious. Overall this is sloppy/non-standard packaging (pulling from Debian instead of building from source) but not a genuine supply-chain threat given the hash pin and the nature of the content.

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:36 "dpatch_${_pkgver}${_deblevel}_all.deb::http://http.debian.net/debian/pool/main/d/dpatch/dpatch_${_pkgver}${_deblevel}_all.deb"

PKGBUILD

1 offending line(s) highlighted
1#!/bin/bash
2
3pkgname=dpatch
4_pkgver="2.0.41"
5_deblevel=""
6pkgver="${_pkgver}${_deblevel}"
7pkgrel=2
8
9pkgdesc="A easy to use patch system for Debian packages, somewhat similar to the dbs package, but much simpler to use."
10url="https://packages.debian.org/stable/dpatch"
11license=('GPL2')
12
13arch=(
14 'any'
15)
16
17depends=(
18 'debhelper'
19 'dpkg'
20 'make'
21 'perl'
22)
23makedepends=()
24optdepends=(
25 'fakeroot'
26 'patchutils'
27 'curl'
28)
29provides=()
30replaces=()
31conflicts=()
32
33options=('emptydirs')
34
35source=(
36 "dpatch_${_pkgver}${_deblevel}_all.deb::http://http.debian.net/debian/pool/main/d/dpatch/dpatch_${_pkgver}${_deblevel}_all.deb"
37)
38
39sha256sums=(
40 '267461f5998ad7472aeb50f7d66708518d51923ca79bb16a3726e24e5ab3a8b2'
41)
42
43noextract=(
44 "dpatch_${_pkgver}${_deblevel}_all.deb"
45)
46
47package() {
48 cd "${srcdir}"
49 msg "Extracting files with dpkg-deb to \$pkgdir ..."
50 dpkg-deb -x "dpatch_${_pkgver}${_deblevel}_all.deb" "${pkgdir}"
51}
52

Scan history

Scanned at (UTC)SeverityRules
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

Report a package

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

0 / 4000
Your suggestion