From bf1d4e5a913c46beec25e8be64d09478d5317b2f Mon Sep 17 00:00:00 2001 From: Tomas Cejka Date: Tue, 24 Nov 2026 18:49:49 +0100 Subject: [PATCH 1/8] blaclist2idea: fixed Ref - encode brackets in URL After putting AUTHTOKEN parameter into blacklist URL, it is necessary to encode '{' and '}' characters. Otherwise it falls in IDEA validation. --- report2idea/blacklist/blacklist2idea.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/report2idea/blacklist/blacklist2idea.py b/report2idea/blacklist/blacklist2idea.py index 02105302..4e27c8ee 100755 --- a/report2idea/blacklist/blacklist2idea.py +++ b/report2idea/blacklist/blacklist2idea.py @@ -38,6 +38,8 @@ def __init__(self, rec, bl): self.rec = rec self.bl = bl self.protocol = "" + # encode potential { } characters in URL + bl["source"] = bl["source"].replace("{", "%7B").replace("}", "%7D") if rec["protocol"] in proto_conv: self.protocol = proto_conv[rec["protocol"]] From c0dd41aa2f5caabfbe54e271b1196ae5fbf484ca Mon Sep 17 00:00:00 2001 From: Tomas Cejka Date: Tue, 24 Nov 2026 19:49:30 +0100 Subject: [PATCH 2/8] github: update installation of python modules --- .github/workflows/c-cpp.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 4fa16f9f..65d28a16 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -16,8 +16,8 @@ jobs: - name: Install dependencies run: | sudo apt-get update - sudo apt-get -y install git build-essential autoconf libtool libpcap-dev pkg-config libxml2-dev gawk libcurl4-openssl-dev libxml2-dev libyaml-dev make python3 python3-dev python3-pip python3-setuptools - ( sudo pip3 install ply PyYAML pynspect; git clone --depth 1 https://github.com/CESNET/nemea-framework /tmp/nemea-framework; cd /tmp/nemea-framework; ./bootstrap.sh &&./configure --bindir=/usr/bin/nemea/ -q &&make -j10 && sudo make install; sudo ldconfig; (cd pytrap && sudo python3 setup.py install;); (cd pycommon && sudo pip3 install --upgrade MarkupSafe; sudo python3 setup.py install;); ) + sudo apt-get -y install git build-essential autoconf libtool libpcap-dev pkg-config libxml2-dev gawk libcurl4-openssl-dev libxml2-dev libyaml-dev make python3 python3-dev python3-pip + ( sudo pip3 install --break-system-packages ply PyYAML pynspect; git clone --depth 1 https://github.com/CESNET/nemea-framework /tmp/nemea-framework; cd /tmp/nemea-framework; ./bootstrap.sh &&./configure --bindir=/usr/bin/nemea/ -q &&make -j10 && sudo make install; sudo ldconfig; (cd pytrap && sudo pip3 install --break-system-packages . ;); (cd pycommon && sudo pip3 install --upgrade MarkupSafe; sudo pip3 install --break-system-packages . ;); ) git submodule init && git submodule update - name: autoreconf run: autoreconf -i From 5587bfb84f3a5e4f1f2f96e13cb2f26796cf9013 Mon Sep 17 00:00:00 2001 From: Tomas Cejka Date: Tue, 24 Nov 2026 19:55:20 +0100 Subject: [PATCH 3/8] fixup! github: update installation of python modules --- .github/workflows/c-cpp.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 65d28a16..cf0f6e45 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -17,7 +17,7 @@ jobs: run: | sudo apt-get update sudo apt-get -y install git build-essential autoconf libtool libpcap-dev pkg-config libxml2-dev gawk libcurl4-openssl-dev libxml2-dev libyaml-dev make python3 python3-dev python3-pip - ( sudo pip3 install --break-system-packages ply PyYAML pynspect; git clone --depth 1 https://github.com/CESNET/nemea-framework /tmp/nemea-framework; cd /tmp/nemea-framework; ./bootstrap.sh &&./configure --bindir=/usr/bin/nemea/ -q &&make -j10 && sudo make install; sudo ldconfig; (cd pytrap && sudo pip3 install --break-system-packages . ;); (cd pycommon && sudo pip3 install --upgrade MarkupSafe; sudo pip3 install --break-system-packages . ;); ) + ( sudo pip3 install --break-system-packages --root-user-action ply PyYAML pynspect; git clone --depth 1 https://github.com/CESNET/nemea-framework /tmp/nemea-framework; cd /tmp/nemea-framework; ./bootstrap.sh &&./configure --bindir=/usr/bin/nemea/ -q &&make -j10 && sudo make install; sudo ldconfig; (cd pytrap && sudo pip3 install --break-system-packages --root-user-action . ;); (cd pycommon && sudo pip3 install --upgrade --root-user-action MarkupSafe; sudo pip3 install --break-system-packages --root-user-action . ;); ) git submodule init && git submodule update - name: autoreconf run: autoreconf -i From 1a788310ca5546232c5edba2078187d58b9343b7 Mon Sep 17 00:00:00 2001 From: Tomas Cejka Date: Tue, 24 Nov 2026 19:59:04 +0100 Subject: [PATCH 4/8] fixup! github: update installation of python modules --- .github/workflows/c-cpp.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index cf0f6e45..936be25b 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -17,7 +17,7 @@ jobs: run: | sudo apt-get update sudo apt-get -y install git build-essential autoconf libtool libpcap-dev pkg-config libxml2-dev gawk libcurl4-openssl-dev libxml2-dev libyaml-dev make python3 python3-dev python3-pip - ( sudo pip3 install --break-system-packages --root-user-action ply PyYAML pynspect; git clone --depth 1 https://github.com/CESNET/nemea-framework /tmp/nemea-framework; cd /tmp/nemea-framework; ./bootstrap.sh &&./configure --bindir=/usr/bin/nemea/ -q &&make -j10 && sudo make install; sudo ldconfig; (cd pytrap && sudo pip3 install --break-system-packages --root-user-action . ;); (cd pycommon && sudo pip3 install --upgrade --root-user-action MarkupSafe; sudo pip3 install --break-system-packages --root-user-action . ;); ) + ( sudo pip3 install --break-system-packages --root-user-action ignore ply PyYAML pynspect; git clone --depth 1 https://github.com/CESNET/nemea-framework /tmp/nemea-framework; cd /tmp/nemea-framework; ./bootstrap.sh &&./configure --bindir=/usr/bin/nemea/ -q &&make -j10 && sudo make install; sudo ldconfig; (cd pytrap && sudo pip3 install --break-system-packages --root-user-action ignore . ;); (cd pycommon && sudo pip3 install --upgrade --root-user-action ignore MarkupSafe; sudo pip3 install --break-system-packages --root-user-action ignore . ;); ) git submodule init && git submodule update - name: autoreconf run: autoreconf -i From 62fcb0d29deff8474b63b11030648ba860d4c5ac Mon Sep 17 00:00:00 2001 From: Tomas Cejka Date: Tue, 24 Nov 2026 20:02:58 +0100 Subject: [PATCH 5/8] fixup! github: update installation of python modules --- .github/workflows/c-cpp.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 936be25b..ecd3cab3 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -17,7 +17,7 @@ jobs: run: | sudo apt-get update sudo apt-get -y install git build-essential autoconf libtool libpcap-dev pkg-config libxml2-dev gawk libcurl4-openssl-dev libxml2-dev libyaml-dev make python3 python3-dev python3-pip - ( sudo pip3 install --break-system-packages --root-user-action ignore ply PyYAML pynspect; git clone --depth 1 https://github.com/CESNET/nemea-framework /tmp/nemea-framework; cd /tmp/nemea-framework; ./bootstrap.sh &&./configure --bindir=/usr/bin/nemea/ -q &&make -j10 && sudo make install; sudo ldconfig; (cd pytrap && sudo pip3 install --break-system-packages --root-user-action ignore . ;); (cd pycommon && sudo pip3 install --upgrade --root-user-action ignore MarkupSafe; sudo pip3 install --break-system-packages --root-user-action ignore . ;); ) + ( sudo pip3 install --break-system-packages --root-user-action ignore ply PyYAML pynspect; git clone --depth 1 https://github.com/CESNET/nemea-framework /tmp/nemea-framework; cd /tmp/nemea-framework; ./bootstrap.sh &&./configure --bindir=/usr/bin/nemea/ -q &&make -j10 && sudo make install; sudo ldconfig; (cd pytrap && sudo pip3 install --break-system-packages --root-user-action ignore . ;); (cd pycommon && sudo pip3 install --break-system-packages --root-user-action ignore . ;); ) git submodule init && git submodule update - name: autoreconf run: autoreconf -i From 9418a821b400c53d6332bab403a310c998ff129e Mon Sep 17 00:00:00 2001 From: Tomas Cejka Date: Tue, 24 Nov 2026 20:09:00 +0100 Subject: [PATCH 6/8] flow_age_stats: fixed compilation error --- flow_age_stats/flow_age_stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flow_age_stats/flow_age_stats.c b/flow_age_stats/flow_age_stats.c index bf710cdf..b4b7b328 100644 --- a/flow_age_stats/flow_age_stats.c +++ b/flow_age_stats/flow_age_stats.c @@ -150,7 +150,7 @@ int main(int argc, char **argv) TRAP_REGISTER_DEFAULT_SIGNAL_HANDLER(); FILE* out = NULL; - int file = NULL; + int file = 0; /** * Handling of arguments */ From 9d9520e4864162d04ab1e5319c7edd5b0e3c72bb Mon Sep 17 00:00:00 2001 From: Tomas Cejka Date: Tue, 24 Nov 2026 20:33:31 +0100 Subject: [PATCH 7/8] fixup! github: update installation of python modules --- .github/workflows/codeql-analysis.yml | 4 ++-- .github/workflows/coverity.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 34428cf7..4a2b92bc 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -30,8 +30,8 @@ jobs: - name: Install dependencies run: | sudo apt-get update - sudo apt-get -y install git build-essential autoconf libtool libpcap-dev pkg-config libxml2-dev gawk libcurl4-openssl-dev libxml2-dev libyaml-dev make python3 python3-dev python3-pip python3-setuptools - ( sudo pip3 install ply PyYAML pynspect; git clone --depth 1 https://github.com/CESNET/nemea-framework /tmp/nemea-framework; cd /tmp/nemea-framework; ./bootstrap.sh &&./configure --bindir=/usr/bin/nemea/ -q &&make -j10 && sudo make install; sudo ldconfig; (cd pytrap && sudo python3 setup.py install;); (cd pycommon && sudo pip3 install --upgrade MarkupSafe; sudo python3 setup.py install;); ) + sudo apt-get -y install git build-essential autoconf libtool libpcap-dev pkg-config libxml2-dev gawk libcurl4-openssl-dev libxml2-dev libyaml-dev make python3 python3-dev python3-pip + ( sudo pip3 install --break-system-packages --root-user-action ignore ply PyYAML pynspect; git clone --depth 1 https://github.com/CESNET/nemea-framework /tmp/nemea-framework; cd /tmp/nemea-framework; ./bootstrap.sh &&./configure --bindir=/usr/bin/nemea/ -q &&make -j10 && sudo make install; sudo ldconfig; (cd pytrap && sudo pip3 install --break-system-packages --root-user-action ignore . ;); (cd pycommon && sudo pip3 install --break-system-packages --root-user-action ignore . ;); ) git submodule init && git submodule update # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index 19e51cad..6f28dd98 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -16,8 +16,8 @@ jobs: - name: Install dependencies run: | sudo apt-get update - sudo apt-get -y install git build-essential autoconf libtool libpcap-dev pkg-config libxml2-dev gawk libcurl4-openssl-dev libxml2-dev libyaml-dev make python3 python3-dev python3-pip python3-setuptools - ( sudo pip3 install ply PyYAML pynspect; git clone --depth 1 https://github.com/CESNET/nemea-framework /tmp/nemea-framework; cd /tmp/nemea-framework; ./bootstrap.sh &&./configure --bindir=/usr/bin/nemea/ -q &&make -j10 && sudo make install; sudo ldconfig; (cd pytrap && sudo python3 setup.py install;); (cd pycommon && sudo pip3 install --upgrade MarkupSafe; sudo python3 setup.py install;); ) + sudo apt-get -y install git build-essential autoconf libtool libpcap-dev pkg-config libxml2-dev gawk libcurl4-openssl-dev libxml2-dev libyaml-dev make python3 python3-dev python3-pip + ( sudo pip3 install --break-system-packages --root-user-action ignore ply PyYAML pynspect; git clone --depth 1 https://github.com/CESNET/nemea-framework /tmp/nemea-framework; cd /tmp/nemea-framework; ./bootstrap.sh &&./configure --bindir=/usr/bin/nemea/ -q &&make -j10 && sudo make install; sudo ldconfig; (cd pytrap && sudo pip3 install --break-system-packages --root-user-action ignore . ;); (cd pycommon && sudo pip3 install --break-system-packages --root-user-action ignore . ;); ) git submodule init && git submodule update - name: autoreconf run: autoreconf -i From c11b38122c3c0e8bbca857b8512e278885197f33 Mon Sep 17 00:00:00 2001 From: Tomas Cejka Date: Tue, 24 Nov 2026 21:07:35 +0100 Subject: [PATCH 8/8] github: codecov add auth token --- .github/workflows/c-cpp.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index ecd3cab3..dd8cfc96 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -33,10 +33,11 @@ jobs: run: ./configure --enable-debug CXXFLAGS=-coverage CFLAGS=-coverage LDFLAGS=-lgcov - name: rebuild and check run: make clean; make check - - uses: codecov/codecov-action@v1 + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v5 with: + token: ${{ secrets.CODECOV_TOKEN }} flags: tests # optional name: nemea-modules # optional fail_ci_if_error: true # optional (default = false) verbose: true # optional (default = false) -