News for hackers. Stuff that matters.
Re:Why offer an Onion Address rather than just encourage bro... by bauruine on Thursday March 10, 2022 @03:28AM (#30624568)
If you are running an onion service but don't need to hide the server IP, like you do if you also provide clearnet access to the same server, you should enable single hop mode [0] to reduce the load on the Tor network and also speed up the connections. This way your server directly connects the introduction and rendezvous points while the client still stays anonymous with a 3 hop circuit.

[0]: Search for HiddenServiceSingleHopMode on https://2019.www.torproject.org/docs/tor-manual.html.en or just use the following config options

SOCKSPort 0

HiddenServiceNonAnonymousMode 1

HiddenServiceSingleHopMode 1

Re:Why offer an Onion Address rather than just encourage bro... by stingraycharles on Thursday March 10, 2022 @05:12AM (#30625221)
For my understanding, usually establishing a connection with a hidden service involves two separate Tor circuits: one circuit for the visitor, but another full circuit for the hidden service.

This “Non Anonymous Mode” effectively omits the second circuit, and allows relays to connect directly to the hidden service’s IP address, thus significantly improving latency and reducing the strain on the Tor network?

Re:Why offer an Onion Address rather than just encourage bro... by zekica on Thursday March 10, 2022 @05:46AM (#30625441)
That is correct, but note that not all tor nodes are exit nodes, so latency will be increased but troughput may even be better.
Re:Why offer an Onion Address rather than just encourage bro... by stingraycharles on Thursday March 10, 2022 @08:12AM (#30626506)
Ah right, so what you’re saying is that hidden services don’t need Exit relays for hidden services at all, and as such do not have the bottleneck issues that usually plague exit nodes.
Re:Why offer an Onion Address rather than just encourage bro... by bauruine on Thursday March 10, 2022 @05:43AM (#30625426)
Yes that's correct.
Re:Why offer an Onion Address rather than just encourage bro... by ycuser2 on Thursday March 10, 2022 @05:52AM (#30625488)
I'm using Tor to access my local network services through hidden services. Since I don't need to hide my IP address I'm going to follow your advice gratefully. Didn't know that's possible.
Re:Why offer an Onion Address rather than just encourage bro... by _wldu on Thursday March 10, 2022 @08:08AM (#30626473)
That's sort of like having backdoor access to your internal network (similar to teredo). Others may use it to gain access to that network. If it's your home, that may be OK to you, but if it is an employer, you may want to obtain approval to do that and be sure all of your hidden services use keys or strong passwords for access.
Re:Why offer an Onion Address rather than just encourage bro... by I_Byte on Thursday March 10, 2022 @02:09PM (#30631074)
This is completely incorrect. It is physically impossible to make a connection to a hidden service without the hidden services onion address (I am talking about the current v3 onion addresses, the ones that are 56 characters long). This is thanks to the fact that the onion address itself is the hidden services public key.

If you keep your onion address private then nobody can connect to your hidden service or even know that it exists. Simple as that.

Re:Why offer an Onion Address rather than just encourage bro... by jcrawfordor on Thursday March 10, 2022 @02:20PM (#30631220)
It's also "physically impossible" for someone to gain access to a well configured IPSec endpoint, yet we still consider this a point of access that needs appropriate controls and security oversight. There are many, many ways that people collect key material to use to access tunnels to corporate networks. No matter how confident you might be in the technology, you should never provide an access point to a private network without full consideration of the security and compliance implications.

Perhaps the bigger issue though is that Tor at least used to be frequently used by botnets for C2, I'm not in a SOC environment any more so I'm not sure how much that trend has changed. But it's very common for corporate security programs to configure IDS to report on Tor traffic since it's associated with some sort of compromise a good percentage of the time. This does mean you get occasional false positives from normal Tor use to e.g. anonymously access public materials but that's life in a SOC. The point though is that most corporate environments ought to notice this kind of thing happening whether or not it's done with the approval of IT/security.

Re:Why offer an Onion Address rather than just encourage bro... by nonamenoslogan on Thursday March 10, 2022 @04:48PM (#30632927)
Security through obfuscation isn't bad, but its certainly not infallible.
Re:Why offer an Onion Address rather than just encourage bro... by c0wb0yc0d3r on Thursday March 10, 2022 @08:23AM (#30626590)
Could you explain this a bit more? How would this be more open than port forwarding? I don't see how someone could leverage this without exploiting whatever app is hosted as the hidden service?
Re:Why offer an Onion Address rather than just encourage bro... by _wldu on Thursday March 10, 2022 @10:25AM (#30627926)
It's a tunnel into your internal network.

If nation states and/or cyber criminals do control most of tor, then you are opening your internal network to those groups.

Re:Why offer an Onion Address rather than just encourage bro... by sweetbitter on Thursday March 10, 2022 @09:06PM (#30635292)
No, because it is possible establish a token required for access to an onion service on top of the obscurity of having to actually discover the service's public address.

It is also extremely likely that said adversaries control most of Tor, considering that the main mechanisms of tracing Tor circuits do not require control over any nodes of the Tor network whatsoever- snooping on IXPs and as many autonomous systems and underwater wires as possible.

Re:Why offer an Onion Address rather than just encourage bro... by throwaway2048 on Thursday March 10, 2022 @11:05AM (#30628443)
So is port forwarding or running any other services, tor is special in absolutely no meaningful respect here.
Re:Why offer an Onion Address rather than just encourage bro... by whatshisface on Thursday March 10, 2022 @01:06PM (#30630213)
The OP said "employer," and most people can't port forward at the office without talking to IT.
Re:Why offer an Onion Address rather than just encourage bro... by throwaway2048 on Thursday March 10, 2022 @01:15PM (#30630330)
there are an almost infinite amount of ways to host services from behind firewalls without port forwarding, or any network admin approval. Tor is not special in this regard, nor dangerous due to supposed bad people controlling the network.
Re:Why offer an Onion Address rather than just encourage bro... by jstanley on Thursday March 10, 2022 @08:51AM (#30626855)
Yes, it's exactly like port forwarding.
Re:Why offer an Onion Address rather than just encourage bro... by I_Byte on Thursday March 10, 2022 @02:14PM (#30631139)
This is incorrect. A Tor hidden service is fundamentally different from port forwarding. If you don't have the hidden services onion address (v3 address) then you physically cannot make a connection to the hidden service. This is because the onion address is the hidden services public key.

You can scan the entire internet for open ports, you can't scan the Tor network for hidden services to connect to unless you already have the hidden services onion addresses.

Re:Why offer an Onion Address rather than just encourage bro... by heavyset_go on Thursday March 10, 2022 @08:22PM (#30635018)
When you create an onion address, does that address get leaked at any point? As in, are there nodes or servers in the Tor network that know that xxxx.onion is a valid address at the time of creation or afterwards?
Re:Why offer an Onion Address rather than just encourage bro... by I_Byte on Thursday March 10, 2022 @11:03PM (#30636023)
With the old v2 hidden services (16 character long onion addresses) it was possible to recover the onion addresses of any service running on the Tor network while the v2 hidden service was running.

However, that issue was only present in v2 hidden services. v2 has been depreciated in favor of the new v3 hidden service protocol (56 character long onion addresses) which is not vulnerable to this issue. This new protocol contains a full ed2559 elliptic curve public key in the onion address. The key in the onion address is used to derive what are called "blind keys". These "blinded keys" are then announced to the Tor network in such a way that nobody can recover the original public key without prior knowledge of the it, leaving them unable to establish a connection with the hidden service.

I have only briefly elaborated on how v3 hidden services work. If you are interested in a more in depth and technical explanation I encourage you to read:

[0] - https://gitweb.torproject.org/torspec.git/tree/rend-spec-v3.... [1] - https://gitlab.torproject.org/legacy/trac/-/wikis/doc/NextGe...

Re:Why offer an Onion Address rather than just encourage bro... by sweetbitter on Thursday March 10, 2022 @09:07PM (#30635308)
You can set up a token that is required to actually make the connection[0].

[0] - http://xmrhfasfg5suueegrnc4gsgyi2tyclcy5oz7f5drnrodmdtob6t2i...

Re:Why offer an Onion Address rather than just encourage bro... by ycuser2 on Thursday March 10, 2022 @10:01AM (#30627632)
Are you sure? Don't an attacker need knowledge of the onion address, which is almost unguessable?

But with client authentification that wouldn't be a problem anyways because only chosen clients get access.

Re:Why offer an Onion Address rather than just encourage bro... by chatmasta on Thursday March 10, 2022 @11:03AM (#30628425)
Onion address is not unguessable, it's stored on a DHT shared by relays with the HSDir flag (which they earn after ~7 days IIRC).

I think this changed slightly with v3 addresses, so my comment might be out of date, but I think the general premise remains the same. (EDIT: Apparently with V3 addresses, there is still a DHT, but client uses key derivation so that the HSDir only stores a daily-rotated identifier known as a "blinded public key." [0])

Although your hidden service address is not hidden, you can require that any client connecting to it present a valid authorization key (I think this is also new in V3?).

Also, it obviously depends which service you're exposing — if you are exposing an SSH server that only allows key-based authentication, then it shouldn't matter if people can simply connect to it — assuming you trust the SSHD software, and your threat model doesn't depend on avoiding detection completely.

[0] https://blog.torproject.org/v3-onion-services-usage/

Re:Why offer an Onion Address rather than just encourage bro... by steerablesafe on Thursday March 10, 2022 @05:57AM (#30625535)
Any reason you don't use some kind of VPN solution for that instead?
Re:Why offer an Onion Address rather than just encourage bro... by ycuser2 on Thursday March 10, 2022 @06:16AM (#30625664)
Hidden services are very easy to configure (the basic config, if you want to be as anonym as possible you have to do more). Install tor, add a few lines to config, done. And: You don't have to change your firewall settings at all. Nothing is exposed to the clearnet.

You can also make your service be accessible only to certain clients which have a certificate. I consider this very secure.

Re:Why offer an Onion Address rather than just encourage bro... by conradev on Thursday March 10, 2022 @10:21AM (#30627878)
Only recently has there been an easy to setup and secure alternative with the same properties – Tailscale

It is centralized, yes, but it is way, way faster if you care about latency

https://tailscale.com/

(you can also self-host it with the open source “headscale” project)

Re:Why offer an Onion Address rather than just encourage bro... by rattlesnakedave on Thursday March 10, 2022 @11:16AM (#30628583)
+1 for tailscale, it is an absolute joy to use.
Re:Why offer an Onion Address rather than just encourage bro... by heavyset_go on Thursday March 10, 2022 @09:47AM (#30627494)
> You can also make your service be accessible only to certain clients which have a certificate. I consider this very secure.

Are you talking about this? https://community.torproject.org/onion-services/advanced/cli...

Re:Why offer an Onion Address rather than just encourage bro... by ycuser2 on Thursday March 10, 2022 @10:01AM (#30627646)
Yes, client authentification it is called.
Re:Why offer an Onion Address rather than just encourage bro... by heavyset_go on Thursday March 10, 2022 @05:02PM (#30633065)
Thanks for mentioning it, I would have overlooked that feature entirely, otherwise.
Re:Why offer an Onion Address rather than just encourage bro... by steerablesafe on Thursday March 10, 2022 @06:40AM (#30625820)
I guess I can understand that from an ease of configuration standpoint. Having said that I had no trouble with setting up zerotier VPN, which is also very easy to configure.
Re:Why offer an Onion Address rather than just encourage bro... by Karrot_Kream on Thursday March 10, 2022 @03:40PM (#30632146)
I do the same but you still need to be careful when running Zerotier to listen only on IP addresses that the ZT link is assigned. I run a private mailserver and I've made sure that there are no sockets listening on any non-ZT externally routable IP address. (I guess for good measure I could have nftables drop traffic coming in on those ports on my WAN link.) But with Tor you just point it to a service listening on 127.0.0.1 or [::1] and you're in business. For me ZT is fine, but for folks who want to muck around a bit less, I can see the appeal of Tor.
Re:Why offer an Onion Address rather than just encourage bro... by goodpoint on Thursday March 10, 2022 @08:13AM (#30626518)
Not only it's easier to configure, but it provides better security. The onion address works as a server certificate.

1) You don't have to pay or trust a VPN provider

2) It works on dynamic IP addresses and without relying on DNS

3) It exposes only one TCP service

Re:Why offer an Onion Address rather than just encourage bro... by danuker on Thursday March 10, 2022 @06:25AM (#30625726)
You are not just reducing load, you are also reducing anonymity for other participants. The extra hops make it harder to analyze the data overall.
Re:Why offer an Onion Address rather than just encourage bro... by bauruine on Thursday March 10, 2022 @10:38AM (#30628088)
Could you please post a source for this? The only thing i could find is from the man page "However, the fact that a client is accessing a Single Onion rather than a Hidden Service may be statistically distinguishable." but I'm not sure what exactly the impact is from that.
Re:Why offer an Onion Address rather than just encourage bro... by goodpoint on Thursday March 10, 2022 @08:10AM (#30626488)
Citation needed!

Any timing correlation attack carried on against entry and exit nodes is independent from the number of hops.

Re:Why offer an Onion Address rather than just encourage bro... by Terry_Roll on Thursday March 10, 2022 @03:49PM (#30632241)
Tor is not anonymous just like VPN's are not anonymous when you have 5eyes oversight of the network. Its like watching trucks navigating around the road network, you can see the junctions they take and you can see where they start and end, but you cant see the contents of the truck.

The Road network and internet have an awful lot in common!

Re:Why offer an Onion Address rather than just encourage bro... by brnt on Thursday March 10, 2022 @05:30AM (#30625319)
If I use Onionshare, where do I set this?