LinuxQuestions.org
Have you listened to LQ Radio?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Thread Tools
Old 10-16-2007, 04:38 AM   #1
LinuxGeek
Member
 
Registered: Jun 2002
Posts: 302
Thanked: 0
SSL Interception


[Log in to get rid of this advertisement]
Hi,
I'm currently looking into intercepting SSL traffic at our company to prevent data leakage and to protect against malware / botnets that use HTTPs to communicate with their command center. I came across WebWasher in the following blog post and was wondering if there was an open source solution that would give me similar results:

http://jonsnetwork.com/2007/04/how-t...ork-podcast-1/

Basically what it does is as follows:

* intercepts and deciphers the SSL connection while it's outgoing
* inspect the unencrypted traffic. If it's okay, it regenerates an SSL connection to the target system
* to keep it transparent to users, it generates a certificate with the CN of the target site and signs it with the organization's CA which is trusted by user's web browsers.

Any ideas? Thanks.
LinuxGeek is offline     Reply With Quote
Old 10-16-2007, 05:07 AM   #2
win32sux
Moderator
 
Registered: Jul 2003
Distribution: Ubuntu 8.10
Posts: 8,552
Thanked: 98
You can configure Squid to act as an HTTPS man-in-the-middle using the https_port option. What kind of inspection are you wanting to do on the unencrypted traffic? I myself am actually looking-forward to learning how to have DansGuardian do content-filtering when using Squid like this.

Last edited by win32sux; 10-16-2007 at 05:11 AM..
win32sux is offline     Reply With Quote
Old 10-16-2007, 07:38 AM   #3
ledow
Member
 
Registered: Apr 2005
Location: UK
Distribution: Slackware 13.0
Posts: 241
Thanked: 5
MMmm... this isn't as easy as it sounds at first.

Yes, you can filter all things to use "your" SSL certificate but this will break quite a lot of things that like to use SSL certificates - basically anything that properly verifies the certificate chain - some browsers will go ape at tricks like this, and some secure update mechanisms etc. will stop working. Not to mention that lots of things use SSL as a "wrapper" around their usual communications, so you may find that a lot of stuff like some VPN's, update tools, etc. will just freak out at such shenanigans.

Additionally, that's a LOT of CPU overhead on the middle-man server.

Much easier and simpler is to block SSL connections entirely - this means layer-7 packet classifiers etc. and a black/whitelist of sites that are "allowed". That way anything that tries to use SSL to connect anywhere will be blocked unless you've specifically allowed the source/destination/user to do so. That stops your "information leakage" problem without leaving yourself liable to all sorts of problems that come from trying to proxy secure traffic.

Not to mention that it's a highly-suspect policy to routinely intercept and read all secure communications, whether the users are warned or not.
ledow is offline     Reply With Quote
Old 10-16-2007, 08:49 AM   #4
slimm609
Member
 
Registered: May 2007
Location: Chas, SC
Distribution: slackware, gentoo, fedora, LFS, sidewinder G2, solaris, FreeBSD, RHEL, SUSE, Backtrack
Posts: 316
Thanked: 12
If i may add some advice as i just got done demoing the webwasher along with many other product that do SSL.

The current products that do SSL interception good are Ironport S650, Webwasher, and Bluecoat SG. With that said they all run about $25-$30K each.

The cert does not uses the all the information from the target site. You have to put a trusted Cert on the box. I have an entire 20 page report that i did on all the different products for work. I will try and scrub the report of company info and share it with everyone.
slimm609 is offline     Reply With Quote
Old 10-17-2007, 08:49 AM   #5
LinuxGeek
Member
 
Registered: Jun 2002
Posts: 302
Thanked: 0

Original Poster
Thanks for all your replies. slimm609, it would be great if you could share your report with us.
LinuxGeek is offline     Reply With Quote
Old 10-17-2007, 09:21 AM   #6
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: Debian Lenny / Squeeze / Sid
Posts: 7,212
Blog Entries: 5
Thanked: 245
The Bluecoat quote I received yesterday was $7,000.00 for the Appliance. But we are a small environment and licensing is user based so that cost could increase rather rapidly. Just didn't want anyone to think that $25K was always the starting point for these appliances.

