Commit 9f17aff
committed
fix: use WARNING prefix for monitoring-only alerts, handle all TCP states in lsof
- Network monitor alerts now use 'WARNING [rule_id]' instead of
'BLOCKED [rule_id]' to accurately reflect monitoring-only detection
- Dashboard regex updated to match both BLOCKED and WARNING prefixes
- lsof parser now handles all TCP states (SYN_SENT, CLOSE_WAIT, etc.)
not just ESTABLISHED; skips LISTEN sockets
- E2E test verified: connection to blocked IP-005 (144.76.217.73)
detected and alert shown in dashboard1 parent 74ffef7 commit 9f17aff
2 files changed
+13
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
327 | | - | |
328 | | - | |
329 | | - | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
330 | 331 | | |
331 | 332 | | |
332 | 333 | | |
333 | 334 | | |
334 | 335 | | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
335 | 339 | | |
336 | 340 | | |
337 | 341 | | |
338 | | - | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
339 | 345 | | |
340 | 346 | | |
341 | 347 | | |
| |||
357 | 363 | | |
358 | 364 | | |
359 | 365 | | |
360 | | - | |
| 366 | + | |
361 | 367 | | |
362 | 368 | | |
363 | 369 | | |
| |||
380 | 386 | | |
381 | 387 | | |
382 | 388 | | |
383 | | - | |
| 389 | + | |
384 | 390 | | |
385 | 391 | | |
386 | 392 | | |
| |||
0 commit comments