Blocking img src=cid messages |
Post Reply | Page 12> |
Author | ||
MartinC
Guest Group |
Post Options
Thanks(0)
Posted: 14 November 2005 at 4:38am |
|
We seem to receiving a large number of img src=cid type spam messages
the last few days, Outlook displays them and doesn't block them since
they aren't remote web beacons.
We can use Regex on our incoming mail messages but I can't see anything that I could match against. No websites or real text listed in the body and no discernible subjects to pickup on either which makes it difficult. Just something like "img src=cid:long list of hex digits" I wondered if any sites are blocking these entirely? Are there legitimate domains/ newsletters actually sending using this technique? (I have yet to spot any so far but there probably are) |
||
MartinC
Newbie Joined: 29 July 2005 Status: Offline Points: 25 |
Post Options
Thanks(0)
|
|
bump, forgot to login for replies. Martin
|
||
Alan
Groupie Joined: 06 May 2005 Location: United States Status: Offline Points: 43 |
Post Options
Thanks(0)
|
|
Seems like just using "img src=cid" in your keyword filter would do what you want.
|
||
MartinC
Newbie Joined: 29 July 2005 Status: Offline Points: 25 |
Post Options
Thanks(0)
|
|
this I know... pretty obvious. however, if its valid for some sites to use it, I'll be causing some false positives doing that. has anyone worked out a nicer regex expression rather than just blocking all... for example, can I do img src=cid AND subject="news report" or similar in Regex>? wasn't sure if you could mix a regex expression for both message body and subject together. Edited by MartinC |
||
Marcus
Newbie Joined: 25 July 2005 Location: United States Status: Offline Points: 21 |
Post Options
Thanks(0)
|
|
right click the msg and "view source" paste the html source in so we can see it, there is bound to be something there to target
Marcus |
||
Desperado
Senior Member Joined: 27 January 2005 Location: United States Status: Offline Points: 1143 |
Post Options
Thanks(0)
|
|
Unfortunately, there are probably valid newsletters with this code. The mailers of newsletters seem hell bent on making it nearly impossible to kill Spam by doing "spammy" things in their messages/headers/FROM's etc. |
||
The Desperado
Dan Seligmann. Work: http://www.mags.net Personal: http://www.desperado.com |
||
Marco
Senior Member Joined: 07 June 2005 Location: Netherlands Status: Offline Points: 137 |
Post Options
Thanks(0)
|
|
Wouldn't blocking all mails with "img src=cid" content, sortof 'force' the valid newsletter senders to reconsider their approach? I am using that filter for quite some time, no probs here, but then again, im not an ISP :) |
||
Anyone who is capable of getting himself made president, should on no account be allowed to do the job. D.Adams
|
||
MartinC
Newbie Joined: 29 July 2005 Status: Offline Points: 25 |
Post Options
Thanks(0)
|
|
yes, suppose it would but with lots of users its not really an approach we can take. as an individual, I certainly would be doing this though. a lot of people don't know when they are going to receive a newsletter either, so wouldn't know about the bounce if we had it at the server level. relies on the senders to contact us which isn't going to happen. here's an example, subject "breaking news" source <img src=cid:e86a81e69220472974bcbd61a7c8fa6b> approx 17kb and the message does have an attachment (which is the graphic displayed). Outlook doesn't block this since its not an offsite web link that could be a beacon, its just an attachment. messages are all to do with stock tips, prices etc. there is no embedded clickable web link, so nothing else in the source. |
||
Desperado
Senior Member Joined: 27 January 2005 Location: United States Status: Offline Points: 1143 |
Post Options
Thanks(0)
|
|
Marco, "valid newsletter senders" don't seem to give a rats arse about Spam issues and do what ever they want and then throw the blame at the ISP (Us). Many newsletters are totally indistinguishable from Spam and use all the techniques that spammers use to get past normal filters. Every time I put in a real good filter to stop some new Spam technique, some newsletters start getting blocked. Edited by Desperado |
||
The Desperado
Dan Seligmann. Work: http://www.mags.net Personal: http://www.desperado.com |
||
kspare
Senior Member Joined: 26 January 2005 Location: Canada Status: Offline Points: 334 |
Post Options
Thanks(0)
|
|
you know, I say .... too bad. That's why we got the autowhitelist. I'm adding this to my spam list.
|
||
Marco
Senior Member Joined: 07 June 2005 Location: Netherlands Status: Offline Points: 137 |
Post Options
Thanks(0)
|
|
Kspare said it, if newsletter authors choose to behave spam-like, they choose the risk to get blocked, if they don't care, then why should we? In the end there is allways the whitelist, and usually all the unsollicited newsletters do is generate traffic and cost us bandwidth.
|
||
Anyone who is capable of getting himself made president, should on no account be allowed to do the job. D.Adams
|
||
MartinC
Newbie Joined: 29 July 2005 Status: Offline Points: 25 |
Post Options
Thanks(0)
|
|
no-one answered my question, can I put a regex filter in that does something in the body AND the subject? so a boolean essentially. If I could do this, it would be relatively simple to block these messages. |
||
LogSat
Admin Group Joined: 25 January 2005 Location: United States Status: Offline Points: 4104 |
Post Options
Thanks(0)
|
|
MartinC,
Unfortunately the answer is "now". SpamFilter separates searches in the subject from those in the content, so each "line" (expression) in your keyword file can only search in either the subject or the body, not in both. |
||
Ann
Guest Group |
Post Options
Thanks(0)
|
|
How do I apply this rule with Outlook? I tried creating a rule that blocked by content but it didn't work. The statement is in the source code, not the actual body content. Does Outlook look at the source code? I am so sick of having porn pics showing up. Thanks, Ann |
||
pcmatt
Senior Member Joined: 15 February 2005 Location: United States Status: Offline Points: 116 |
Post Options
Thanks(0)
|
|
We've found it effective to block the cid's that are found in offensive unwanted email. You'll find that they are the same per spamvertiser. So you would add: cid:e86a81e69220472974bcbd61a7c8fa6b to your keyword list, for example, if that image was an offensive image. Obviously they can change the image and foil this, but spammers are pretty lazy. |
||
-Matt R
|
||
MartinC
Newbie Joined: 29 July 2005 Status: Offline Points: 25 |
Post Options
Thanks(0)
|
|
afraid not in this case Matt... the spammers aren't lazy - they're automated by the looks of it, and probably using some block of hijacked PCs to send these messages out. the cid changes everytime and they are coming from many ip addresses. we are getting hundreds of these per day and no way to block the messages - apart from blocking all img cid messages - this will cause a good number of false positives, probably newsletters of some sort. outlook 2003's builtin spam filter does seem to catch some of these but not all. I've tried running a separate outlook 2003 filter to see if any other messages I have use this style format, it seems not... img src=cid: in the message header doesn't show anything for 1000 messages of mine with various newsletters (so I might just be ok to block it globably). however, this doesn't help my users any at the moment since they are running different email clients. any ideas Roberto & others... really pulling my hair out on this one... okay, to reiterate... no text in the message body, apart from the img src=cid: and an ever changing 28-30 character hex string. various subjects like Top News, Headline News, Press Release ... [EDIT] okay... thinking about this... a Regex string that blocks img src=cid: but with a string greater than say 28 characters? that should get me pretty close rather than a global block. |
||
vrspock
Guest Group |
Post Options
Thanks(0)
|
|
I have to agree. We tell our users that newsletters tend to get caught by the spam filter because they have a lot of similarities to spam. There's always the auto forced delivery white list. We just tell folks to check their quarantine anytime shortly after subscribing to a new newsletter if they don't see any confirmations of their subscriptions shortly after subscribing. Most of our users realize that this is just part of life in an email world where 90% of email is spam. It's either deal with a few inevitable false positives from time to time or receive 200 spams in your inbox each day. We do have a mod on our site that allows senders who bother to read the NDR message to send a notification to recipients with a canned subject line and body to alert them to something really important that has landed in their quarantine amidst the few tons of spam. It seems to work fairly well in most false positive cases involving business oriented emails and sends us a CC of the notice to help give us an idea of how often a false positive hits the quarantine. |
||
Brian Dayton
Guest Group |
Post Options
Thanks(0)
|
|
I've been seeing a lot of these spam messages too and think that regex
would fit the bill quite nicely since the spam message is nothing but a
cid string and nothing else. Most messages with cid strings in them
have atleast other data within the source message so they will likely
not be blocked as long as the regex is filtering on messages that have
a cid string and nothing following it.
|
||
friesk
Guest Group |
Post Options
Thanks(0)
|
|
we have been getting a lot of these messages as of late. MartinC did you find a regex string that worked? Any more ideas on how to block these typ eof messages would be helpful, thanks.
|
||
Ken Bour
Guest Group |
Post Options
Thanks(0)
|
|
Here is the regex that I am using to block these messages: src\=(\"c|c)id\: This policy has been in place for about 3-4 days, but I am only logging for the time being. So far, only 1 false positive which I am trying to analyze. I agree that, if newsletters use this technique, then they subject themselves to being filtered.
|
||
MartinC
Newbie Joined: 29 July 2005 Status: Offline Points: 25 |
Post Options
Thanks(0)
|
|
thats a bit vague to be honest, blocks all src=cid. I ended up putting in something a bit more specific. (img src=cid:[a-zA-Z0-9]{16,20}) you can vary the numbers to whatever you want, 32,32 or whatever. |
||
pcmatt
Senior Member Joined: 15 February 2005 Location: United States Status: Offline Points: 116 |
Post Options
Thanks(0)
|
|
MartinC: I'm a bit of a Regex novice. Can you explain how this works like what the varied numbers will do:
Thanks! MattR
|
||
-Matt R
|
||
MartinC
Newbie Joined: 29 July 2005 Status: Offline Points: 25 |
Post Options
Thanks(0)
|
|
bit of a novice with it myself, so my explanation might not be spot on. the first number is the minimum length of string to match, the second one the length of the entire string? something like that. so if the jumble of letters and numbers was 16 characters long and
you wanted to match the entire thing, you could put 16,16 in the
brackets. if it was 16 characters but you were happy to match after a minimum of 8, then 8,16 would do the trick. worth downloading "the Regex Coach" which I think someone linked off
here... its a windows gui program that lets you try things out and see
how the things will work. I'm sure someone will come up with an even more efficient version of this expression.. but this one is fine for now. Edited by MartinC |
||
Marco
Senior Member Joined: 07 June 2005 Location: Netherlands Status: Offline Points: 137 |
Post Options
Thanks(0)
|
|
If only the bill gates' of this world would issue rewards on the heads of virus programmers, "wanted, dead or alive, $$$$$$ for the one that....." etc etc. Sounds funny eh? but you think about it... lets put a bounty on the head of the ones that created the latest wave of spamming viruses of, let's say, $200,000. I mean, thats peanuts for Bill, and seeing his OS is mostly responsible for all the crap out there it seems fair to me he should be the one to pick up the tab. With such an insentive i can allmost guarantee success in bringing the virus-geek(s) to justice. (i'd rather see them shot on the spot btw. ). The zombie networks are beeing used for all sorts of illegal practises, only one of the 'features' is sending spam, the virus programmers made this all happen, they should be dealt with radically and decisively. sorry, just need to vent sometimes |
||
Anyone who is capable of getting himself made president, should on no account be allowed to do the job. D.Adams
|
||
vrspock
Guest Group |
Post Options
Thanks(0)
|
|
Another pet peeve of mine with newsletters and some shopping carts is when the use the recipients email address as the from address in the emails they are sending from their own mail servers. We reject emails that fail SPF checking, including our own domains. |
||
vrspock
Guest Group |
Post Options
Thanks(0)
|
|
I agree whole heartidly, LOL. I think we should enfoce a law that I saw on the old 80's show, Max Headroom. If you crashed the net in the world of Max Headroom, it was a capital punishment offense! Surely under that train of thought, severly slowing down parts of the net would deserve a good caining. |
||
suomynona
Guest Group |
Post Options
Thanks(0)
|
|
Why does it even matter what comes after the cid:? If the message contains the match from the first regex, then it should be canned. I do see a flaw in the first regex, if there is a newline character before or after the "=" then it won't match. |
||
MartinC
Newbie Joined: 29 July 2005 Status: Offline Points: 25 |
Post Options
Thanks(0)
|
|
why does it matter?
simple - because there are some valid src=cid formats. spammers tend to use badly formatted ones so easier to block. I've not seen many programs do it, but have seen some false positives from standard email clients. |
||
JohnD
Guest Group |
Post Options
Thanks(0)
|
|
Where do I put this settinng ???
|
||
MartinC
Newbie Joined: 29 July 2005 Status: Offline Points: 25 |
Post Options
Thanks(0)
|
|
in the keywords.txt file.
I have a variety of these to block spammers. things like this for some of this weeks junk. (cid:[\w]{12}\$[\w]{8}\$[\w]{8}@[\w]{4,5}\.[\w]{2,5}") |
||
Post Reply | Page 12> |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
This page was generated in 0.258 seconds.