A Zip Bomb is a small Zip file that exploits capabilities of compression algorithms and settings to expand into a file or set of files that consume system resources to the point of system unusability. Didier Stevens, continuing his recent work in finding interesting sections of the PDF data scheme, has described techniques for the PDF equivalent of the Zip bomb, or a PDF Bomb.
Stevens' discovery comes after he looked closer at PDF Stream Objects. Within the PDF specification, a stream object is merely a form of packaging data as a sequence of bytes using one of a variety of encoding methods. A compliant PDF reader will then interpret the PDF file and reconstitute the stream object as the data that it originally represented. The great power of a stream object is that it allows the storage of complex visual representations in a straight forward and consistent manner.
It is the encoding options which is where the PDF Bomb gets its power from. Through the use of a 'stream filter' different encoding methods can be used to obfuscate the original data and provide a more compact means of storage when the filter being used is a compression filter. Stevens discovered that chaining two or more filters together, which he has dubbed a 'Filter Cascade' can lead to interesting outcomes when the resulting stream object is decoded by a compliant reader. Apart from the obvious system resource usage required to run subsequent filters on the same data, some of the filter options can be fed parameters that change how the data is filtered and how it is finally represented.
In testing, Stevens managed to create a PDF file that was only 2642 bytes in size, but which managed to decompress to 1GB of data through the use of filter parameters and filter cascading.
This now poses a challenge for antivirus/antimalware scanning software to adequately filter a booby-trapped PDF document without having to devote excessive resources to it. When other techniques for hiding malware in PDF files are considered (such as those already made public), it poses a seemingly impossible to solve problem for protective software developers. Because of the nature of PDF stream objects, techniques to identify and isolate Zip Bombs may not be applicable to PDF Bombs, though some observation of resource demands when filtering stream objects will highlight a potential PDF Bomb.
It is also a problem for PDF readers. How are they going to handle files that are created like this without failing? In Stevens' testing, he found that the 2642 byte PDF file was capable of bringing some readers to a halt. Perhaps some inbuilt monitoring of resource demands, similar to what is suggested above, will be a viable option for PDF reader developers.
Discover how SOA can create smarter outcomes for your business.
Attend and learn:
- How SOA is helping leading companies to become more agile
- Where you should be applying SOA processes in your company
- The top SOA implementation mistakes to avoid
Click here for more information.
- +
Computerworld Live Podcast #97: The Future of Enterprise Networking 25/07/2008 09:45:36
This week CW Live chats with Mark Thompson, global sales and marketing manager for HP ProCurve, on the future of the enterprise networking. Mark discusses the trends we can expect to see in the near future and how the right infrastructure can ensure your enterprise network is secure. - +
Computerworld Live Podcast #96: Security at the Edge 11/06/2008 09:22:22
CW Live speaks with Amol Mitra, HP ProCurve Director of Marketing for Asia Pacific and Japan. Today's topic: how enterprises are starting to shift away from simply controlling security via server logins, firewalls and moving to more adaptive security frameworks. - +
Data Management Edition #10: Multi-Petascale Systems 02/05/2008 09:12:33
This week we look at sustainability and the development of multicore technologies to build multi-petascale systems. - +
IT Security Edition #11: How to poison the Storm botnet 01/05/2008 08:51:55
This week CW Live presents a case study on how to poison the notorious Storm botnet . Plus we take a look at Cisco's plans for Ironport. - +
IT Security Edition #10: Cyber-battles fought and won 24/04/2008 11:09:47
Vendors bow to end user pressure to improve product security, and we take a look at the latest concepts shaping the cyber-battlefield of the future.
AOC Launches 18.5” Widescreen Green 16:9 LCD Monitor in Australia and New Zealand 2008-12-03 15:30:00+11
FrontRange Solutions eases software license management with new License Manager 3.0 2008-12-03 14:56:00+11
Progress Software's Cure for Managing Services-based Applications 2008-12-03 14:42:00+11
S3 Graphics Unleashes Full OpenGL® 3.0 API Support with Beta Driver for Chrome 500 Series GPUs 2008-12-03 14:08:00+11
Informatica Powercenter added to Nec Infoframe Solution Suite 2008-12-03 11:36:00+11
Business Intelligence and Enterprise Performance Management: Trends for Emerging Businesses
Hyperion surveyed 163 companies to understand BI and EPM requirements, evaluation processes, and extent of adoption. Top areas of current and future investment for emerging businesses include budgeting and planning as well as management reporting solutions. Read on to discover more.












