You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Jeremy Morton <ad...@game-point.net> on 2009/05/24 10:35:30 UTC

New image spam

Hi,

Recently I've been receiving some new image spams, subtly different from 
the one this rule is designed to mark:
http://markmail.org/message/zio642mxs5p42kxa

... in that it actually does have a blank text MIME part.

Here's an example of one such spam:
http://rafb.net/p/ppyJAS34.html

I don't suppose there any rules around to deal with anything like this? 
  I suppose theoretically you might get a ham e-mail with just an inline 
image and not much content... although I can't remember ever having one.

Best regards,
Jeremy Morton (Jez)

Re: New image spam

Posted by mouss <mo...@ml.netoyen.net>.
Jeremy Morton a écrit :
> Hi,
> 
> Recently I've been receiving some new image spams, subtly different from
> the one this rule is designed to mark:
> http://markmail.org/message/zio642mxs5p42kxa
> 
> ... in that it actually does have a blank text MIME part.
> 
> Here's an example of one such spam:
> http://rafb.net/p/ppyJAS34.html
> 

I see no text/* part in this sample.

> I don't suppose there any rules around to deal with anything like this?
>  I suppose theoretically you might get a ham e-mail with just an inline
> image and not much content... although I can't remember ever having one.
> 
> Best regards,
> Jeremy Morton (Jez)


Re: New image spam

Posted by John Hardin <jh...@impsec.org>.
On Sun, 24 May 2009, John Hardin wrote:

> On Sun, 24 May 2009, Cedric Knight wrote:
>
>>  I think image with not text in the body part at all is pretty rare, but
>>  I might do something like that if I was sending a picture to myself.
>
> I think most mailers will do that if you compose a message and drop an image 
> on it without entering any text. The multipart/mixed with _no_ text body 
> parts at all is pretty clearly spam.

Whoops, that was unclear. I think most mailers will create an empty text 
body part if you just drop an image on an empty message. But I haven't 
tested that assumption.

-- 
  John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
  jhardin@impsec.org    FALaholic #11174     pgpk -a jhardin@impsec.org
  key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
   Look at the people at the top of both efforts. Linus Torvalds is a
   university graduate with a CS degree. Bill Gates is a university
   dropout who bragged about dumpster-diving and using other peoples'
   garbage code as the basis for his code. Maybe that has something to
   do with the difference in quality/security between Linux and
   Windows.                           -- anytwofiveelevenis on Y! SCOX
-----------------------------------------------------------------------
  Tomorrow: Memorial Day - honor those who sacrificed for our liberty

Re: New image spam

Posted by John Hardin <jh...@impsec.org>.
On Sun, 24 May 2009, Cedric Knight wrote:

> header __CTYPE_MULTIPART_MXD Content-Type =~ /multipart\//i

Veto. If you want to ignore the subtype, name the rule 
__CTYPE_MULTIPART_ANY.

> because I've also recall them coming in as multipart/related.  The
> inbuilt rule only looked for "image/jpeg", so:
>
> mimeheader __ANY_IMAGE_ATTACH    Content-Type =~ /image\/(?:gif|jpe?g|png)/

I've just submitted a bug for that. Amazing nobody has noticed it until 
now.

> I don't think image/jpg is a standard MIME type, so we could also create:
>
> mimeheader MIME_IMAGE_JPG       Content-Type =~ /image\/jpg/
> describe MIME_IMAGE_JPG         contains wrong MIME type image\/jpg
> score MIME_IMAGE_JPG            1.0

...that might be why. :)

> I think image with not text in the body part at all is pretty rare, but
> I might do something like that if I was sending a picture to myself.

I think most mailers will do that if you compose a message and drop an 
image on it without entering any text. The multipart/mixed with _no_ text 
body parts at all is pretty clearly spam.

-- 
  John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
  jhardin@impsec.org    FALaholic #11174     pgpk -a jhardin@impsec.org
  key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
   Efficiency can magnify good, but it magnifies evil just as well.
   So, we should not be surprised to find that modern electronic
   communication magnifies stupidity as *efficiently* as it magnifies
   intelligence.                                   -- Robert A. Matern
-----------------------------------------------------------------------
  Tomorrow: Memorial Day - honor those who sacrificed for our liberty

Re: New image spam

Posted by Benny Pedersen <me...@junc.org>.
On Mon, May 25, 2009 05:24, Adam Katz wrote:
> ifplugin Mail::SpamAssassin::Plugin::ImageInfo
> mimeheader __MIME_GIF    Content-Type =~ /image\/gif/i

mimeheader is another plugin, so can give lint errors if both is not loaded

-- 
http://localhost/ 100% uptime and 100% mirrored :)


Re: New image spam

Posted by Martin Gregorie <ma...@gregorie.org>.
On Tue, 2009-05-26 at 17:49 +0200, Matus UHLAR - fantomas wrote:
> On 26.05.09 11:23, Martin Gregorie wrote:
> > Yes - comparing MIME image type to the file extension is already
> > obsolete.
> 
> Are you sure? Have you made any measures that tell such comparision is
> useless and has much of FPs?
> 
I have been running rules that trap PNG images since the current spate
of image spam started and these have been stopping it successfully. All
the image spam I've seen has come via SourceForge mailing lists, so 'no
text' rules have never worked for me, but I've been stopping it by a
combination of the image mime header information and subject line
content. The volume has never been all that great, but I haven't been
seeing FPs

However, during last weekend, I've had image spam that got through,
three examples IIRC, all of it bypassing my rules by spoofing the
image's mime header. All have claimed to be JPEG images, but all have
been PNG.

> To have good opinion, I'd prefer doing comparision of mismatches between
> filename/mimetype, mimetype/magic and filename/magic, there could tell us
> if the first is enough or not.
> 
All I'm saying is that filename/mimetype is insufficient to trap this
latest spam, but that the recently posted IMAGE_MISMATCH rule is
catching it: since implementing this rule I've had a further two
examples which were both successfully trapped.

I am a single user, not a company or an ISP. My incoming mail comes via
my ISP, who uses greylisting. I typically see around 8 +/-2 spams from
around 100 incoming messages per day, so getting five of these image
spams during 4.5 days is not insignificant.



Martin



Re: New image spam

Posted by Matus UHLAR - fantomas <uh...@fantomas.sk>.
> On Tue, 2009-05-26 at 10:20 +0200, Matus UHLAR - fantomas wrote:
> > Well, first issue was only to compare file extension to provided mime type,
> > so it would hit .gif file of type image/jpeg
> > 
> > >> or do we need a FileType plugin?

On 26.05.09 11:23, Martin Gregorie wrote:
> Yes - comparing MIME image type to the file extension is already
> obsolete.

Are you sure? Have you made any measures that tell such comparision is
useless and has much of FPs?

> During the weekend I got a few image spams via a SourceForge mailing
> list with MIME type image/jpg and filename something.jpg. gthumb
> confirmed these were PNG files. The ImageInfo plugin caught them too.

To have good opinion, I'd prefer doing comparision of mismatches between
filename/mimetype, mimetype/magic and filename/magic, there could tell us
if the first is enough or not.

-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
99 percent of lawyers give the rest a bad name. 

Re: New image spam

Posted by Martin Gregorie <ma...@gregorie.org>.
On Tue, 2009-05-26 at 10:20 +0200, Matus UHLAR - fantomas wrote:
> Well, first issue was only to compare file extension to provided mime type,
> so it would hit .gif file of type image/jpeg
> 
> >> or do we need a FileType plugin?
>
Yes - comparing MIME image type to the file extension is already
obsolete.

During the weekend I got a few image spams via a SourceForge mailing
list with MIME type image/jpg and filename something.jpg. gthumb
confirmed these were PNG files. The ImageInfo plugin caught them too.

BTW, some SourceForge mailing lists append a text/plain part containing
a mailing list-specific sig. Others may include a short text/plain part
containing an advert or sponsorship message. Of course these defeat the
'notext' test.



Martin



Re: New image spam

Posted by Jonas Eckerman <jo...@frukt.org>.
Matus UHLAR - fantomas wrote:

>> You need to check the files contents to catch that, and the ImageInfo  
>> plugin isn't meant to understand just any kind of content.
> 
> Well, first issue was only to compare file extension to provided mime type,
> so it would hit .gif file of type image/jpeg

Ah. yes. That could be done in a much more lightweight way than what my 
MimeMagic plugin does.

It should be pretty easy to make a plugin doing that.

>> compares the content-type with the content  
>> (using File::MimeInfo::Magic (wich uses the freedesktop file database).

> that's more complicated but apparently good to have. I wonder if the real
> filetype will match the extension or the mime type (or neither one)

I made it to check for windows executables sent with MIME type and 
extension of an MS Office dokument.

(I did this after discovering that a couple of machines here gladly ran 
an Win32 executable if it had a .doc or .xls extension when the user 
double-clicked it.)

For the current image spam it's overkill, but it did hit when I ran 
checked OPs example message here.

Regards
/Jonas
-- 
Jonas Eckerman
Fruktträdet & Förbundet Sveriges Dövblinda
http://www.fsdb.org/
http://www.frukt.org/
http://whatever.frukt.org/

Re: New image spam

Posted by Matus UHLAR - fantomas <uh...@fantomas.sk>.
> mouss wrote:
>> is there a way to generalize this to other MIME types? I mean a file
>> claiming to be a .pdf when it is a .wmv...?

On 26.05.09 02:40, Jonas Eckerman wrote:
> You need to check the files contents to catch that, and the ImageInfo  
> plugin isn't meant to understand just any kind of content.

Well, first issue was only to compare file extension to provided mime type,
so it would hit .gif file of type image/jpeg

>> or do we need a FileType plugin?
>
> I guess you mist my post where I said that I've got an experimental  
> plugin that is just that. It compares the content-type with the content  
> (using File::MimeInfo::Magic (wich uses the freedesktop file database).
>
> The plugin was called TypeMismatch for a couple of days, wich is closer  
> to FileType than the current name: MimeMagic.
>
> Anyway, it can be found at
> <http://whatever.frukt.org/spamassassin.text.shtml>

that's more complicated but apparently good to have. I wonder if the real
filetype will match the extension or the mime type (or neither one)
-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
"One World. One Web. One Program." - Microsoft promotional advertisement
"Ein Volk, ein Reich, ein Fuhrer!" - Adolf Hitler

Re: New image spam

Posted by Jonas Eckerman <jo...@frukt.org>.
mouss wrote:

> is there a way to generalize this to other MIME types? I mean a file
> claiming to be a .pdf when it is a .wmv...?

You need to check the files contents to catch that, and the ImageInfo 
plugin isn't meant to understand just any kind of content.

> or do we need a FileType plugin?

I guess you mist my post where I said that I've got an experimental 
plugin that is just that. It compares the content-type with the content 
(using File::MimeInfo::Magic (wich uses the freedesktop file database).

The plugin was called TypeMismatch for a couple of days, wich is closer 
to FileType than the current name: MimeMagic.

Anyway, it can be found at
<http://whatever.frukt.org/spamassassin.text.shtml>

Regards
/Jonas
-- 
Jonas Eckerman
Fruktträdet & Förbundet Sveriges Dövblinda
http://www.fsdb.org/
http://www.frukt.org/
http://whatever.frukt.org/

Re: New image spam

Posted by mouss <mo...@ml.netoyen.net>.
Adam Katz a écrit :
> Refined to include the ifplugin directive (which if you prefer can go
> after the three mimeheader lines).
> 
> ifplugin Mail::SpamAssassin::Plugin::ImageInfo
> mimeheader __MIME_GIF    Content-Type =~ /image\/gif/i
> mimeheader __MIME_PNG    Content-Type =~ /image\/png/i
> mimeheader __MIME_JPEG   Content-Type =~ /image\/jpe?g/i
> body __GIF_ATTACH        eval:image_count('gif',1)
> body __PNG_ATTACH        eval:image_count('png',1)
> body __JPEG_ATTACH       eval:image_count('jpeg',1)
> 
> meta IMAGE_MISMATCH      (__MIME_GIF && !__GIF_ATTACH) || (__MIME_PNG &&
> !__PNG_ATTACH) || (__MIME_JPEG && !__JPEG_ATTACH)
> describe IMAGE_MISMATCH  Contains wrong image format for MIME header
> score IMAGE_MISMATCH     1.0
> endif

is there a way to generalize this to other MIME types? I mean a file
claiming to be a .pdf when it is a .wmv...?

or do we need a FileType plugin?

Re: New image spam

Posted by Adam Katz <an...@khopis.com>.
Refined to include the ifplugin directive (which if you prefer can go
after the three mimeheader lines).

ifplugin Mail::SpamAssassin::Plugin::ImageInfo
mimeheader __MIME_GIF    Content-Type =~ /image\/gif/i
mimeheader __MIME_PNG    Content-Type =~ /image\/png/i
mimeheader __MIME_JPEG   Content-Type =~ /image\/jpe?g/i
body __GIF_ATTACH        eval:image_count('gif',1)
body __PNG_ATTACH        eval:image_count('png',1)
body __JPEG_ATTACH       eval:image_count('jpeg',1)

meta IMAGE_MISMATCH      (__MIME_GIF && !__GIF_ATTACH) || (__MIME_PNG &&
!__PNG_ATTACH) || (__MIME_JPEG && !__JPEG_ATTACH)
describe IMAGE_MISMATCH  Contains wrong image format for MIME header
score IMAGE_MISMATCH     1.0
endif

Re: New image spam

Posted by Adam Katz <an...@khopis.com>.
Cedric Knight wrote:
>> Also, it's not really a JPEG but a PNG, and one with a consistent
>> header over the last few weeks:

Bob Proulx wrote:
> I like the idea of tagging mismatched types where the actual content 
> doesn't match the stated type.  That would be a good idea for a
> plugin enhancement.  Perhaps something based upon libmagic?

Internal image type handling is already present in SA, though buried.
See %get_details in ImageInfo.pm.  Not sure the best way to call it, as
such a function is actually internal-only.  Perhaps this:


mimeheader __MIME_GIF    Content-Type =~ /image\/gif/i
mimeheader __MIME_PNG    Content-Type =~ /image\/png/i
mimeheader __MIME_JPEG   Content-Type =~ /image\/jpe?g/i
body __GIF_ATTACH        eval:image_count('gif',1)
body __PNG_ATTACH        eval:image_count('png',1)
body __JPEG_ATTACH       eval:image_count('jpeg',1)

meta IMAGE_MISMATCH      (__MIME_GIF && !__GIF_ATTACH) || (__MIME_PNG &&
!__PNG_ATTACH) || (__MIME_JPEG && !__JPEG_ATTACH)
describe IMAGE_MISMATCH  Contains wrong image format for MIME header
score IMAGE_MISMATCH     1.0


Cedric's MIME_IMAGE_JPG might be interesting too, but I suspect it's too
rare to be useful.

Re: New image spam

Posted by Jonas Eckerman <jo...@frukt.org>.
Bob Proulx wrote:

> I like the idea of tagging mismatched types where the actual content
> doesn't match the stated type.  That would be a good idea for a plugin
> enhancement.  Perhaps something based upon libmagic?

I've got a plugin that does this. It's the MimeMagic plugin at 
<http://whatever.frukt.org/spamassassin.text.shtml#MimeMagic.pm>.

FWIW the spam put up by the OP got hit by a mismatch rule when I ran it 
through spamassassin here.

The plugin uses File::MimeInfo::Magic, wich in turn uses the freedesktop 
MIME database.

Please note that while the plugin isn't new I still consider it 
experimental since I haven't done enough evaluation of it's results.

Regards
/Jonas

-- 
Jonas Eckerman
Fruktträdet & Förbundet Sveriges Dövblinda
http://www.fsdb.org/
http://www.frukt.org/
http://whatever.frukt.org/

Re: New image spam

Posted by Bob Proulx <bo...@proulx.com>.
Cedric Knight wrote:
> mimeheader MIME_IMAGE_JPG       Content-Type =~ /image\/jpg/
> describe MIME_IMAGE_JPG         contains wrong MIME type image\/jpg
> score MIME_IMAGE_JPG            1.0

This puts a literal '\' in the description.  The quoting isn't needed
there.  But otherwise seems useful.  I have thrown it into my
collection here.

> Also, it's not really a JPEG but a PNG, and one with a consistent header
> over the last few weeks:

I like the idea of tagging mismatched types where the actual content
doesn't match the stated type.  That would be a good idea for a plugin
enhancement.  Perhaps something based upon libmagic?

Bob

Re: New image spam

Posted by Ned Slider <ne...@unixmail.co.uk>.
mouss wrote:
>>
>> I think image with not text in the body part at all is pretty rare, but
>> I might do something like that if I was sending a picture to myself.
>>

and when I send an email to myself with only an image attachment (using 
thunderbird), this is what I see (note the presence of Content-Type: 
text/plain):

To: test@example.com
Subject: test
Content-Type: multipart/mixed;
  boundary="------------000708050006030009060103"

This is a multi-part message in MIME format.
--------------000708050006030009060103
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit


--------------000708050006030009060103
Content-Type: image/jpeg;
  name="back_search.jpg"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
  filename="test.jpg"




Re: New image spam

Posted by mouss <mo...@ml.netoyen.net>.
Bob Proulx a écrit :
> mouss wrote:
>> how about
>>
>> header __CTYPE_MULTIPART Content-Type =~ m{multipart/\w}i
>> mimeheader __MIME_CTYPE_IMAGE Content-Type =~ m{image/\w}
>> mimeheader __MIME_CTYPE_TEXT  Content-Type =~ m{text/\w}
>>
>> meta MULTIPART_IMG_NO_TEXT (__CTYPE_MULTIPART && __CTYPE_IMAGE &&
>> !__CTYPE_TEXT)
> 
> I like this!  Because I think spammers will continue to abuse the
> subtype and we would be chasing it endlessly it seems best not to
> include it.  But there does seem to be a mixup in the "__MIME_" prefix
> on or off in the above. 

indeed.

> Here is the rule I have installed.
> 
> header __CTYPE_MULTIPART Content-Type =~ m{multipart/\w}I
> mimeheader __MIME_CTYPE_IMAGE Content-Type =~ m{image/\w}
> mimeheader __MIME_CTYPE_TEXT  Content-Type =~ m{text/\w}
> meta MULTIPART_IMG_NO_TEXT (__CTYPE_MULTIPART && __MIME_CTYPE_IMAGE && !__MIME_CTYPE_TEXT)
> score    MULTIPART_IMG_NO_TEXT 2.0
> describe MULTIPART_IMG_NO_TEXT Image body part but no text body parts
> 


I also added a meta to add 10 points if the above happens and mail is
sent from debian lists (I guess I could add all lists I am subscribed
to). the nice thing is that it catches this junk even with DNSWL...

> Adjust the score 2.0 as appropriate.  I have it much higher here at
> BAYES_99+required_hits to ensure that it forces a spam categorization
> because here I can guarantee that restriction.
> 
> Bob


Re: New image spam

Posted by Bob Proulx <bo...@proulx.com>.
mouss wrote:
> how about
> 
> header __CTYPE_MULTIPART Content-Type =~ m{multipart/\w}i
> mimeheader __MIME_CTYPE_IMAGE Content-Type =~ m{image/\w}
> mimeheader __MIME_CTYPE_TEXT  Content-Type =~ m{text/\w}
> 
> meta MULTIPART_IMG_NO_TEXT (__CTYPE_MULTIPART && __CTYPE_IMAGE &&
> !__CTYPE_TEXT)

I like this!  Because I think spammers will continue to abuse the
subtype and we would be chasing it endlessly it seems best not to
include it.  But there does seem to be a mixup in the "__MIME_" prefix
on or off in the above.  Here is the rule I have installed.

header __CTYPE_MULTIPART Content-Type =~ m{multipart/\w}I
mimeheader __MIME_CTYPE_IMAGE Content-Type =~ m{image/\w}
mimeheader __MIME_CTYPE_TEXT  Content-Type =~ m{text/\w}
meta MULTIPART_IMG_NO_TEXT (__CTYPE_MULTIPART && __MIME_CTYPE_IMAGE && !__MIME_CTYPE_TEXT)
score    MULTIPART_IMG_NO_TEXT 2.0
describe MULTIPART_IMG_NO_TEXT Image body part but no text body parts

Adjust the score 2.0 as appropriate.  I have it much higher here at
BAYES_99+required_hits to ensure that it forces a spam categorization
because here I can guarantee that restriction.

Bob

Re: New image spam

Posted by mouss <mo...@ml.netoyen.net>.
Cedric Knight a écrit :
> Jeremy Morton wrote:
>> Recently I've been receiving some new image spams, subtly different
>> from the one this rule is designed to mark:
>> http://markmail.org/message/zio642mxs5p42kxa
>>
>> ... in that it actually does have a blank text MIME part.
>>
>> Here's an example of one such spam:
>> http://rafb.net/p/ppyJAS34.html
> 
> Actually, there only seems to be one MIME part in what you have pasted,
> so amending John's rule and the inbuilt one as follows should do it:
> 
> header __CTYPE_MULTIPART_MXD Content-Type =~ /multipart\//i
> 



> because I've also recall them coming in as multipart/related.  The
> inbuilt rule only looked for "image/jpeg", so:
> 
> mimeheader __ANY_IMAGE_ATTACH    Content-Type =~ /image\/(?:gif|jpe?g|png)/
> 
> I don't think image/jpg is a standard MIME type, so we could also create:
> 
> mimeheader MIME_IMAGE_JPG       Content-Type =~ /image\/jpg/
> describe MIME_IMAGE_JPG         contains wrong MIME type image\/jpg
> score MIME_IMAGE_JPG            1.0
> 

how about

header __CTYPE_MULTIPART Content-Type =~ m{multipart/\w}i
mimeheader __MIME_CTYPE_IMAGE Content-Type =~ m{image/\w}
mimeheader __MIME_CTYPE_TEXT  Content-Type =~ m{text/\w}

meta MULTIPART_IMG_NO_TEXT (__CTYPE_MULTIPART && __CTYPE_IMAGE &&
!__CTYPE_TEXT)

> Also, it's not really a JPEG but a PNG, and one with a consistent header
> over the last few weeks:
> 
> full PILL_IMAGE_PNG_HEAD        
> /^U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAADAUExU/m
> describe PILL_IMAGE_PNG_HEAD     2nd line of base64 of autogenerated PNG
> score PILL_IMAGE_PNG_HEAD        1.5
> 
> I have seen spam come as you say with a minimal body part, as in:
> 
> rawbody PILL_IMAGE_HTML          /<body bgcolor="\#ffffff"
> text="\#000000">\s<img src="[a-z]+.(?:png|jpe?g|gif)">\s<\/body>/s
> describe PILL_IMAGE_HTML         Very simple HTML part as in image-only
> May 09
> score PILL_IMAGE_HTML            0.1
> 
> I think image with not text in the body part at all is pretty rare, but
> I might do something like that if I was sending a picture to myself.
> 
> Meta rules based on some combination of the above could probably catch
> it all at the moment.  Your sample hit DCC_CHECK and BAYES_80 for me,
> but not the iXhash rules.
> 
> Hope these are of some use.
> 
> CK
> 
> 
> 


Re: New image spam

Posted by Cedric Knight <ce...@gn.apc.org>.
Jeremy Morton wrote:
> Recently I've been receiving some new image spams, subtly different
> from the one this rule is designed to mark:
> http://markmail.org/message/zio642mxs5p42kxa
>
> ... in that it actually does have a blank text MIME part.
>
> Here's an example of one such spam:
> http://rafb.net/p/ppyJAS34.html

Actually, there only seems to be one MIME part in what you have pasted,
so amending John's rule and the inbuilt one as follows should do it:

header __CTYPE_MULTIPART_MXD Content-Type =~ /multipart\//i

because I've also recall them coming in as multipart/related.  The
inbuilt rule only looked for "image/jpeg", so:

mimeheader __ANY_IMAGE_ATTACH    Content-Type =~ /image\/(?:gif|jpe?g|png)/

I don't think image/jpg is a standard MIME type, so we could also create:

mimeheader MIME_IMAGE_JPG       Content-Type =~ /image\/jpg/
describe MIME_IMAGE_JPG         contains wrong MIME type image\/jpg
score MIME_IMAGE_JPG            1.0

Also, it's not really a JPEG but a PNG, and one with a consistent header
over the last few weeks:

full PILL_IMAGE_PNG_HEAD        
/^U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAADAUExU/m
describe PILL_IMAGE_PNG_HEAD     2nd line of base64 of autogenerated PNG
score PILL_IMAGE_PNG_HEAD        1.5

I have seen spam come as you say with a minimal body part, as in:

rawbody PILL_IMAGE_HTML          /<body bgcolor="\#ffffff"
text="\#000000">\s<img src="[a-z]+.(?:png|jpe?g|gif)">\s<\/body>/s
describe PILL_IMAGE_HTML         Very simple HTML part as in image-only
May 09
score PILL_IMAGE_HTML            0.1

I think image with not text in the body part at all is pretty rare, but
I might do something like that if I was sending a picture to myself.

Meta rules based on some combination of the above could probably catch
it all at the moment.  Your sample hit DCC_CHECK and BAYES_80 for me,
but not the iXhash rules.

Hope these are of some use.

CK