ZIPs putting the zap on antivirus products

E-mail users who were slow to update their antivirus software last week may have been surprised to receive a flood of e-mail messages containing ZIP files from long lost acquaintances, business partners and complete strangers.

The e-mail was sent by the recent Mydoom e-mail worm. The ZIP attachments were evidence of what antivirus experts say is a new trend in virus writing circles: using compressed ZIP files to hide viruses and elude detection by antivirus engines.

ZIP files are containers for one or more compressed files. Using programs like WinZip for Windows or Unzip for Unix, users compact files they want to store or transfer to others. The files must then be decompressed or "unzipped" before they can be viewed.

Long a staple of Internet and office communications, the compressed ZIP file has become embroiled in an arms race between virus writers and antivirus technology companies, experts say.

"We're definitely seeing a trend," said Alex Shipp, antivirus technology expert at MessageLabs Ltd. "It really took off in 2003. As soon as one virus was successful with technology like this, other virus writers took notice."

Virus authors learned long ago to hide their creations in e-mail file attachments, often disguising viruses as Windows screen saver (SCR) files or Windows program information (PIF) files, said Mike Hrabik, chief technology officer of Solutionary Inc., a managed security services company in Omaha, Nebraska.

While ZIP files were occasionally used to mask virus payloads, the practice wasn't common in virus writing circles because ZIPs, unlike SCR and PIF files, required separate software to be installed on the receiving system before the files could be opened and run on ubiquitous Windows machines, he said.

All that changed with the release of Microsoft Corp.'s Windows XP operating system, which included native support for opening ZIP files, allowing virus writers to count on users being able to unzip their attachment and open the virus file stored inside, Shipp said.

Gerhard Eschelbeck of security vulnerability scanning company Qualys Inc. agrees, saying that embedded support for ZIPs in modern systems makes them a rich target for worms like Mydoom.

In switching to ZIPs, virus authors were also picking up on trends in legitimate e-mail traffic to hide their own malicious creations, Shipp said.

"When corporations started blocking EXE (executable) files to prevent viruses from coming into their environment, people who wanted to send EXEs back and forth started zipping them before they sent them. Virus writers noticed that and took advantage of it," he said.

Unlike SCRs and PIFs, which have no use in legitimate exchanges, ZIP files are an important business tool that many individuals and organizations use to transfer large file. That makes it difficult for companies to strip them out of e-mail messages without affecting employees' work, experts say.

"For the most part, ZIPs are effective ways to send files, so blocking them is not something you want to do because it will break other functionality," said Craig Schmugar, antivirus research manager at Network Associates Inc.'s (NAI's) McAfee antivirus unit.

The files have other advantages for virus authors, as well, said Vipul Ved Prakash, founder and chief scientist at antispam company Cloudmark Inc. of San Francisco.

For mass mailing worms like Mydoom, zipping the virus payload makes it smaller and enables the worm to mail out more copies of itself in the same length of time than it could with uncompressed SCR, PIF or EXE files, Prakash said.

Zipping also changes the unique signature on the virus attachment, making it harder for antivirus engines to detect the malicious program, he said.

Eighty percent of the Mydoom samples that were submitted to Cloudmark from its SpamNet network of 800,000 users had ZIP attachments, Prakash said.

Malicious hackers are also finding other ways to maximize increased ZIP file use with viruses.

A recent security advisory from AERAsec Network Services and Security GmbH in Hohenbrunn, Germany, found that many antivirus engines are vulnerable to denial of service attacks from so-called "decompression bombs," in which gigabytes of data are zipped into very small files.

Antivirus engines that try to unzip these bombs often crash when trying to handle the huge amount of data stored in them, AERAsec researchers warned. (See http://www.aerasec.de/security/advisories/decompression-bomb-vulnerability.html.)

While decompression bombs have been around since the 1980s, many software products, including antivirus engines, still do not detect such attacks, said Harald Geiger of AERAsec.

But ZIPs are not a magic bullet for virus authors. Most antivirus programs can open and analyze the contents of ZIP files, flagging any files in a ZIP that match known viruses, said Schmugar.

In the end, there are no easy answers to the ZIP file problem, experts agree.

Solutionary publishes a list of 20 recommended file extensions that should be blocked, including PIF and SCR, Hrabik said.

For others, such as Microsoft Word DOC files and Adobe PDF files, companies should block specific file names that are known to be associated with virus payloads, he said.

Best practices for companies should include scanning inside of ZIP files and using extension blocking on files contained in the archives, said NAI's Schmugar.

"Security is always a trade-off," said Cloudmark's Prakash. "You can't just stop receiving EXE and ZIP files from people, because most of them are useful."

Companies need to balance business needs with security when setting up policies for files like ZIPs, he said.

Security policies that attach a trust level to certain e-mail senders outside and inside the company could be effective at blocking malicious ZIP attachments. Better user education that addresses bad habits like forwarding executable attachments could also help, Prakash said.

What’s wrong? The new clean desk test
Join the discussion
Be the first to comment on this article. Our Commenting Policies