News for hackers. Stuff that matters.
Re:Age: A simple, modern and secure file encryption tool by bscphil on Friday December 27, 2019 @11:24PM (#21897075)
This is great, it fills a gap that I've long defended as PGP's remaining legitimate use case. Of course, now we just need to work on the adoption problem. Despite the fact that PGP adoption is a well-known joke in itself, all the tools designed to replace it (with the exception of the IM space) have somehow managed to achieve even lower use rates.

It's been almost five years since Magic Wormhole first released, and about half a year since that popular Latacora post recommended it for transferring files, and said "Someone stick a Windows installer on a Go or Rust implementation of Magic Wormhole right away". Guess what you're still not going to find a reliable Windows build (let alone a GUI) for? Yep that's right. Despite the fact that most of these projects come from a felt need for better alternatives to PGP for the average user, very few of them have actually come up with a product that's more accessible to the average person.

Re:Age: A simple, modern and secure file encryption tool by psanford on Saturday December 28, 2019 @05:27AM (#21898202)
> about half a year since that popular Latacora post recommended it for transferring files, and said "Someone stick a Windows installer on a Go or Rust implementation of Magic Wormhole right away".

I read this and then went and ported wormhole to Go: https://github.com/psanford/wormhole-william. There's no Windows installer but it's pure Go so building on Windows or cross compiling for Windows is easy. Besides Windows I also want to support iOS and Android (I have a very rough working react native frontend right now).

Re:Age: A simple, modern and secure file encryption tool by tialaramex on Saturday December 28, 2019 @09:41AM (#21899110)
FWIW I'd be much more comfortable recommending Magic Wormhole if the default was tweaked to give bad guys only say 1-in-2^32 or worse chance of success.

It's roughly the same reasoning as for your Windows GUI argument. This tool is now very suitable for people who understand what it does, but it is not yet well adjusted for users who lack that understanding.

Today - when most Magic Wormhole users can probably explain what a PAKE is - if you attack a Magic Wormhole transfer and cause errors (by guessing wrong) those users will react by increasing the length of the Wormhole code. But if we popularize it without fixing this default, do you think my sister knows to do that?

Re:Age: A simple, modern and secure file encryption tool by dathinab on Saturday December 28, 2019 @10:33AM (#21899372)
But in a certain way this thinks are aspects of the magic wormhole CLI not the underlying tech.

It should be trivial to increase security on failed attempts or use a higher default security for an GUI frontend.

The CLI is clearly meant for somewhat technical versatile users (I mean it's a CLI) so I think it's normal to do some aprons when targeting other user groups. E.g. adding explanations over some aspects atonal to the thinks I already mentioned is quite doable for a GUI.

Re:Age: A simple, modern and secure file encryption tool by tptacek on Friday December 27, 2019 @11:27PM (#21897084)
There is now a solid Go implementation of `wormhole` (it's my daily wormhole driver). It works on Windows. It just needs a UI.

Since PGP has almost no serious real-world adoption (search your feelings; you know it to be true), it's wide open for replacement. People should use `wormhole` for file transfer in preference to `age`-encrypted files, if the only reason they're encrypting is to get the file safely across the wires.

Re:Age: A simple, modern and secure file encryption tool by bscphil on Friday December 27, 2019 @11:48PM (#21897156)
> it's wide open for replacement.

Totally agree there, but I'll remain skeptical until I actually see that adoption start to happen. Certainly it's not going to until there's a nice GUI. (It's kind of sad, actually. Wormhole has such a nice TUI that would be utterly trivial to wrap in a simple QT interface or something.)

Re:Age: A simple, modern and secure file encryption tool by tptacek on Friday December 27, 2019 @11:52PM (#21897173)
Right? RIGHT? I keep saying: everyone I've ever taught `wormhole` to does the same thing I did when 'lvh showed it to me: immediately and gleefully wormholing everything. It's such a great tool; the good people of the world deserve it.

It kills me that so many UI-type people build new encrypted email systems and nobody works on putting solid UI on cool-kid crypto like `wormhole`. It's such a high-impact project and it's missing exactly the skillset these people are strongest with. I mean that sincerely: as I think is obvious to everyone, crypto people can't do UI to save their lives.

Re:Age: A simple, modern and secure file encryption tool by nabla9 on Saturday December 28, 2019 @08:45AM (#21898844)
Do programs exist that generate the most basic portable GUI (in Qt for example) from command line application?

Basically what you need is list of parameters, their types, allowed ranges, preferred way to modify and input parameter values (file selection, input box, slider, ...). Then button to run the program.

EDIT apparently there is https://github.com/chriskiehl/Gooey for Python.

EDIT2 Hmm. maybe fbs is good enough https://build-system.fman.io/

Re:Age: A simple, modern and secure file encryption tool by oefrha on Saturday December 28, 2019 @12:20AM (#21897279)
One can literally use a drop-in replacement for argparse like Gooey[1] to get a reasonably good GUI for the Python implementation.

IMO the challenge is mobile clients for iOS and Android.

[1] https://github.com/chriskiehl/Gooey

Re:Age: A simple, modern and secure file encryption tool by nabla9 on Saturday December 28, 2019 @08:50AM (#21898877)
What operating systems Gooey supports? Weird that they don't mention that anywhere. Is it only win and osx?
Re:Age: A simple, modern and secure file encryption tool by oefrha on Saturday December 28, 2019 @09:49AM (#21899157)
It’s based on wxWidgets so I assume it’s supported (at least roughly) wherever wxWidgets is supported. However, I’ve only used it to package a few small utilities for friends, and neither myself nor any of them run Linux Desktop, so I can’t be sure.
Re:Age: A simple, modern and secure file encryption tool by rohan1024 on Saturday December 28, 2019 @08:14AM (#21898705)
Flutter desktop can help here.
Re:Age: A simple, modern and secure file encryption tool by kjs3 on Saturday December 28, 2019 @03:43PM (#21901589)
Since PGP has almost no serious real-world adoption (search your feelings; you know it to be true)

Checks...it's not true. Maybe the original email use case never caught on, but that's not the only one. For example, PGP is a standard way to transfer Visa, MasterCard, or Diner's Club credit card transaction files. We have thousands if not tens of thousands of entities transferring PGP encrypted files every day, and we get new requests for PGP enablement on a regular basis. This is a deeply embedded business process (even embedded in many corporate financial systems like Oracle Financials), and it's not going away any time soon.

Other use cases...yeah, PGP should go away.

Re:Age: A simple, modern and secure file encryption tool by tptacek on Saturday December 28, 2019 @05:13PM (#21902174)
Not only should PGP go away for that use case, but it easily could; very few people would need to be convinced to upgrade it to a better format. What's held that back from happening is nobody agreeing on what that better format is; it's the same reason we're only now getting WireGuard after almost 2 decades of IPSEC VPNs.
Re:Age: A simple, modern and secure file encryption tool by kjs3 on Saturday December 28, 2019 @09:36PM (#21903524)
Not only should PGP go away for that use case, but it easily could

Says someone who has never had to do it.

very few people would need to be convinced to upgrade it to a better format

Only the tens of thousands of current users who I personally have who would see no reason to change something that currently works and is secure. I have, in fact, suggested a number of better solutions over the years.

Hell...it took us 10 years to convince all the third parties that plain FTP was probably a bad idea. And there's still a tiny handful of very, very large companies that still say 'meh' and force us to keep an FTP server around.

Must be nice to not have to deal with real customers.

Re:Age: A simple, modern and secure file encryption tool by tptacek on Sunday December 29, 2019 @03:49PM (#21908355)
Is there someone you know with a similar name to mine that you think you're talking to? The kinds of issues you're talking about are my actual full-time job.
Re:Age: A simple, modern and secure file encryption tool by kjs3 on Sunday December 29, 2019 @09:43PM (#21910362)
Oh, my...don't you know who I am?. Classy. I guess my aversion to being Internet Famous makes me easy to condescend to.

My "actual full-time job" is building and operating security teams for Fortune 1000 sized companies, not startups. These kinds of issues are also what I do every day. I just do it with far more customers, internal stake holders, budget, technical debt, politics, employees, governance, geography, etc., etc. And I actually do those hard things; I don't just say "you should do this...it should be easy".

Consider that just maybe your perspective doesn't represent the totality of the security landscape. Things that are easy when you're consulting to the latest Foo of Bar startup or whatever is spooling out cat videos this week are very, very hard when you're dealing with entrenched, interconnected business processes processing billions of dollars of other peoples money. Just a thought.

Re:Age: A simple, modern and secure file encryption tool by psanford on Saturday December 28, 2019 @05:14AM (#21898161)
I assume the go wormhole implementation you are talking about is https://github.com/psanford/wormhole-william . I've been working on building a mobile interface for it. After that I may look at doing a Windows UI.
Re:Age: A simple, modern and secure file encryption tool by smkdtr on Saturday December 28, 2019 @02:58AM (#21897749)
Does the security of using magic wormholes depend on using a trusted relay? Should I be running my own relay?
Re:Age: A simple, modern and secure file encryption tool by schoen on Saturday December 28, 2019 @03:52AM (#21897919)
The security doesn't, but availability might: the relay is very easy to DoS (not even DDoS!). This is the one thing that I think Thomas has jumped the gun on with his recommendation: the current protocol and infrastructure won't survive a DoS attack, which is tragically likely if magic-wormhole's popularity increases. Brian Warner is aware of this and has written about it.

https://github.com/warner/magic-wormhole/blob/master/docs/at...

https://github.com/warner/magic-wormhole/issues/107

https://github.com/warner/magic-wormhole/issues/150

I noticed the same issue as Joey Hess, except a couple of years later; then when I was giving a magic-wormhole demo, some of the audience members accidentally broke some of my live transfers in various ways.

(Otherwise, I feel just as gleeful as Thomas does. It's an awesome tool and fun to use!)

Re:Age: A simple, modern and secure file encryption tool by gyuserbti on Saturday December 28, 2019 @07:47AM (#21898605)
Isn't this basically what syncthing is (same functionality as wormhole, with gui)?

I also thought I've used a gui dat protocol client to transfer files but maybe it was only in the terminal.

Re:Age: A simple, modern and secure file encryption tool by lentil on Saturday December 28, 2019 @06:03AM (#21898314)
Which is the Go implementation that you recommend? There seems to be a few.
Re:Age: A simple, modern and secure file encryption tool by CiPHPerCoder on Saturday December 28, 2019 @12:08AM (#21897230)
> It just needs a UI.

Would you consider an Electron app adequate? ;)

Re:Age: A simple, modern and secure file encryption tool by oefrha on Saturday December 28, 2019 @12:17AM (#21897265)
200MB binary consuming 300MB of memory and 1% CPU at idle, hell no...
Re:Age: A simple, modern and secure file encryption tool by CiPHPerCoder on Saturday December 28, 2019 @12:18AM (#21897270)
I asked the guy who wrote "JavaScript Cryptography Considered Harmful" if a JS app would be adequate followed by a winky face.

The /s was implied.

Re:Age: A simple, modern and secure file encryption tool by Dylan16807 on Saturday December 28, 2019 @01:46AM (#21897549)
The document that says right at the start that it's only talking about browser Javascript crypto, and not standalone?

Not that the crypto itself would be handled by Javascript in an Electron app in the first place...

Re:Age: A simple, modern and secure file encryption tool by oefrha on Saturday December 28, 2019 @12:21AM (#21897281)
Yeah I did see the sarcasm.
Re:Age: A simple, modern and secure file encryption tool by tptacek on Saturday December 28, 2019 @12:28AM (#21897317)
Seriously I'm just fine with Electron applications. It's 2019, and that only for a couple more days. We have RAM, this is a good thing to burn it for.
Re:Age: A simple, modern and secure file encryption tool by eeZah7Ux on Saturday December 28, 2019 @10:24AM (#21899325)
2 billion individuals on this planet are unable to afford a shiny new computer.

"I don't mind about resource usage" is a proxy for "I don't care about those people"

Also, many devices do not allow RAM upgrades.

Re:Age: A simple, modern and secure file encryption tool by Wowfunhappy on Saturday December 28, 2019 @12:41AM (#21897357)
If I wanted to "burn" my RAM I would have just bought less.
Re:Age: A simple, modern and secure file encryption tool by Dylan16807 on Saturday December 28, 2019 @01:41AM (#21897540)
That's missing the point. $2 of RAM in exchange for security is a good deal. Go ahead and use the command line version yourself, but if you're not going to contribute to a native GUI version then don't be a party pooper about Electron.

Electron's only a problem when there's lock-in of some kind.

Re:Age: A simple, modern and secure file encryption tool by StavrosK on Saturday December 28, 2019 @05:30AM (#21898212)
I think that people who say this think "yeah, running one Electron app is no problem". The problem comes when everything is Electron and now, like the ocean, you have no memory.
Re:Age: A simple, modern and secure file encryption tool by Dylan16807 on Saturday December 28, 2019 @06:21AM (#21898365)
You don't need everything open at once.

And you can fit a whole lot of Electron apps into an extra 8 or 16GB.

Re:Age: A simple, modern and secure file encryption tool by bscphil on Saturday December 28, 2019 @10:32AM (#21899361)
The newest baseline Dell XPS 13 (not even Inspiron) comes with 4 GB of memory by default. The very idea of an extra 8 GB is hilarious because manufacturers haven't kept up with the times (my laptop purchased 9 years ago had 8 GB), and by extension the median consumer's laptop hasn't either. Nobody has an "extra" 8 GB outside of people with the money to just unthinkingly buy the top of the line model or developers who know what they're doing.
Re:Age: A simple, modern and secure file encryption tool by Dylan16807 on Saturday December 28, 2019 @01:01PM (#21900471)
We're talking about buying extra memory, not defaults. And while an XPS 13 is trying to be a macbook, on an XPS 15 you just pop open the back cover and shove more memory into it.
Re:Age: A simple, modern and secure file encryption tool by dependenttypes on Saturday December 28, 2019 @02:10PM (#21900966)
Sadly you do need a lot of things (such as chat programs, an email client, a browser, and potentially an editor) open at once.
Re:Age: A simple, modern and secure file encryption tool by tjoff on Saturday December 28, 2019 @04:57AM (#21898115)
Nope. Many laptops can not have more than 16GB. And you have to pay hundreds of dollars even for that privilege in many situations.

An electron app will hurt adoption, give the project a bad name and reduce the likelihood of a proper UI to never materialize. Please don't.

Re:Age: A simple, modern and secure file encryption tool by oefrha on Saturday December 28, 2019 @05:29AM (#21898206)
Never mind 16GB. There are quite a few 8GB or even 4GB laptops (4GB ones are usually >= 4yr old, but it's not uncommon to keep crappy laptops for that long outside the tech-savvy circle) among my friends and family.
Re:Age: A simple, modern and secure file encryption tool by Dylan16807 on Saturday December 28, 2019 @06:28AM (#21898390)
I'm just replying directly to the "I would have bought less" comment, which implies having control over your memory amount. It's not hundreds of dollars when that happens. You can get all sizes of laptop memory for under $4 a gigabyte. And if you've maxed out at 16GB, you're not really at a spot where .3GB is a big burden.

> An electron app will hurt adoption, give the project a bad name and reduce the likelihood of a proper UI to never materialize. Please don't.

As opposed to having nobody use it in the first place.

Re:Age: A simple, modern and secure file encryption tool by Wowfunhappy on Saturday December 28, 2019 @07:43AM (#21898585)
> $2 of RAM in exchange for security is a good deal.

1. I don’t know what RAM you’re buying, but mine costs way more than that. It’s especially bad if you’re using AMD.

2. How does using electron apps make me more secure than using native apps?

Re:Age: A simple, modern and secure file encryption tool by deepersprout on Saturday December 28, 2019 @09:21AM (#21899017)
> 2. How does using electron apps make me more secure than using native apps?

The electron app exists. The native app does not.

You think that ranting against electron is somehow making a native app appear, but the reality is that there are way more js/electron devs than there are qt/gtk/wpf devs, and the choice in most cases is either an electron app or no app.

Re:Age: A simple, modern and secure file encryption tool by Dylan16807 on Saturday December 28, 2019 @09:48AM (#21899149)
> 1. I don’t know what RAM you’re buying, but mine costs way more than that. It’s especially bad if you’re using AMD.

DDR4 at 3200MHz, plenty to make Ryzen happy, is available at $4 per GB on Amazon. That gets you half a gig for $2. But that's not even our max budget. If we use oefrha's estimate of 300MB of RAM eaten by Electron, then we have a budget of $6.80 per GB. That gets you very nice RAM.

Re:Age: A simple, modern and secure file encryption tool by dependenttypes on Saturday December 28, 2019 @02:07PM (#21900949)
If only it was $2 of RAM...

> in exchange for security

Electron is not famous for its security. See for example https://www.trustwave.com/en-us/resources/blogs/spiderlabs-b... and https://securityboulevard.com/2018/06/june-vulnerability-of-...

Re:Age: A simple, modern and secure file encryption tool by AgentME on Saturday December 28, 2019 @06:26PM (#21902560)
Those issues are only relevant to applications that display arbitrary HTML and already have XSS issues. Avoiding XSS is doable; with most web frameworks you're protected from XSS by default and have to specifically turn off the safeties to get XSS.
Re:Age: A simple, modern and secure file encryption tool by dependenttypes on Saturday December 28, 2019 @08:47PM (#21903270)
> Those issues are only relevant to applications that display arbitrary HTML and already have XSS issues

Such as signal! https://ivan.barreraoro.com.ar/signal-desktop-html-tag-injec...

Re:Age: A simple, modern and secure file encryption tool by rohan1024 on Saturday December 28, 2019 @08:19AM (#21898723)
How about flutter for desktop?
Re:Age: A simple, modern and secure file encryption tool by K2L8M11N2 on Saturday December 28, 2019 @03:08AM (#21897776)
https://github.com/schollz/croc is written in Go, doesn’t need an installer and has worked reasonably well for me on Windows.
Re:Age: A simple, modern and secure file encryption tool by qrv3w on Saturday December 28, 2019 @10:39AM (#21899407)
croc does not interop with magic-wormhole but tries to accomplish the same thing.

I made croc because it was really hard to install wormhole on Windows (especially for my non-dev friends). Also I wanted croc to support resuming transfers which has been stalled in wormhole for awhile now. [1]

[1]: https://github.com/warner/magic-wormhole/issues/88

Re:Age: A simple, modern and secure file encryption tool by rakoo on Saturday December 28, 2019 @02:42PM (#21901211)
Why doesn't croc use magic-wormhole's protocol ? Obviously its selling point is in the ease of installation, performance and portability, it's too bad that in doing those the compatibility is lost.
Re:Age: A simple, modern and secure file encryption tool by psanford on Saturday December 28, 2019 @04:50AM (#21898102)
There's also https://github.com/psanford/wormhole-william. It's written in Go, doesn't need an installer and is compatible with the official wormhole client.
Re:Age: A simple, modern and secure file encryption tool by StavrosK on Saturday December 28, 2019 @08:17AM (#21898716)
It does need binaries, though.
Re:Age: A simple, modern and secure file encryption tool by psanford on Saturday December 28, 2019 @08:22AM (#21898739)
Fair. I'll get those added.
Re:Age: A simple, modern and secure file encryption tool by psanford on Sunday December 29, 2019 @03:50PM (#21908369)
I published binaries for the latest release: https://github.com/psanford/wormhole-william/releases/tag/v1...
Re:Age: A simple, modern and secure file encryption tool by globular-toast on Saturday December 28, 2019 @10:14AM (#21899266)
So how do I send an email securely without PGP? I've never been aware of any real alternative. The problem is just that people don't care enough to use it.
Re:Age: A simple, modern and secure file encryption tool by brians on Saturday December 28, 2019 @11:54AM (#21899938)
You don’t. But you don’t with PGP either: bad crypto primitive defaults, no header protection including From or Subject or Reply-to, bad typical UI showing up authenticated text/plain in with authenticated parts.

The case where I still use PGP is receiving reports of bugs from unaffiliated researchers, and I should replace it with a form on an HTTPS web site.

Re:Age: A simple, modern and secure file encryption tool by upofadown on Saturday December 28, 2019 @02:43PM (#21901213)
>no header protection including From or Subject or Reply-to

This is email, not IM we are talking about. There is no good way to do that without a lot of added complexity and hassle once the email ends up in your archive.

>bad crypto primitive defaults

If you mean forward secrecy then see the proceeding comment.

Re:Age: A simple, modern and secure file encryption tool by UncleMeat on Saturday December 28, 2019 @11:38PM (#21903977)
Its not forward secrecy. Its literally that the default ciphers and modes for PGP are a mess and it is so configurable that it is full of footguns.
Re:Age: A simple, modern and secure file encryption tool by kjs3 on Saturday December 28, 2019 @03:29PM (#21901507)
I'm missing the email header issues, unless I'm trusting PGP public keys without any thought. If someone forges an email to me, has a PGP encrypted message in it, it doesn't validly decrypt unless my crypto discipline is already so lax I'm going to have issues with any system.
Re:Age: A simple, modern and secure file encryption tool by stilisstuk on Saturday December 28, 2019 @04:33AM (#21898055)
Why is the problem with pgp? Everybody agrees? But why? It's secure and versatile?
Re:Age: A simple, modern and secure file encryption tool by zaarn on Sunday December 29, 2019 @07:00PM (#21909571)
PGP is secure and versatile. It's also somewhat dated and GPG is quite an awful implementation to interact with. It barely composes with anything that wants to abstract it's insane UI into something an average user understands. It has dated defaults and supports outdated cryptography, while GPG has very dated UI and refuses to properly support bindings so applications can safely interact with it.