Commit graph

2,297 commits

Author SHA1 Message Date
trvon
66ab412657
ci: daemon-only build check workflow
Some checks failed
Daemon and eBPF build contracts / install-contracts (push) Has been cancelled
Daemon and eBPF build contracts / current-arch-bpf (push) Has been cancelled
Add a GitHub Actions workflow that exercises the daemon-only build and the
structural eBPF check, so the maintained-fork build path stays green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-05 16:58:22 -07:00
trvon
60cd4311a8
build: daemon-only fork build + Arch packaging, kernel-matched eBPF
Add a daemon-only build path (no Python GUI) that builds the eBPF objects
against the running kernel's headers, deriving the BPF DataLayout from
clang and finalizing with opt; a structural unprivileged check target; an
install path that never clobbers existing units/config/rules; an Arch
PKGBUILD.in + prepare.sh and a test_install.sh harness. Document the
workflow and the event-loss diagnostics in README.md and ebpf_prog/README.
Gitignore the compiled ebpf_prog/*.o artifacts.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-05 16:58:22 -07:00
trvon
0be4f7c4c4
daemon: event-loss diagnostics via per-module event_stats counters
Add fixed-size, process-lifetime counters (received/enqueued/dropped/
drained/dequeued/decoded/decode-errors/reader-errors/canceled) for the
process and DNS eBPF event paths, exposed as individually-atomic
snapshots. Wire DNSEventCounters and ProcessEventCounters through the
perf reader/enqueue/decode loop in daemon/dns and daemon/procmon/ebpf,
with a matching ebpf_prog/event_stats.h and a structural eBPF test.
Counters hold totals only, never event payloads.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-05 16:58:11 -07:00
trvon
8abb02a808
procmon: reuse verified executable checksums
Cache stable executable digests by file identity and algorithm, coalescing
concurrent requests within bounded limits. Revalidate opened files and
fall back to full hashing on misses or uncertainty.

Keep fallback lookups read-only and protect checksum map reads and logging.
Add regression coverage for reuse, mutation, failure and contention.
2026-11-03 15:05:53 -07:00
Gustavo Iñiguez Goia
a1353848ba
ui: fixed crash calling undefined variable 2026-07-27 01:33:38 +02:00
Gustavo Iñiguez Goia
999603e98a
ui: improved selecting the last row 2026-07-24 12:02:31 +02:00
Gustavo Iñiguez Goia
e7fdd23bfb
ui: added missing variable 2026-07-23 23:03:55 +02:00
Gustavo Iñiguez Goia
699678ec25
ui: improved rows selection/pagination
- fixed pagination when the last result set contains fewer rows than the
   view can display and the user navigates back to the previous page.
   and the user goes back to the previous batch of results.
 - selectItem: don't try to select rows with empty data.
2026-07-23 20:58:55 +02:00
Gustavo Iñiguez Goia
625f182284
ui: fixed fw rules contextual menu 2026-07-22 22:46:30 +02:00
Gustavo Iñiguez Goia
9e5348da2e
ui: improved rules/alerts deletion
- deselect selected rules/alerts after deleting them.
 - display a different question to delete alerts.
2026-07-22 22:31:08 +02:00
Gustavo Iñiguez Goia
5b3b2d71ac
ui: minor change to virustotal plugin
Display the sources that flagged an item (ip, domain, hash) taking into
account the number of suspicious results.
2026-07-22 14:59:59 +02:00
Gustavo Iñiguez Goia
a0825d919b
ui: improved setting currentIndex for keyboard navigation
When selecting rows with the mouse, update the current index to the
first or last row of the selection range, depending on the selection
direction (up/down).
This allows keyboard-based selection expansion and shrinking to work
correctly without losing the existing selection.
2026-07-21 01:56:26 +02:00
Gustavo Iñiguez Goia
f807555aa4
ui: improved row navigation+selection using keyboard.
- fixed navigating results with keys up/down and pageUp/Down.
 - improved selecting/handling rows with shift + ctrl.

in both cases taking pagination into account.
2026-07-20 01:37:39 +02:00
Gustavo Iñiguez Goia
5c79d4191c
ui: fixed setting scrollbar value when rows were selected
Partially fixed a bug setting views limit, when the user had selected
several rows.

The issue occured in this scenario:
 - the user selected several rows in a view.
 - switched to a different view.
 - returned to the previous view.
 - the query was properly configured with the limits but returned all
   results from the db.
 - as a result, the scrollbar didn't respect the configured limit, and
   instead, it was configured according to the total number of results
   of the db.

Now if the number of results exceed the view/query limit and the query
limit is not 0 (show all results), we'll use the query limit as the
maximum number of rows of the view.

We should verify that the query returns the expected number of results.
2026-07-09 00:16:23 +02:00
Gustavo Iñiguez Goia
b4dba6951e ui: improved selecting rows with key Up/Down 2026-07-08 20:18:21 +02:00
Gustavo Iñiguez Goia
34a5e391f0
Merge pull request #1604 from tredondo/fix/getclientconfig-rules-race
daemon: fix data race in getClientConfig iterating rules during load
2026-07-08 14:43:01 +02:00
Gustavo Iñiguez Goia
4ec90cb64d
ui: improved tab navigation
improved tab navigation (#1625) by skipping hidden tabs.
2026-07-08 12:10:35 +02:00
Gustavo Iñiguez Goia
f3a6ceed9c
Merge pull request #1625 from kudashevs/feature/tab_navigation_shortcuts
ui: add navigation between tabs
2026-07-08 02:16:43 +02:00
Gustavo Iñiguez Goia
d487124e93
Merge pull request #1622 from kudashevs/feature/trailing
fix: remove trailing spaces
2026-07-08 02:08:20 +02:00
Gustavo Iñiguez Goia
052d8192ab
Merge pull request #1616 from workturnedplay/patch-1
fix "font rendering" due to 000-allow-localhost6.json 's description
2026-07-08 01:26:36 +02:00
Gustavo Iñiguez Goia
d82da6db09 ui: removed debugging messages 2026-07-07 15:45:05 +02:00
Gustavo Iñiguez Goia
73cedc8b48
Bump packages version to v1.9.0 2026-07-06 23:06:55 +02:00
Gustavo Iñiguez Goia
847df747f5
updated fw port tests 2026-07-06 21:05:14 +02:00
Gustavo Iñiguez Goia
75c4f39350 ui: removed more undefined variables
Following #1613, removed some more undefined variables.
2026-07-06 15:28:00 +02:00
Gustavo Iñiguez Goia
8bd8f59fb5
fixed "non-constant format string" error 2026-07-06 14:56:26 +02:00
Gustavo Iñiguez Goia
eca05a9cd1
Bumped cilium/ebpf version to 0.22
- added compatibility with Linux 7.1 and above.
- global BTF cache no longer enabled by default, which should reduce
  daemon mem usage by ~20MB.

https://github.com/cilium/ebpf/releases#release-v0.22.0
2026-07-06 11:46:34 +02:00
Gustavo Iñiguez Goia
df8390e57f
minor performance improvements
Replaced calls Sprint/Sprintf in hot paths with internal ConcatStrings,
improving string concatenation performance by approximately ~2x-~10x.
2026-07-06 01:46:11 +02:00
Gustavo Iñiguez Goia
6963dc4595
ui: fixed crash showing notifications
fixed by tuna4ll in #1627.

Closes: #1613
2026-07-05 13:03:39 +02:00
Gustavo Iñiguez Goia
fe16723145
fixed minor leak when logging debug messages 2026-07-03 22:25:48 +02:00
Gustavo Iñiguez Goia
bb0f3bc1c9
ui: fixed crash pressing space key 2026-07-03 22:14:59 +02:00
Gustavo Iñiguez Goia
f89c8d74af
ui: removed unused systray icon
to save some memory.
2026-06-23 10:49:25 +02:00
Gustavo Iñiguez Goia
0ed9a5da69
ui: fixed Highlight plugin crash when colorizing rows 2026-06-23 10:45:51 +02:00
Gustavo Iñiguez Goia
dd04c5bab2
ui: allow to close main window tabs
Now users can decide if show or hide main window tabs.
There's no much difference on mem usage (if any at all, at least for now).
2026-06-21 12:33:24 +02:00
Gustavo Iñiguez Goia
c4e6ede5a1
ui: reduce mem usage when using the ASN database
Previously we loaded the ASN database unconditionally if the package
pyasn was installed, in order to lookup the network name associated with
an IP address.

As a result, the database was loaded into memory, even if you never
opened the Address tab, which we assume is not that common.

Now the DB will only be loaded when clicking on the Address tab, and
will be unloaded when closing the main window (loading the DB for the
first time takes a few milliseconds, or less).

This change reduces the memory usage by approximately 150MB of RAM for
most users that have the pyasn package installed.

 Also:
 - removed unused imports.
 - imports reordered.
2026-06-19 00:21:30 +02:00
Gustavo Iñiguez Goia
bfd8726f1a
ui: add missing import (generictableview) 2026-06-18 01:29:26 +02:00
Gustavo Iñiguez Goia
954b5eef51
ui: added missing import 2026-06-18 01:25:51 +02:00
Gustavo Iñiguez Goia
4644f699af
ui: show current view limit and offset when paginating 2026-06-18 00:45:46 +02:00
Gustavo Iñiguez Goia
5a03c6a20f
ui,highlight: fixed applying styles 2026-06-18 00:20:31 +02:00
Gustavo Iñiguez Goia
cb1cf96205
ui: added documentation for the Highlight and Virustotal plugins 2026-06-17 23:12:27 +02:00
Gustavo Iñiguez Goia
45b6e8a1c2
ui: fixed highlighting rows with the Highlight plugin 2026-06-17 23:04:33 +02:00
Kudashev Sergey
f47bce0893 ui: add navigation between tabs
Closes #1624
2026-06-17 12:11:43 +02:00
Kudashev Sergey
1672bde4ed fix: remove trailing spaces 2026-06-15 23:42:54 +02:00
Gustavo Iñiguez Goia
1aabad3bbc
ui: improved virustotal plugin
- fixed error that sent multicast addresses to analyze.
 - new configuration options:
   - allow to configure the plugin log level.
   - allow to change icon if the outbound connection is malicious.
   - allow to change the popup default action.
   - use community score, reputation or suspicious option to
     compute total malicious score.
   - allow to define ips and domains exclusions.
2026-06-15 18:00:36 +02:00
Gustavo Iñiguez Goia
7d9ca1f951
ui: improved rows selection
Now row selection while pressing shift is not limited by the view
(query) limit. Users now can select rows across paginated results.

 - fixed crash in some systems when paginating results (fillVisibleRows).
 - now key up/down while pressing shift select rows.
 - ensure that row numbers are refreshed when paginating results.
2026-06-12 23:10:09 +02:00
Gustavo Iñiguez Goia
2def136c62
ui,popups: improved checksum management
When a binary checksum mismatch occurs and you click on the checksums
warning:

 - fixed error when updating a rule's checksum. Regardless of the
   rule selected in the combobox, always the last one was updated.
 - the last updated rule is now displayed first in the rules combobox.
2026-06-09 17:25:23 +02:00
Gustavo Iñiguez Goia
3dab8013bd
ui: disable temporary expired rules on start
In some cases, temporary rules were not being marked as disabled on the
database, making it difficult to see which temporary rules were active
or not (for example when the GUI was closed, a temporary rule expired in
the daemon, and the GUI was launched again).

Now when launching the GUI, we'll mark expired rules as not enabled,
including 'until-restart' rules.

When the daemon connects to the GUI, it'll send the list of active rules,
and the database will be updated accordingly.

This change will also reduce the number of rules displayed when
a binary checksum mismatch occurs (pop-ups, checksums). Sometimes when
the invalid checksum warning was displayed, we listed rules that
were no longer active.
2026-06-09 09:54:10 +02:00
workturnedplay
17428ae483
fix UI due to 000-allow-localhost6.json description
the description for this rule, in the UI, vertically centers the 3 lines(2 text and one empty newline in the middle) thus showing only a few pixels of the first and last lines' text as the description for this rule making you believe there's something wrong with the font rendering. Removing one `\n` allows the two text lines to remain visible enough to be readable.
2026-06-08 21:12:54 +02:00
Ted Robertson
5e12a0baef daemon: fix data race in getClientConfig iterating rules during load
Loader.GetAll() returned the loader internal map by reference under an

RLock that was released as the call returned. getClientConfig() then

called GetAll() twice -- once for len() to size a slice, once to range

over the entries -- without holding any lock. A concurrent goroutine

(e.g. the loader still synchronously processing rules during

reloadConfiguration) writing to the map between the two calls makes the

iteration yield more entries than the pre-sized slice, panicking with

"index out of range [N] with length N". On bad luck the Go runtime

trips "concurrent map iteration and map write" instead.

The race is reachable on real systems whenever the UI poller, started

by reloadConfiguration via c.Connect(), reconnects before

c.rules.Reload(path) finishes loading rules from disk. Consistently

reproducible with ~2100 rules on disk.

Make GetAll() return a shallow snapshot of the rule map under the read

lock so length and iteration are guaranteed consistent for the caller.

Update the one caller (getClientConfig) to take the snapshot once.

Add a regression test running concurrent writers and readers against

the loader; -race catches the original bug, and the new GetAll

contract makes it pass.
2026-05-19 02:03:26 -07:00
nvdx
f78177d6a5
daemon: rule lists operators caching + lists matching enhancements (#1567)
* daemon-go: port layered list caching and matching strategies

* daemon-go: use immutable rule/list snapshots and add load benchmarks

* daemon-go: dropped gobwas, rule/list now use go filepath.Match for globbing
2026-04-18 00:35:31 +02:00
Gustavo Iñiguez Goia
32df33c80d
pkg,rpm: updated ui pyqt6 dependency package
In ff05d94f41 python311-PyQt6 was added as
dependency, to help users install some needed dependencies automatically
on old versions of Tumbleweed.

However on new versions, it also install this package, which is not the
default python3 version. Besides, python3-qt6 exists as dependency on
latest versions.

So let's use again python3-qt6 for SuSe. If someone wants to install the
GUI on older versions of Tumbleweed (~2024-2025), they'll need to
install PyQt6 via pip.

Closes: #1576
2026-04-14 22:17:41 +02:00