Page 1 of 1

scamnailer

Posted: 05 Feb 2014 17:50
by buzzzo
Hi

Does EFA contains the scamnailer defs ?
See: http://www.scamnailer.info/

Thx

Re: scamnailer

Posted: 05 Feb 2014 18:09
by shawniverson
Oooh..this looks very interesting.

Currently EFA does not have these.

I'm am going to give this a try and report back. We may want to include these in an upcoming release.

Re: scamnailer

Posted: 05 Feb 2014 18:24
by shawniverson
Hmm...the scamNailer script seems to fail for me...going to try the clamav signature instead

I am working with: Current: 2014-053 - 16 and Status: -1 - -1
This is base update
Unable to retrieve http://www.mailscanner.tv/emails..2014-053 :404 Not Found
Update required
Retrieving http://www.mailscanner.tv/emails.2014-053.1
Failed to retrieve http://www.mailscanner.tv/emails.2014-053.1 at ./ScamNailer-2.09 line 276.
Retrieving http://www.mailscanner.tv/emails.2014-053.2
Failed to retrieve http://www.mailscanner.tv/emails.2014-053.2 at ./ScamNailer-2.09 line 276.
Retrieving http://www.mailscanner.tv/emails.2014-053.3
Failed to retrieve http://www.mailscanner.tv/emails.2014-053.3 at ./ScamNailer-2.09 line 276.
Retrieving http://www.mailscanner.tv/emails.2014-053.4
Failed to retrieve http://www.mailscanner.tv/emails.2014-053.4 at ./ScamNailer-2.09 line 276.
Retrieving http://www.mailscanner.tv/emails.2014-053.5
Failed to retrieve http://www.mailscanner.tv/emails.2014-053.5 at ./ScamNailer-2.09 line 276.
Retrieving http://www.mailscanner.tv/emails.2014-053.6
Failed to retrieve http://www.mailscanner.tv/emails.2014-053.6 at ./ScamNailer-2.09 line 276.
Retrieving http://www.mailscanner.tv/emails.2014-053.7
Failed to retrieve http://www.mailscanner.tv/emails.2014-053.7 at ./ScamNailer-2.09 line 276.
Retrieving http://www.mailscanner.tv/emails.2014-053.8
Failed to retrieve http://www.mailscanner.tv/emails.2014-053.8 at ./ScamNailer-2.09 line 276.
Retrieving http://www.mailscanner.tv/emails.2014-053.9
Failed to retrieve http://www.mailscanner.tv/emails.2014-053.9 at ./ScamNailer-2.09 line 276.
Retrieving http://www.mailscanner.tv/emails.2014-053.10
Failed to retrieve http://www.mailscanner.tv/emails.2014-053.10 at ./ScamNailer-2.09 line 276.
Retrieving http://www.mailscanner.tv/emails.2014-053.11
Failed to retrieve http://www.mailscanner.tv/emails.2014-053.11 at ./ScamNailer-2.09 line 276.
Retrieving http://www.mailscanner.tv/emails.2014-053.12
Failed to retrieve http://www.mailscanner.tv/emails.2014-053.12 at ./ScamNailer-2.09 line 276.
Retrieving http://www.mailscanner.tv/emails.2014-053.13
Failed to retrieve http://www.mailscanner.tv/emails.2014-053.13 at ./ScamNailer-2.09 line 276.
Retrieving http://www.mailscanner.tv/emails.2014-053.14
Failed to retrieve http://www.mailscanner.tv/emails.2014-053.14 at ./ScamNailer-2.09 line 276.
Retrieving http://www.mailscanner.tv/emails.2014-053.15
Failed to retrieve http://www.mailscanner.tv/emails.2014-053.15 at ./ScamNailer-2.09 line 276.
Retrieving http://www.mailscanner.tv/emails.2014-053.16
Failed to retrieve http://www.mailscanner.tv/emails.2014-053.16 at ./ScamNailer-2.09 line 276.
Unable to open base file (/var/cache/ScamNailer/cache//2014-053)

Re: scamnailer

Posted: 05 Feb 2014 18:32
by buzzzo
I think the fastest and simplier way to integrate into EFA is via the clamav way...

Re: scamnailer

Posted: 05 Feb 2014 18:33
by buzzzo
I think the fastest and simplier way to integrate into EFA is via the clamav way...

Re: scamnailer

Posted: 05 Feb 2014 19:41
by shawniverson
Yep, just downloaded the rules and dropped them in. Looks like it is working. It just caught a fake Bank of America alert that was fake.

Going to add this as an enhancement.

Re: scamnailer

Posted: 06 Feb 2014 09:17
by buzzzo
very simple script to update:

/usr/local/bin/clamav-scamnailer-sigs.sh:


#!/bin/sh

url="http://www.mailscanner.eu/scamnailer.ndb"
wget="/usr/bin/wget"
target_dir="/var/clamav"
output_file="scamnailer.ndb"
clam_user="clamav:clamav"

$wget --quiet $url -O "$target_dir/$output_file"
chown $clam_user "$target_dir/$output_file"


put somewhere in /etc/cron.d:

55 * * * * root /usr/local/bin/clamav-scamnailer-sigs.sh >> /var/log/clamav-scamnailer-sigs.log 2>&1

Don't know if clamd needs to be informed that the sigs should be reloaded.

Thx

Re: scamnailer

Posted: 10 Feb 2014 14:52
by buzzzo
Better script to avoid re-download of the same file:


#!/bin/sh

url="http://www.mailscanner.eu/scamnailer.ndb"
wget="/usr/bin/wget"
target_dir="/var/clamav"
output_file="scamnailer.ndb"
clam_user="clamav:clamav"
tmp_dir="/var/cache/scamnailer"

start_date=`date`

mkdir -p $tmp_dir
cd $tmp_dir

echo "Getting signature file from scamnailer site ..."
$wget $url -N > $tmp_dir/log 2>&1
echo "done."

result=`cat $tmp_dir/log | grep -i 'not retrieving' | wc -l`

if [ $result -eq "1" ] ; then
stop_date=`date`
echo "Remote sig $output_file is like the local one: NO DOWNLOAD. EXIT NOW"

echo "Start Update Date: $start_date"
echo "Finish Update Date: $stop_date"

exit 1
fi

echo "Copying new $output_file to $target_dir ..."
cp "$tmp_dir/$output_file" $target_dir
chown $clam_user "$target_dir/$output_file"
echo "done."

stop_date=`date`

echo "Start Update Date: $start_date"
echo "Finish Update Date: $stop_date"

Re: scamnailer

Posted: 10 Feb 2014 21:29
by shawniverson
Great! I'll add this to the enhancements.

Re: scamnailer

Posted: 02 May 2014 05:53
by Michaelv
Hi,

Actually, you can skip the script.

Just add this line in freshclam.conf
DatabaseCustomURL http://www.mailscanner.eu/scamnailer.ndb

During freshclam update it will also check for this file, test and then trigger clamd to re-read the ndb(s).

Regards,

Michael

Re: scamnailer

Posted: 03 May 2014 18:08
by shawniverson

Re: scamnailer

Posted: 03 May 2014 18:16
by buzzzo
Good but actually it depends from how you update the sign.

Seems to be 2 method that runs in parallel:

1) freshclam
2) mailscanner scripts

In my opinion is better to use the "standard" mailscanner way.
In this case if the mailscanner script is simply a wrapper around freshclam so customdburl should work.

Re: scamnailer

Posted: 13 May 2016 11:34
by ovizii
So what is the current status of scamnailer inclusion?
Is scamnailer included in EFA 3.0.1.1?
How is it fetched and updated?

Re: scamnailer

Posted: 14 May 2016 15:18
by shawniverson
Scamnailer is there.

Check /var/log/clamav-unofficial-sigs.log for details