EWF as an Antivirus solution

EWF as an Antivirus solution

  • Comments 6

Over the years, the product team is periodically contacted by different internal Technical Account Managers for some of our premier customers and the conversation goes something like this:

TAM:
I’ve got this customer and they have this cool device and it’s going to be exposed to the net.

Us:
Cool. Well make sure they start with SP2, do the Firewall and Antivirus and Servicing thing so they don’t hose themselves.

TAM:
Heh, no worries. But regarding the AV deal, they’re running on compact flash and don’t have much space left. So we’re thinking we can use EWF as our AV solution. Just wanted to touch base with you and make sure we’re OK with that.

Us:
Yeah, that’s a bad idea. Here’s the scenario you’re looking at with that solution.

Machine is running EWF RAM, gets infected and the device is protected only in the sense that the system files are not permanently corrupted. In the meantime, until you reboot the device it could be:
- consuming resources, trying to write to disk which fills up the ram overlay and eventually the machine runs out of memory and barfs. This is bad.
- Acting as a ‘zombie’ or host, infecting other machines on the net. This is bad.

Now after you reboot said device, the machine is no longer infected, but more than likely it’s going to be infected again and the same issues above apply until the next reboot.

Think that’s bad? Now here’s the nightmare scenario: Machine is infected, you don’t realize it yet but you need to commit some changes to disk. You commit the changes in the overlay to disk and you’ve now *permanently* written infected files. Rebooting will still leave you in a hosed state. Now you either need to re-image the device or install AV software, clean the disk, commit those changes and cross your fingers.

To reiterate – do NOT use EWF as an Antivirus solution. Many have tried and many have failed and learned their lesson the hard way.

TAM:
OK, thanks for the heads up. So what do I recommend to this customer?

Us:
Besides upgrading to SP2 and nailing down their servicing scenario (SUS or DUA or some other method) so they’ll be able to patch it in the future, the only things remaining are:
- Firewall
- AntiVirus

For Firewall you have several options, either use the new Windows Firewall in SP2 or use the new Sygate solution of components specifically for XP Embedded. This can also provide your customer with management of policies via an enterprise server for other cool features like patch enforcement. This was componentized and you’ll build and configure it through Target Designer.

For the Antivirus solution, do yourself a favor and check out the first AV solution for XPe from Computer Associates. Their AV product is pretty well componentized, so depending on the bells and whistles you want you can get the local scanner for 5.4MB all the way up to the full product at 21MB which gives you dual engines and management by an enterprise server.

Reference:
- Computer Associates “
Securing the Embedded Platform” (PDF)

-Andy Allred

  • When you stated that "Many have tried and many have failed and learned their lesson the hard way":

    Where they commiting changes after the box had been up for days or on a fresh boot ?
    Where they SP2 installs with Firewall on/No Exceptions ?
    Was the IE policy locked down ?

    Conceptually it would sound like a no-brainer that EWF would solve everyones virus issues, being able to start fresh everytime you hit the reset button. That entire post seemed like a lead in to the Computer Associates plug on the bottom.

    When hackers learn to circumvent EWF, thats when people will have problems, No ?

  • Hi Anthony, thanks for the feedback.

    This isn't a plug, it's the only componentized AV solution for XPe today. Actually, you can install any AV software designed for XP Pro, perhaps i should have emphasized that as an alternative, but the CA version is the one componentized which is more helpful for smaller footprint devices.

    I've componentized FPROT for my own experiments and it worked fine, so you're not limited to the one listed in the post, but CA's is the only one publicly available. I've also installed from the desktop Symantec and Panda on XPe runtimes, but those weren't componentized and required a lot more dependencies just to get the AV *installer* to work. For small footprint devices restricted in disk space a componentized version is preferable.

    I highly recommend you don't use EWF for the reasons i mentioned regarding commiting to disk and the fact that, even though the disk is protected, the device can still continue to infect other machines. If there's no person sitting in front of the device how do you know you need to press that reset button in order to "fix" the problem, for instance if the device is headless or in a remote location?

    Using EWF as an AV solution is not a "best practice". If you decide to do it anyways, at least having the servicing infrastructure, firewall and security of SP2 will help.

    SP2 for embedded was only just released a few months ago, it was the Gold and SP1 versions that have been infected, all the incidents i'm aware of did not have a firewall. To date i haven't heard of any SP2 infected embedded devices yet.

    This raises the issue that for devices like a thin client or a cash register that have a user sitting in front of it most of the day, user education comes into play as well. Another issue are the devices that allow everyone to run as Administrator, but as you mentioned, IE being locked down is a good idea as well.

    To answer some of your other questions, i don't know about the IE settings of the infected machines. These were mostly SP1 devices and some were not being serviced properly if at all.

    For most embedded devices, a firewall is going to protect you due to very few open ports. Having AV on the box is additional insurance.

    One issue i did not raise is that you need the ability to update the virus definition files, something you'll need to consider as part of your servicing scenario perhaps.

    A lesson learned is that security in general needs to be a consideration early on in the design phase of your device. EWF was not designed to act as an AV feature, if you choose to use it in this manner please at least use a firewall, service the device and use SP2.

    Lastly, security of EWF is a concern and is considered in the design and test of the feature. I worry about *any* of our features being attacked by hackers <grin>

    Thanks again Anthony. Do you have any requests for topics?
  • We are facing issues with thin clients running Mcafee and if we are disabling the EWF option, then the performance is good. We are running mcafee on our wyse thin clients.

    What is your take on disabling EWF completely. I understand that disabling EWF will allow users to write files to the disk but we will educate them not to save anything on the box.

    Apart from that,will there be any impact.?

    thanks

  • Mohammed: Generally speaking, if you are running an actual anti-virus program, you will probably not want to use EWF, as any changes, cleanup, quarantines, etc. performed by the AV program will be lost once the EWF overlay is discarded.  The intent behind this post was to show how EWF could be considered an anti-virus solution by enabling it to "lock down" the hard drive - you can just throw out any changes that a virus may have made to your system.  But as Andy pointed out in an earlier reply, as long as the virus is active on the computer, it can infect other machines as well, so a real AV solution is in fact better.

    The only major impact of disabling EWF completely would be that you don't get the benefits of EWF's write filtering.  At that point, if protecting your hard drive from unauthorized writes is a concern, there are a number of other ways to lock the system down for security that are supported in XP Pro (and therefore in XPe).  Your mileage may vary.

    Hope this helps!

  • PingBack from http://debtsolutionsnow.info/story.php?id=1996

  • @ Anthony "When hackers learn to circumvent EWF, thats when people will have problems, No?"

    If the local user that is infected is an admin, then its all over. The virus could just issue the commit command manually (commitanddisable) with the -live switch.

Page 1 of 1 (6 items)
Leave a Comment
  • Please add 1 and 4 and type the answer here:
  • Post