snort-nfqueue
maintainer amish
· 1 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The source from snort.org is legitimate and expected for this software; downloading OpenAppID data from the project's official domain, even if not on a standard path, is normal and non-executable, posing minimal risk.
Triggered rules
LOW
AI review downgraded a static finding
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The source from snort.org is legitimate and expected for this software; downloading OpenAppID data from the project's official domain, even if not on a standard path, is normal and non-executable, posing minimal risk.
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:27
"snort-openappid-${_openappid}.tar.gz::https://snort.org/downloads/openappid/${_openappid}"
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Amish <contact at via dot aur>
2
3
pkgname=snort-nfqueue
4
_pkgname=snort3
5
_openappid=33380
6
pkgver=3.12.2.0
7
pkgrel=1
8
pkgdesc='A lightweight network IDS / IPS with NFQUEUE and OpenAppID support.'
9
arch=('x86_64')
10
url='https://www.snort.org'
11
license=('GPL-2.0-only')
12
provides=('snort')
13
conflicts=('snort')
14
depends=('gperftools' 'hwloc' 'hyperscan' 'libdaq>=3.0.25' 'libdnet' 'libmnl' 'libnetfilter_queue' 'libpcap' 'libunwind' 'luajit' 'lz4' 'numactl' 'openssl' 'pcre2' 'pulledpork' 'xz' 'zlib')
15
makedepends=('cmake' 'pkgconf')
16
backup=('etc/snort/snort.lua'
17
'etc/snort/snort_defaults.lua'
18
'etc/snort/local.lua'
19
'etc/snort/homenet.lua'
20
'etc/snort/rules/local.rules'
21
'etc/snort/rules/snort.rules'
22
'etc/snort/lists/default.blocklist'
23
'etc/snort/lists/default.allowlist'
24
'etc/logrotate.d/snort')
25
install=snort.install
26
source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/snort3/snort3/archive/refs/tags/${pkgver}.tar.gz"
27
"snort-openappid-${_openappid}.tar.gz::https://snort.org/downloads/openappid/${_openappid}"
28
'tcmjem.patch'
29
'local.lua'
30
'snort.logrotate'
31
'snort.sysusers'
32
'snort.tmpfiles'
33
'snort.service')
34
sha256sums=('43000d6b0e0307bc1a735874d00deb61e8b6a96d074f8cc9b2fe2cde0058720b'
35
'3046c5af1dd81a104f13d8e895226ef64bca7fa358238fb5f29c659081eaee2a'
36
'b7797a2479798c7c055173bb606fb537fb53f5c867f967d47477211193ffe86d'
37
'55ae10b6d24abadb03dd4f010fdf71e077370227db6835e48881836a8ea082a8'
38
'a8a7684a676da5cd55c2b5ab012dac3d14c5a6c62f6e37c4913ba1dbe506088e'
39
'ae3245c5de527fb487c459f2f4a9c78803ae6341e9c81b9a404277679cdee051'
40
'bc4a02d184601faba5cd0f6cb454097a3b04a0c8fe56f5f8b36d24513484faa2'
41
'cb1108ab0a6ad38981a6f308b0ae2b276b68d08bfa0e38c036eae277b38b28d8')
42
43
prepare() {
44
cd "${_pkgname}-${pkgver}"
45
patch -p0 < "${srcdir}"/tcmjem.patch
46
# Workaround https://github.com/intel/hyperscan/issues/388
47
sed -i '/HAVE_HS_COMPILE_LIT/d' config.cmake.h.in cmake/sanity_checks.cmake
48
}
49
50
build() {
51
cd "${_pkgname}-${pkgver}"
52
./configure_cmake.sh --prefix=/usr --enable-tcmalloc --with-daq-libraries=/usr/lib/daq/ --disable-static-daq
53
make -C build
54
}
55
56
package() {
57
cd "${_pkgname}-${pkgver}"
58
make -C build DESTDIR="${pkgdir}" install
59
60
mv "${pkgdir}"{/usr,}/etc
61
install -D -m644 "${srcdir}"/local.lua "${pkgdir}"/etc/snort
62
install -D -m644 "${srcdir}"/snort.logrotate "${pkgdir}"/etc/logrotate.d/snort
63
install -D -m644 "${srcdir}"/snort.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/snort.conf
64
install -D -m644 "${srcdir}"/snort.sysusers "${pkgdir}"/usr/lib/sysusers.d/snort.conf
65
install -D -m644 "${srcdir}"/snort.service "${pkgdir}"/usr/lib/systemd/system/snort.service
66
install -D -m644 /dev/null "${pkgdir}"/etc/snort/rules/snort.rules
67
install -D -m644 /dev/null "${pkgdir}"/etc/snort/lists/default.blocklist
68
install -D -m644 /dev/null "${pkgdir}"/etc/snort/lists/default.allowlist
69
echo -e "HOME_NET = [[ 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 ]]\nEXTERNAL_NET = 'any'" > "${pkgdir}"/etc/snort/homenet.lua
70
echo -e '#pulledpork will put rules here in snort.rules\n#alert icmp any any -> any any ( msg:"ICMP Traffic Detected"; sid:10000001; metadata:policy security-ips alert; )' > "${pkgdir}"/etc/snort/rules/local.rules
71
chmod 0644 "${pkgdir}"/etc/snort/{homenet.lua,rules/{local,snort}.rules}
72
73
# rule files and other settings
74
sed -i -e "/^EXTERNAL_NET\\s\\+=/ a include 'homenet.lua'" \
75
-e "/^HOME_NET\\s\\+=/ i -- we set HOME_NET and EXTERNAL_NET here or via an included file" \
76
-e 's/^\(HOME_NET\s\+=\)/--\1/g' \
77
-e 's/^\(EXTERNAL_NET\s\+=\)/--\1/g' \
78
"${pkgdir}"/etc/snort/snort.lua
79
sed -i -e "s/^\\(RULE_PATH\\s\\+=\\).*/\\1 'rules'/g" \
80
-e "s/^\\(BUILTIN_RULE_PATH\\s\\+=\\).*/\\1 'builtin_rules'/g" \
81
-e "s/^\\(PLUGIN_RULE_PATH\\s\\+=\\).*/\\1 'so_rules'/g" \
82
-e "s/^\\(WHITE_LIST_PATH\\s\\+=\\).*/\\1 'lists'/g" \
83
-e "s/^\\(BLACK_LIST_PATH\\s\\+=\\).*/\\1 'lists'/g" \
84
"${pkgdir}"/etc/snort/snort_defaults.lua
85
86
# OpenAppID files
87
install -d -m755 "${pkgdir}"/usr/lib/openappid/custom/{libs,lua,port}
88
cp -a --no-preserve=ownership -t "${pkgdir}"/usr/lib/openappid/ "${srcdir}"/odp
89
}
90
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 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 |