Skip to content
This repository has been archived by the owner on Jan 23, 2018. It is now read-only.

Commit

Permalink
changelog.. spamhaus drop fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wesyoung committed Jan 18, 2015
1 parent 69e1db0 commit f6a5943
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Revision history for cif-v1

v1.0.4 2015-01-18
- fixed: https://github.com/collectiveintel/cif-v1/issues/83

v1.0.3 2014-07-26
- fixed default sorting for bin/cif
- bugfix to domain/malware feed indexer
Expand Down
3 changes: 1 addition & 2 deletions cif-smrt/lib/CIF/Smrt/Plugin/Preprocessor/Address.pm
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ sub process {
$rec->{'address'} = lc($rec->{'address'});

if($rec->{'address'} =~ /^$RE{'net'}{'CIDR'}{'IPv4'}{'-keep'}$/){
my $max = $rules->{'max_prefix'} || 16;
my $max = $rec->{'max_prefix'} || 14;
if ($2 < $max){
$rec->{'address'} = $1.'/'.$max;
}
}

return $rec;
}

Expand Down
4 changes: 1 addition & 3 deletions cif-smrt/rules/etc/spamhaus.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@ regex_values = 'address,reference'
assessment = 'suspicious'
description = 'hijacked prefix'
alternativeid = 'http://www.spamhaus.org/sbl/sbl.lasso?query=<reference>'
max_prefix = 20

[edrop]
feed = 'http://www.spamhaus.org/drop/edrop.txt'
regex = '^([^;][.\/0-9]+) ; (SBL[0-9]+)'
regex_values = 'address,reference'
assessment = 'suspicious'
description = 'hijacked suballocation prefix'
alternativeid = 'http://www.spamhaus.org/sbl/sbl.lasso?query=<reference>'
max_prefix = 16
alternativeid = 'http://www.spamhaus.org/sbl/sbl.lasso?query=<reference>'

0 comments on commit f6a5943

Please sign in to comment.