That being said I would LOVE to see that report you put together slimm609, as I am preparing to purchase one of these units in the very near future.



DeleGate as a Man-In-The-Middle proxy
http://www.delegate.org/delegate/mitm/

Don't know how you would use this to fill your requirements either, let us know if you get something worked out.. it is open source.

Last edited by farslayer; 10-17-2007 at 10:39 AM..
farslayer is offline     Reply With Quote
Old 10-17-2007, 10:45 AM   #7
slimm609
Member
 
Registered: May 2007
Location: Chas, SC
Distribution: slackware, gentoo, fedora, LFS, sidewinder G2, solaris, FreeBSD, RHEL, SUSE, Backtrack
Posts: 316
Thanked: 12
I have the report to post but i dont have anywhere to upload it to.
slimm609 is offline     Reply With Quote
Old 10-17-2007, 03:30 PM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 16,662
Blog Entries: 30
Thanked: 273
If its properly anonymised you could put it on any free file sharing site?
unSpawn is offline     Reply With Quote
Old 10-17-2007, 09:41 PM   #9
slimm609
Member
 
Registered: May 2007
Location: Chas, SC
Distribution: slackware, gentoo, fedora, LFS, sidewinder G2, solaris, FreeBSD, RHEL, SUSE, Backtrack
Posts: 316
Thanked: 12
i will try and post the report at some point tomorrow.
slimm609 is offline     Reply With Quote
Old 10-23-2007, 11:44 AM   #10
slimm609
Member
 
Registered: May 2007
Location: Chas, SC
Distribution: slackware, gentoo, fedora, LFS, sidewinder G2, solaris, FreeBSD, RHEL, SUSE, Backtrack
Posts: 316
Thanked: 12
Sorry it took so long

http://www.mytempdir.com/2046044
slimm609 is offline     Reply With Quote
Old 10-23-2007, 04:32 PM   #11
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: Debian Lenny / Squeeze / Sid
Posts: 7,212
Blog Entries: 5
Thanked: 245
Thanks!!

Reading through it now..
farslayer is offline     Reply With Quote
Old 10-24-2007, 09:38 AM   #12
nomb
Member
 
Registered: Jan 2006
Distribution: Archlinux
Posts: 565
Thanked: 4
Thanks for that report. I don't have a need right now for that however, I may in the future. Either way it is good information. So thanks.

nomb
nomb is offline     Reply With Quote
Old 01-03-2008, 12:21 PM   #13
LinuxGeek
Member
 
Registered: Jun 2002
Posts: 302
Thanked: 0

Original Poster
For anyone still interested in the thread, you may find Whitetrash - http://whitetrash.sourceforge.net/ - interesting as well
LinuxGeek is offline     Reply With Quote
Old 01-05-2008, 10:08 PM   #14
OTIM
Member
 
Registered: Nov 2007
Posts: 37
Thanked: 0
hello all

I found this thread very interesting but i am somehow confused, perhaps someone can explain.
Doesn't SSL use asymmetric encryption? This means that the client uses the the server's public key to encrypt and data can only be decrypted with the server's private public. Is is possible to decrypt without the private key?

Thank you

later: hmm it seems that only the authentication is done with public/private keys, the data transfer is encrypted using symmetric encryption - the shared secret

Last edited by OTIM; 01-05-2008 at 10:46 PM..
OTIM is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
vsFTPd - SSL connection and dynamic SSL ports toxoplasme Linux - Server 11 08-22-2008 11:50 PM
creating an SSL page under non SSL site with apache1.33? taiwf Linux - Software 1 06-27-2006 02:06 AM
SSL Connections / second and SSL Accelerator Cards on Linux LinuxGeek Linux - Networking 0 06-10-2006 09:18 AM
need help with apach virtual hosts ssl/non ssl sites danthach Linux - Networking 3 05-25-2006 07:40 AM
packet interception, server administration etc. youneedaclue Linux - Networking 3 06-27-2004 06:14 PM


All times are GMT -5. The time now is 10:46 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration