Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Snort-Signatures
[Top] [All Lists]

[Snort-sigs] More on RxBot and IRC traffic

Subject: [Snort-sigs] More on RxBot and IRC traffic
Date: Sat, 15 Jan 2005 14:23:01 +1300

Hi there, 

I found an interesting web page
http://cert.uni-stuttgart.de/doc/netsec/bots.php which lists some
signatures for IRC communications from Agobot/Phatbot/RxBot.

(You can get google to translate from the German, but the signatures
don't survive too well, so make to look at them in the original.)

<quote>
# localscan (?)
# (ntscan|ntstop|gigaload) (?)
# {http|ftp}\.execute (Agobot/Phatbot)
# bot\.(command|execute|flushdns) (Agobot/Phatbot)
# redirect ([0-9]{1,4}) (SpYboT)
# redirect\.(gre|http|https|socks|socks5|stop|tcp) (Agobot/Phatbot)
# 
scan\.((start|stop)(all)?|stats|(dis|en)able|(clear|reset|list|del|add)netrange)
 (Agobot/Phatbot)
# {syn|udp} ([0-9]{1,3}\.){3}[0-9]{1,3} (SDBot)
# ddos\.(httpflood|phat(icmp|syn|wonk)|stop|(syn|udp)flood|targa3) 
(Agobot/Phatbot)
# !scan ([0-9]{1,3}\.) (GTBot)
# (advscan|asc|xscan|adv\.start) 
(webdav|netbios|ntpass|dcom(2|135|445|1025)|mssql|lsass|optix|upnp) (rBot/rxBot)
# (advscan|asc|xscan|adv\.start) 
(beagle[12]|mydoom|netdevil|DameWare|kuang2|sub7|iis5ssl|wkssvc) (rBot/rxBot)
# ddos\.(syn|ack|random) (rBot/rxBot)
</quote>

So, to make SID 2001584 a bit more comprehensive, I think we could do:

alert tcp $HOME_NET !21:443 -> $EXTERNAL_NET !80 (msg:"BLEEDING-EDGE Bot 
Reporting Scan/Exploit"; content:"PRIVMSG"; nocase; 
pcre:"/(webdav|netbios|ntpass|dcom(2|135|445|1025)|mssql|lsass|optix|upnp|beagle[12]|mydoom|netdevil|DameWare|kuang2|sub7|iis5ssl|wkssvc)/i";
 nocase; within:80; tag:session, 20, packets; classtype:trojan-activity; 
flow:to_server,established; 
reference:url,cert.uni-stuttgart.de/doc/netsec/bots.php; 
reference:url,www.nitroguard.com/rxbot.html; sid:2001584; rev:1;)

And to cover the DDoS sigs:

alert tcp $HOME_NET !21:443 -> $EXTERNAL_NET !80 (msg:"BLEEDING-EDGE Bot 
Reporting/Commencing DDoS"; content:"PRIVMSG"; nocase; 
pcre:"ddos\.(httpflood|phat(icmp|syn|wonk)|stop|(syn|udp)flood|targa3|syn|ack|random)/i";
 nocase; within:80; tag:session, 20, packets; classtype:trojan-activity; 
flow:to_server,established; 
reference:url,cert.uni-stuttgart.de/doc/netsec/bots.php; 
reference:url,www.nitroguard.com/rxbot.html; sid:2001586; rev:1;)

NB: This is the first time I've written pcre, so feedback is most welcome.

I've also seen variations which are (should be :) covered in the first
sig which the web page sigs don't cover - e.g. packets starting
"PRIVMSG #channel:scan(lsass): random scan"... - which is why it's
slightly different.

cheers,
 Jamie
-- 
James Riden / j.riden@massey.ac.nz / Systems Security Engineer
Information Technology Services, Massey University, NZ.
GPG public key available at: http://www.massey.ac.nz/~jriden/




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Snort-sigs mailing list
Snort-sigs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/snort-sigs

<Prev in Thread] Current Thread [Next in Thread>