Home
Calendar
Certifications
Columns
Features
Forum
Resources
Vitals
Latest Additions
April 2013 Free Giveaway Sponsor - eLearnSecurity
Human Intelligence to Navigate the Security Data Deluge
February 2013 Free Giveaway Winner of SANS CyberCon Training
Interview: Bugcrowd Founders on Herding Ninjas for Crowdsourced Bug Bounties
Network Forensics: The Tree in the Forest
March 2013 Free Giveaway Sponsor - Mile2
Book Review: Violent Python
February 2013 Free Giveaway Sponsor - SANS
Holiday 2012 Free Giveaway Winner of Metasploit Pro by Rapid7
Course Review: SANS FOR408 Computer Forensic Investigations – Windows In-Depth
The Security Consulting Sugar High
Tutorial: Fun with SMB on the Command Line
Interview: Ilia Kolochenko, CEO of High-Tech Bridge
October 2012 Free Giveaway Winner of LearningGate Training
The Broken: Assessing Corporate Security in 2012 to Make a Better 2013
EH-Net Login
Welcome Guest.
Username:
Password:
Remember me
Lost Password?
No account yet?
Register
Who's Online
We have 75 guests and 2 members online
Free Business and Tech Magazines and eBooks
You are here:
Home
Ethical Hacking Discussions and Related Certifications
Network Pen Testing
Hiding app traffic through active HTTP sessions
EH-Net
May 21, 2013, 10:13:35 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Go back to The Ethical Hacker Network Online Magazine
Home Page
Home
Help
Calendar
Login
Register
EH-Net
>
Ethical Hacking Discussions and Related Certifications
>
Network Pen Testing
(Moderator:
don
) >
Hiding app traffic through active HTTP sessions
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: Hiding app traffic through active HTTP sessions (Read 3504 times)
0 Members and 1 Guest are viewing this topic.
3xban
Hero Member
Offline
Posts: 607
Hiding app traffic through active HTTP sessions
«
on:
September 23, 2011, 12:54:50 PM »
So we are trying to test some of our defenses and one of our IR guys asked if I can try to hijack an active HTTP session on my system and try to send other traffic through that session. We use authenticating proxies with no single sign-on so all web traffic requires authentication. We are trying to see if an app can hide/cloak/piggyback on an active authenticated session. Any ideas? Can something be done using netcat? My skills are a bit weak in this area and I am exciting to learn something new. It sounded like a fun challenge.
Thanks in advanced.
Logged
Certs: GCWN
(@)Dewser
idr0p
Newbie
Offline
Posts: 49
Re: Hiding app traffic through active HTTP sessions
«
Reply #1 on:
September 23, 2011, 02:00:45 PM »
Have you looked at Paros or Burp Suite?
Logged
GCIA GCIH GPEN GWAPT
Up Next: CISA CISSP
mambru
Jr. Member
Offline
Posts: 98
Re: Hiding app traffic through active HTTP sessions
«
Reply #2 on:
September 23, 2011, 02:00:58 PM »
Take a look at this:
http://www.gray-world.net/
Logged
3xban
Hero Member
Offline
Posts: 607
Re: Hiding app traffic through active HTTP sessions
«
Reply #3 on:
September 23, 2011, 02:34:20 PM »
Thanks guys, I'll take a look through those. I guess what we are trying to test is the following...
Malicious software gets on victim system.
Victim doesn't know and software is not exhibiting any strange behavior so scanners and IDS are not picking it up.
Software needs to get out to internet - oh snap authenticating proxy what shall I do???
oh hey, you have an active IE session open already, can I borrow that? Thanks!
And boom goes the dynamite. Now given if the above is possible our next challenge is how can we detect such traffic? I will fiddle around with Burp/Paros as well, either way they look like fun. Sadly Gray-world is blocked here, but I can take a look at that later at home.
Logged
Certs: GCWN
(@)Dewser
mambru
Jr. Member
Offline
Posts: 98
Re: Hiding app traffic through active HTTP sessions
«
Reply #4 on:
September 23, 2011, 03:08:28 PM »
There are some very interesting papers and tools in the give site.
I guess your scenario is somehow feasible, the malware creates some hooks, injection some extra data in your session. The only hurdle I see is that the (legit) web server the user is communicating with would need to contain some other piece of malware as well, in order to extract the data from the covert channel.
Logged
MaXe
Hero Member
Offline
Posts: 669
I've just upgraded myself to a cyborg muahahaa!!1
Re: Hiding app traffic through active HTTP sessions
«
Reply #5 on:
September 25, 2011, 05:41:07 PM »
I have an idea.
Imagine a rogue addon in your browser (e.g. FireFox), which sends off data to a remote (unauthorized) 3rd party, every time you log into a website, etc. (This has been seen before.)
Another scenario could be that malware had altered the browser, so that not only would you be able to browse websites, but e.g., a trojan would simultaneously send traffic across the session being in use (or just re-using logins whenever it finds one if possible and one-time tokens are not in use).
In a simple case, the unauthorized traffic could go through via "xmlrpc".
Ettercap has the functionality to inject data into a stream, but I haven't really tested this, but there's a button you can try
(It's when you perform Man in the Middle attacks.
But in theory yes it's possible. But there's several layers this could occur on, ranging from the physical level (well, almost), and onto the application layer (the web browser, and yes I'm referring to the OSI model
)
I don't have any practical examples for you to try out though.
Logged
I'm an InterN0T'er
3xban
Hero Member
Offline
Posts: 607
Re: Hiding app traffic through active HTTP sessions
«
Reply #6 on:
September 26, 2011, 10:49:13 AM »
Excellent insight MaXe! I appreciate the input. Friend of mine and I were bouncing around the idea of maybe not using web traffic but using the TCP-over-DNS method. Of course we need a DNS server out the outside under our control, that should not be difficult to accomplish. The client side may be a bit more of a challenge.
If anything I got the gears turning on this. And in theory just about anything is possible. I just need more time in the day to work on this. Unfortunately most of this has to be done when I am at home due to certain restrictions at work. If I come across something I'll be sure to update.
Logged
Certs: GCWN
(@)Dewser
MaXe
Hero Member
Offline
Posts: 669
I've just upgraded myself to a cyborg muahahaa!!1
Re: Hiding app traffic through active HTTP sessions
«
Reply #7 on:
September 26, 2011, 12:38:29 PM »
Quote from: 3xban on September 26, 2011, 10:49:13 AM
Excellent insight MaXe! I appreciate the input. Friend of mine and I were bouncing around the idea of maybe not using web traffic but using the TCP-over-DNS method. Of course we need a DNS server out the outside under our control, that should not be difficult to accomplish. The client side may be a bit more of a challenge.
If anything I got the gears turning on this. And in theory just about anything is possible. I just need more time in the day to work on this. Unfortunately most of this has to be done when I am at home due to certain restrictions at work. If I come across something I'll be sure to update.
No problem, and nice ideas you're bouncing around
You should know, that some companies filter all outgoing ICMP and DNS traffic, so it has to pass by a proxy server first, while some companies, blindly lets all DNS and ICMP traffic through.
What can you use these open and unprotected data tunnels for?
Trojan data of course! (During an ethical pentest assignment that is hehe)
Most covert channels via ICMP, seems to be using almost standard headers but instead of the usual contents, it's actual data inside! The ICMP channel often seems to work with ICMP ECHO and REPLY messages, which can probably even contain CRC values, etc. making the data transfer somewhat reliable.
Covert DNS Channels, uses subdomain wildcards and a DNS server out on the Internet to relay traffic back and forth. It's also a brilliant example of covert channels.
I definitely recommend taking a few looks at the resources I've gathered below.
Update:
Oh yeah, I forgot to mention that some SPI (Stateful Packet Inspection) firewalls, will most likely drop this kind of traffic. Still, even if the target company does have a firewall that supports this feature, it may not be turned on or configured correctly.
Resources:
http://www.coresec.org/2011/04/21/reverse-connection-using-icmp-shell/
http://tourdot.fr/venik
http://caia.swin.edu.au/cv/szander/cc/cc-implementations-bib.html
http://www.securityfocus.com/tools/category/97
«
Last Edit: September 26, 2011, 12:40:08 PM by MaXe
»
Logged
I'm an InterN0T'er
tturner
Sr. Member
Offline
Posts: 432
Re: Hiding app traffic through active HTTP sessions
«
Reply #8 on:
September 27, 2011, 10:32:15 AM »
Deep packet inspection chews up a ton of firewall resources so it's not uncommon to only see that configured on assets in the DMZ or not at all. Stateful inspection is much easier to bypass. I'm not a firewall guru but my understanding is that SPI is only looking at state, ports etc, so a legitimate outbound connection tunneling malicious traffic may not be flagged unless the firewall is actually doing DPI. Application layer firewalls are often used for this but I see more "firewalls" being sold these days with this functionality built-in that just needs to be enabled.
Logged
Certifications:
CISSP, CISA, GPEN, GWAPT, GAWN, GCIA, GCIH, GSEC, OPSE, CSWAE, CSTP, VCP
WIP: OSWP, GSSP-JAVA, GXPN
Udacity on hold, again. I suck.
http://sentinel24.com/blog
@tonylturner
http://bsidesorlando.org
mambru
Jr. Member
Offline
Posts: 98
Re: Hiding app traffic through active HTTP sessions
«
Reply #9 on:
September 27, 2011, 03:48:47 PM »
Take a look at Joanna Rutkowska's Nushu, it's closer to what you want:
http://invisiblethings.org/code.html
Logged
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
EH-Net
-----------------------------
=> Calendar Of Events
===> ChicagoCon 2007
===> ChicagoCon 2008s
===> ChicagoCon 2008f
===> ChicagoCon 2009s
=> Ethical Hacktivism
=> News Items and General Discussion About EH-Net
===> Greetings
=> Special Events
-----------------------------
Ethical Hacking Discussions and Related Certifications
-----------------------------
=> General Certification
===> Networking
===> OS
===> Security
=> Compliance, Regulations & Standards
=> Control Systems
=> Cyber Warfare
=> Forensics
===> CCE / MCCE - (Master) Certified Computer Examiner
===> CHFI - Computer Hacking Forensic Investigator
===> EnCE - EnCase® Certified Examiner
===> GCFA - GIAC Certified Forensics Analyst
=> Hardware
=> Incident Response
===> CSIH - Computer Security Incident Handler
===> GCIH - GIAC Certified Incident Handler
=> Malware
===> Advisories
=> Mobile
=> Network Pen Testing
===> CEH - Certified Ethical Hacker
===> CPTC - Certified Penetration Testing Consultant
===> CPTE - Certified Penetration Testing Engineer
===> CSTA - Certified Security Testing Associate
===> eCPPT - eLearnSecurity Certified Professional Penetration Tester
===> ECSA - EC-Council Certified Security Analyst
===> GPEN - GIAC Certified Penetration Tester
===> OSCP - Offensive Security Certified Professional
=> Physical Security
=> Programming
=> Social Engineering
=> Web Applications
=> Wireless
===> CWNP Certs
===> GAWN - GIAC Assessing Wireless Networks
===> OSWP - Offensive Security Wireless Professional
=> Other
-----------------------------
Columns
-----------------------------
=> Editor-In-Chief
=> Andress
=> Gates
=> Haddix
=> Hadnagy
=> Heffner
=> Hoffman
=> Linn
=> RichM
=> Murray
=> J. Peltier
=> Weidman
=> Wilson
-----------------------------
Features
-----------------------------
=> /root
=> Book Reviews
=> Opinions
=> Skillz
===> Examples
===> May 06 - Star Hacks, Episode V: The Empire Hacks Back
===> July 06 - Hack Bill!
===> Sept 06 - Netcat in the Hat
===> Nov 06 - Hitch-Hackers Guide to the Galaxy
===> Dec 06 - A Christmas (Hacking) Story
===> Feb 07 - Charlottes Web Site
===> April 07 - Microsoft Office Space
===> June 07 - Serenity Hack
===> Oct 07 - Worst. Ethical. Hacker. Challenge. Ever.
===> Dec 07 - Frosty the Snow Crash
===> March 2008 - It Happened One Friday
===> Oct 2008 - Scooby Doo and the Crypto Caper
===> Dec 08 - Santa Claus Is Hacking to Town
===> Feb 2009 - Brady Bunch Boondoggle
===> July 2009 - Prison Break
===> October 2009 - SSHliders
===> December 2009 - Miracle on Thirty-Hack Street
===> December 2010 - The Nightmare Before Charlie Browns Christmas
-----------------------------
Resources
-----------------------------
=> Career Central
===> Looking For Work
===> Looking To Hire
=> Links to cool sites.
=> Mass Media
=> News from the Outside World
=> Tools
=> Tutorials
===> Tutorial Requests
Loading...
Exclusive Deal
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:
Great!
Better.
About the same.
Little worse.
FUBAR!
Recent Forum Topics
Programming
: Finished Python Course in Codecademy now what?
(12) by
3xban
Network Pen Testing
: AIX Vulnerability Assessments
(1) by
3xban
General Certification
: CPT Practical Submission
(1) by
UNIX
OSCP - Offensive Security Certified Professional
: Failed my first attempt at the OSCP exam
(94) by
azmatt
Tools
: Social-Engineer Toolkit (SET) Version 5.0 “The Wild West” Released
(2) by
m0wgli
Malware
: EICAR?
(3) by
UKSecurityGuy
Advisories
: HTB23154: Multiple Vulnerabilities in Exponent CMS
(0) by
AndyP
Advisories
: HTB23153: Multiple Vulnerabilities in Jojo CMS
(0) by
AndyP
Advisories
: HTB23151: Cross-Site Request Forgery (CSRF) in UMI.CMS
(0) by
AndyP
Tutorials
: Need guidance
(8) by
r0ckm4n
OSCP - Offensive Security Certified Professional
: Class Scheduled 6/8 - Linux n00b
(7) by
Taemyks
OSCP - Offensive Security Certified Professional
: OSCP exam scheduled
(6) by
gbhat
Incident Response
: LinkedIn Forensics
(0) by
AFENTIS_Forensics
General Certification
: Red Team/Blue Team
(1) by
ajohnson
Career Central
: Starter cert?
(3) by
Grendel
Network Pen Testing
: Beginner Ethical Hacker
(1) by
m0wgli
Web Applications
: Nessus and Nikto
(4) by
Seen
Network Pen Testing
: Cracking salted MD5 hash
(4) by
n37sh@rk
CEH - Certified Ethical Hacker
: Passed my C|EH
(3) by
n37sh@rk
Mass Media
: EC-council hacked, irony at his best?
(0) by
j0rDy
Web Applications
: SQL Injection into an INSERT statement.
(6) by
eyenit0
Network Pen Testing
: Solution for sipXtapi INVITE Message CSeq Field Header Remote Overflow
(1) by
m0wgli
Web Applications
: dns
(2) by
H1t M0nk3y
Other
: BSides Boston
(0) by
3xban
Career Central
: InfoSec in Central, FL
(2) by
tturner
Web Applications
: Web vulnerability scanner
(4) by
H1t M0nk3y
EH-Net News Feeds
Latest Additions
Privacy Notice
for TDCC & All Properties
© 2013 The Ethical Hacker Network
Joomla!
is Free Software released under the GNU/GPL License.