bmonday(dot)com

What a long strange trip this will be

Site Links

Post Categories

Articles

Archives

Image Galleries

Blog Stats

Conferences

Distractions

Security Links

BlogRoll

(* = recently updated)

Thanks Richard

Every once in a while (if you're lucky, more often if you're not), you come across someone pointing out such a fundamental flaw in reasoning that it makes you smack your head and wonder why you've been doing it for 10 years.  It's such an obvious flaw when it's pointed out, but you've done it for so long out of habit that it never occurred to you to question it.

Such an epiphany came to me while reading Richard Bejtlich's new book, The Tao of Network Security Monitoring (awesome book, by the way).

The crime?

For 10 years now, in every single firewall installation I've been involved in, the majority of my logs have been dutifully filled with dropped packets.  As Richard deftly points out, in an off-hand comment towards the beginning of his tome (and I am paraphrasing):  “I don't know why so many firewall admins only log the traffic they drop.  The traffic that is being allowed in is much more dangerous, is it not?“

Of course it is, Richard.  I feel like an idiot.

But I'm taking some of you smegheads down with me, dammit.

Every firewall rulebase in every firewall book I have ever owned has had a cleanup rule at the bottom that drops and logs all packets that don't pass one of the rules above it.  An advanced Nokia/Checkpoint training session I recently attended had such a cleanup rule in every rulebase we saw during the exercises.  The assumption is made that traffic being allowed in must be safe, right?  No, dumbasses, the traffic the firewall drops can't hurt you.  It's the traffic that gets past the firewall that can give you the digital equivalent of the atomic wedgie, especially if you rely entirely on your perimeter defenses for protection.

So, two weeks ago, the day after I read this brilliant bit of logic and graced the neighbors with a fairly loud “DOH!“, I turned my main firewall at the data center upside down, and started logging most of the traffic that comes in, and largely ignoring the traffic that my firewall was dropping.

And this morning, because of this change in policy, I busted some miscreant trying to brute-force the sa account on one of my DMZ SQL servers (the sa account was disabled, but that's not the point).  Snort, for some reason, wasn't catching on (the SQL rules are active, not sure why Snort wasn't seeing this), and if I hadn't switched to logging packets being let in I would have never known this attack was taking place.  The only thing that tipped me off was a spike in sql-related connection attempts in my firewall logs, which prompted me to use my NIDS to take a closer look at the packets.

So anyway, Richard, if you are listening:  Thanks.

Posted by Beau Monday on Wednesday, August 11, 2004 9:38 PM

Feedback

# re: Thanks Richard 8/12/2004 4:05 PM Richard Bejtlich

Hi Beau,

I'm glad you found the book useful, and really glad you detected the activity against your SQL server.

The firewall logging suggestion is based on several incident response engagements. Clients often provided firewall logs with records of denied packets. While these helped me narrow down the ways an intruder didn't access a victim, it shed little light on what had been let through the firewall. When a client has been compromised, I'd rather know what was allowed (and read the records of that activity) than see what was dropped (and hence had no actual impact on the victim).

I think logging denied traffic has been advocated as a means to demonstrate the effectiveness of firewalls to perform access control, but that strategy isn't that helpful when the firewall is being bypassed.

Sincerely,

Richard

# re: Thanks Richard 11/9/2006 8:08 AM ביטוח חובה

Hey, I have been doing a lot more stupid things for a lot more than 10 years, kissing my wife for example.. :-)

# re: Thanks Richard 5/28/2007 5:41 AM cash advance

hello

# re: Thanks Richard 5/28/2007 5:41 AM rolex replica

replicas

# re: Thanks Richard 5/28/2007 5:42 AM hoodia

hello

# re: Thanks Richard 5/28/2007 5:42 AM rolex replica

rolex

# re: Thanks Richard 5/28/2007 5:43 AM ringtones

free

# re: Thanks Richard 6/13/2007 5:34 AM wqerq

http://transessuali-a-milano-.nasz.pruszkow.pl transessuali a milano
http://batam-cinta-.nasz.pruszkow.pl batam cinta
http://fsexnygiovaneoralefotti.bogatek.pl fsexny giovane orale fotti
http://calendari-di-cazzi-.nasz.pruszkow.pl calendari di cazzi
http://carinosegretariaspogliar.bogatek.pl carino segretaria spogliarello
http://montagnalastminute.bogatek.pl montagna lastminute
http://hotelnapolidisabili.bogatek.pl hotel napoli disabili
http://www-cazzi-in-figa-gratis.nasz.pruszkow.pl www cazzi in figa gratis
http://annunci-gratis-di-transe.nasz.pruszkow.pl annunci gratis di transessuali
http://invitofestacompleanno.bogatek.pl invito festa compleanno
http://supertettone-mature-.nasz.pruszkow.pl supertettone mature
http://prittier-ragazze-prostit.srore.org.cn prittier ragazze prostituta
http://farmisexasega.bogatek.pl farmi sexa sega
http://belle-fiche-.nasz.pruszkow.pl belle fiche
http://attraente-infermiera-str.srore.org.cn attraente infermiera strip
http://derisive-infermiera-pros.nasz.pruszkow.pl derisive infermiera prostituta
http://norme-edilizia-.srore.org.cn norme edilizia
http://note-post-it-.srore.org.cn note post it

Post a new comment about this topic
Title  
Name  
Url

Comments   
Enter the code you see: