winexe
The source is a tarball from the official samba.org domain, which is the project's legitimate release host; building from this source is standard practice and not a supply-chain risk despite the static analyzer flag.
Triggered rules
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-2507) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The source is a tarball from the official samba.org domain, which is the project's legitimate release host; building from this source is standard practice and not a supply-chain risk despite the static analyzer flag.
1 higher static finding superseded - not the current verdict (shown for transparency)
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:33
"https://download.samba.org/samba/ftp/stable/${_sambapkg}-${pkgver}.tar.gz"
PKGBUILD
1 offending line(s) highlighted# Maintainer: Rubin Simons <me@rubin55.org>
pkgname=winexe
pkgver=4.25.0
pkgrel=1
pkgdesc='Remote Windows command executor via SMB (from samba/examples/winexe)'
arch=('x86_64')
url='https://www.samba.org/'
license=('GPL3')
install=winexe.install
# ABI lock: winexe links against /usr/lib/samba/lib*-private-samba.so shipped
# by the official samba package, so the version should match exactly.
# The "2:" prefix is samba's epoch (it has used epoch=2 since 2012).
_sambaepoch=2
depends=("samba=${_sambaepoch}:${pkgver}")
# We use the MSVCRT-targeted mingw-w64 toolchain (from AUR) so the embedded
# winexesvc.exe service binaries link against msvcrt.dll and therefore run
# on every Windows since NT 4.0 SP6. The UCRT-based mingw-w64-gcc in [extra]
# would limit support to Windows 10+ (or Vista/7/8 with KB2999226).
makedepends=(
'mingw-w64-gcc-msvcrt'
'perl-parse-yapp'
'cmocka'
'bison'
'flex'
'patchelf'
)
_sambapkg=samba
source=(
"https://download.samba.org/samba/ftp/stable/${_sambapkg}-${pkgver}.tar.gz"
"https://download.samba.org/samba/ftp/stable/${_sambapkg}-${pkgver}.tar.asc"
'NOTES'
'winexe.install'
)
validpgpkeys=('81F5E2832BD2545A1897B713AA99442FB680B620') # Samba Distribution Verification Key
sha256sums=('2e2cb7296833b35b8f7a7fb76045e0c57adc0c2cd03264b37df5d58e40f28437'
'SKIP'
'989cee777ca19230f03623357e9bdc8eb33fce17230790c466aa013ecc6c9ba9'
'cbd542ccd943ae95fb856ba7850ebc1ab5b03da5fe0649dafc989dd3b5bd77a0')
build() {
cd "${srcdir}/${_sambapkg}-${pkgver}"
# Mirror the configure flags from the official Arch `samba` PKGBUILD so the
# winexe binary we produce is ABI-compatible with /usr/lib/samba/*.so on
# the user's system. The only addition is --with-winexe.
local _samba4_idmap_modules=idmap_ad,idmap_rid,idmap_adex,idmap_hash,idmap_tdb2
local _samba4_pdb_modules=pdb_tdbsam,pdb_ldap,pdb_ads,pdb_smbpasswd,pdb_wbc_sam,pdb_samba4
local _samba4_auth_modules=auth_unix,auth_wbc,auth_server,auth_netlogond,auth_script,auth_samba4
./configure --enable-fhs \
--prefix=/usr \
--sysconfdir=/etc \
--sbindir=/usr/bin \
--libdir=/usr/lib \
--libexecdir=/usr/lib/samba \
--localstatedir=/var \
--with-configdir=/etc/samba \
--with-lockdir=/var/cache/samba \
--with-sockets-dir=/run/samba \
--with-piddir=/run \
--with-ads \
--with-ldap \
--with-winbind \
--with-acl-support \
--with-systemd \
--with-pam \
--with-pammodulesdir=/usr/lib/security \
--private-libraries='!ldb' \
--bundled-libraries='!tdb,!talloc,!pytalloc-util,!tevent,!popt,!pyldb-util' \
--with-shared-modules="${_samba4_idmap_modules},${_samba4_pdb_modules},${_samba4_auth_modules},vfs_io_uring" \
--disable-rpath-install \
--with-profiling-data \
--with-winexe
PYTHONHASHSEED=1 ./buildtools/bin/waf build --targets=winexe -j"$(nproc)"
}
package() {
cd "${srcdir}/${_sambapkg}-${pkgver}"
install -Dm755 bin/default/examples/winexe/winexe \
"${pkgdir}/usr/bin/winexe"
mkdir -p "${pkgdir}/usr/share/man/man1"
gzip -c docs/manpages/winexe.1 > "${pkgdir}/usr/share/man/man1/winexe.1.gz"
# The build directory's RUNPATH is baked in; rewrite it to point at the
# samba package's private library directory.
patchelf --set-rpath /usr/lib/samba "${pkgdir}/usr/bin/winexe"
install -Dm644 examples/winexe/README \
"${pkgdir}/usr/share/doc/${pkgname}/README"
install -Dm644 "${srcdir}/NOTES" \
"${pkgdir}/usr/share/doc/${pkgname}/NOTES"
}
Changes since previous scan
--- PKGBUILD @ 2026-09-11 00:19+++ PKGBUILD @ 2026-10-02 00:00@@ -1,7 +1,7 @@ # Maintainer: Rubin Simons <me@rubin55.org> pkgname=winexe-pkgver=4.24.7+pkgver=4.25.0 pkgrel=1 pkgdesc='Remote Windows command executor via SMB (from samba/examples/winexe)' arch=('x86_64')@@ -36,7 +36,7 @@ 'winexe.install' ) validpgpkeys=('81F5E2832BD2545A1897B713AA99442FB680B620') # Samba Distribution Verification Key-sha256sums=('45b7747a47452eff2b2159a44cc63eb43690d339fd1069088e023a015fed06c7'+sha256sums=('2e2cb7296833b35b8f7a7fb76045e0c57adc0c2cd03264b37df5d58e40f28437' 'SKIP' '989cee777ca19230f03623357e9bdc8eb33fce17230790c466aa013ecc6c9ba9' 'cbd542ccd943ae95fb856ba7850ebc1ab5b03da5fe0649dafc989dd3b5bd77a0')Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-02 00:00:32 | Low | 2 |
| 2026-10-01 00:02:06 | Low | 2 |
| 2026-09-30 00:20:07 | Low | 2 |
| 2026-09-29 00:07:46 | Low | 2 |
| 2026-09-28 00:28:32 | Low | 2 |
| 2026-09-27 11:18:17 | Medium | 1 |
| 2026-09-11 00:19:22 | Clean | 2 |
| 2026-09-10 17:21:08 | Medium | 1 |
| 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 |