News for hackers. Stuff that matters.
Re:Nostr: Notes and Other Stuff Transmitted by Relays by nine_k on Thursday January 26, 2023 @05:21AM (#34529931)
The biggest problem I see here is forwarding someone else's unknown and unencrypted content.

Imagine you're running a relay on your machine, and somebody posts some CSAM, or stolen CC data, or hate speech, etc through your relay.

Unlike an email client, your relay actually makes that message available to anyone.

Unlike an email relay, you are not forwarding the message to someone else like a dumb pipe; there's no final destination.

Unlike a torrent / DHT node, you do not know beforehand what you are going to make available.

Unlike a Tor exit node, you do not deal in encrypted fragments which you don't store locally.

Unlike an IPFS node, you do not store fragments of files while not even having a full set of such fragments for a given file.

Even though the message is signed, you can't reasonably prove that you do not possess the private key used to sign it, or have not possessed.

So, if you are an anti-censorship activist, and your machine gets searched (which may be even easier to do in the case of a VPS), you, the runner of the relay, may have some pretty unpleasant time. Even if you manage to convince everyone that you only forward these messages and do not inspect or endorse them, and the authorities will not even fine you, it will cost you time and trouble.

Worse, it becomes easy to send something incriminating from a throwaway or stolen client through your relay, and report you to the police. This can of course be done with email or any IM, but these will immediately show you what you've got, so you can e.g. immediately delete it. They do not allow perfect strangers quietly put random stuff onto your disk.

Of course the point of the protocol is to resist censorship, so any content deemed criminal by someone cannot be entirely blocked. But the publishers and the receivers of such content make their choice, while those running a relay seem to remain unprotected from from consequences of that choice which they did not make.

Re:Nostr: Notes and Other Stuff Transmitted by Relays by drexlspivey on Thursday January 26, 2023 @05:41AM (#34530071)
What a bunch of nonsense
Re:Nostr: Notes and Other Stuff Transmitted by Relays by Semaphor on Thursday January 26, 2023 @05:47AM (#34530125)
What is? How would this scenario be prevented?
Re:Nostr: Notes and Other Stuff Transmitted by Relays by nine_k on Thursday January 26, 2023 @06:10AM (#34530262)
I'd appreciate a bit more detailed answer.

If the problem that Nostr solves is, say, posting NYT headlines, pub crawl reports, or cute cat pictures, it's fine, but most centralized tools are also fine.

If the problem which Nostr is trying to solve is being censorship-resistant and allow for dissemination of information which is actively being suppressed, relay safety considerations become important. Less safety means fewer relays, and a need of a personal connection / trust to be admitted.

Re:Nostr: Notes and Other Stuff Transmitted by Relays by larrysalibra on Thursday January 26, 2023 @06:16AM (#34530304)
> If the problem which Nostr is trying to solve is being censorship-resistant and allow for dissemination of information which is actively being suppressed, relay safety considerations become important. Less safety means fewer relays, and a need of a personal connection / trust to be admitted.

Because almost all of Nostr logic is in the clients, you can always run your own relay or pay someone to run it. There will always be someone shady that will run a relay for you if you pay enough for it. And people that follow you will still be able to see your posts.

I agree that the current state where there are hundreds of open relays and people people posting to 20 of them at a time isn't likely to be what the network looks like in the future. But that's fine - it's good enough for now.

Re:Nostr: Notes and Other Stuff Transmitted by Relays by nine_k on Thursday January 26, 2023 @06:49AM (#34530556)
That's actually a great idea: run enough relays yourself, so you can somehow conceal your identity, and somehow protect yourself from things like losing your (DNS) domain.

It's a bit like posting to your blog anonymously, and having a bunch of mirrors.

Re:Nostr: Notes and Other Stuff Transmitted by Relays by drexlspivey on Thursday January 26, 2023 @06:23AM (#34530361)
You are going to post illegal stuff (signed by you) then somehow convince someone to raid my server in the hopes of that illegal thing being on my hard disk. Relays don’t have to store any message on disk, they relay stuff real time over websockets. Even if you store messages you can trivially wipe them every 24h?

Then you are going to convince a judge that the thing on my disk belongs to me, because judges are apparently braindead.

If this is the protocol’s glaring vulnerability then every server in the world has this vulnerability.

Re:Nostr: Notes and Other Stuff Transmitted by Relays by Semaphor on Thursday January 26, 2023 @07:13AM (#34530739)
But your server was distributing the illegal thing. It doesn’t matter, that it might not be there anymore, here in Germany there is a decent chance of getting a police visit and possibly getting your hardware impounded.

This is also the case for tor exit nodes, which is why those here are all hosted by organizations with lawyers.

As you distribute the content here, unlike with tor, you would essentially act as a user generated content provider and would have to take steps to prevent the abuse from occurring again… probably after an involved court case.

This is not like "every server" because not every server distributes what anyone publishes to it.

Though a lot of that might not be an issue in jurisdictions with saner laws, I don’t know specifics.

Re:Nostr: Notes and Other Stuff Transmitted by Relays by nine_k on Thursday January 26, 2023 @07:14AM (#34530752)
> signed by you

Signed by a private key which has no connection to my legal identity, and which can be generated in a split second. Signatures give strong pseudonymity.

> Relays don’t have to store any message on disk

This is a good idea, as long as messages are relatively few, which may be hundreds of thousands if they are short. There's no promise of availability, so an infrequent reboot is free to erase them.

> Then you are going to convince a judge that the thing on my disk belongs to me

I'm afraid it can be the other way around, if the material is sensitive enough. You'd have to explain to the judge how it ended up on your computer.

> every server in the world has this vulnerability

No, only a server that allows users to upload UGC without requiring enough background information to let the law enforcement find out their real identities if need be. Should be an adequate explanation to the judge in a civilized country where governmental censorship is not a thing.

Re:Nostr: Notes and Other Stuff Transmitted by Relays by drexlspivey on Thursday January 26, 2023 @08:14AM (#34531230)
> No, only a server that allows users to upload UGC without requiring enough background information to let the law enforcement find out their real identities if need be. Should be an adequate explanation to the judge in a civilized country where governmental censorship is not a thing.

So just to be super clear, you don’t upload images on a relay, nostr messages are just signed json blobs i.e text. If you want to post an image you just post a link to it and the image is hosted elsewhere.

If there is such a thing as an illegal text string that is illegal to have on your hard drive then I can do the same attack on any webserver by having the illegal string in my user agent and it’s going to be saved to the hard disk in the logfile.

Then according to your plan I can raid the server with the illegal string and put the server owner to jail. Does that make sense to you?

Re:Nostr: Notes and Other Stuff Transmitted by Relays by wkat4242 on Thursday January 26, 2023 @11:51AM (#34534311)
What about base64 encoded images? Nntp doesn't support binaries but it's sure distributing a hell of a lot of them these days.
Re:Nostr: Notes and Other Stuff Transmitted by Relays by BudweiserZero on Thursday January 26, 2023 @07:27AM (#34530859)
> If the problem that Nostr solves is, say, posting NYT headlines, pub crawl reports, or cute cat pictures, it's fine, but most centralized tools are also fine.

This sentiment is what's missing in the decentralized space. There are so many centralized spaces that you can use to communicate, and that censorship-resistant is a non-feature.

Re:Nostr: Notes and Other Stuff Transmitted by Relays by larrysalibra on Thursday January 26, 2023 @06:09AM (#34530255)
All this stuff might true, but from both a user and a developer perspective it actually works today and has a vibrant community of motivated, talented and interesting people building on it AND using it.

There are ways to address all of these problems if and when they occur.

I think one of Nostr's biggest contributions is its culture of pragmatism and speed. Do something simple, quickly that works instead of sitting around worrying about every edge case (which is a what a lot of "decentralized" projects do). If you have no apps and no one using them, none of the problems you mention exist. If you come up with something ridiculously complicated (think some recent w3c proposals), you've built a massive barrier to contributors and to developer and user adoption.

Re:Nostr: Notes and Other Stuff Transmitted by Relays by nine_k on Thursday January 26, 2023 @06:57AM (#34530615)
I see now. The censorship against which Nostr offers some resistance is things like being banned from Twitter, or being expelled by disgruntled moderators from a subreddit, or maybe even fired by your domain name registrar..

It's not the kind of censorship resistance which opposition in country with an oppressive regime might need, and in general not a solution against censorship by state-level actors.

Well, fair. Also, fun and lightweight, no browser needed.

Re:Nostr: Notes and Other Stuff Transmitted by Relays by rcoder on Thursday January 26, 2023 @11:31AM (#34533904)
One other critical bit of "censorship" and "oppression" that Nostr very much wants to route around is any restrictions on use of Lightning et. al. cryptocurrency payments directly in Nostr clients, without any intermediaries or custodians in the way. (This fear of "economic censorship" seems to be a common boogieman in cryptocurrency circles, from what I can tell. Certainly a bigger fear than state-level actors coming after you for your Nostr notes or toots or whatever.)

Whether you think that's a good or necessary thing probably tracks very closely with your beliefs about whether money and its expenditure is protected speech. Obviously that's something about which the highest courts and legislative bodies in the USA already have complex and sometimes-contradictory views, so I certainly won't claim there's a single correct answer...even if my personal beliefs fall very much on the "money is a modern social fiction in no way connected to fundamental human rights" side of the spectrum.

Re:Nostr: Notes and Other Stuff Transmitted by Relays by Cameri on Thursday January 26, 2023 @01:06PM (#34535857)
Software protocols aren't going to prevent the government from using physical force to will you into obedience.

Not sure what you expect?

Re:Nostr: Notes and Other Stuff Transmitted by Relays by rollcat on Thursday January 26, 2023 @07:05AM (#34530682)
This sounds a lot like building a car by attaching an engine and a steering wheel to a frame, and worrying about addressing problems (such as seats, gear switching, seatbelts, airbags, doors, windshield, ...) only as they occur.

Which I guess is kinda fine if you're building slow go-karts to do friendly races with your neighbor in their backyard - but instead you're already letting those out on the open roads on day 1.

Re:Nostr: Notes and Other Stuff Transmitted by Relays by nunobrito on Thursday January 26, 2023 @07:09AM (#34530704)
You've just described 100 years of car evolution.

Similar to software architecture, you do start by defining the preferred characteristics and then working your way to the other parts.

Re:Nostr: Notes and Other Stuff Transmitted by Relays by rollcat on Thursday January 26, 2023 @09:43AM (#34532154)
> You've just described 100 years of car evolution.

On purpose. You can't build a car today that ignores these learnings, and safely deploy it on the open roads; just like you can't build what's effectively an open relay like it's 1997 and expect to stay safe against the threats outlined by nine_k.

Re:Nostr: Notes and Other Stuff Transmitted by Relays by Cameri on Thursday January 26, 2023 @01:19PM (#34536102)
You can build software on protocols like this.

Your analogy fails at the mere fact that no physical harm can result from Nostr not solving this one thing you think is 100% necessary.

The fact that Nostr is up and running and working is the undeniable fact that you don't NEED to solve every single problem known to humankind before you write some lines of code.

Re:Nostr: Notes and Other Stuff Transmitted by Relays by rollcat on Thursday January 26, 2023 @02:18PM (#34537211)
> You can build software on protocols like this.

I've never denied this. You can also DIY a go-kart and drive it on an open road.

> Your analogy fails at the mere fact that no physical harm can result from Nostr not solving this one thing you think is 100% necessary.

Notice how you've specifically used the term "physical harm" to differentiate from other forms of harm. Harm is harm.

> The fact that Nostr is up and running and working is the undeniable fact that you don't NEED to solve every single problem known to humankind before you write some lines of code.

...Where did I try to deny this? My analogy is very specific in that you can do all of these things, and with enough luck, nothing bad will happen.

The problem with luck is that it doesn't scale well, especially on the open road. I mean, Internet.

Re:Nostr: Notes and Other Stuff Transmitted by Relays by madeofpalk on Thursday January 26, 2023 @06:42AM (#34530508)
For what it's worth, the US has "section 230" that absolves services providers of liability for content their users post.
Re:Nostr: Notes and Other Stuff Transmitted by Relays by Karunamon on Thursday January 26, 2023 @07:43AM (#34530976)
Not much. While this may keep you out of jail, it will not prevent you from being raided at four in the morning and having your pets shot and all your computers seized for months.
Re:Nostr: Notes and Other Stuff Transmitted by Relays by aliqot on Thursday January 26, 2023 @08:37AM (#34531441)
Won't prevent your pipes and hosts from extorting or struggling you either.
Re:Nostr: Notes and Other Stuff Transmitted by Relays by Georgelemental on Thursday January 26, 2023 @09:00AM (#34531662)
Section 230 doesn't apply to CSAM, since SESTA/FOSTA
Re:Nostr: Notes and Other Stuff Transmitted by Relays by kenmorechalfant on Thursday January 26, 2023 @05:41PM (#34539931)
If your software encrypts user data with a user owned key that you never touch, i.e. everything is encrypted at rest, can you still be liable if it's later proven to be CSAM?
Re:Nostr: Notes and Other Stuff Transmitted by Relays by panarky on Thursday January 26, 2023 @06:00PM (#34540107)
If you have knowledge of CSAM or reasonably expect CSAM exists in the traffic you're forwarding, you have liability.
Re:Nostr: Notes and Other Stuff Transmitted by Relays by nunobrito on Thursday January 26, 2023 @07:07AM (#34530689)
> Even though the message is signed, you can't reasonably prove that you do not possess the private key used to sign it, or have not possessed.

That is an assumption that you made and strikes as FUD. An equally valid assumption is that nobody can reasonably prove that the person has the private key used for signing the files. Assuming the stated nature of relays and their intended purpose, there is more ground to assume that a relay is a service provider without reasonable way to inspect the contents of encrypted data.

Re:Nostr: Notes and Other Stuff Transmitted by Relays by nine_k on Thursday January 26, 2023 @07:24AM (#34530833)
> without reasonable way to inspect the contents of encrypted data.

This would be entirely correct were the data encrypted %)

The data are signed, but otherwise plaintext.

For reference, kids in the US got arrested for possessing nude pictures of themselves on their phones [1], because mere possession of a nude picture of an underage person is restricted by law. Talk about who are you going to convince that some shady stuff just happened to pass your server.

[1]: https://www.cnet.com/culture/teen-arrested-for-having-nude-p...

Re:Nostr: Notes and Other Stuff Transmitted by Relays by nunobrito on Thursday January 26, 2023 @11:07AM (#34533532)
OK. If data is unencrypted inside the machine then indeed that is a problem.
Re:Nostr: Notes and Other Stuff Transmitted by Relays by BudweiserZero on Thursday January 26, 2023 @07:21AM (#34530814)
This all depends who colonizes the space first. I have a rule, don't hang out in bad neighborhoods, this extends to social media, decentralized or not.

For example; certain nodes on Secure Scuttlebutt have been known to push porn, and this gets replicated onto your store. That node was traced, and blocked by many on the sphere.

The majority on ssb were against that.

Now, a social network populated with crypto bros? Nah... pass.

Re:Nostr: Notes and Other Stuff Transmitted by Relays by sph on Thursday January 26, 2023 @07:24AM (#34530837)
> Imagine you're running a relay on your machine, and somebody posts some CSAM, or stolen CC data, or hate speech, etc through your relay.

Relays can be authenticated. If you don't want your relay to accept data from anyone, don't leave it open. Same with any other Internet protocol.

Also, per the spec or convention, relays SHALL NOT talk to each other. Each relay is a separate island, but the protocol permits and recommends clients to publish on multiple relays. This is the basis of their censorship-resistance.

See also my other comment: https://news.ycombinator.com/item?id=34530876

Re:Nostr: Notes and Other Stuff Transmitted by Relays by eduction on Thursday January 26, 2023 @09:45AM (#34532191)
The whole reason I was excited about Nostr was the censorship resistance but if the relays choose who gets to authenticate you’re back to square one (well, whichever square Mastodon is).

Also, it seems naive to think that a ban on blocklists in the spec will keep real free humans from doing exactly as they’ve done on email, Mastodon etc and share block lists.

Re:Nostr: Notes and Other Stuff Transmitted by Relays by Ajedi32 on Thursday January 26, 2023 @10:09AM (#34532543)
I've only read a little about Nostr, but I think the difference is that with Nostr you own your own identity, so if a relay bans you you can just switch to a different relay and continue as you were with no significant disruption.

You're probably right about shared blacklists eventually becoming a thing though.

Re:Nostr: Notes and Other Stuff Transmitted by Relays by Cameri on Thursday January 26, 2023 @01:04PM (#34535818)
The AUTH Nostr Implementation Possibility is not mandatory. You can choose to use it or not, it's not all or nothing. Every single NIP except for NIP-01 is optional.
Re:Nostr: Notes and Other Stuff Transmitted by Relays by aliqot on Thursday January 26, 2023 @04:02PM (#34538789)
I wonder what the XMPP camp is up to these days
Re:Nostr: Notes and Other Stuff Transmitted by Relays by MattJ100 on Thursday January 26, 2023 @05:30PM (#34539809)
I sense there was probably some irony in your post. Nevertheless, I'll bite :)

The "XMPP camp" is doing well and very busy: https://xmpp.org/newsletter/

We're lacking a nostr bridge if anyone wants to work on that...

Re:Nostr: Notes and Other Stuff Transmitted by Relays by vorpalhex on Thursday January 26, 2023 @10:15AM (#34532640)
> Also, per the spec or convention, relays SHALL NOT talk to each other.

That has no bearing on an attacker.

Re:Nostr: Notes and Other Stuff Transmitted by Relays by notpushkin on Thursday January 26, 2023 @11:47AM (#34534230)
> relays SHALL NOT talk to each other

I don't get it. What's the point then?

Re:Nostr: Notes and Other Stuff Transmitted by Relays by last_responder on Thursday January 26, 2023 @12:25PM (#34534971)
At that point it is an endpoint not a relay.
Re:Nostr: Notes and Other Stuff Transmitted by Relays by CodexArcana on Saturday January 28, 2023 @08:24AM (#34557378)
Yeah relay is a bad name for it.
Re:Nostr: Notes and Other Stuff Transmitted by Relays by Cameri on Thursday January 26, 2023 @01:03PM (#34535794)
The spec doesn't say relays SHALL NOT talk to each other. YOU made that up. It says they don't talk to each other but it is not prevented.

You can mirror one relay to another easily:

echo '["REQ", "mirror" ,{}]' | websocat wss://source | jq -del '.[1]' | websocat wss://dest

Re:Nostr: Notes and Other Stuff Transmitted by Relays by sph on Thursday January 26, 2023 @01:49PM (#34536686)
> It says they don't talk to each other but it is not prevented

No protocol can prevent a piece of software from doing whatever they want.

The "shall not" is not absolute: the spec assumes and expects relays not to talk to each other. Nothing prevents you from creating a relay that connects to another relay, of course, but that would not be in the spirit of what Nostr is trying to achieve.

Re:Nostr: Notes and Other Stuff Transmitted by Relays by twobitshifter on Thursday January 26, 2023 @10:00AM (#34532424)
The protocol notes that the relay has a choice to accept content, for example a large video. If you were running a relay you might want scanners for spam and illegal content running out front before relaying any content.
Re:Nostr: Notes and Other Stuff Transmitted by Relays by jb55 on Thursday January 26, 2023 @11:20AM (#34533749)
It's only recommended that you store json and text on relays. It's a text protocol, not a protocol for storing large binary data. Note sizes are restricted as well on most relays.
Re:Nostr: Notes and Other Stuff Transmitted by Relays by giantrobot on Thursday January 26, 2023 @02:29PM (#34537422)
Usenet is fundamentally text-only. In fact messages need to be 7-bit safe. It's still been a place to distribute binary content for decades.

If I can store multiple messages on a relay I can distribute arbitrary files. So being text-only doesn't really limit anything.

Re:Nostr: Notes and Other Stuff Transmitted by Relays by Turing_Machine on Thursday January 26, 2023 @10:12AM (#34532599)
> The biggest problem I see here is forwarding someone else's unknown and unencrypted content.

Like email.

> Unlike an email client, your relay actually makes that message available to anyone.

On the contrary. Public mailing lists work exactly like this. You send a "subscribe" message (or enter your email address and click on a "subscribe" button, or whatever), and the server starts forwarding all the messages to you.

Re:Nostr: Notes and Other Stuff Transmitted by Relays by vorpalhex on Thursday January 26, 2023 @10:17AM (#34532688)
Those have both been major problems for email. Enough that email has had multiple attempts at becoming encrypted, and mailing lists are very defunct for any sizeable group.
Re:Nostr: Notes and Other Stuff Transmitted by Relays by Turing_Machine on Thursday January 26, 2023 @10:31AM (#34532923)
> Enough that email has had multiple attempts at becoming encrypted

But all those attempts have failed. One presumes that this is because people like email the way it is... simple to use.

> mailing lists are very defunct for any sizeable group.

Hmm... I still subscribe to at least half a dozen mailing lists, some of which have hundreds or thousands of members.

Re:Nostr: Notes and Other Stuff Transmitted by Relays by vorpalhex on Sunday January 29, 2023 @12:58AM (#34565369)
> One presumes that this is because people like email the way it is

And people choose to live in tyranny? No, it's because it's a coordination problem involving literally billions of people, thousands of pieces of software and would break compatibility.

> I still subscribe to at least half a dozen mailing lists

And I still use a radio to hew packets to connect to a BBS.

Re:Nostr: Notes and Other Stuff Transmitted by Relays by leishman on Thursday January 26, 2023 @11:25AM (#34533820)
I think this is a very overblown concern that will not be a big issue in practice… at least not for a number of years.
Re:Nostr: Notes and Other Stuff Transmitted by Relays by wkat4242 on Thursday January 26, 2023 @11:37AM (#34534010)
Famous last words...

I wouldn't want to run the risk of being the first one it does happen to.

I think something like ipfs offers better resistance to such attacks for node owners. I wonder how the two compare because I don't know either in detail.

But sharing unencrypted content from others could be an issue for many reasons. Copyright too.

Especially because this protocol is aimed at content blocked or censored from other platforms, as others have pointed out.

Sure, you can block others from using your relay but then what's the point? Just host your stuff on your self hosted web blog.

Re:Nostr: Notes and Other Stuff Transmitted by Relays by Cameri on Thursday January 26, 2023 @01:26PM (#34536240)
Nostr isn't aimed at content blocked or censored.

Relays also don't host media, it's meant for text-based comms.

Re:Nostr: Notes and Other Stuff Transmitted by Relays by giantrobot on Thursday January 26, 2023 @02:47PM (#34537694)
Well HN is text-based as well yet...

iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEWbueItP/xuAAAACklEQVQI12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg==

Re:Nostr: Notes and Other Stuff Transmitted by Relays by Cameri on Thursday January 26, 2023 @03:38PM (#34538449)
"That doesn't look like anything to me"
Re:Nostr: Notes and Other Stuff Transmitted by Relays by biosboiii on Thursday January 26, 2023 @11:52AM (#34534317)
Mastodon already has "censorship" options, and still people use it big time to distribute CP. https://www.secjuice.com/mastodon-child-porn-pedophiles/

If I were to run such a node in Germany, and someone would use it to distribute CP with it, I face from 1 to 10 years in prison.

Yeah, no thanks.

Re:Nostr: Notes and Other Stuff Transmitted by Relays by jchw on Thursday January 26, 2023 @12:57PM (#34535668)
This article equates "Child Porn" and "CSAM" with lolicon and shotacon, colloquially used to refer to drawings and other creative expressions, which is very clearly what they're avoiding mentioning. Of course, most people aware of fediverse politics already know about Pawoo and there is absolutely NO reason to speak about it in hushed tones, other than cowardice. Also, using the term "CSAM" to describe lolicon and shotacon is just intentional factual inaccuracy: the point of the term CSAM to specifically exclude content that doesn't directly involve the harm of a minor; that's what "abuse material" is meant to mean. That does not change the legal reality of the content, but it's bad to start out with the facts wrong because it paints the entire remainder of the discussion. Yes, it's complicated and uncomfortable, but let's not mince words.

When you run a Mastodon instance though, you don't actually need to distribute this content. In fact, you probably would at least ban proxying media for communities like Pawoo, and honestly, probably, any NSFW-oriented instance if you want to be safe.

I hate to break anyone's innocence, but this shit is literally everywhere on Twitter, and a lot of the rest of the Internet, too. Is it legal? Depends on your jurisdiction. Is it moral? ¯\_(ツ)_/¯. Only one thing's for sure: it's on your Internet.

Also, just an observation: either the author of this article is unaware, or feels as though it is not important to mention the other fun stuff going on with Mastodon, like the large presence of zoophiles. The internet is certainly a place to be.