Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LibClamAV Warning #143

Closed
aerogator opened this issue Oct 1, 2021 · 10 comments
Closed

LibClamAV Warning #143

aerogator opened this issue Oct 1, 2021 · 10 comments

Comments

@aerogator
Copy link

I started seeing this warning in the message on scan results:

"LibClamAV Warning: **************************************************\nLibClamAV Warning: *** The virus database is older than 7 days! ***\nLibClamAV Warning: *** Please update it as soon as possible. ***\nLibClamAV Warning: **************************************************\n"
I re-ran cdk deploy and it updated the Lambda functions, but I continue to see that warning.

Is there another step to update the virus database and get rid of the warning message?

@dontirun
Copy link
Contributor

dontirun commented Oct 1, 2021

Hey! What version of the construct are you using?

Additionally has the download_defs lambda function run recently and is it returning any errors?

@aerogator
Copy link
Author

According to CloudWatch, it looks like download_defs is running every 12 hours. I'm not seeing any errors in the Log streams for the download_defs lambda.

I picked up version 0.0.105 earlier in the week because I noticed there was a fix for redeploying the lambda functions. Prior to that, I was working with 0.0.43 when I first built the stack.

@dontirun
Copy link
Contributor

dontirun commented Oct 1, 2021

When was the most recent update in the Virus Definitions Bucket? Are there any old files with similar names to the new ones?

@aerogator
Copy link
Author

aerogator commented Oct 1, 2021 via email

@aerogator
Copy link
Author

The virus definitions bucket does seem to be updating. Most of the files have today's date, mirrors.dat is the oldest at Sept 29.

daily.cvd cvd October 4, 2021, 03:24:35 (UTC-04:00) 53.7 MB
freshclam.conf conf October 4, 2021, 03:24:35 (UTC-04:00) 75.0 B
freshclam.dat dat October 4, 2021, 03:24:35 (UTC-04:00) 69.0 B
main.cvd cvd October 4, 2021, 03:24:32 (UTC-04:00) 162.6 MB
daily.cld cld October 3, 2021, 15:24:45 (UTC-04:00) 168.6 MB
mirrors.dat dat September 29, 2021, 14:56:38 (UTC-04:00) 69.0 B

@dontirun
Copy link
Contributor

dontirun commented Oct 4, 2021

The scan function might not be properly pulling the definitions from S3 and updating the local database on the EFS. I'll need to take a closer look at that

Additionally have there been any manual changes made to the bucket policy?

@aerogator
Copy link
Author

I ran a few files through just now, after no files being uploaded since Friday, and I'm not getting the message any more. Not sure what resolved that issue.

What is the difference between this message I was seeing and the “Your ClamAV installation is OUTDATED” message you mention in the README? And would that OUTDATED message appear in the same place that I was seeing this warning?

@dontirun
Copy link
Contributor

dontirun commented Oct 4, 2021

Oversimplification, but ClamAV has two parts, the tool and the database

The Your ClamAV installation is OUTDATED” implies that the tool recognized that the database is for a newer version of ClamAV and the tool must be updated.

I believe the "The virus database is older than 7 days!" warning means that the local database is much older than expected (not updated) and that it needs to be updated to check for the latest threats

@dontirun
Copy link
Contributor

dontirun commented Nov 4, 2021

Closing as the issue seems to be resolved

@dontirun dontirun closed this as completed Nov 4, 2021
@shravanbabuyn
Copy link

We are seeing this issue as well. The virus definitions on the bucket are being updated. Is there a way to force update EFS?

LibClamAV Warning: ************************************************** LibClamAV Warning: *** The virus database is older than 7 days! *** LibClamAV Warning: *** Please update it as soon as possible. *** LibClamAV Warning: **************************************************

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants