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 50 guests and 3 members online
Free Business and Tech Magazines and eBooks
You are here:
Home
Ethical Hacking Discussions and Related Certifications
Incident Response
How are you detecting TOR activity in your network?
EH-Net
May 19, 2013, 01:21:30 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
>
Incident Response
(Moderator:
don
) >
How are you detecting TOR activity in your network?
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: How are you detecting TOR activity in your network? (Read 13153 times)
0 Members and 1 Guest are viewing this topic.
itg33k
Newbie
Offline
Posts: 10
How are you detecting TOR activity in your network?
«
on:
March 09, 2010, 10:41:01 AM »
I would like to reach out to the community in order to find out if anyone out there is able to assist me with the following: How can one detect anonymous proxy traffic such as The Onion Router (TOR). Being that now in days TOR utilizes HTTP (SSL encryption) and Intrusion Detection Systems (IDS) are blind to the traffic since it is obfuscated, then what would be the best method for detecting network traffic of users that are utilizing this to connect to proxies to browse the internet and be anonymous?
The issue is not only users will browse the internet and possibly download Malware but another great concern is that anyone can set up their own TOR proxy and as the traffic gets decrypted at that proxy, the admin for that proxy could potentially perform a man-in-the-middle attack and intercept that data or take over the section as the user. Now the end user not only is putting in jeopardy the security of the company but also themselves if they are logging into their bank accounts, personal emails, etc..
My main concern is that there is no way you can obtain an accurate active list of TOR proxy servers since anyone at anytime can set one up and the only resolution I can think of is by somehow filtering out 443 data and then perform a Whois on the external destination IP’s and determine if they do not have a business need to visit it then we can block anyone going to that external IP, investigate the system for the possibility of TOR application running on the system and remove it.
Going this direction would create a tremendous amount of work that will result in potentially missing legitimate network intrusions, call backs to malicious known sites, etc... I hope that those of you that currently have something in place for this will share your solution and for those that don’t have this problem but have ideas would share them.
Thank you in advance.
Logged
chrisj
Hero Member
Offline
Posts: 1163
Re: How are you detecting TOR activity in your network?
«
Reply #1 on:
March 09, 2010, 10:58:53 AM »
Actually, you hit on some of the information in your post.
I've found most of the our users using TOR, either while fixing a problem on their computer, or by viewing the firewall logs.
While the list of proxy servers change, the boxes that provide those lists don't change as often. So blocking them, prevents users from getting updated lists.
When I have a working syslog server at work collecting the firewall logs (they're worth having, just don't have the hardware right now after our move) you can grep the logs for that information, and use either the firewall, or internal proxy to block those sites. You don't have to be perfect in the case of blocking, users will stop using it when they find it's not very reliable.
Since you're talking about blocking this traffic from work, you might want to talk to upper management about about updating the acceptable use policy, with teeth behind it when it's broken. Example: There used to be a problem with something at work. When management started walking people out the door for doing it, people stopped.
As for finding it installed on people's computers, I'm assuming a windows environment. You can write a script that (if it has domain admin privileges) list the contents of c:\program files. I've done something similar with Perl looking for multimedia files on peoples user shares.
Logged
OSWP, Sec+
itg33k
Newbie
Offline
Posts: 10
Re: How are you detecting TOR activity in your network?
«
Reply #2 on:
March 09, 2010, 12:37:34 PM »
Chrisj,
Those are great suggestions. We do have an acceptable use policy, perform regular scans in order to identify unauthorized software (remember that if you have an add-on in Firefox a vulnerability/pen test/patch management scan wont identify the add-ons such as a Tor one) and some users can connect their personal laptops and obtain an IP since there is DHCP enable.
We have already tried to push the issue about implementing a static IP environment, leave without pay for employees that are found to have the software and bring personal laptops, etc... But the fact is that at this time none of that will change since we have already brought up a lot of good suggestions, cases to prove our point and a very good presentation, but the fact is that nothing will change for at least a year or two, at this time I have been task to identify Tor activity, report users, remove the application and block it at the firewall level.
Logged
chrisj
Hero Member
Offline
Posts: 1163
Re: How are you detecting TOR activity in your network?
«
Reply #3 on:
March 09, 2010, 01:03:58 PM »
if you're using cisco switches, you can limit the number mac addresses allowed per port. We've had the same problem with users bringing laptops in.
The static ip addresses don't really help that much. users will find an open ip address and use it. Sometimes it's an open ip address because the box it belongs to is turned off.
As for using the plugins, instead of them installing the programs installing, try looking in:
C:\Documents and Settings\USERNAME\Application Data\Mozilla\Firefox\Profiles\PROFILE\extensions. You'll have to look at all the sub folders in those directories. A nested for loop could work. I looked in my extension directory, and able to find javascript files with the names of the programs.
You'll have to write your own tools to do it, I don't know of any off the shelf that will do that for you (Others might). The benefit, if management agrees, is you get to see what other things the users are installing.
Sorry I can't be more help than what I've suggested. But looking in the 2 locations on their computers, getting a list of the proxy servers, and the ones that contain the lists (blocking at the firewall), the only other thing I can suggest is googling "blocking TOR" (which I did sometime in the last 3 years).
*Edit: Make sure you keep your manager, and maybe director informed of what you're doing. I was lucky, when I was working the security part of my job, my director insisted I report straight to him not my manager, and he covered whatever I needed to do, like writing those scripts. My manager didn't like it, but my Director had my back.
«
Last Edit: March 09, 2010, 01:07:04 PM by chrisj
»
Logged
OSWP, Sec+
itg33k
Newbie
Offline
Posts: 10
Re: How are you detecting TOR activity in your network?
«
Reply #4 on:
March 09, 2010, 01:24:14 PM »
Chrisj,
Trust me these are great ideas that you suggested and it gives me a starting point. I’m in the process of compiling a known list of Tor servers, place a block for outgoing traffic and will look into an automatic solution for finding Tor plug-ins, if it comes to developing my own tool then this will be a little bit a new area to me, but as always the best way to learn is when your working in a project. This is why these forums are great it allows other people to give you another set of eyes when trying to figure out a solution.
Thanks again
«
Last Edit: March 09, 2010, 02:09:35 PM by itg33k
»
Logged
Ketchup
Hero Member
Offline
Posts: 1021
Re: How are you detecting TOR activity in your network?
«
Reply #5 on:
March 09, 2010, 05:50:04 PM »
I usually do not give users administrative privs on their workstations. They are not able to install software.
You can use Group Policies to restrict which software can and cannot run on your windows boxes. Check out the following link:
http://technet.microsoft.com/en-us/library/bb457006.aspx
Logged
~~~~~~~~~~~~~~
Ketchup
KamiCrazy
Jr. Member
Offline
Posts: 78
Re: How are you detecting TOR activity in your network?
«
Reply #6 on:
March 09, 2010, 07:23:32 PM »
Letting users install software or make modifications to your software environment is a recipe for disaster I have found.
Ketchup's suggestion to use group policy should be standard in a windows environment. I'm not 100% sure how you would lock down plugins though.
The simplest and easiest fix IMO for anonymous tor traffic would be to do this.
1) Have an acceptable use policy where any surfing done at work is susceptible to monitoring. Users are there to perform work not to perform personal matters.
2) Implement a proxy server. All surfing is done through the proxy server.
3) Either purchase a blue coat proxy which does MITM of SSL or implement your own whitebox setup with sslstrip/sslsniff etc etc so that you can scan the https traffic going through your network.
4)
?
5) Profit.
«
Last Edit: March 09, 2010, 07:35:50 PM by KamiCrazy
»
Logged
Ketchup
Hero Member
Offline
Posts: 1021
Re: How are you detecting TOR activity in your network?
«
Reply #7 on:
March 09, 2010, 07:39:22 PM »
KamiCrazy, Isn't there an executable portion for TOR? If you block that, the plug-in would be useless. Either way, a plug-in is still a file. I would have to test it, but I would think you should be able to block that through a GPO.
Logged
~~~~~~~~~~~~~~
Ketchup
KamiCrazy
Jr. Member
Offline
Posts: 78
Re: How are you detecting TOR activity in your network?
«
Reply #8 on:
March 09, 2010, 07:51:56 PM »
There is an exe portion to tor, you run the exe and have a plugin for firefox... but you don't have to run the exe on the same computer as the plugin. Nor do you need to run the plugin either really....
Anyways fighting tor is basically an arms race. I think doing things like scanning for their proxy list and such isn't a very good long term strat. Need to fight it closer to the problem.
Logged
chrisj
Hero Member
Offline
Posts: 1163
Re: How are you detecting TOR activity in your network?
«
Reply #9 on:
March 09, 2010, 10:13:27 PM »
Quote from: Ketchup on March 09, 2010, 05:50:04 PM
I usually do not give users administrative privs on their workstations. They are not able to install software.
You can use Group Policies to restrict which software can and cannot run on your windows boxes. Check out the following link:
http://technet.microsoft.com/en-us/library/bb457006.aspx
We're still fighting this at work. I was able to get a lot of the Admin rights taken out of the boxes, but since we scan books, and the scanners the company went with require admin privileges to run (that's how the drivers are set up for them), some users.. Well you get the idea.
Logged
OSWP, Sec+
ajohnson
Recruiters
Hero Member
Offline
Posts: 1056
aka dynamik
Re: How are you detecting TOR activity in your network?
«
Reply #10 on:
April 03, 2010, 04:04:53 PM »
Quote from: chrisj on March 09, 2010, 10:13:27 PM
We're still fighting this at work. I was able to get a lot of the Admin rights taken out of the boxes, but since we scan books, and the scanners the company went with require admin privileges to run (that's how the drivers are set up for them), some users.. Well you get the idea.
Using the Sysinternal's tool Process Explorer, you can find what file system and registry permissions the application/driver needs, and you can grant those to users via Group Policy. It is a PITA, and if there's ever an update or some other change, you often need to go through the process again. Still, it may allow you to revoke admin rights, which could end up causing problems that are even less fun to deal with.
Logged
WIP: GCFA |
www.infosiege.net
| @infosiege
The day you stop learning is the day you start becoming obsolete.
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
General Certification
: CPT Practical Submission
(0) by
z28power4u
OSCP - Offensive Security Certified Professional
: Class Scheduled 6/8 - Linux n00b
(5) by
MrTuxracer
Career Central
: Starter cert?
(0) by
Alert
Web Applications
: Nessus and Nikto
(4) by
Seen
Tutorials
: Need guidance
(7) by
impelse
Malware
: EICAR?
(2) by
SephStorm
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.