Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Slashdot Log In

Log In

Create Account  |  Retrieve Password

Spying On Tor

Posted by CmdrTaco on Wed Nov 21, 2007 11:23 AM
from the shocked-and-apalled-and-totally-not-surprised dept.
juct writes "The long-standing suspicion that the anonymizing network TOR is abused to catch sensitive data by Chinese, Russian, and American government agencies as well as hacking groups gets new support. Members of the Teamfurry community found TOR exit-nodes which only forward unencrypted versions of certain protocols. These peculiar configurations invite speculation as to why they are set up in this way. Another tor exit node has been caught doing MITM attacks using fake SSL certificates."
+ -
story

Related Stories

This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More
Loading... please wait.
  • Conclusion: (Score:3, Insightful)

    by Anonymous Coward on Wednesday November 21 2007, @11:27AM (#21436135)
    You have to know what you're doing to have security. I know it's getting old, but plug-in security simply does not exist.
      • by s20451 (410424) on Wednesday November 21 2007, @12:00PM (#21436603) Journal
        Tor is so easy to abuse (if you run a tor server) it's not even funny. Just take a look at the code, it's trivial to hack. It's funny how much of the OSS community are proverbial sheeple, believing that since it's open source, it must be secure.

        It's for exactly this reason that Tor should adopt AGPL. That way, if the Chinese government ran a hacked Tor server, they would have to release the source code as well and the hack would be obvious.
        • by Anonymous Coward on Wednesday November 21 2007, @01:26PM (#21437883)

          It's for exactly this reason that Tor should adopt AGPL. That way, if the Chinese government ran a hacked Tor server, they would have to release the source code as well and the hack would be obvious.

          The problem is, a couple hours after suing the Chinese, you want to sue them again.

            • with a userid that low, you'd think you would be able to identify a joke when you see one by now.

              It just goes to show that age does not necessarily bring enlightenment. Thanks for the heads up :).

            • Re:Conclusion: (Score:4, Informative)

              by dave562 (969951) on Wednesday November 21 2007, @01:56PM (#21438285) Journal
              And well , Tor never claimed that it couldn't be abused .

              Very true. During one of the original presentations done at Defcon it was mentioned that Tor was already being abused by the government to obfuscate emails for political purposes. It was also mentioned that at the time of the presentation, the potential for both an entry and exit node to be on machines connected to a Level3 connection. One of the big concerns at that point was that with the increased consolidation of backbone providers, it will become more and more difficult to achieve the aims of anonymity.

      • Re:Conclusion: (Score:5, Informative)

        by Kadin2048 (468275) * <slashdot.kadin@x ... t minus language> on Wednesday November 21 2007, @02:00PM (#21438361) Homepage Journal

        Tor is so easy to abuse (if you run a tor server) it's not even funny. Just take a look at the code, it's trivial to hack. It's funny how much of the OSS community are proverbial sheeple, believing that since it's open source, it must be secure.
        I know I'm feeding a troll here, but I think this is an opportunity to clarify a point: Tor does one thing, and does it pretty well. It hides your IP address from the server you're connecting to. That's it.

        It's not a "plug in security" solution, and it's not meant to protect your traffic from people snooping on it in transit. If you want that, you need to use some sort of end-to-end encryption on top of Tor. (And you need to use some form of encryption that doesn't positively identify you, or else you might as well not use Tor to begin with.)

        These kind of "attacks" are trivial because they have nothing to do with Tor's actual function. They're taking advantage of user stupidity, not a design flaw.
          • Re:Conclusion: (Score:5, Informative)

            by totally bogus dude (1040246) on Wednesday November 21 2007, @08:38PM (#21442841)

            Not really. The tor configuration lets you specify an "exit policy": addresses and ports which you will allow your node to be used as an exit for. Tor clients know what the exit policy of each node is, and don't try to exit out of a node which doesn't allow those connections to be made.

            It's only disruptive if you use a firewall to prevent certain connections, and don't let tor know that you're doing so. In that case, a client may select you as an exit node, but the connection will fail. If you configure your exit policy to match your firewall policy, then clients know your server won't allow their connection to a particular host/port, and won't select it as an exit node.

            Therefore, if your purpose in running tor is to snoop on unencrypted traffic, you would set your exit policy not to allow connections to port 443, because that's almost always encrypted, and thus minimise the amount of traffic exiting your node which you're not able to sniff. Or more likely, you'd set it to only allow connections to port 80 or whatever it is you're interested in.

            Note that exit policies are very useful and quite legitimate. For example, I run two tor servers: one on my own dedicated server at a US colo facility on a dedicated IP address, which uses the standard tor exit policy which is fairly permissive. At work we have an unmetered fibre connection we don't use much, so I run a tor server here with a highly restrictive exit policy: deny everything (in other words, it's purely a relay or entry point, not an exit point). This limits our exposure; I'm willing to deal with people complaining about abuse from my own server, but I don't want to get our organisation involved in such disputes.

            Most tor servers won't allow you to connect to port 25, as another example, because that effectively turns your tor server into an open SMTP relay.

  • by TheSciBoy (1050166) on Wednesday November 21 2007, @11:28AM (#21436137)

    This is what happens in a knee-jerk-reaction-based society. You point out a security flaw, instantly identifying yourself as a security threat, get thrown into jail and while your very public trial is going on, the real bad guys are utilizing the very security flaws you found to do Bad Things(TM).

    Good grief.

    • by Z00L00K (682162) on Wednesday November 21 2007, @11:40AM (#21436313) Homepage
      That's the normal situation - governments are permitted to do anything that's criminal for a normal citizen. As soon as you do anything is government approved or required it's no longer an issue of breaking the law. Even if it's morally wrong.

      The problem here is that the guy revealed one of the weaknesses that's utilized by governments all over the world and suddenly that leak was quenched.

    • by Frosty Piss (770223) on Wednesday November 21 2007, @12:05PM (#21436671)
      The problem with the guy you're talking about is not that he pointed out some issues with TOR, but that he then proceeded to disclose 100's of user ID and password combos. Totally unnecessary and irresponsible.
    • by SuperBanana (662181) on Wednesday November 21 2007, @12:21PM (#21436933)

      Is this not what that swedish hacker said?

      Is this not what anyone with a basic understanding of the most basic network/TCP concepts (ports, IP addresses, connections, that sort of thing) should have realized, if they read anything about Tor? Is this not something that the Tor project should have explained in clear language for those who do NOT have a basic understanding of networking?

      It's beyond "untrusted". It's a hostile network and blatantly so, if you bother to read even a basic description of it. You should assume that your traffic will be routed out a node where a person, organization, or government is passively monitoring or actively attacking your traffic.

      All this (repeated) fuss demonstrates is how many incompetent network/sysadmin people there are in the world, and how few people in the press and "blogging" community understand networking. Any idiot who knows ALL of the reasons why ssh is better than telnet (ie, answers more than just "it's encrypted, so people can't see what you're typing") should be able to tell you why Tor is a hostile network...unless they're just parroting what they've read elsewhere.

      • Re: (Score:3, Interesting)

        I disagree with the overall thrust of your post.

        Tor isn't aimed at sysadmins for use as a client. You are confusing the actors and roles in your message.

        Tor client only requires a knowledge of: domains/URLs, cookies and misc browser security issues like scripts and web bugs. Network architecture isn't important (if I'm mistaken, please explain). In Firefox, keep using Tools-> Clear Private Data. With this level of knowledge you can browse 'open' sites anonymously.

        If privacy is also required, then basic k
        • Re: (Score:3, Interesting)

          Tor isn't aimed at sysadmins for use as a client. You are confusing the actors and roles in your message.

          The point of my post is that at several organizations, including apparently a bunch of embassies, someone thought it was a good idea to install this stuff. It's the fault of the sysadmins for not advising their users better or not locking down machines (embassies should have good security.) What's truly frightening is the possibility that one of them recommended it, and that's even worse.

      • There's a link on the tor homepage [torproject.org] to a set of warnings [torproject.org]; number four reads:

        Tor anonymizes the origin of your traffic, and it encrypts everything inside the Tor network, but it can't encrypt your traffic between the Tor network and its final destination. [torproject.org] If you are communicating sensitive information, you should use as much care as you would on the normal scary Internet -- use HTTPS or other end-to-end encryption and authentication.

        The link goes to an explanation saying that you should use end-to-end encryp

  • MITM (Score:5, Interesting)

    by MartinG (52587) on Wednesday November 21 2007, @11:31AM (#21436187) Homepage Journal
    I've seen ssh MITM attempts myself with tor, but this can easily be avoided by ensuring you check your fingerprints. You do check your fingerprints, don't you?
    • Or by using private-key encryption whenever possible. Of course neither solution means anything when you're trying to use an e-commerce site with SSL. Browsers don't offer a solution for checking the security of the connection against MitM attacks.

      I find it interesting and openly malicious that encrypted protocols are blocked at some exit nodes. This may explain some intermittent problems that I've been experiencing with some of my apps that use TOR and encryption.
      • Re: (Score:3, Informative)

        by Anonymous Coward
        Huh? You make no sense. SSL is private-key encryption. Every browser I have ever touched does offer a solution for checking against MITM attacks, namely by warning if the certificate is self-signed or doesn't match the site that sent it.
        • What are you talking about? SSL certificates are/contain public keys. Read more about the SSL and TLS handshaking procedure.

          Also, what happens when you visit a site that signs its own certificate? It's not that hard in doing a MitM attack to fake being that site's unique certificate. Unless you're dealing with a site that you absolutely know uses a trusted third party certificate, then you're SOL.

          Also, a government-run MitM node could very well possess a CA's private key and be able to fake legit certif
                • Re: (Score:3, Interesting)

                  [1]Who said this was about e-commerce? [2]Under what conditions should online commerce be kept secret from the government? [3]Or by "single point of failure" are are implying that a CA will have its private key STOLEN by private crooks?? The latter would be a really stupid assumption to make, esp since they can revoke stolen keys.

                  (Numbers added by me)
                  1. E-commerce is the single most common use of SSL encryption.
                  2. Under any and all situations in which the government does not have a warrant.
                  3. No. By gov
                  • So does SSH. It's the server fingerprint. Much like a certificate, unless you have knowledge of what it should be prior to the connection, it's hard to know you're compromised. The problem is exacerbated by inexperienced users, but fundamentally it's the issue of trusting an unknown set of credentials.

                    No, it's not the same. Server certificates are signed by a trusted root CA; the public key for that CA is distributed out-of-band on your operating system's installation media. You can reasonably trust that w

  • Team Furry? (Score:3, Funny)

    by Odiumjunkie (926074) on Wednesday November 21 2007, @11:32AM (#21436191)
    > Members of the Teamfurry community found TOR exit-nodes which only forward unencrypted versions of certain protocols.

    Are they worried that the Chinese will intercept pictures of them dressed like this [imageshack.us]?
  • by athloi (1075845) on Wednesday November 21 2007, @11:36AM (#21436253) Homepage Journal
    How does anyone expect anonymity? Traffic must somewhere go through ISPs, most of which rent their upstream from large providers like AT&T, who is surely not the only large corporation to get in bed with the government or anyone else who can pay. Enough of that information loaded into a database and compared will yield information about the suspect, even if it's too complex to explain to a "jury of your peers."

    If you want anonymity, SSH through a string of compromised Eastern European servers to a comfortably log-agnostic Indonesian ISP, and do all your surfing through Lynx/Links. That's the only stab at anonymity you'll get, and they'll probably just install a keylogger anyway. Freedom is slavery.
  • Old news is better than no news... i guess. /.ers have know that TOR exit notes where being sniffed for a while now and hackers certainly much longer than that.
  • by G4from128k (686170) on Wednesday November 21 2007, @11:43AM (#21436379)
    Perhaps the problem is that using an anonymizer makes someone a more interesting target to authorities. Like the old adage of attacking the bank because "that's where the money is," perhaps some people are attacking Tor because "that's where the secrets are."
    • Or maybe because it's easy. Setting up an exit node and snooping on the unencrypted data coming through requires a lot less work than listening in on normal internet traffic.
  • 1. set up a data-laundering haven
    2. advertise amongst the warez people and criminal element
    3. let enough criminal traffic (drug trafficking info) go through to build up trust that the laundering 'really works'
    4. Wait around for the stuff that is important (like nuclear codes or enemy state intel)
    5. ???
    6. Promoted to section chief at the invisible mansion! (Profit!)

    I don't have one lick of proof to say that our friends in Maryland or their cousins in Langley set this thing up from the beginning, other than it's an obvious slam dunk for them. I don't think the NSA is monitoring certain ports, I think they own the whole thing.
    • Re: (Score:3, Interesting)

      I have been saying this about Google for a long time. What is the best way to know what people are thinking? Make it easy to answer their questions. What is the best way to know what they are talking about? Offer them an easy, free communication mechanism. What is the best way to know what part of the globe they are interested in? Offer them free maps...
  • Tor was never intended to SECURE traffic. It is an ANOMYMISER. It is designed to cope with compromised nodes and still provide military grade anonymity.

    It's important to remember that security and anonymity are different things.
    • by myvirtualid (851756) <pwwnow@@@gmail...com> on Wednesday November 21 2007, @12:31PM (#21437103) Journal

      Military grade anonymity?

      What?

      Sure, we all know - or think we know - what "military grade crypto" means[1], but now you're just making stuff up.

      Military grade anonymity, indeed.

      [1] Strong crypto managed in a Type 0 or Type 1, etc., system, where everything is kept secret, hardware and software are tightly controlled, and updates are distributed strictly out-of-band - think spies with briefcases handcuffed to their wrists.

      Contrast with "commercial grade crypto", where everything but the secret/private keys themselves are known, well studied, well understood, etc., and updates are distributed in-band, though sometimes "boot strapped" using an OOB shared secret, etc.

      There is the perception that "military grade" is somehow stronger than "commercial grade", but what is the basis for this perception? None of us can say, least not here.

      To know - to really know - whether military grade crypto is actually any stronger than commercial grade crypto requires a degree of access which itself requires clearance at - or above - top secret, said clearance being predicated on the understanding that those with said access won't reveal what they know, on pain of prosecution.

      So the people who do know cannot and will not tell.

      You'll just have to take my word for it. :->

      "Military grade anonymity" is nothing more than buzzspeak for "anonymity that we think is really, really OMG PONIES good, but we can't prove, what with there being a complete and total lack of mathematically sound anonymity analytics comparable to cryptanalysis, so there, nyah!"

      • by Old Man Kensey (5209) on Wednesday November 21 2007, @12:55PM (#21437445) Homepage

        myvirtualid wrote:

        clearance at - or above - top secret

        There is no clearance above TS, at least in the technical sense. There is TS/SCI ("special compartmented information") clearance, which may or may not include a lifestyle polygraph exam. TS/SCI and TS/SCI + lifestyle poly are not "above" TS in any real sense, they are merely additional qualifiers used as criteria to determine whether you can be allowed access to compartmented info. If you have TS/SCI it makes that process easier, but not having TS/SCI is not an absolute barrier if the right people sign off on it (although for certain information "the right people" may consist of both houses of Congress and the President).

        Compartments can be as loose (within the restrictions of TS) or as restrictive as necessary. There can be (and I understand are) compartments with only a handful of people.

          • but if there, would you be allowed to know of them, without having a TS yourself?

            I would say yes, because there are laws governing what will happen to you if you reveal certain levels of information, i.e. TS is defined as having the potential to cause "exceptionally grave" damage to national security if disclosed inappropriately. I imagine this would carry a more stiff penalty than say releasing some mundane info that was classified as "Confidential". Having a secret level above TS causes certain problem

      • Re: (Score:3, Insightful)

        *Sure, TOR aint big fans of people chewing up BW with p2p, but better that than being sued right?
        No, not "better that than be sued". You're just making tor more difficult to use for what it really is for; information censured for political reason. Tor really does help chinese nationals (at least, those that are aware of it and able to use it), you're just ramming nodes with your idiotic hollywood film traffic.
  • A little reminder (Score:5, Interesting)

    by Khopesh (112447) on Wednesday November 21 2007, @12:01PM (#21436617) Homepage Journal

    This is a little reminder that we need a lot more users and exit nodes before TOR is reasonably safe.
    This is a little reminder to encrypt your data end-to-end rather than through another network; anonymity is not security.
    This is a little reminder that you really do need to check your SSL certificates.

    TOR's encryption fools some into thinking it is a security model. It is not. TOR facilitates anonymous transactions using encryption internally. It eliminates the possibility of people spying on you by name, but it does not stop them from spying on "the people" (which includes you). You still need another encrypted transaction between you and your endpoint for real security.

    The more exit nodes there are, the less likely a snooping entity will get ahold of your data. The more users there are, the more data those snoops need to filter through to get something meaningful (caveat: statistical analysis [wikipedia.org]. workaround: encrypt data past the TOR network).

    This is a call-to-arms; everybody needs to use encryption and anonymization to enable the system to work, otherwise somebody can set up a few nets and read the whole network's content, even brute-force decrypt it due to its low volume. Take a look at what Zimmerman's justification for PGP [philzimmermann.com]:

    What if everyone believed that law-abiding citizens should use postcards for their mail? If a nonconformist tried to assert his privacy by using an envelope for his mail, it would draw suspicion. Perhaps the authorities would open his mail to see what he's hiding.
    • Good points, all. If you're telnetting over the Internet; without having a very specific reason to do so, you're already asking for problems that no proxy is going to help you with. Now, monitoring who's trying to telnet to places using Tor I can see as generating a good list of naughty users and misinformed network admins...
  • by arevos (659374) on Wednesday November 21 2007, @12:01PM (#21436619) Homepage
    I can't quite see how a SSL MITM attack works. Wouldn't the SSL certificate have to be registered for use with a specific domain? Could anyone explain how this would work?
  • by Nick Mathewson (11078) on Wednesday November 21 2007, @12:06PM (#21436699)

    Hi all. I'm one of the Tor authors.

    We're trying very hard to get out the message that you should always use encrypted protocols over Tor, if you're doing anything even slightly sensitive.

    Right now, we do this in our documentation, and in a list of warnings on our download page [torproject.org]. But obviously, this isn't good enough, since some of the commenters here seem to be surprised at finding it out.

    Does anybody have good ideas about how to get the word out better?

    (As for the SSL MITM thing: we've run into situations like this one before. Usually, it turns out that the exit node isn't doing the MITM itself, but is getting MITMd itself by its upstream. This happens depressingly often in some countries, and in some dormitories. I've dropped a line to the directory authority operators Mike Perry (the guy who maintains the Torbutton firefox plugin) has been working on an automated detection tool for this stuff. It would be great if somebody with programming chops would step up and give him a hand.)

    • If you find a reliable way to make end-users RTFM, please let us know.
      • Re: (Score:3, Funny)

        If you find a reliable way to make end-users RTFM, please let us know.

        Have you tried waterboarding?

        -
    • You want to automatically detect in route sniffing? Good luck with that one.

      You want to detect MITM attacks on SSL? Already been done, do not waste your time.
    • Re: (Score:3, Insightful)

      Do a little light traffic analysis and block anything that isn't encrypted. Anything that isn't "as random" as encrypted data, and anything that has plaintext in it - block.

      The only way to get users to do something with any reliability is to FORCE them to do it, and to make everything else impossible.

      Now someone is going to scream that they really want the ability to do plain in the clear http over TOR. Fine, ship tor clients with two modes, "insecure" and "secure". Default to the latter which only uses
  • Encrypted Traffic? (Score:3, Insightful)

    by nurb432 (527695) on Wednesday November 21 2007, @05:56PM (#21441443) Homepage Journal
    I thought TOR was mostly to hide your identity, not the data.

    FreeNet is more about hiding the data.
    • Old news I know, but this once again brings up the issue of trust. I am only familiar with the TOR protocol/Onion routing at a high level, but is it possible to somehow revamp the protocol and include a trusted node-ranking system? Think slashdot style mod points applied to a TOR server. Obvious DOS attacks exist with this method, but refined a little it may work.

      And exactly how would you know if someone is sniffing if they do not publish the results? The fact is that this is a security/anonymization s
    • Have you ever tried to set up GPG? It's really a lot of things to get right directly you need to know about keyservers and how to send publickeys in a secure way etc. etc. And you need to know all the commands.

      To install TOR I did, click on "install new packages", find TOR, install. Change to the Proxy gateway. I actually forgot that I was using TOR..
        • Re: (Score:3, Informative)

          Congratulations, you are only half wrong.

          With "Joe Random"'s public key, you can indeed encrypt using it and only the owner of the matching private key can decrypt it. However, who is to say that you are really using Joe's public key?

          And conversely, if you get something signed that can be decrypted using Joe's public key, how can you be sure that it was actually signed by Joe?

          The answer is, you can't. Not unless Joe has a secure way of providing you his public key. Perhaps publishing it to a web site works,
              • Re: (Score:3, Insightful)

                Well the way I normally test to make sure a key is from who it claims to be from is to ask, or more likely because they have told me in advance using a medium that can be trusted (i.e. by phone, or any other communications method that you trust, for me to communicate with you securely getting in touch using the emails listed on /. would probably be sufficient because its not like you know who I am anyway, as long as you are talking to the person you expect to talk to it matters very little who I really am).
    • by koehn (575405) * on Wednesday November 21 2007, @12:45PM (#21437303)
      As the article has repeated, if you're interested in security it seems you really ought to apply your own encryption on top of TOR.

      However, even if you do that are you truly anonymous? Is there any way to determine both ends of a conversation (either email or sessions)?


      There's no way to guarantee that your communications over TOR are anonymous, and they're pretty upfront about that in the documentation. It's pretty easy for a government (or just about anybody, really) to add enough nodes to TOR to have a reasonable likelihood of being all three nodes in your conversation (entrance, middle, and exit). The nodes need to be geographically distributed, but that's easy for governments and easier for hackers, who have access to botnets of machines all over the world. Once they've got enough nodes out there, it's pretty easy to tell who's sending all that traffic, and where it's going.

      Again, adding encryption helps keep your data from being sniffed (as long as you know you're not hit by MITM, see other comments about PKI), but TOR doesn't protect your anonymity against a sophisticated (and reasonably well-funded) attacker.