John Hardin wrote:
> Does this catch it?
>
> mimeheader __UNSPEC_BINARY_ATTACH     Content-Type =~ 
> /application\/octet-stream/i
> meta     MIME_BINARY_ONLY (__CTYPE_MULTIPART_MXD && __UNSPEC_BINARY_ATTACH && 
> !__ANY_TEXT_ATTACH)
> score    MIME_BINARY_ONLY 2.00
> describe MIME_BINARY_ONLY Unspecified binary body part but no text body parts

Of course that builds on your previously posted rules (thank you very
much!) and isn't by itself a complete set of rules.  I installed this
following variation locally and it seems to be working well for me:

header __CTYPE_MULTIPART Content-Type =~ m{multipart/\w}i
mimeheader __MIME_CTYPE_TEXT  Content-Type =~ m{text/\w}
mimeheader __MIME_CTYPE_APPLICATION_OCTETSTREAM  Content-Type =~ 
m{application/octet-stream}
meta MULTIPART_OCTETSTREAM_NO_TEXT (__CTYPE_MULTIPART && 
__MIME_CTYPE_APPLICATION_OCTETSTREAM && !__MIME_CTYPE_TEXT)
score    MULTIPART_OCTETSTREAM_NO_TEXT 2.0
describe MULTIPART_OCTETSTREAM_NO_TEXT Octet-Stream body part but no text body 
parts

A more specific set of rules to zero in on the rtf nature
specifically.  It might be safer in that it specifically targets this
type of spam.

header __CTYPE_MULTIPART Content-Type =~ m{multipart/\w}i
mimeheader __MIME_CTYPE_TEXT  Content-Type =~ m{text/\w}
mimeheader __MIME_CTYPE_APPLICATION_OCTETSTREAM_RTF  Content-Type =~ 
m{application/octet-stream.*name=".*\.rtf"}
meta MULTIPART_OCTETSTREAM_RTF_NO_TEXT (__CTYPE_MULTIPART && 
__MIME_CTYPE_APPLICATION_OCTETSTREAM_RTF && !__MIME_CTYPE_TEXT)
score    MULTIPART_OCTETSTREAM_RTF_NO_TEXT 2.0
describe MULTIPART_OCTETSTREAM_RTF_NO_TEXT Octet-Stream body rtf part but no 
text body parts

However playing wack-a-mole with each new type isn't productive.
Perhaps this following, completely untested, would be the better way
to go.  Just look for any multipart message that doesn't have any text
parts.  I haven't thought to much about what type of false positives
this might cause but it seems like a good direction anyway.

header __CTYPE_MULTIPART Content-Type =~ m{multipart/\w}i
mimeheader __MIME_CTYPE_TEXT  Content-Type =~ m{text/\w}
meta MULTIPART_NO_TEXT (__CTYPE_MULTIPART && !__MIME_CTYPE_TEXT)
score    MULTIPART_NO_TEXT 2.0
describe MULTIPART_NO_TEXT Multipart body but no text parts

Bob

Reply via email to