suricata
MEDIUM
maintainer jskier
33 votes
scanned 2026-10-27 19:48:35.153655
Why flagged
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
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:25
source=(https://www.openinfosecfoundation.org/download/${pkgname}-${pkgver}.tar.gz{,.sig}
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Jeremy MountainJohnson <jay@jskier.com>
2
# Maintainer: Amish <contact at via dot aur>
3
# Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
4
#
5
# NOTE: This package conflicts with hyperscan. If hyperscan is installed,
6
# remove it first with: pacman -Rdd hyperscan
7
8
pkgname=suricata
9
pkgver=8.0.5
10
pkgrel=1
11
pkgdesc="A high performance Network IDS, IPS and Network Security Monitoring engine, Vectorscan instead of hyperscan"
12
arch=('x86_64')
13
url="https://suricata.io/"
14
license=('GPL2')
15
makedepends=('rust' 'clang' 'cbindgen' 'llvm' 'pkgconf')
16
depends=('vectorscan' 'jansson' 'libcap-ng' 'libmagic.so' 'libmaxminddb' 'libnet' 'libpcap' 'libyaml' 'pcre' 'python-yaml' 'libunwind' 'libbpf')
17
optdepends=('geoipupdate: GeoIP2 databases')
18
conflicts=('suricata-nfqueue')
19
install=suricata.install
20
backup=('etc/suricata/suricata.yaml'
21
'etc/suricata/local.yaml'
22
'etc/suricata/classification.config'
23
'etc/suricata/reference.config'
24
'etc/suricata/threshold.config')
25
source=(https://www.openinfosecfoundation.org/download/${pkgname}-${pkgver}.tar.gz{,.sig}
26
suricata-update.{service,timer})
27
sha256sums=('04cad79a2a91499a729e41bfb570060c3cedb94cd5a5584d79582ebd18574ee0'
28
'SKIP'
29
'57505c464d30623c9d6611ca4b5d08a580c0116b20a4280f39c3720a3f369a92'
30
'330c93e72a02f4f80972ab1641ee550b32cfdc2f40c78331294bcc009af06d71')
31
32
validpgpkeys=('B36FDAF2607E10E8FFA89E5E2BA9C98CCDF1E93A')
33
34
35
build() {
36
cd "${srcdir}/${pkgname}-${pkgver}"
37
38
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
39
--with-clang=/usr/bin/clang --without-docs \
40
--enable-ebpf --enable-ebpf-build \
41
--disable-gccmarch-native \
42
--enable-geoip \
43
--with-libhs-includes=/usr/include/vectorscan \
44
--with-libhs-libraries=/usr/lib
45
46
# Build the Rust crate first so cargo compiles the vendored liblua.a
47
make -C rust
48
49
# Locate the static liblua.a produced by the suricata-lua-sys crate.
50
# Static libs are unaffected by -Wl,--as-needed so this reliably links.
51
local _lua_a
52
_lua_a=$(find "$(pwd)/rust/target/release/build" -path '*/suricata-lua-sys-*/out/lua/liblua.a' 2>/dev/null | head -1)
53
[[ -n "${_lua_a}" ]] || { echo "ERROR: vendored liblua.a not found"; return 1; }
54
55
# Patch src/Makefile in-place so that every subsequent make call
56
# (build and install) sees liblua.a in LIBS. Patching here is
57
# necessary because the path is only known after cargo has run.
58
sed -i "s|^LIBS = |LIBS = ${_lua_a} |" src/Makefile
59
60
make
61
}
62
63
check() {
64
cd "${srcdir}/${pkgname}-${pkgver}"
65
make -k check || true
66
}
67
68
package() {
69
cd "${srcdir}/${pkgname}-${pkgver}"
70
make DESTDIR="${pkgdir}" install
71
72
install -Dm644 -t "${pkgdir}/etc/${pkgname}" "${pkgname}".yaml threshold.config etc/{classification.config,reference.config}
73
install -Dm644 "${pkgname}".yaml "${pkgdir}/etc/${pkgname}/${pkgname}.yaml.default"
74
install -Dm644 /dev/null "${pkgdir}/etc/${pkgname}/local.yaml"
75
76
echo "include: local.yaml" >> "${pkgdir}/etc/${pkgname}/${pkgname}.yaml"
77
sed -i -e 's:/var/run:/run/suricata:g' \
78
-e 's:^#magic-file\: /.*:magic-file\: /usr/share/file/misc/magic.mgc:' \
79
-e '/^ - suricata.rules/ a \ \ - local.rules' \
80
-e 's/^#run-as:/run-as:/' \
81
-e 's/^# user:.*/ user: suricata/' \
82
-e 's/^# group:.*/ group: suricata/' \
83
-e 's/^# threshold-file:/threshold-file:/' \
84
"${pkgdir}/etc/${pkgname}/${pkgname}.yaml"
85
86
install -Dm644 etc/"${pkgname}".logrotate "${pkgdir}/etc/logrotate.d/${pkgname}"
87
sed -i -e 's:/var/run:/run/suricata:g' \
88
"${pkgdir}/etc/logrotate.d/${pkgname}"
89
install -Dm644 -t "${pkgdir}"/usr/lib/systemd/system etc/"${pkgname}".service "${srcdir}"/suricata-update.{service,timer}
90
sed -i -e 's:/var/run:/run/suricata:g' \
91
-e 's:^Description=.*:Description=Suricata IDS/IPS daemon:g' \
92
-e 's:^After=.*:After=network.target:g' \
93
-e 's:^ExecStartPre=.*:PIDFile=suricata/suricata.pid:g' \
94
-e 's:^ExecStart=.*:ExecStart=/usr/bin/suricata -c /etc/suricata/suricata.yaml --pidfile /run/suricata/suricata.pid --af-packet :g' \
95
"${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
96
97
echo "u suricata -" | install -Dm644 /dev/stdin "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
98
install -Dm644 /dev/stdin "${pkgdir}/usr/lib/tmpfiles.d/${pkgname}.conf" << 'EOF'
99
d /run/suricata 0750 suricata suricata
100
d /var/log/suricata 0755 suricata suricata
101
d /var/lib/suricata 0750 suricata suricata
102
d /var/lib/suricata/rules 0750 suricata suricata
103
d /var/lib/suricata/update 0750 suricata suricata
104
f /var/lib/suricata/rules/local.rules 0640 suricata suricata
105
EOF
106
}
107
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-27 19:48:35 | Medium | 1 |
| 2026-06-20 00:18:46 | Clean | 2 |
| 2026-06-19 23:51:18 | Clean | 2 |
| 2026-06-19 19:07:35 | Low | 2 |
| 2026-06-18 18:04:49 | Clean | 2 |
| 2026-06-18 16:11:54 | Medium | 1 |