diff --git a/config/cfgroot/ids-functions.pl b/config/cfgroot/ids-functions.pl index 468efc668..c4edd968d 100644 --- a/config/cfgroot/ids-functions.pl +++ b/config/cfgroot/ids-functions.pl @@ -544,6 +544,9 @@ sub extractruleset ($) { # Handle rules files. } elsif ($file =~ m/\.rules$/) { + # Skip rule files which are not located in the rules directory or archive root. + next unless(($packed_file =~ /^rules\//) || ($packed_file !~ /\//)); + my $rulesfilename; # Splitt the filename into chunks.