Ive been talking to Steve (who provides the Sanesecurity defintions) today about this Clamwin false positive issue. And during the conversation today I did a test and discovered Clamwin was scanning Windows files and detecting them as FALSE POSITIVES and reporting as such.
eg
Quote: |
The following files are Digitally Signed by Microsoft Corporation and may have been incorrectly detected as viruses:
C:\Windows\SysWOW64\msdt.exe: [Win.Trojan.Win64-149] FALSE POSITIVE FOUND
Please do not be alarmed and help us by submitting the files identified above as FALSE POSITIVE at https://www.clamav.net/sendvirus/ |
However, when the get reported to Clam, Clam flatly refuses it and says it was never detected by them:
Quote: |
Below are the results of your submission report.
Result:
The sample is empty. This file is not detected by ClamAV. Please update your CVD database before reporting false-positives. If you are using third-party databases/unofficial signatures, please contact the author of the signature. We can only process false-positives generated by ClamAV Official signatures.
Please correct the above errors and retry. Thank you for helping the ClamAV project.
Thanks,
The Detection Response Team |
And to verify it, Steve ran the same program through other ClamAV breeds and none of them reported on these files (only CLAMWIN had the error report).
It turns out that CLAMWIN is wrong (not ClamAV) and has a fundamental error in it.
Steves report (to save me typing or paraphrasing):
Quote: |
After another coffee and lots of head-banging I've found one issue...
it's ClamWin reporting when it shouldn't do....
I'll report this to ClamWin people in a bit.
Ok, here's the testing..
1. ClamScan Official Port...
clamscan C:\Windows\SysWOW64\msdt.exe
C:\Windows\SysWOW64\msdt.exe: OK
So, the file is totally fine... no fp reported.
However...
2. ClamWin Port...
clamscan C:\Windows\SysWOW64\msdt.exe
Loading virus signature database, please wait... done
\\?\C:\Windows\SysWOW64\msdt.exe: [Win.Trojan.Graftor-2517] FALSE POSITIVE
FOUND
C:\Windows\SysWOW64\msdt.exe: OK
*** KEY PART: a) it says FALSE POSITIVE
*** KEY PART: b) it says OK
Now let's check the ClamAV returned errorlevel
echo %errorlevel%
0
Which means it's OK according to ClamWin port.
So, how can it be OK AND a FALSE POSITIVE let's look at the databases...
grep "Win.Trojan.Graftor-2517" daily.*
daily.mdb:647680:c6ffaefe7ba7e68bca84c985fe24ef5c:Win.Trojan.Graftor-2517
grep "sid_25785544" daily.*
daily.fp:f67a64c46de10425045af682802f5ba6:983040:sid_25785544
daily.mdb is a malware database
daily.fp hold's any FALSE POSITIVE that have been found
So, ClamWin should:
a) find Win.Trojan.Graftor-2517
b) do a sigcheck on the certificate to check for False Positives
c) check daily.fp for false positives
d) if a FP is already in daily.fp then don't print the FALSE POSITIVE WARNING
Cheers, |
Seems that behaviour of Clamwin is NOT all down to ClamAV source and their slackness after all.
(Not only that, but the link to report FP's to Clam in the original Clamwin summary report, https://www.clamav.net/sendvirus, is invalid.)
