[SOLVED] whitelist locally clamav?

killmasta93

Renowned Member
Aug 13, 2017
974
59
68
31
Hi,
I was wondering if someone else accomplished to whitelist a signature on clamav?

i tried the following
Code:
root@mail:/var/lib/clamav# touch local_whitelist.ign2

then
Code:
 echo “PUA.Pdf.Trojan.EmbeddedJavaScript-1” >>  local_whitelist.ign2

then a reboot

but not seem to be working any ideas?
 
solved:
Code:
echo "PUA.Pdf.Trojan.EmbeddedJavaScript-1" | sudo tee /var/lib/clamav/whitelist.ign2

then reboot
 
This wasn't working for me, so I looked at /var/lib/clamav/sigwhitelist.ign2
Code:
cat /var/lib/clamav/sigwhitelist.ign2
Dummy.Whitelist.Signature
{HEX}Malware.Expert.3xpl01t_ma.configs.dumper.0
PhishTank.Phishing.5603443
Porcupine.Malware.43226
PhishTank.Phishing.6645510
PhishTank.Phishing.6698671
PhishTank.Phishing.6686540
PhishTank.Phishing.6688600
PhishTank.Phishing.6801210

It appears .ign2 files want "Source.Category.Sig#", nothing else.

I made this change, we will see what happens. Previously, I was using:
Code:
echo "Sanesecurity.Spam.12741.PdfSpam.UNOFFICIAL" >> /var/lib/clamav/KatyComputer.ign2

Now I am doing:
echo "Sanesecurity.Spam.12741" >> /var/lib/clamav/KatyComputer.ign2

Followed by:
Code:
pmgconfig sync --restart 1 ; spamassassin --lint
 
  • Like
Reactions: killmasta93
after testing again your right it was not working your method where do you get the sig number?