Image
 
linkedin_logo.png rss_logo.jpg
twitter_logo.png youtube_logo.jpg
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 41 guests and 1 member online
 
Advertisement

You are here: Home arrow Ethical Hacking Discussions and Related Certificationsarrow Network Pen Testingarrow using SSL Tunnel to bypass IDS and firewalls?
EH-Net
May 23, 2013, 01:20:17 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Go back to The Ethical Hacker Network Online Magazine Home Page
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: using SSL Tunnel to bypass IDS and firewalls?  (Read 7998 times)
0 Members and 1 Guest are viewing this topic.
manoj9372
Jr. Member
**
Offline Offline

Posts: 72


View Profile
« on: October 01, 2010, 01:04:33 AM »

I am learning some penetration testing of my own,
I got a scenario,I need to do like this

I have a access to a machine in a target network,I need to maintain the access to the target host with out getting suspected by the remote firewall administrators of the target network,So at first 2 things comes to my mind ssh and ssl tunnels,but when the admins see an out-bound ssh connection,they will get more doubts,So decided to use a ssl tunnel,

1) is there any tools available out there that can provide a tunneled ssl connection between me and that target?

2)Also i am sure if they will have some stateful firewalls ,so if they see an huge amount of out-bound traffic to a specific ip,they will get more suspicious,So how can i manage this?

3)Also they may have IDS in place,mostly a signature based 1,they may have a signature detection for ssl tunnel,how we can use our "methods" to deviate from the IDS signature,I am looking forward to modify or do some changes in the attack pattern,which needs to confuses the IDS and need to bypass it's patterns?

how can i do this?

4)what are some of the other attacks i can use against a state-full firewall?


Looking for some help?...
Logged
impelse
Hero Member
*****
Offline Offline

Posts: 565


View Profile WWW
« Reply #1 on: October 01, 2010, 08:24:30 AM »

You got some interesting points, but you said that you are learning that so create first one tunnel from that machine and later begin to learn how to hide it.

I am not so advanced like you but I would to that.
Logged

CCNA, Security+, 70-290, 70-291
CCNA Security
Taking Hackingdojo training

Website: http://blog.thehost1.com/
ajohnson
Recruiters
Hero Member
*
Offline Offline

Posts: 1057


aka dynamik


View Profile WWW
« Reply #2 on: October 01, 2010, 08:43:57 AM »

I run an SSH server on 443, so I'm good unless they're doing app-level inspection (rare) or only white-listing specific IPs/DNS.
Logged

WIP: GCFA | www.infosiege.net | @infosiege

The day you stop learning is the day you start becoming obsolete.
mambru
Jr. Member
**
Offline Offline

Posts: 98


View Profile
« Reply #3 on: October 01, 2010, 11:22:27 AM »

A few weeks back I was playing with a very similar scenario.

I had a firewall allowing only egress/ingress traffic to port 80 and an IDS examining all the traffic. I had compromised a web server (through an SQL injection vuln), so I needed to reach other services from outside by using tunnels. First I tried a very loose configuration in the IDS (TippingPoint), with that I could tunnel out connections with SSH, SSL (stunnel) and HTTP ( httptunnel - htc/hts) successfully. Gradually I set a more aggressive profile in the IDS, with that I could learn what rules are triggered for each tool. At the end I had the IDS dropping all the connections since it was detecting protocols to non-standard ports (remember the FW was only allowing traffic to port 80).

It was a nice exercise that gave me the chance to learn about how to achieve a good profile in the IDS and possible evasion techniques, and it can be extended in more ways.
Logged
manoj9372
Jr. Member
**
Offline Offline

Posts: 72


View Profile
« Reply #4 on: October 01, 2010, 12:11:09 PM »

Code:
You got some interesting points, but you said that you are learning that so create first one tunnel from that machine and later begin to learn how to hide it.

I am not so advanced like you but I would to that.

i am asking help for making an ssl tunnel between the 2 hosts,how can i do that? tht is my real question,i know to make http and ssh tunnels,but it wont help me in that case,so only asked here..hope u will help more..

Code:
I run an SSH server on 443, so I'm good unless they're doing app-level inspection (rare) or only white-listing specific IPs/DNS.

yes i can do tht,but even tough we can use it to evade firewalls,but it is not the good way,because admins may get suspicious of the ssh traffic..
So only asked about ssl tunnel...
hope u will understand....


Code:
A few weeks back I was playing with a very similar scenario.

I had a firewall allowing only egress/ingress traffic to port 80 and an IDS examining all the traffic. I had compromised a web server (through an SQL injection vuln), so I needed to reach other services from outside by using tunnels. First I tried a very loose configuration in the IDS (TippingPoint), with that I could tunnel out connections with SSH, SSL (stunnel) and HTTP ( httptunnel - htc/hts) successfully. Gradually I set a more aggressive profile in the IDS, with that I could learn what rules are triggered for each tool. At the end I had the IDS dropping all the connections since it was detecting protocols to non-standard ports (remember the FW was only allowing traffic to port 80).

It was a nice exercise that gave me the chance to learn about how to achieve a good profile in the IDS and possible evasion techniques, and it can be extended in more ways.

like u said,can u tell me how u managed to made an ssl tunnels between 2 hosts ?

