Skip to content

Commit

Permalink
feat(inventory): add suppression rules count to Snort facts
Browse files Browse the repository at this point in the history
  • Loading branch information
stephdl committed Jan 15, 2025
1 parent e976ab4 commit 005e349
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/nethsec/inventory/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,8 @@ def fact_snort(uci: EUci):

# count list of ns_disabled_rules
ret['disabled_rules'] = len(uci.get('snort', 'snort', 'ns_disabled_rules', list=True, default=[]))
# count list of ns_suppress rules
ret['suppress_rules'] = len(uci.get('snort', 'snort', 'ns_suppress', list=True, default=[]))
# count the source bypass of ipv4 and ipv6
ret['bypass_src_ipv4'] = len(uci.get('snort', 'nfq', 'bypass_src_v4', list=True, default=[]))
ret['bypass_src_ipv6'] = len(uci.get('snort', 'nfq', 'bypass_src_v6', list=True, default=[]))
Expand Down

0 comments on commit 005e349

Please sign in to comment.