Using Snort Stealthily
jukal writes "Linux Journal has an article on using Snort as stealth sniffer, a stealth NDIS probe and stealth loger -- on a network interface with no IP address. 'Snort is a versatile and powerful tool for sniffing, intrusion detection and packet logging. Configuring it to run stealthily in sniffing mode or NIDS mode is easy; incorporating it into a stealth-logging solution is only slightly less so'"
Just cut the TX on your Ethernet.
When I want to snort, I use a little alcohol solution in an Afrin bottle -- very inconspicuous.
Oh, and it hurts!
Woo Hoo!
--orpheus
Snort is a great tool. However, the last time I used it I found it a little bit difficult to get it working just the way I want with all the parameters. In reality, I guess that is probably a good thing or every l33t hax0r would be out there using it.
:)
Regardless- has anyone made any good UI to use it? I really liked the way "sniffit" worked with interactive mode. Maybe someone could design a UI and call it "sniffles" or whatever. The stealth mode version could be called "silent sneeze"
Am I the only one who, not having heard of snort, thought this was a story about doing drugs?
I mean, sniffing, snorting, doing it so no-one notices... Sigh. It's Friday, it's mid afternoon (UK), and I want to go home. Is it any wonder my mind is failing?
Maran
Just one question ...
What's a loger for?
Won't tcpdump or netstat -an do basically the same thing?
If you're THAT worries about security, I have 3 words for you:
Build a firewall!!!
(and don't make your firewall similar to swiss cheese by poking lots of holes in it!)
HallmarkOrnaments.Com
But you are much better off using something like ISS' RealSecure, which feeds into either workgroup manager or their new flagship product, Site Protector. With that, you can dump all your events into a superior MS SQL 2000 server for event correlation, queries, and forensics. You can also tie together your intrusion detection with your vulnerability assessment so, if you see a bunch of a certain kind of attack, you can automatically launch a vulnerability assessment with just that attack to ensure you have everything protected (and to make sure that there isn't a new development or test box sitting there insecure since you had no inkling of its existence).
Does anyone have a server call Charlie?
Charlie% Snort Charlie -1 line...
An article like this is kinda sketchy as a feature on a site like Slashdot, which is composed largely by members who attend various colleges and universities across the world, all of which surely have Appropriate Usage Policies that clearly state that this type of network sniffing is not legal on their network.
;-D
So, kids, be smart about what "network analysis tools" you use. I know our head network administrator personally, and he sees EVERYTHING (no, really -- EVERY BIT) of traffic that he wants.
Use something like this at my school, and you'll be using a lab computer to check email by the end of the day since they'd disable your port immediately
If you celebrate Xmas, befriend me (538
Also worth investigate Prelude
"Prelude is a new innovative hybrid Intrusion Detection system designed to be very modular, distributed, rock solid and fast. "
The biggest problems are:
- A switch can mangle the packets a little before they're port-mirrored
- How exactly DOES one monitor >100mbit full-duplex traffic using only a single 100mbit port
:) ? (dropped packets are a significant reality on a busy network)
'Course, what you REALLY need is a good, *electrically* transparent impedance matching tap, like one of these.Don't sweat the petty things. But do pet the sweaty things.
So, folks are trying to make Snort do what just about every decent commercial NID sensor does. Now, if it can just achieve the same performance levels and keep state properly....
ugh.. the last sentance in this slashdot post is ripped directly from the last one of the article...
Think for yourself
I always try to snort stealthily, lest someone would walk in on my little 'habit'. ;-)
Money for nothing, pix for free
I beat you all to the punch.
And at least spellcheck your articles before you post them?
I counted 5 grammar, style, and punctuation errors in the post.
The only high point of this one is that there is not a blatantly editorializing comment slapped on the end as is the norm here on SlashDork.
Granted, this site has never been mistaken for "literary," but in order to move it to the next level, and build a reputation, you've got to pay attention to the details.
That is, or course, unless you (and your parent company) are satistifed with a demographic of 14-to-20-year-old fanb0yz and bored, unproductive developers.
I am swiftly tiring of the steadily declining quality of the articles posted here. I ceased reading comments a year ago because the moderation system is so completely broken, and my only request at this point (like Woody Allen's famous restaurant review) is for more articles, but with higher quality. You geeks can have a big discussion parade, waving your sticky keyboards down the lane, but give me some actual "News for Nerds. Stuff that matters."
P.S. Why is 'Nerds' Capitalized in Slashdot's tagline? Is it suddenly a noun which describes a recognized group of people, like a religion, political party, or secret society?
This is an invitation for the taco snotting guide troll, isn't it ?
If the moderation system worked, then your comment regarding spelling and grammar would have been modded down in an instant.
These guys(and I speak for myself here too) reasing this, and talking about packet sniffing are techies. Techies dont need to advertise products, or have shiny teeth, shiny boots or slick nike jackets. Techies dont need to spell perfectly- and are more likely to deliberately mis-spell a word to save typing characters or so non-techies cant read it. We are some of the most egotistical arrogant scum of the universe and once we have accepted that we are a techie-we dont try and deny that. When I read a posting-I look for content- wether it was well researched and well thought out, if it was even on topic-and will then respond in a way that I deem suitable. If I disagree I will say so. I dont even mind normal bitching matches and stuff. But anal english teachers can go to pgce.gov.co.uk or somewhere else. Because they are not welcome here. Go away- and leave network packet sniffing conversation to people who are too interested in networking to give a monkeys uncle about the quality of their grammar and spelling.
OrionRobots.co.uk - Robots From sol
There's a better article about SNORT and ACID on LinuxWorld. Also, if you want to investigate SNORT, check out the following links:
In my universe I'm perfectly normal, it's not my fault you don't live in my universe.
Is that anything like Stealth Lager?
'Cause I would try some of that.
Or was he trying sooo hard to spell Logger, only to come up soooo short?
You killed Linux Journal! You bastards! I figured it was time for an alternative South Park joke.
Why not fork?
For the cost of one NIC and some existing obsolete hardware, I now have a hardened Snort sensor outside my firewall. I can see all inbound and outbound traffic, which is logged to MySQL and viewed thru ACID. Not bad for about $30.
Sourcefire (founded by Marty Roesch - creator of Snort) is releasing a rack-mount device that can manage freeware Snort sensors. Cost is about $15K. Hell of a lot cheaper than the alternatives! I'll be getting one of those soon... If you run Bastille security, with a little know-how, you can stealthify your Snort sensors to the point where they become invisible. I get scanned regularly, and nobody has yet found the IDS box. Me == happy!
***
This is my Sig. This is my Glock, this is my Walther, and this is my Beretta.
Any questions?
>Did I miss it, can snort (with any add on package) actually take action upon what it detects ?
Yes, it can. You missed it.
There's a great add-in that allows dynamic updating of Firewall-1 rules called SnortSAM. There are others as well.
If those programs don't suit you, if you have skill with Perl you could also craft a program to send the RST (reset) packets based on certain alerts.
Or you could always pay me to do it. (shameless plug)
You can do all that, and more.
The question is whether your organization has the time and resources to set it up and support it. If you've got the money, but not the time, perhaps a commercial solution is better.
Lee
Amen, brother!
Who'd've thought Slashdot, of all places, would be giving me tips on my secret drug habit? Thanks, /.!
I always go in to the bathroom before I snort, but that kind of depends on where you are. Basically anywhere where no one will see you snorting is good, and if you use a rolled up dollar bill, I would hide that as well.
Moon Macrosystems. Sun's biggest competitor.
The best way to use snort stealthily would be to snort in a dark alleyway, preferably away from all cop shops and majorly populated areas.
I have had a lot of fun with snort. Perhaps
/etc/passwd file will
the greatest thing it does is deter would-be
bad guys from even looking at your machine
twice... as soon as they find you've got snort
running they go away in most cases.
This does not apply to the script-kiddies running
the NT http directory traversals every 15 minutes
against your Linux box. I have found that even a
good solid dos does not stop THEM.
Oh yeah while I am here, why haven't the lords of
slashdot run my story on the current bitchx
source tarball trojan? You could save an awful
lot of folks grief by just running the damn story
and not worrying about the fact that you ran the
same story months ago. This is a new, different
incarnation of the thing and it is quite bad;
giving paz.bakunin.net a root shell on the system
of anybody running the configure script from the
bitchx source tarball downloaded from
ftp.bitchx.org.
The md5sum of the trojanned bitchx is:
a9d6bb266c503a09d46cef679fce8320
The md5sum of the clean bitchx is:
79431ff0880e7317049045981fac8adc
The name of the bitchx source tarball is:
ircii-pana-1.0c19.tar.gz
If you run the configure script from the trojanned
tarball, you will wind up with a connection to
port 6667 on paz.bakunin.net with a shell on your
end. Also, a copy of your
be sent to that port.
I can state with 100% certainty that the BitchX
package that is part of slackware 8.1 is totally
clean and safe. The BitchX source tarball from
ftp.irc.org is also clean.
Just a little story. At my previous job (an e-commerce .com site, where our database contained probably several million credit-card#'s and email addresses), we hired a few consultants to do some Java coding...
About a week later, because of our security tools, we discovered one of the consultants port-scanning our network. The director went and asked him why he was port scanning, with no good reply, and told him to stop doing it.
About 2 weeks later, yet again, the *same* consultant was found port-scanning the network again, this time hitting our production website boxes at our offsite co-location (which includes the database boxes, loaded with data that only a handful of people had access to). He was promptly walked out the door, and the consulting company was asked to replace him with someone else.
While a firewall will protect you from attacks from the outside, attacks from the inside are just as dangerous.
I was employed at a place that did the same thing with OpenBSD about a year ago. Our methods required knocking out IPv4 support from the kernel and recompiling it. Only then did we think it safe enough to use in the DMZ.
The main problem with this approach was grabbing the Alerts and such once you had it up and running. This was solved using a JAZ drive no one wanted. A definite kludge but it worked at the time...
No offense to our open-source IDS friends, but the commercial IDS world realized this exact thing at least 5 years ago. I used to work on the network based IDS products at ISS, and we started recommending this back in 1997 (when I started working there). Here is a link (PDF) to a document that describes (among other things) running RealSecure in "stealth mode" and it dates from 1998.
Well obviously a nice GUI helps. However after reading over some snort documentation, one of the problems I see is caused by the fact that snort is a rules-based IDS. That makes it retro-active in nature. Can't stop what isn't in your rules (kind of like stopping viruses). So how does the security community overcome such an obstacle?
PATCRP: I would mod you up, but don't have moderator access now.
Somebody should do it though.
+ Informative
Hogwash already does this I thought.
Actually that rasies the question of the "comfort-level"[1] that companies would have with IDS systems. At the level these systems work a lot of sensitive information is gathered.
[1] Remember even people from IT departments have gotten in trouble doing port-scanning just for the purposes of internal security.
If you're going to do this, make sure you put two interfaces (or use 802.1q) in the box so you can monitor it via a management network. The importance of knowing your IDS is working is more valuable than its being undetectable to intruders. Two interfaces also obviates the need for the tortured fake IP traffic syslogging mentioned in the article. Oh, and one more thing - management network != general LAN.
I have been using Snort for several years now and really like it. I have seen a few people make references to "Stealth Cables", basically you put a capicitor on the transmit pairs so it can only receive and Snort should keep on working. I found a few how-tos but so far haven't managed to get it working as advertised. Anyone out there have any luck with something like this?
I had a stealth loger yesterday, but I discretely picked my nose until I finally got it.
Anyone eant it? It's now on ebay.
Speaking of better.
http://www.nss.co.uk/
There latest report on IDS products is available. All they require is a little info.
I can smell blue!
yoo soh tyred? me so sawree: leeve sucka,
The IPCop Firewall Distro comes with snort and has an easy-to-understand web interface and a decent set of default rulesets. Unfortunately, tuning the rules cannot be done through the web interface, but you can log in and tweak with a text editor.
Cheers,
Jim
-- My Weblog.
All that snort does is *watch* for stuff, not prevent it - It's up to the admin to read the logs and decide then what to block, using some other tool.
If you set it up and get familiar with it, you'll see that this is a good thing, due to the nature of it - it is sometimes overly-paranoid and the level of false-positives is very high. If it blocked all of the stuff it thought was an intrusion, you'd never get too much done.
That said, I have heard of tools that use Snort to trigger the insertion of firewall rules based upon certain types of 'intrusions'.
Snort's a great learning tool, but don't think it's actually *protecting* anything.
If you don't read its logs, it's like a security camera that nobody watches...
Cheers,
Jim
-- My Weblog.
Hello, I am the Network Systems Administrator for a very large Company. Last week one of the employees at my location used Snort (or somthing else) on the internal network on a company computer (with a operating system that was not suppost to be installed on it). Being a company that does projects that are of a secure nature (DOD etc). I caught this person (using my anti-sniffer) and I had to hand him over to the proper authorities, (His bosses's). I had to inform them that this is action and was a network NO-NO. This person did not need to have this computer (that is used for testing electrical circuits) connected to the network. They said in responce that they wanted to keep this computer on the network.(For what reason I do not know.) But now I am watching any and all traffic coming or going from that machine. I personaly think that this person will get a slap on the hand for this. I should also say that the person in question has no reason in his job (electrial technician) to scan my network.
m l
/.ed...
Now I will be buying the t-shirt that says..
just click on the link to a slashdot owned site www dot thinkgeek dot com OR here is the link below.
http://www.thinkgeek.com/stuff/apparel/38df.sht
P.S. You have just been
Since it's a *Packet* sniffer, you just need to tear open the packets to snort them - no dollar bill required.
Cheers,
Jim
-- My Weblog.
You may want to take a look at the Finisar Century Tap. There used to be a lot of information on the taps on the website when they were made by Shotmiti. Once Shomiti was bought by Finisar, a lot of the information disappeared. The tap allows you to "tap in" to a link. I have one installed between the firewall and switch. I use two interfaces, one is on the inside network for management, and the is connected to the tap in promiscuous mode without an IP address. The tap is pretty much invisible.
u ct _id=110&product_category_id=98
http://www.finisar.com/product/product.php?prod
Here is a PDF showing how to setup the tap with your Snort sensor. The only problem is the tap is really overpriced -- about $500. But, making a custom cable is a PITA.
If a daemon listens on a port that is open for incoming internet connections (eg. Apache), firewalls can only detect DoS type attacks. Firewalls aren't virus scanners for network sockets, there's no way a firewall would be able to reject an incoming packet as it arrives that it may contain malicious data.
Your Apache log files can probly tell u a lot more about exploit attempts.
while working at a .edu, i have the chance to admin what i was told was the world largest implementation of snort, whether thats true or not, i have no clue, i will say i had ALOT of sensors though. the general configuration was that we set a sparc netra out in front of the different departments, or in area's we thought it would be useful, and then all on the gateway. each one had 2 nic's, one with an ip address one without, and then the nonstealth part was logging, as the article mentions. we logged to a central database. in my time there though, none of the censors were comprimised, nor the database.
EOF