dpatch

LOW
maintainer orphaned 0 votes scanned 2026-09-17 00:27:14.276658
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-09-17 00:27:14 Low 2
2026-09-16 00:03:17 Low 2
2026-09-15 00:25:31 Low 2
2026-09-14 00:27:57 Low 2
2026-09-13 00:19:54 Low 2
2026-09-12 00:25:17 Low 2
2026-09-11 00:19:22 Low 2
2026-09-10 00:22:44 Low 2
2026-09-09 00:04:09 Low 2
2026-09-08 00:18:08 Low 2
2026-09-07 00:30:15 Low 2
2026-09-06 00:17:06 Low 2
2026-09-05 00:16:27 Low 2
2026-09-04 00:03:13 Low 2
2026-09-03 00:15:47 Low 2
2026-09-02 00:02:31 Low 2
2026-09-01 00:11:19 Low 2
2026-08-31 00:19:57 Low 2
2026-08-30 00:04:14 Low 2
2026-08-29 00:29:17 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