Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- More and more companies and institutions are intercepting SSL/TLS connections with MITM attacks in order to analyze traffic between 2 computers. Security companies pimp out "Counter Threat Systems" which promise all kinds of hi tech defense capabilities against attacks for thousands of dollars per month. Sometimes these systems are worthless.
- If you are trying to tunnel an outbound connection over port 443 or 80 because the admin blocks everything else, they will likely terminate the connection once realizing the traffic is invalid HTTP data.
- I was thinking what other ways are available, but specifically through existing popular online services which wouldn't look as suspicious to an administrator.
- It would need to support some kind of asynchronous communication so that the connection is "always on" rather than intermittent which only heightens further suspicion about what is going on.
- Skype was one service which would have worked well as it already had an SDK but unfortunately M$ decided to discontinue next month in favor of URI.
- There could potentially be tunnels developed for many online services.
- Facebook online chat is one possible avenue....let's examine that.
- Say Computer A is Alice (Virus) and Computer B is Bob (You)
- Alice -> Connect Facebook
- Alice -> send Login
- Bob -> Connect Facebook
- Bob -> send Login
- Now if we want to tunnel data between each computer, Facebook chat provides way to do it.
- Of course, there are limitations to this such as latency issues, there are also many companies that might block it completely...but never the less, it could prove quite useful in some scenarios.
- Imagine Alice is waiting for input from the chat which is redirected to cmd.exe or some other application capable of accepting command input.
- Bob -> SendInput ("dir") -> Alice
- Alice -> SendOutput ("dir") -> Bob
- Dropbox and some other online storage services have potential too but until the protocol is well understood, unlikely a tunnel would be written for them.
- Probably the stealthiest tunnel would make use of stenography, delivering commands through some arbitrary file format so the eyes of admin are completely unaware it's covert data.
- Strong encryption should be used for all this too...
- Thumbs up Thumbs down
- 2Hecktor2013-11-27 17:08:23 (edited by Hecktor 2013-11-27 17:09:26)
- Member
- Offline
- Registered: 2011-01-13
- Posts: 99
- User Karma: 8
- well, facebook chat runs over jabber protocol, so i would say, if you added a new layer over jabber (i mean, not manipulating the jabber/xmpp protocol), you can add custom protocol, such as taking the handshake of SSL/TLS and convert it to Base64/Base91/Binary-To-HexString, morph the data a bit (replace constant patterns with specific valid english words from a predefined dictionary, add some spaces, and finally send it as a user messages) this way it would require manual analysis to define if it's a handshake or encrypted data.
- but still, it can be attacked using MITM if the protocol was published or the exe has been reversed. but ofc it's less likely to be done than normal TLS/SSL.
- Thumbs up Thumbs down
- 3sulfur2013-11-27 17:59:11
- Member
- Offline
- From: United Kingdom
- Registered: 2013-11-01
- Posts: 62
- User Karma: 6
- Good idea. I wonder could WinInet make this work.
- Say Alice binds to a socket, then the WinInet proxy settings point to local machine so everything is routed through the local socket which gets wrapped with Jabber protocol before being sent to Facebook in order to establish SSL/TLS connection with Bob on other end.
- To simplify it, maybe just use Diffie Hellman key exchange along with symmetric encryption.
- This would be vulnerable to MITM too of course but only if protocol already understood as you say.
- Thumbs up Thumbs down
- 4Hecktor2013-11-27 22:20:10
- Member
- Offline
- Registered: 2011-01-13
- Posts: 99
- User Karma: 8
- you don't need wininet, facebook already provides a direct jabber/xmpp interface
- https://www.facebook.com/sitetour/chat.php
- Thumbs up Thumbs down
- 5sulfur2013-11-28 04:44:35 (edited by sulfur 2013-11-28 05:30:22)
- Member
- Offline
- From: United Kingdom
- Registered: 2013-11-01
- Posts: 62
- User Karma: 6
- I just meant handling the ssl/tls connection.
- But even though schannel is more difficult to implement, might work better than wininet for this purpose.
- Thumbs up Thumbs down
- 6sulfur2013-11-28 06:21:20
- Member
- Offline
- From: United Kingdom
- Registered: 2013-11-01
- Posts: 62
- User Karma: 6
- Just looking at LibJingle
- https://developers.google.com/talk/libjingle/
- Seems like RemoteVNC already uses this for screen sharing to bypass some firewalls.
- Thumbs up Thumbs down
- 7infodox2014-01-20 23:07:37
- Member
- Offline
- Registered: 2014-01-20
- Posts: 12
- User Karma: 4
- This is an example of doing a shell over XMPP protocol.
- https://github.com/fabianp/xmpp-shell
- I may fork that later and make it a little better than it is, could use some work imo. I think it would work over any XMPP service, like, I think Gtalk still has a working XMPP interface?
- WebsiteThumbs up +1 Thumbs down
- 8g0at2014-02-05 19:50:13
- New member
- Offline
- Registered: 2014-02-05
- Posts: 1
- i dont know about tunnels but i use OTR from cypherpunks.ca with jabber/xmpp
- Thumbs up Thumbs down
- 9infodox2014-02-07 17:34:23
- Member
- Offline
- Registered: 2014-01-20
- Posts: 12
- User Karma: 4
- Here is an implementation of VNC over XMPP.
- https://code.google.com/p/vncviaxmpp/
- I have not tested it yet, but it looks somewhat promising.
- WebsiteThumbs up +1 Thumbs down
- 10sulfur2014-02-08 05:23:34
- Member
- Offline
- From: United Kingdom
- Registered: 2013-11-01
- Posts: 62
- User Karma: 6
- xmpp is definitely a good way to transport data over various services.
- Thumbs up Thumbs down
- 11jamesmadison2014-09-10 19:58:20
- New member
- Offline
- Registered: 2014-09-10
- Posts: 3
- If you have the capability, you can go a little more out of band with something like this:
- https://github.com/lulzlabs/AirChat
- Not sure you can get good video but for C2, it has potential. Obviously has some drawbacks but thought I would mention it.
- Thumbs up Thumbs down
- 12blm222014-10-10 04:53:19
- Member
- Offline
- Registered: 2010-01-07
- Posts: 427
- User Karma: 21
- http://xmpp.org/extensions/xep-0234.pdf
- If you enjoy my work or ideas please click thumbs up! big_smile
- I am a 22 year old Composer, Musician, Programmer, Linux User, Android ROM and Developer, Ubuntu Touch HomeBrew Developer, and Open webOS(Lune OS[Android Based]) Developer.
- Thumbs up Thumbs down
Advertisement
Add Comment
Please, Sign In to add comment