We just have released the first beta of our new PDF Spam Agent, an External Agent designed specifically to stop the recent PDF spam outbreak. It is a fairly simple program that categorizes the email as PDF spam if all of the conditions below are satisfied:
The email…
- Size must be less than 200kB
- Must have exactly one attachment, a PDF file
- Attachment size must be less than 100kB
The PDF…
- Must have only one page
- Must be version 3 (Acrobat 4.x)
- Must not have an info block
- Must have only one font embedded
- Must contain exactly one image
The image…
- Must have name /Im0 (most PDF generators define /Im1)
- Must be GIF (kind of… must have one filter called /LZWDecode)
I realize it is far from perfect and can be tricked very easily—this time, the goal was to reliably detect the current outbreak and differentiate it from legitimate PDF attachments, however. As the PDF spam phenomenon evolves, the above rule set will get deprecated and will have to get updates. This is why we decided to release the source code of the agent this time—I know many of the readers can code in C# and your reaction time is probably faster than ours. Feel free to modify the agent and/or move the project to SourceForge.net.