And don't think i am blaming u,please take this as "sportive",attackers are classified in to 2 kinds kiddies and high end attackers,like u said IDS is a good shield against kiddies ,remember it is not a big concern to the high
end attackers,Because mostly IDS are signature based and it is actually easily bypassable by the high end hackers,by deviating or differentiating the attack vector and also u said "I could learn what rules are triggered for each tool",what if they use a own crafted tool,your IDS will be blind
and also if they tunneled their connection through port 80 with a http protocol means what can u do?
again your IDS will be blind...

also want to ask u some thing,if an IDS is set directly to block the traffic,then there is a high risk that it is being detectable to the attacker,As far as i know the best way to have an IDS is to make it running on the passive mode,not on the active mode..


I also learned something from your point,white-listing applications,I have heared this,but i don't know how it is being implemented?is it being implemented by firewall or IDS?

Also i didn't got any answers for my original questions ,hope you will help.


NOTE:@mambru--?please take this as sportive,don't took it on the wrong sense,and if possible please tell me about how to make an ssl tunnel
between the 2 hosts??
« Last Edit: October 01, 2010, 12:13:17 PM by manoj9372 » Logged
mambru
Jr. Member
**
Offline Offline

Posts: 98


View Profile
« Reply #5 on: October 01, 2010, 04:17:04 PM »

I'm not meaning to be rude, but have you tried somehow to create the tunnel? As usual, Google is your friend, there's a lot of info on the net that can help you with this (http://www.stunnel.org/examples/generic_tunnel.html).

If you are experiencing a specific problem, then I could try to shed some light, don't hesitate to ask, just give some more details about what difficulties you're having.
Logged
manoj9372
Jr. Member
**
Offline Offline

Posts: 72


View Profile
« Reply #6 on: October 03, 2010, 07:15:54 AM »

After i search for a while i had found these words on a ssh tutorial

Code:
you can configure an SSL Tunnel through the SSH connection.


but they didn't mentioned any thing about how to do it,just said the above as 1 of the alternative,..

if you know the above thing ,please help me out...
Logged
mambru
Jr. Member
**
Offline Offline

Posts: 98


View Profile
« Reply #7 on: October 04, 2010, 11:03:00 AM »

Where are you standing right now? Where are you failing? Did you check the link I posted? There you can find plenty of examples showing how to create SSL tunnels, those are good starting points for what you want to do. You say you  know how to create HTTP and SSH tunnels, then creating a SSL tunnel shouldn't be a big deal.
Logged
MaXe
Hero Member
*****
Offline Offline

Posts: 669


I've just upgraded myself to a cyborg muahahaa!!1


View Profile WWW
« Reply #8 on: October 05, 2010, 08:27:57 AM »

1) is there any tools available out there that can provide a tunneled ssl connection between me and that target?

2)Also i am sure if they will have some stateful firewalls ,so if they see an huge amount of out-bound traffic to a specific ip,they will get more suspicious,So how can i manage this?

3)Also they may have IDS in place,mostly a signature based 1,they may have a signature detection for ssl tunnel,how we can use our "methods" to deviate from the IDS signature,I am looking forward to modify or do some changes in the attack pattern,which needs to confuses the IDS and need to bypass it's patterns?

how can i do this?

4)what are some of the other attacks i can use against a state-full firewall?/quote]


1. Try out the following programs and play with them:
- SSL Tunnel: http://www.stunnel.org/
- ICMP Tunnels:
http://neverfear.org/blog/view/9/Using_ICMP_tunneling_to_steal_Internet
http://icmpshell.sourceforge.net/
http://phrack.org/issues.html?issue=49&id=6#article
And so forth, there's plenty of tools available. You can even install a VPN client on the target victim, and then set up a VPN server too with e.g. OpenVPN and SSL.

2. This is harder to manage, but if you relay your traffic via e.g. facebook, twitter or google then it may not look that suspicious. I remember I saw.. I think it was a botnet (for testing purposes) which was run via twitter. Quite evil, but it worked.

3. Install Snort and these "SSL filters" you're talking about. Then try to bypass them. That's what I would do, if I don't know the exact filters I would do a general bypass without making the packets look obscure since some firewalls and filters may put a red flag on them. Furthermore, using other kinds of packets such as ICMP (tunneling data through it), may be even better.

4. Spoofed (UDP) packets is just one kind of attack. You can't use that, to actually "attack" the firewall except if the SPI interface is vulnerable to certain types of obscure packets.



Best regards,
MaXe
Logged

I'm an InterN0T'er
manoj9372
Jr. Member
**
Offline Offline

Posts: 72


View Profile
« Reply #9 on: October 06, 2010, 03:22:49 AM »

Thanks sir,especially to "MaXe" and "mambru",I got some "path" about this,i will try to do some research and some practical demonstrations and i will try to understand this in better way..

Thanks once again.....

Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.075 seconds with 23 queries.
 
Exclusive Deal

sansfire13_245x90_cw90.jpg
SANSFIRE 2013
June 15 - 22

5% Off w/ Code: EHN_5

SANS Deals 4 EH-Netters
5% OFF Any SANS Course in Any Format!
Coupon Code: EHN_5 Including SANS Rocky Mountain 2013 & SANS Boston 2013
Polls
Compared to this year, 2013 will be:
 
Recent Forum Topics
EH-Net News Feeds
Latest Additions
 
         
Free Business and Tech Magazines and eBooks

© 2013 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.