]> git.ipfire.org Git - suricata-reporter.git/log
suricata-reporter.git
7 hours agoconfigure: Bump version to 0.5 master 0.5
Michael Tremer [Fri, 7 Nov 2025 14:28:41 +0000 (14:28 +0000)] 
configure: Bump version to 0.5

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 days agoreporter: Serialize writes to the database
Michael Tremer [Mon, 27 Oct 2025 16:22:59 +0000 (16:22 +0000)] 
reporter: Serialize writes to the database

sqlite3 can obviously have only one writer at a time. Some operations
like cleaning up the database can take a couple of seconds during which
other write operations might time out and will be dropped. Therefore we
are introducing a lock so that only one operation at a time is trying to
write to the database. This shouldn't cause any problems during normal
operation, but will block any writers when the database is being cleaned
up or optimised.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
4 weeks agoconfigure: Bump version to 0.4 0.4
Michael Tremer [Tue, 7 Oct 2025 15:08:16 +0000 (15:08 +0000)] 
configure: Bump version to 0.4

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
6 weeks agoreporter: Fix cleanup job
Michael Tremer [Wed, 24 Sep 2025 15:57:03 +0000 (15:57 +0000)] 
reporter: Fix cleanup job

Since SQLite3 does not automatically parse any timestamps, usually all
events were dropped because of an inconsistent comparison.

This patch will now convert the timestamp into float, so it can be
better compared to the timestamp which is stored as a REAL.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
6 weeks agogenerator: Open the database in read-only mode
Michael Tremer [Wed, 24 Sep 2025 15:32:04 +0000 (15:32 +0000)] 
generator: Open the database in read-only mode

The generator does not need to write to the database at all. Therefore
we can tell the driver to open it in read-only mode to be able to
generate reports from any user that is allowed to read from the
database, but not write to it (i.e. the web UI).

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
6 weeks agogenerator: Refuse to write the PDF to a terminal
Michael Tremer [Mon, 22 Sep 2025 13:01:18 +0000 (13:01 +0000)] 
generator: Refuse to write the PDF to a terminal

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
6 weeks agogenerator: Implement writing the output to stdout
Michael Tremer [Mon, 22 Sep 2025 12:56:24 +0000 (12:56 +0000)] 
generator: Implement writing the output to stdout

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agoreporter: Fix another typo
Michael Tremer [Mon, 15 Sep 2025 15:36:13 +0000 (15:36 +0000)] 
reporter: Fix another typo

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agoconfigure: Bump version to 0.3 0.3
Michael Tremer [Sun, 14 Sep 2025 13:37:30 +0000 (13:37 +0000)] 
configure: Bump version to 0.3

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agogenerator: Add a summary of high severity alerts
Michael Tremer [Sun, 14 Sep 2025 12:02:14 +0000 (12:02 +0000)] 
generator: Add a summary of high severity alerts

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agopo: Update the German translation
Michael Tremer [Sun, 14 Sep 2025 11:15:49 +0000 (11:15 +0000)] 
po: Update the German translation

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agogenerator: Make the host clearer on the title page
Michael Tremer [Sun, 14 Sep 2025 11:14:47 +0000 (11:14 +0000)] 
generator: Make the host clearer on the title page

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 weeks agogenerator: Show a note when there have been no alerts
Michael Tremer [Sun, 14 Sep 2025 11:04:27 +0000 (11:04 +0000)] 
generator: Show a note when there have been no alerts

It seems to make more sense to explicitely show this instead of
generating reports that only have a title page.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agoconfigure: Bump version to 0.2 0.2
Michael Tremer [Wed, 3 Sep 2025 17:39:58 +0000 (17:39 +0000)] 
configure: Bump version to 0.2

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agopo: Remove Makefile.in
Michael Tremer [Wed, 3 Sep 2025 17:39:42 +0000 (17:39 +0000)] 
po: Remove Makefile.in

This should not be under version control.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agoreporter: Only optimize the database once
Michael Tremer [Wed, 3 Sep 2025 14:55:14 +0000 (14:55 +0000)] 
reporter: Only optimize the database once

This helps with contention issues and avoids running this multiple times
which is pointless.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agoreporter: Remove all data older than 5 years from the database
Michael Tremer [Wed, 3 Sep 2025 14:45:22 +0000 (14:45 +0000)] 
reporter: Remove all data older than 5 years from the database

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agoreporter: Fix typo in email
Michael Tremer [Wed, 3 Sep 2025 13:01:16 +0000 (13:01 +0000)] 
reporter: Fix typo in email

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agopo: Update POFILES.in
Michael Tremer [Wed, 3 Sep 2025 13:01:04 +0000 (13:01 +0000)] 
po: Update POFILES.in

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agoREADME: Add note about Bugzilla
Michael Tremer [Wed, 3 Sep 2025 10:30:40 +0000 (10:30 +0000)] 
README: Add note about Bugzilla

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agoreporter: Implement filtering email alerts by severity
Michael Tremer [Wed, 3 Sep 2025 10:27:20 +0000 (10:27 +0000)] 
reporter: Implement filtering email alerts by severity

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agoreporter: Add the alert severity to the email headers
Michael Tremer [Wed, 3 Sep 2025 10:21:46 +0000 (10:21 +0000)] 
reporter: Add the alert severity to the email headers

That way, we can create filter rules that perform certain actions
depending on the value.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agoMakefile: Add a little helper to upload a release tarball
Michael Tremer [Sun, 31 Aug 2025 15:33:36 +0000 (15:33 +0000)] 
Makefile: Add a little helper to upload a release tarball

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agocron: Send reports in the system's default language 0.1
Michael Tremer [Sun, 31 Aug 2025 15:23:58 +0000 (15:23 +0000)] 
cron: Send reports in the system's default language

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months ago.gitignore: Ignore any release tarballs
Michael Tremer [Sun, 31 Aug 2025 15:20:02 +0000 (15:20 +0000)] 
.gitignore: Ignore any release tarballs

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agopo: Provide a German translation
Michael Tremer [Sun, 31 Aug 2025 15:19:36 +0000 (15:19 +0000)] 
po: Provide a German translation

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agopo: Ensure all strings are being translated
Michael Tremer [Sun, 31 Aug 2025 15:09:07 +0000 (15:09 +0000)] 
po: Ensure all strings are being translated

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agoUse gettext to translate strings
Michael Tremer [Sun, 31 Aug 2025 15:02:58 +0000 (15:02 +0000)] 
Use gettext to translate strings

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agogenerator: Allow to overwrite the locale
Michael Tremer [Sun, 31 Aug 2025 15:00:26 +0000 (15:00 +0000)] 
generator: Allow to overwrite the locale

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agoreporter: Use threads instead of worker processes
Michael Tremer [Sun, 31 Aug 2025 14:01:59 +0000 (14:01 +0000)] 
reporter: Use threads instead of worker processes

Python seems to have a lot of issues when it comes to multiprocessing.
Since we won't have too much CPU-bound stuff to do here, we could also
switch to a thread-based model which would eliminate any queue
synchronisation issues between the parent and the worker processes.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agoreporter: Log the entire exception if something unhandled happened
Michael Tremer [Sun, 31 Aug 2025 13:56:54 +0000 (13:56 +0000)] 
reporter: Log the entire exception if something unhandled happened

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agoreporter: Open and close the database in the worker process
Michael Tremer [Sun, 31 Aug 2025 13:56:23 +0000 (13:56 +0000)] 
reporter: Open and close the database in the worker process

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agoreporter: Translate severity to strings in emails
Michael Tremer [Sun, 31 Aug 2025 12:36:52 +0000 (12:36 +0000)] 
reporter: Translate severity to strings in emails

This is much easier to understand than just a random number.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agogenerator: Express the rule severity by colors
Michael Tremer [Sun, 31 Aug 2025 12:32:39 +0000 (12:32 +0000)] 
generator: Express the rule severity by colors

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agogenerator: Use Prompt as default font
Michael Tremer [Sun, 31 Aug 2025 11:59:44 +0000 (11:59 +0000)] 
generator: Use Prompt as default font

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agogenerator: Implement better line wrapping in the table
Michael Tremer [Sun, 31 Aug 2025 11:43:06 +0000 (11:43 +0000)] 
generator: Implement better line wrapping in the table

Sometimes the signature names are very long and we need to be able to
wrap the next which is only possible by using Paragraph() inside the
individual table cells.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agoFix shebangs
Michael Tremer [Sun, 31 Aug 2025 11:42:47 +0000 (11:42 +0000)] 
Fix shebangs

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agoMakefile.am: Fix indentation
Michael Tremer [Thu, 21 Aug 2025 14:56:53 +0000 (14:56 +0000)] 
Makefile.am: Fix indentation

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agoDynamically replace /var/run
Michael Tremer [Thu, 21 Aug 2025 14:56:10 +0000 (14:56 +0000)] 
Dynamically replace /var/run

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agoUpdate paths in reporter.conf, too
Michael Tremer [Thu, 21 Aug 2025 14:54:02 +0000 (14:54 +0000)] 
Update paths in reporter.conf, too

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agoDynamically replace the configuration directory
Michael Tremer [Thu, 21 Aug 2025 14:52:26 +0000 (14:52 +0000)] 
Dynamically replace the configuration directory

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agoDynamically replace the logging directory
Michael Tremer [Thu, 21 Aug 2025 14:49:47 +0000 (14:49 +0000)] 
Dynamically replace the logging directory

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agoUse the Python interpreter that the configure script has detected
Michael Tremer [Thu, 21 Aug 2025 14:44:01 +0000 (14:44 +0000)] 
Use the Python interpreter that the configure script has detected

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agoIntroduce autotools
Michael Tremer [Thu, 21 Aug 2025 14:41:18 +0000 (14:41 +0000)] 
Introduce autotools

This will check for the required Python modules and install all the
scripts to the right places.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agosuricata-reporter: Fix syntax difference to fast.log
Michael Tremer [Thu, 21 Aug 2025 13:41:55 +0000 (13:41 +0000)] 
suricata-reporter: Fix syntax difference to fast.log

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agosuricata-report-generator: Implement sending reports via email
Michael Tremer [Mon, 11 Aug 2025 13:28:24 +0000 (14:28 +0100)] 
suricata-report-generator: Implement sending reports via email

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agosuricata-report-generator: Don't print rows
Michael Tremer [Mon, 11 Aug 2025 13:28:00 +0000 (14:28 +0100)] 
suricata-report-generator: Don't print rows

This is a left-over debug statement.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agosuricata: Automatically email reports once per month/week/day
Michael Tremer [Mon, 11 Aug 2025 11:47:55 +0000 (12:47 +0100)] 
suricata: Automatically email reports once per month/week/day

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agosuricata-reporter: Add ability to reload the configuration
Michael Tremer [Sat, 9 Aug 2025 14:14:53 +0000 (15:14 +0100)] 
suricata-reporter: Add ability to reload the configuration

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agosuricata-report-generator: Add all alerts in full detail
Michael Tremer [Thu, 7 Aug 2025 16:32:13 +0000 (17:32 +0100)] 
suricata-report-generator: Add all alerts in full detail

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agosuricata-report-generator: Render a PDF document and give it a title page
Michael Tremer [Thu, 7 Aug 2025 14:07:29 +0000 (15:07 +0100)] 
suricata-report-generator: Render a PDF document and give it a title page

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agosuricata-report-generator: Allow span selection
Michael Tremer [Thu, 7 Aug 2025 10:28:20 +0000 (11:28 +0100)] 
suricata-report-generator: Allow span selection

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agosuricata-report-generator: Create some scaffolding
Michael Tremer [Thu, 7 Aug 2025 10:04:44 +0000 (11:04 +0100)] 
suricata-report-generator: Create some scaffolding

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agosuricata-reporter: Create a example configuration file
Michael Tremer [Wed, 6 Aug 2025 16:56:34 +0000 (17:56 +0100)] 
suricata-reporter: Create a example configuration file

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agosuricata-reporter: Add source/destination ports to the emails, too
Michael Tremer [Wed, 6 Aug 2025 16:03:56 +0000 (17:03 +0100)] 
suricata-reporter: Add source/destination ports to the emails, too

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agosuricata-reporter: Don't let workers terminate if something goes wrong
Michael Tremer [Wed, 6 Aug 2025 16:00:02 +0000 (17:00 +0100)] 
suricata-reporter: Don't let workers terminate if something goes wrong

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agosuricata-reporter: Log any alerts to a database
Michael Tremer [Wed, 6 Aug 2025 15:58:21 +0000 (16:58 +0100)] 
suricata-reporter: Log any alerts to a database

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agosuricata-reporter: Make ownership of the socket configurable
Michael Tremer [Wed, 6 Aug 2025 15:24:29 +0000 (16:24 +0100)] 
suricata-reporter: Make ownership of the socket configurable

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agosuricata-reporter: Make the socket path configurable
Michael Tremer [Wed, 6 Aug 2025 15:09:02 +0000 (16:09 +0100)] 
suricata-reporter: Make the socket path configurable

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agosuricata-reporter: Make the number of workers configurable
Michael Tremer [Wed, 6 Aug 2025 15:06:23 +0000 (16:06 +0100)] 
suricata-reporter: Make the number of workers configurable

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agosuricata-reporter: Create capability to send alerts to syslog
Michael Tremer [Wed, 6 Aug 2025 15:01:56 +0000 (16:01 +0100)] 
suricata-reporter: Create capability to send alerts to syslog

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agosuricata-reporter: Read the email configuration from file
Michael Tremer [Wed, 6 Aug 2025 14:31:51 +0000 (15:31 +0100)] 
suricata-reporter: Read the email configuration from file

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agosuricata-reporter: Read a configuration file
Michael Tremer [Wed, 6 Aug 2025 14:12:14 +0000 (15:12 +0100)] 
suricata-reporter: Read a configuration file

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agosuricata-reporter: Parse alerts and generate emails
Michael Tremer [Wed, 6 Aug 2025 14:04:31 +0000 (15:04 +0100)] 
suricata-reporter: Parse alerts and generate emails

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agosuricata: Enable EVE logging to the reporter
Michael Tremer [Wed, 6 Aug 2025 10:13:14 +0000 (11:13 +0100)] 
suricata: Enable EVE logging to the reporter

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agosuricata-reporter: Replace logic on termination signals
Michael Tremer [Tue, 5 Aug 2025 17:07:57 +0000 (18:07 +0100)] 
suricata-reporter: Replace logic on termination signals

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agosuricata-reporter: Close the queue on termination
Michael Tremer [Tue, 5 Aug 2025 17:07:30 +0000 (18:07 +0100)] 
suricata-reporter: Close the queue on termination

This will allow us to not have an extra signal to check across
processes.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agosuricata-reporter: Create a listening socket
Michael Tremer [Tue, 5 Aug 2025 15:04:52 +0000 (16:04 +0100)] 
suricata-reporter: Create a listening socket

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agosuricata-reporter: Handle signals to gracefully terminate
Michael Tremer [Tue, 5 Aug 2025 14:33:47 +0000 (15:33 +0100)] 
suricata-reporter: Handle signals to gracefully terminate

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agosuricata-reporter: Create a queue we can push events into the workers with
Michael Tremer [Tue, 5 Aug 2025 14:25:04 +0000 (15:25 +0100)] 
suricata-reporter: Create a queue we can push events into the workers with

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agosuricata-reporter: Create a couple of worker processes
Michael Tremer [Tue, 5 Aug 2025 14:18:15 +0000 (15:18 +0100)] 
suricata-reporter: Create a couple of worker processes

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 months agosuricata-reporter: Create some scaffolding
Michael Tremer [Tue, 5 Aug 2025 14:03:14 +0000 (15:03 +0100)] 
suricata-reporter: Create some scaffolding

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>