OpenBSD Journal

Anti Virus Solutions

Contributed by jose on from the keeping-the-enterprise-secure dept.

Some time ago someone asked about antivirus products which can be used on OpenBSD. This would include scanning files on a file server, scanning electronic mail, and possibly even scanning network shares (via Samba and the antivirus software).

I used to installed electronic mail firewalls, and I typically started with the Procmail sanitizing ruleset with some additional modifications for the site. While not perfect, it caught most email viruses of both known and suspicious signatures.

Another project worth looking at is OpenAntivirus , which is an open source toolkit which works with commercial antivirus components. This allows for any UN*X system, like OpenBSD, to serve a Windows network. It may be worth seeing if it can be made to work on OpenBSD.

(Comments are closed)

  1. By Anonymous Coward () on

    Check out for antivirus solutions for Windows desktops, Unix email and file servers.

  2. By ArSa () on

    It's very good antivirus overall and it works on open.

    1. By Anonymous Coward () on

      Wasn't Kapersky the firm of which their maillist was hijacked and used to send some Virus to all subscribers?

  3. By Noryungi () n o r y u n g i @ y a h o o . c o m on mailto:n o r y u n g i @ y a h o o . c o m

    OpenAntivirus requires Java. Is there a Java machine on OpenBSD?

    I believe Sophos released their antivirus for Linux machines. Is it possible to make it work under OpenBSD with Linux emulation?

    1. By Anonymous Coward () on

      They released it for FreeBSD too, which I've been using for quite some time on mail and file servers. It should probably work on Open/Net/BSD using FreeBSD binary emulation but I haven't tried yet. I would definetly recommend Sophos to the original poster (and anyone else), wonderful anti-virus product.

      1. By jose () on

        sophos stopped supporting freebsd i was told (one person removed from sophos, a sophos customer). however, i have been remarkably disappointed in the detection quality in sophos and their customer support. hence, i didn't want to suggest them. however, if others have had good luck with them, then all the better.

        1. By Anonymous Coward () on

          I'm not sure why you've had such bad luck with the detection, I've had nothing but great luck with their products.

          Someone gave you wrong information, they still support FreeBSD. In fact, here are some test results in which their unix software achieved 100% detection. This quote is from the Sophos website so beware of bias (but check the results anyway, they were conducted by a third party):

          "Furthermore, Sophos Anti-Virus was the only product to detect every single in-the-wild virus in the on-demand detection tests conducted on the FreeBSD platform.

  4. By John R Shannon () on

    RAV antivirus is available for OpenBSD to work with mail servers. They have one foe Postfix on OpenBSD and I'm not shure what else. They've got a 30-day trial download, so you might give it a try:

    1. By Rémi Guyomarch () on

      One the the best thing in RAV is that it's available for many different Unices and for the main MTAs out there (postfix, sendmail [2 versions], qmail and others). It's nearly a cross-everything solution :)

      The virus database is updated very often and seems to catch everything thrown at it, at least for us. So far we're very happy with it.

    2. By Brent Hoerle () on

      My company has been using it for over a year now. It has caught thousands of infected messages. Too many employees (especially in South America) were disabling their Windows AV because "it slows things down"; there have been no infections since.

      After the trial period, I didn't have any touble convincing the company to pay for it. I prefer open source but...

  5. By B Palmer () on

    I played with H+BEDV antivir ( software in the past. They have OpenBSD binaries available with a free for individual use licensing scheme.

  6. By Anonymous Coward () on

    Has anyone tried clamav ( I'm thinking of trying it out in combination with qmail-scanner (, which apparently has support for it.
    According to its website, ClamAV uses the OpenAntiVirus database but is written in C (instead of Java), and it also lists OpenBSD as a working platform. So has anyone tried this software at all? How does it compare to other free virus scanners, and does it/the OpenAntiVirus project come anywhere close to commercial scanners?

    1. By Simon () on

      I tried it. I use it.

      Okay, I don't run it on OpenBSD (Sorry).
      Yes, qmail-scanner and ClamAV works great together. Really it's just a matter of installing ClamAV first and the qmail-scanner should find ClamAV.

      Only thing is that ClamAV doesn't have as many virus definitions as commercial virus scanners. However it has definitions for all the current email viruses, so you should be okay.

  7. By Anonymous Coward () on

    Personaly I use batemail to remove all executable attachments. Its a simple perl script that replaces mime attachments that have an executable extension (.exe, .bat, whatever) with a block of text explaining why it was removed. The cool part is you dont have to update everytime some crackhead releases a new virus.

    1. By Bruce () on

      I don't know about batemail, but we use the exact same strategy. We pulled a list of executable extensions off of Google somewhere for our list, and there were almost 40 of them, not including .doc, .xls and a few other office types which could contain macros but which we let through because we need to.

      Since filtering this way almost 2 years ago we have had a few hundred viruses punted, a handful of false positives, (self-extracting archives; plain ZIPs, please) and one virus that got through because the content-name was messed up. Didn't work anyway, like that.

      If only spam was that easy to handle.

      We still run Norton Corporate AV on our desktops, but it doesn't have much to do. Nobody seems to make non-Outlook viruses anymore. I even had to download an EICAR test virus recently to convince myself Norton was still working.

    2. By number6 () on

      Does it handle invalid MIME stuff ?
      Some K-lez and BugBear variants use this scheme
      to bypass attachment filtering/removing tools.

      1. By Anonymous Coward () on

        Some older versions had a problem with klez due to invalid mime but a fix has been in the script for some time.

  8. By Jedi/Sector One () on

    My company is using the Sophos Antivirus with Qmail and the QScan filter.

    It works extremely well on OpenBSD with the FreeBSD emulation, and a trivial shell script is enough to automatically update the signature database.

    1. By Anonymous Coward () on

      I can second the sophos+qmail solution (although I am using linux for the job). Sophos is top notch.

    2. By Anonymous Coward () on

      Here's a link to an update script from the website. I had to make some minor modifications for it to match my needs.

      1. By Number6 () on

        Have also a look at :
        and also in the MailScanner tarball

  9. By Petr Ruzicka () on

    Anybody knows any antivirus solution for Squid (and for OpenBSD) ? I have great experiences with RAV, however it is only available for mail traffic. I know VirusWall, MicroTrends doesn't have it for OpenBSD and it is expensive as well. any clues ?

    1. By ghost () on

    2. By Number6 () on

      Hi Petr,

      - if you're using DanGuardian with Squid consider DansGuardian Anti-Virus Plugin
      - you can have a look at Viralator :
      - else consider Squid ICAP client
      (enables squid to speak the ICAP protocol for
      use with any ICAP-enabled virus scanner but I'm
      afraid there are not numerous)
      There is also some HTTP-proxy in Trend
      antivirus but it is commercial ...

      I only know these tools by name ....



Copyright © - Daniel Hartmeier. All rights reserved. Articles and comments are copyright their respective authors, submission implies license to publish on this web site. Contents of the archive prior to as well as images and HTML templates were copied from the fabulous original with Jose's and Jim's kind permission. This journal runs as CGI with httpd(8) on OpenBSD, the source code is BSD licensed. undeadly \Un*dead"ly\, a. Not subject to death; immortal. [Obs.]