Slashdot Mirror


To Allow or Not Allow E-Mail Attachments?

t0pper311 asks: "I work for a pretty large utility company in the midwest and of course, security is a big concern. We use Trend Micro as a mail gateway to basically scan for virii and strip off most attachments like executables or VB script. Now with the Sobig.E virus on the loose, we need to ask ourselves if we should be blocking ZIP files. We got lucky this time and were not effected, but what about next time? What are other companies doing? If you do block ZIP files, how do you give the people who need to sends files the ability to do so? Do you allow any attachments at all?"

58 of 197 comments (clear)

  1. You get a virii scanner that can deal with zip.. by Anonymous Coward · · Score: 5, Informative

    Pretty simple really.

    Given that most users love to download crap via hotmail etc. , lets hope you have a virus scanner on their PC too.

  2. OS by Johnny+Mnemonic · · Score: 3, Insightful


    Why do you make so many accommodations for the failures of the OS? Isn't the OS supposed to work for you, instead of you working for it? How many features do you have to shut off before it's not worth the considerable cash you paid for it?

    --

    --
    $tar -xvf .sig.tar
    1. Re:OS by sql*kitten · · Score: 4, Interesting

      Why do you make so many accommodations for the failures of the OS? Isn't the OS supposed to work for you, instead of you working for it? How many features do you have to shut off before it's not worth the considerable cash you paid for it?

      Clearly you lack an understanding of the issue. This is nothing to do with OS. The issue is one of users running executables they are sent via email. If (insert your favourite Linux email package here) allowed a user to double-click an attached .sh file, then the problem would also exist on Linux.

      Outlook was designed to be scripted so you could use it to build your own workflow . If you don't need this feature, switch it off! Complaining about exposed but unused functionality being abused is that same as complaining that it's Linux's fault of all the daemons are started at boot and someone roots you though BIND.

    2. Re:OS by Zork+the+Almighty · · Score: 3, Interesting

      Don't files on Linux default to non-executable ? Your point is well taken though. And I would say it's the Linux distro's fault if it enabled all these useless services by default and left me vunerable.

      --

      In Soviet America the banks rob you!
    3. Re:OS by alangmead · · Score: 3, Interesting

      The part where the OS gets involved is when it uses the same mechanism to associate documents with their application as they do interpreted code with their interpreter.

      MIME has a Content-Type mechanism to describe data. In the original MIME specification the authors stated

      The "application" Content-Type is to be used for data which do not fit in any of the other categories, and particularly for data to be processed by mail-based uses of application programs. This is information which must be processed by an application before it is viewable or usable to a user. Expected uses for Content-Type application include mail- based file transfer, spreadsheets, data for mail-based scheduling systems, and languages for "active" (computational) email. (The latter, in particular, can pose security problems which should be understood by implementors, and are considered in detail in the discussion of the application/PostScript content-type.)
      and
      Security considerations: This type is intended for the transmission of data to be interpreted by locally-installed programs. If used, for example, to transmit executable binary programs or programs in general-purpose interpreted languages, such as LISP programs or shell scripts, severe security problems could result. In general, authors of mail-reading agents are cautioned against giving their systems the power to execute mail-based application data without carefully considering the security implications. While it is certainly possible to define safe application formats and even safe interpreters for unsafe formats, each interpreter should be evaluated separately for possible security problems.

      Just because the designers of outlook essentially ignored the data description features of MIME didn't mean they had to ignore the warnings of the dangers of executable content. There is no reason why a mail reader should associate a .sh file, or an application/x-shell-script file with a general purpose interpreter, and the people who invented MIME knew this and warned about it.

      There is no good reason for a mail program to run hand executable content off to the OS or an interpreter.

    4. Re:OS by Mr+Z · · Score: 2, Informative

      It depends on your umask AND the permissions the application requested for the file. Apps typically request 0666, and umask typically removes 002, 022, 027 or 077. In other words, apps typically request rw-rw-rw-, not rwxrwxrwx. Typical umasks will remove -------w-, ----w--w-, ----w-rwx, or ---rwxrwx.

      In either case, the final permissions of the file tend to lack 'x' (execute permission) for user, group AND other, and it's not usually as a result of umask.

      --Joe
  3. Safe file exchange should be a *feature*! by Muggins+the+Mad · · Score: 4, Insightful
    If you do block ZIP files, how do you give the people who need to sends files the ability to do so?

    I think if people insist on running software that is vulnerable to these kinds of attacks then yes, you do need to stop these people using attachments completely.

    If we do need to send files to each other as part of our business then surely that's a major feature that our application environment needs. If our chosen solution doesn't let us do that without an enormous amount of hassle and risk, then maybe it's time to make other tradeoffs and choose a client that does.

    And if we have to choose between an email client with nice scheduling/calendaring and one that lets us receive file attachments safely, then that's a *decision* that must be made based on business needs. Which is more important to your task? Is there a way to have both? Will we accept the risk and hassle of virii to get nice calendaring, or will we use clumsier calendaring and have safe file attachments?

    Only when people start making these conscious decisions en masse will we start seeing applications (including OS/hardware/whatever) that provide all the features we need to do our jobs.

    The current climate of "how do we shore up the inadequacies of our chosen software?" isn't helping things improve.

    Nice calendering *or* safe file attachments. Choose. If someone offers a product that does both. Cool. We all win.

    - Muggins the Mad

    1. Re:Safe file exchange should be a *feature*! by GypC · · Score: 4, Informative

      From what I can gather from the virus information, it's not an Outlook virus. It's a Windows virus that propogates through its own SMTP routines, harvesting email addresses from a variety of local files. In Outlook it requires the user to extract the executable and run it, just like any other mail client.

    2. Re:Safe file exchange should be a *feature*! by joto · · Score: 4, Informative
      I think if people insist on running software that is vulnerable to these kinds of attacks

      Actually, the virus he talks about only works through social engineering. You have to manually open the zip file and click the .exe file.

    3. Re:Safe file exchange should be a *feature*! by Muggins+the+Mad · · Score: 3, Insightful
      Actually, the virus he talks about only works through social engineering. You have to manually open the zip file and click the .exe file.

      Ok, to bring another level to it. Why is running an unknown executable dangerous?

      It's pretty safe running unknown Java Applets in our browsers these days, barring the occasional VM bug. Why can't we run random executables without worrying that they'll delete everything/spam/etc.

      Why the assumption that running a random executable is dangerous?

      - Muggins the Mad
    4. Re:Safe file exchange should be a *feature*! by RzUpAnmsCwrds · · Score: 2, Interesting

      Welcome to .NET - I know I'll be flamed, but this is what Microsoft's new technology is about: bringing Java-like security to every application (Microsoft calls it "Managed" code).

    5. Re:Safe file exchange should be a *feature*! by Muggins+the+Mad · · Score: 2, Insightful
      Look, security has been afterthought with MS every time. NTFS is a little more protected but not much.

      Look up permissions on Unix and even AmigaOS (which had 32-bit preemptive multitasking 10 years before win95 and almost 20 years before MacOS X).


      Unfortunately UNIX permissions are still woefully out of date. It doesn't really matter these days that malware can't reformat your drive. It can still send all your files out on the 'net, send a couple of million spam, and delete all your work.



      Sun, bless their little evil hearts, actually got something right with the Java OS idea. (lots of other things wrong, but the security architecture was good).



      We *really* need projects like SELinux, RSBAC, even LIDS to reach fruition so we can start building decent sandboxes. The higher end commercial UNIXen seem to be doing good things with ACLs and better privilege seperation, but we can't all run those. :)


      And I mean built into common dists, not as some obscure kernel patch that breaks all your daemons :)


      - Muggins the Mad
    6. Re:Safe file exchange should be a *feature*! by Muggins+the+Mad · · Score: 3, Interesting
      Welcome to .NET - I know I'll be flamed, but this is what Microsoft's new technology is about

      Yes, and god forbid they actually get it right. The free software world needs to snap out of it's smug "UNIX is secure" stance and do something to bring it into this millenium. I want to run executables from random places. As part of my job I actually need to. I don't currently have an OS where I can do that. I would hate for the first one that lets me to be from MS.

      - Muggins the Mad

    7. Re:Safe file exchange should be a *feature*! by joto · · Score: 3, Insightful
      Ok, to bring another level to it. Why is running an unknown executable dangerous?

      Because at some point, you need something that actually uses raw machine code, unless you want a very limited system. Not having this option, and having to run everything through a VM is not a very good option from either a performance or functionality standpoint.

      I'm not saying I'm againt secure byte-code interpreted environments, such as Java. Actually, I am all for it, but sometimes you need to do things a bit more low-level than the Java API allows, and that means you'll have to allow executables.

      Still, there is a lot that could potentially be done to limit the harm you can do with executables. You can sandbox them in various ways, from intercepting system-calls and let some access-level checker see if you have the right privileges (sometimes called capabilities), to running in a different VM (such as user-space linux), to full emulation (bochs). Whether such security measures should be on by default, and only "trusted" executables should be allowed to do what they do now, or special actions needs to be performed by users to run "untrusted" ones is of course up to debate.

      My point is that the problem is only halfways technical. Adding additional security measures can never protect stupid users from doing stupid things. If the e-mail had said: "this app needs to be 'trusted' before you run it, please enable that before clicking on it", you can be sure some users would do that.

      The problem, if anything, is more of a cultural issue than a technical one. In windows, users have become accustomed to run random binaries from unknown sources, and the environment has as a result been set up to make it easy. Under unix, you would generally be skeptical of running a binary from someone you don't know or trust, and the environment has generally been set up to make it somewhat harder. Unfortunately, the trend seems to go in windows direction (even on unix). End-users are rarely supportive of security features that make their job harder, even if it is more secure.

      Running an unknown executable is always a bad idea. People need to be trained to only open safe file-types they get from untrusted sources.

    8. Re:Safe file exchange should be a *feature*! by Muggins+the+Mad · · Score: 2, Insightful
      UNIX permissions do not allow random writing, deleting, spamming whatever.

      Um, yes they do.

      Pretty much any program can read your mail settings from .mutt or .netscape or .whatever, pick a bunch of juicy .doc and .jpg files from your home directory and email them to a few million people. Then delete all the files in your home dir.

      Projects like SELinux can pretty much solve this, but until they're integrated in the major distros, we're a lot more vulnerable than we like to believe.

      - Muggins the Mad
    9. Re:Safe file exchange should be a *feature*! by Muggins+the+Mad · · Score: 2, Insightful
      Ok, to bring another level to it. Why is running an unknown executable dangerous?
      Because at some point, you need something that actually uses raw machine code, unless you want a very limited system. Not having this option, and having to run everything through a VM is not a very good option from either a performance or functionality standpoint.

      There's no reason raw machine code needs to be dangerous at all. Modern computers (even PCs) have decent memory protection that'll stop user programs from having direct access to hardware and force them to go through the OS.

      The OS can decide what the user program is allowed to do. Whether it's opening network connections, allocating more memory, writing to screen or file, it *already* goes through the OS anyway. So it's not much of a step to put a few security checks in there.

      Raw machine code executables are bad because they aren't cross platform, but I don't see why they are necessarily a security issue under a secure OS

      People need to be trained to only open safe file-types they get from untrusted sources.

      Only in the current climate of insecure operating systems. I *want* people to be able to send me cute little applications or games, or interactive data files. Why should we be limited in what we can do because people are so used to the inadequacies of current mass products when there isn't really a technical limitation at all?

      - Muggins the Mad
    10. Re:Safe file exchange should be a *feature*! by joto · · Score: 2, Interesting
      There's no reason raw machine code needs to be dangerous at all. Modern computers (even PCs) have decent memory protection that'll stop user programs from having direct access to hardware and force them to go through the OS.

      Yes, this was the first option I mentioned.

      The OS can decide what the user program is allowed to do. Whether it's opening network connections, allocating more memory, writing to screen or file, it *already* goes through the OS anyway. So it's not much of a step to put a few security checks in there.

      Putting some checks there is not hard. Making it useful is hard. At the level of system calls, it is very hard to say what a program should be allowed to do in a way that would be useful for an end-user. Let's take a simple example: if you grant it access to the windowing system, how would you limit it to e.g. not controlling other applications through synthetic button and key events?

      There is a reason we don't have this kind of security today. It is very hard to get right. Only with a higher-level security architecture, such as java, is it possible to make useful checks about what a program is allowed to do, and what it is not allowed to do. If it is at all possible at the level of system calls, it would be very hard to control in an intuitive manner.

      Raw machine code executables are bad because they aren't cross platform, but I don't see why they are necessarily a security issue under a secure OS

      Trouble is, there is no such secure OSes that are anywhere close to usable. But there is a lot of research going on in this area. In 10 years, maybe someone will make one of those research OSes into something close to useful. Personally, I find it unlikely, however. There is always a tradeoff between speed, flexibility, and security. Raw binaries is one end of the spectrum, and I don't think they are going away. But there is nifty research going into things like typed assembly languages, etc, and I may be proven wrong (at least I hope so).

      Only in the current climate of insecure operating systems. I *want* people to be able to send me cute little applications or games, or interactive data files. Why should we be limited in what we can do because people are so used to the inadequacies of current mass products when there isn't really a technical limitation at all?

      Because, there really isn't any realistic alternatives. Any mainstream OS is as vulnerable to the same kind of attack. There are two reasons this doesn't happen however: First; writing effective email-viruses for other platforms than windows is harder, because everyone uses different setups, and different mailclients. Secondly; Their users are generally more knowledgeable. But none of these reasons is technical.

      If you want to exchange cute games and toys, send them as java applets, or flash swf-files, or whatever you feel would be reasonably secure.

    11. Re:Safe file exchange should be a *feature*! by matastas · · Score: 2, Insightful

      From a business standpoint, this is a potentially disasterous attitude. Observe:

      1. Outbreak of viruses. Admin makes decision to block file attatchments.

      2. M&A activity occurs two months later. CEO requests data from investment banker, who sends it in ZIP file.

      3. File attatchment is blocked. Confusion insues.

      BEST CASE: CEO finally gets file w/trickery and support from IS, and asks feature to be turned back on, or supported for limited group.

      WORST CASE: Bad Things happen as a result of delay, and merger is negatively affected. CEO kindly asks who made decision to block file attatchements. Admin is fired.

      You said it yourself: this is a decision that needs to made based on business needs. Your proposed solution is black and white; you forgot the infinite shades of gray. Outsourced virus scanning, user education, various options at the desktop...it goes on. Don't cripple a key feature of modern email, and thus workflow, because the technology presents some hurdles, or possibly is only 80%. That's why we all get paid.

  4. Why by Zerth · · Score: 2, Informative

    would one have to block zip files? just scan the contents of the zip files for the virus, all of which have been stuff like .pif or other windows-ish things.

    1. Re:Why by jshare · · Score: 4, Interesting
      Well, you can run into trouble if you try to scan this zip file.

      I forget the exact stats, but it decompresses out about 7 levels deep, 16 files per level, and 4gig files at the last level. So, that's a lot of unzipping your virusscanner would be doing.

      Granted, you could probably give it a checksum for this file in particular, but there are always variations on the theme.

    2. Re:Why by crisco · · Score: 3, Insightful
      so basically that could be used as a DOS against someone running a virus scanner on the email gateway?

      evil

      Are all of the virus scanners going to recursively extract all those zip files?

      --

      Bleh!

  5. Or... by BrokenHalo · · Score: 2, Interesting

    You could just let everyone catch every virus going for a few months, then offer them a real computer that doesn't get viruses. I wonder how many people would get the message.

    1. Re:Or... by bellings · · Score: 2, Insightful

      That sounds cool. Can you recommend a computer that wont get email trojans? An XBox, or perhaps an old Atari 2600?

      --
      Slashdot is jumping the shark. I'm just driving the boat.
    2. Re:Or... by Artana+Niveus+Corvum · · Score: 2, Interesting

      On the other hand though, in a corporate environment you'll find that there are a suprising number of users that are simply ineducable. They know how to use Word only in that if they click on the icon it opens and they can type stuff. If you try to teach them more (or have them sent to external training), you may very well have just wasted your time and money because the user thinks "I can do my job, I don't need the extra information" (though I do occassionally question that the thought is that coherent). A truly suprising number of users will actively reject any training that you throw at them for fear that their weaknesses might be exposed and/or they might be required to do "more" work (i.e. that work which is already in their job description). The problem is most obvious in environments where this level of skill (if it can be called that) and this type of attitude is considered adequate and acceptable.
      Say what you will about how such businesses simply shouldn't hire people like this. That's fine, I agree with you. However, this is not a factor that the IT department can often (ever?) control. We are simply instructed to "deal with it" then are burned for any feet (heads) we have to step on to get the job even started, much less done. It's extremely hard to counter attitudes and ignorance like that when you have neither the honey nor the stick to back your "suggestions."
      What to do about these users then? Once they figure out how to open up their email program they delight in running every "screen saver" and "cute picture" that they come across. The speed of the antivirus companies in releasing product updates can by no means match the universal "Speed of Stupid" (yes, I just used "stupid" as a noun, deal with it). You can't cut them off from their email or you'll catch the fires of Hell when their boss talks to your boss's boss about how you've been misbehaving for no reason. You can't even limit the attachments that they can receive or they'll scream bloody murder at a boss who is very probably more technologically inept than they themselves are. "Sally VirusWriter sent me a cute picture and I can't open it because the IT department is being an evil asshole! Waaaa!!" You're lucky if you even get to install an antivirus on their machine... "it slows the computer down! Waaaa!!" (ignoring the fact that they have a 2.8Ghz P4 w/512MB of ram....).
      Your next suggestion will be "get a different job," however you know as well as I do the state of the market for such things.
      So, realistically, what do you do? I've considered blocking the entire email when it contains a virus rather than just the attachment, that would keep Tech_dummy0 happy because they'd simply never see the email and wouldn't have the opportunity to bitch because they can't open the *.pif attachment.... grrrrrrr to people....

      Okay, I'm done now.

      --
      -----------------------------------------
      Remove the Greed which plagues mankind.
  6. Who said you had to filter it? by NeuralNet03 · · Score: 4, Insightful

    I think that if a user opens an attachment from a random source, that came with no explanation, with a funky name like the ones in the write-up (see article link), then that's their own fault.

    Filtering out legitimate attachments is not very good policy to protect against virii. You'd be -much- better off spending a few minutes educating employees in a "Virus Prevention" seminar or something. Show them that opening emails like that is not intelligent, and that way, it's not as much of a problem.

    1. Re:Who said you had to filter it? by Blkdeath · · Score: 2, Insightful
      Filtering out legitimate attachments is not very good policy to protect against virii. You'd be -much- better off spending a few minutes educating employees in a "Virus Prevention" seminar or something. Show them that opening emails like that is not intelligent, and that way, it's not as much of a problem.

      Picture this;
      User receives attachments from a colleage sometimes as often as a dozen times a day. An e-mail comes in from this user with an attachment described breifly as "The file we discussed earlier."

      How does your proposed seminar cover this situation? Since most Windows maladies lately attack Outlook (Express) directly, and specifically its address book, the notion of "attachments from unknown people" or attachments that come from "a random source" are no longer valid. Attachments are coming from friends, family, colleagues, and even Microsoft Technical Support.

      Malicious users have become so crafty that the entire notion of e-mail attachments and their utility has to be re-examined.

      Incidentally, Microsoft's new security poilcy WRT attachments in Outlook Express has made the situation worse, not better. They've blocked so many attachments the functionality is useless to users, so they're resorting to disabling attachment blocking entirely, putting them right back at square one.

      --
      BD Phone Home!

      Shameless plug. Like you weren't expecting it.

    2. Re:Who said you had to filter it? by klui · · Score: 2, Informative

      Maybe I don't understand this problem in detail, but I thought the rationale for blocking attachments was either the real file type displayed was hidden or that the user doesn't know a specific attachment is an executable.

      Why don't Microsoft display all attachments that would be executed in a unique way or have a dialog come up confirming execution? Or display the whole filename and not hide any file types?

      I agree: new Outlook Express default policy is even more brain dead. One cannot even download and save attachments unless this virus option is turned off.

  7. Similar issue happened like 10 years ago by Smartcowboy · · Score: 5, Informative

    10 years ago, on BBS (bulletin board system), every time someone uploaded something, the system automatically unpacked the { zip | rar | arj } on a temp directory. Then the content of the archive were automatically checked for virii with *MANY* anti-virus like MacAfee, FProt and MSAV (if the BBS were DOS-based). If the archive passed the test, it was made available to download by other user. Then, the temp directory was cleaned.

  8. Just block malicious files like .pif, .exe, .vbs.. by Red+Pointy+Tail · · Score: 3, Informative

    ...as the .zip files are not evil per se - SoBig threat applies for those who execute the malicious files within the zips. All you need is to get a decent enough e-mail virus scanner that scans *inside* the zip files, and through multiple layers of zips if necessary, to weed out the malicious files.

  9. Better Scanner... by NetJunkie · · Score: 2, Interesting

    Get a better scanner. I can't recommend Sybari's Antigen enough. It uses multiple virus scanner engines and has great filter support. It also opens up archive files and scans inside of them.

  10. er, why not use a proper AV product? :-) by MightyTribble · · Score: 2, Interesting

    We use Symantec for Microsoft Exchange. It'll scan and clean files within zip files. SoBig.E has not been a problem for us (aside from the fact that we're running MS Exchange, of course).

    That said, I was surprised to find one of the largest employers in MA doesn't have *any* AV protection on their Exchange servers, and had quite a bit of downtime as a result. So I guess AV on mail servers aren't as commonsensical as I thought... ;-p

    Running Exchange is bad enough, but do-able. To run Exchange *without* decent, up-to-date AV software is just incompetent.

  11. attachments are bad by Feztaa · · Score: 4, Insightful

    IMHO, email is not a file transfer medium; sure you can send little things with it, but it's just not useful for any real kinds of file transfer.

    Personally, I think you should set up an FTP that is open anonymously to everybody in your company, and then disable attachments so that people have to upload to the ftp, then email the link around.

    1. Re:attachments are bad by klui · · Score: 2, Insightful

      You'd need to retrain everyone who use email to stop using attachments. This won't happen, since they've already tasted attachments' convenience. There are those who are so clueless that they would blindly send 10MB worth of shit uncompressed to an entire company's distribution list without a second thought. The sad thing is they don't realize: sending 10MB is bad in the first place; broadcasting to everyone in a company is not efficient (you'd eventually get bozos replying "Please don't give me this file!!!"/"Take me off this distribution list!!!!"/"Please don't reply to all!!!!!"); sending MS Word/Excel/what-have-you uncompressed is wasteful.

      Someone in my company insists on sending some document to a distribution list each week--uncompressed--and not have a central repository for access via http/ftp. Most people are lazy and it's much easier to drag and drop w/out creating that zip file. I once sent a link via MS Outlook to an MS share that had spaces in the path (I don't have permission to change the names of those directories that had spaces). I later found out that this same person was clicking on the link as is (even though if you look at the link, its coloring was blue for a part of the path and black the other) and had just assumed that I typed/pasted it in wrong. This behavior told me that said individual has no clue how URLs/links work/look like in Outlook--just wanted to double-click on an attachment. And I was asked to attach my original document rather than providing a link.

  12. What if by altp · · Score: 2, Interesting

    what if you choose to block email attachments completely, could you set up a respository on a computer. Have people drop attachments there, and as they finish their uploads scan them for viruses before making them visable for people to download. People could log in with their email addresses (on your side), and there could be guest accounts generated for people on the outside to get files in and out.

    the guest accounts could expire after a time frame, or a number of uses, or whatever.

    Altp.

  13. Set up a sandbox. by Flying-Cow-Man · · Score: 4, Insightful

    This is an important point. Why should running an executable be dangerous at all? is it really that difficult to set up a sandbox (a la the JVM) for users to run untrusted executables in? There may be some more hassle involved, but it could be implemented fairly transparently.

    --
    Don't knock HTML email. It makes my life easier, since I /don't/ _have_ to "find" STUPID *workarounds
    1. Re:Set up a sandbox. by GiMP · · Score: 2, Interesting

      Yeah, it is called Unix.. Run it as a non-root user. The worst that happens is that that user's data is stolen or deleted (credit card numbers, etc)

    2. Re:Set up a sandbox. by Flying-Cow-Man · · Score: 4, Insightful

      This would only protect other users from the effects of an executable. I'm not sure about you, but I consider my home directory to be far more valuable then the rest of the installation, which I could easily recreate within an hour.

      A good VM would allow you to interact in a useful way with the application, without allowing it unauthorised access to your data.

      A quick (though cumbersome) workaround would be to have another account on the machine within which any untrusted apps may be tested first. Though awkward, it does prove the concept.

      --
      Don't knock HTML email. It makes my life easier, since I /don't/ _have_ to "find" STUPID *workarounds
    3. Re:Set up a sandbox. by moncyb · · Score: 4, Informative

      The chroot command should help.

    4. Re:Set up a sandbox. by dfgdfgdfg · · Score: 4, Interesting
      This is an important point. Why should running an executable be dangerous at all? is it really that difficult to set up a sandbox (a la the JVM) for users to run untrusted executables in? There may be some more hassle involved, but it could be implemented fairly transparently.

      Exactly! Files that are executed should always be executed in a sandbox, except if the reside in "/usr/bin" or other system directories. If the common file managers/ email client did that, there would be no problem sending exes per mail.

      Someone should implement the following: A program "nobody" that executes a command line and traps all system calls. When the child process does a system call, it asks the user e.g. "The program wants to open a connection to c32x.com. Allow?". If the user answers "No", the system call just returns -1. You could invoke it just like "nice" or "nohup". That should solve the email-attachment problem. Programs like "strace" already trap system calls, so this must be possible.

      --
      -- 1.e4 c6 2.d4 d5 3.Sc3 de4: 4.Se4: Sd7 5.Sg5 Sgf6 6.Ld3 e6 7.S1f3 h6 8.Se6:
  14. I think we check inside zip files by Kris_J · · Score: 2, Interesting

    From memory, MailScanner (ours uses the F-Secure engine) looks inside zip files. No biggy.

  15. the 'affective disorder' virus by solferino · · Score: 4, Funny

    While you may have been lucky and escaped the Sobig.E virus, unfortunately it appears that you have been infected with the 'affective disorder' virus.

    This cunning virus sniffs all your outgoing email and replaces 'affect' with 'effect' and vice versa. So while we know that you wrote "We got lucky this time and were not affected...", this malicious virus made it appear on slashdot as though you are 'affectively disordered'.

  16. This is not hard by TomGroves · · Score: 3, Informative

    This is not a hard thing to do at all. I assume you are using ScanMail. This applies to ScanMail 6, but I recall from memory that older versions were basically the same. Open up the ScanMail Magement console. Click the 'Virus Scan' tab and then 'options'. Now, on the right, click the 'settings' button for 'advanced options'. Check the box 'Enable Compressed Attachement Scanning'. Have a nice day. -Tom

    1. Re:This is not hard by SuiteSisterMary · · Score: 2, Funny
      Instead, train staff not to open .pif files.

      In a perfect world, yes. But I've personally said to co-workers 'If you get a message with a subject of ILOVEYOU, do NOT open it!' and they'll say "Ok, I won't. Hey, I've got mail...oooh, the secretary loves me! *click click*'

      --
      Vintage computer games and RPG books available. Email me if you're interested.
  17. What you really should be doing by PD · · Score: 4, Insightful

    You should make sure that your bounce messages go to the right place. I've received countless messages informing me that my attachment was stripped because it contains the Sobig virus. The second thing you should do is to make sure that the full headers of the message get inserted into your bounce.

    The funny thing is that I run only Linux on my domain, and I never e-mailed those people anything. It's very unlikely that Sobig can run on Linux. And I can't do anything about it because I don't have any headers to track down the source of the mails. Nobody's answered my requests for them either.

  18. Train your userii by Anonymous Coward · · Score: 2, Funny

    Your fucking userii should not be clicking on the attachmentii if they don't know what programii is going to run on their computerii.

  19. Not all zip files by nocomment · · Score: 4, Informative

    Here's what I did with postfix.

    in my main.cf created a line that says
    body_checks = pcre:/etc/postfix/extensions

    then created a file called extensions that looks like this:
    /^(Content-(Type|Disposition):.*|\s*(file)?)name=( "[^"]*|\S*)\.(ade|adp|bas|shm|cmd|com|dll|hlp|js|j se|exe|com|chm|hta|jse|reg|shb|shs|vbe|vbs|vxd|scr |pif|bat|lnk|dll|vbs|js|mp*)\b/ REJECT

    /^(Content-(Type|Disposition):.*|\s*(file)?)name=( \S*your_details)\.(zip)\b/ REJECT

    The first line (yes it's all one line) blocks all executable files from entering the server. The second line block the only version of sobig that we received. Actually we received 2 modifications...one attachment was called your_details.zip, and the other was 'your_details.zip the ' allowed it to get around the filter, hence the wildcard.

    The key is, to inform your users over and voer not to open things from people they don't know or aren't expecting. If you start blocking zip's you might as well block all attachments.

    --
    /* oops I accidentally made a comment, sorry */
    /* http://allyourbasearebelongto.us */
  20. Business Risk versus Security Risk by RedPhoenix · · Score: 5, Insightful

    This, and similar issues, have cropped up at a few of our customer sites over the years. There are situations where bringing in (documents/zip files/spreadsheets/etc.) are an essential part of making organisation function.

    Whilst you can implement technical countermeasures to reduce your security risk somewhat, such as installing virus checkers that are able to unzip/unarj/unrar, keeping virus signature definitions up to date, quarantine incoming attachments.. etc, you really need to compare your security risk profile, with the business risk associated with NOT receiving these attachments.

    This would normally be the function of your organisational risk assessment - it would compare the likely harm of virus infection, against the loss of capability as a result of not receiving the documents/zip files in question.

    Which way you go, really depends on the threat/risk/harm/countermeasure equasion, which is unique to your organisation. However, a quick 'cheat' check:
    * How badly is it going to hurt your organisation overall, if attachments don't come in?
    * Do you have the resources to quickly clean up a virus attack if one makes it through?

    - If you're a small organisation, with adequate IT staff numbers, and receiving attachments is pretty essential to your normal business... it's probably worth allowing things through.

    - If your IT staff numbers are limited such that a virus attack would be a major cleanup effort, or attachments aren't all that critical, then block them, or quarantine them by redirecting them to technically literate help-desk users (who can forward them internally after checking them out).

    However, make sure that you make it relatively painless for users to get their files. If you're really anal about things, they'll just open up a hotmail/yahoo/whatever account, ask people to send attachements there instead, and download just like a normal web link.

    Red.

  21. Use some Human Engineering by Anonymous Coward · · Score: 3, Informative

    Here's a simple solution used by a number of organisations down here in New Zealand.

    If an email with a forbidden attachment type is received, bounce it back to the sender with a "Sorry, no go" message UNLESS it has a matching flag in the subject line.

    So, to send a friend of mine a picture, I need to include [JPG] in the subject line, else it will bounce.

    Simple, easy, and proof against viri because YOU choose the flag.

    In your case, set it up to require [FUBAR] in the subject line to let a zip file through.

    Sorry though, I don't know the software package they use.

  22. Re:You get a virii scanner that can deal with zip. by Matts · · Score: 4, Informative

    Sobig.E came out before the virus scanners had signature updates. When viruses spread so fast these days about all you can do is push your email through MessageLabs who have never let a virus through to a customer due to their custom AV scanner which uses heuristics instead of signatures.

    Your point about not relying on any one point of access is well taken though - all entry points need to be protected in one way or another.

    --

    Matt. Want XML + Apache + Stylesheets? Get AxKit.
  23. Re:You get a virii scanner that can deal with zip. by Jucius+Maximus · · Score: 5, Interesting
    "Given that most users love to download crap via hotmail etc. , lets hope you have a virus scanner on their PC too."

    That is true. At one company I worked (with several thousand employees) there was an virus outbreak every one or two weeks on the corporate network.

    This reduced to once or twice per year after they blocked off hotmail, yahoo mail, lycos mail, ICQ, AIM, etc. And really, if you are smary enough to get around this an use a small webmail provider then you're smart enough to not download a virus as well.

  24. Multi-Level Solution by fdiskne1 · · Score: 4, Informative

    Here's what we do:

    1. Use Symantec Antivirus for SMTP Gateways 3.1. Blocks spam by subject, sender, multiple RBLs and heuristic antispam and has whitelist support. Scans for viruses and attachments can be deleted by filename with wildcards. I block anything that is executable in a Windows environment (since we use Windows, Exchange and Outlook -- no flames, please). Any file deleted gets a .txt file added to the message stating that <filename> is not allowed for security reasons. This means that if anyone needs to send a .exe, .cmd, .bat, .vb?, .cpl, .dll, and a number of others must first call so I can temporarily disable the deletion.

    2. Use another company's antivirus on the mail servers. We use Sybari with multiple scan engines. This saved us this past week when the new FortNight.E managed to get past SAV for SMTP because it didn't detect it yet and it was essentially a script embedded in an html. (I'd love to strip them, too, but too many legitimate emails come through as html.) Sybari caught it after Symantec missed it.

    3. Use another antivirus package for clients and servers. We use SAV Corporate edition with a master server setup so that one server d/l's updates from Symantec nightly or when I force it. Each remote location's server d/l's from that server nightly or when I force it. Each workstation d/l's from their location's server every 4 hours.

    Since starting this practice, we've had a total of 2 viruses make it into our network. One was on a laptop that, for some strange reason never got antivirus installed and it was infected at the user's home. The virus never got further than that, but it took a while to discover where the virus alerts were coming from when it attempted to infect other machines. The other one had a corrupt install of the desktop antivirus and the end user didn't let us know that something didn't look right on his client. He then fell for the e-card virus (Go to this URL to download the greeting card X sent you.). Again, never got further than this one workstation. This is all the infections we've seen in over 2 years. Not bad for a 1500 user network.

    --
    But why is the rum gone?
  25. Re:Here's abetter idea idea... by Black+Copter+Control · · Score: 2, Insightful
    Enable attachments. Disable Windows.

    That'll really cut down on your virus problems.

    --
    OS Software is like love: The best way to make it grow is to give it away.
  26. They were lucky... by Dthoma · · Score: 4, Interesting

    ...that no one uploaded a zip bomb. For the uninitiated, that's where you make a huge file or series of files containing nothing but a single character (e.g. a null character) repeated millions/billions of times over and then compressed. Since such perfectly repetitive data compresses so well, it's easy to upload the resulting small file (on the order of a few dozen kilobytes) and wait for the server to get thrown off unzipping it.

    --

    Note to M1-ers: a curt but otherwise insightful message is not "Flamebait" or "Troll".

    1. Re:They were lucky... by HBI · · Score: 2, Interesting

      This did happen back in the Fidonet days. "The Infinity Bomb" was a Net 107 (NY/NJ) legend. There was a jerky sysop named Bob Moravsik who got a zip bomb uploaded to his Fido mailer. Knocked his system offline until he got back to it. Never forgave the culprits (some of his fellow Fido sysops who hated his guts)

      It was funny back then because he was such an anus, but today ...you need to validate zip files imho. Not a technically hard job really. I did some surgery on Zip files back when (wrote a utility called zipc that would add comments to the files). The format is fairly simple.

      --
      HBI's Law: Frequency of calling others Nazis is directly correlated with the likelihood of the accuser being Communist.
  27. Digital signatures by macemoneta · · Score: 2, Interesting

    Digital signatures verify the authenticity of the email, but come in as an attachment. Stripping these off is counter to your intent, maintaining security.

    --

    Can You Say Linux? I Knew That You Could.

  28. Re:Grammar police! by PhuCknuT · · Score: 2

    Nobody is speaking latin here, the correct ENGLISH plural of virus is viruses.

  29. Automatic translation to open source could work by Animats · · Score: 3, Insightful
    The big problem is proprietary file formats. So how about a format-translation gateway? One based on components of OpenOffice. It would convert the proprietary formats that cause trouble (mostly .doc and .xls) into RTF or OpenOffice XML-based documents, then pass those on with a note.

    Yes, sometimes translation will be disappointing, but you probably didn't need the formatting junk anyway. Besides, once it's in an OpenOffice format, you can file it in a system with a search engine.

    Google ought to sell something like this as a product, since they already do most of those translations.

  30. How to break zip-file scanners by Safety+Cap · · Score: 3, Interesting
    The problem with ZFSs is that they can be broken easily. Here's one way to do it:
    1. Create a 67 meg ASCII file with nothing but a single repeating character. Here's an three line command-line (DOS) batch file to do it:
      echo aaaaa > punkd.txt

      for /l %%b in (0,1,11) do copy /y punkd.txt + punkd.txt punkd1.txt && copy /y punkd1.txt + punkd1.txt punkd.txt

      del punkd.txt
      (note that the second line is long and may wrap on your display)
    2. Run the batch and copy off "punkd1.txt" to another name.
    3. Make several copies of the file.
    4. Zip them all into your "package 'o death." Due to the simple structure of the file, it will zip down quite a bit (close to 99%) if you use maximum compression.
    5. Deliver the package to your victim.
    When the ZFS tries to unpack the files to scan them, it blows its swap space.
    --
    Yeah, right.