News for hackers. Stuff that matters.
Re:Standalone Signal Desktop by jsnar on Tuesday October 31, 2017 @09:26PM (#15598246)
Using Electron is a bad idea: it's not secure. Electron has many security vulnerabilities. The latest version is still based on old Chromium (58 & 59) so it inherits many of the security vulnerabilities published in Chromium 60, 61 and 62
Re:Standalone Signal Desktop by kijiki on Tuesday October 31, 2017 @09:41PM (#15598296)
Sure, but it doesn't pull HTML or Javascript from servers, it is all packaged along with the native Electron runtime. Exploiting a Javascript vulnerability is an absurd waste of time when you could just add a backdoor or whatever to the native code.
Re:Standalone Signal Desktop by jsnar on Tuesday October 31, 2017 @09:48PM (#15598316)
It's not as simple as you thought. Consider a bug in the image decoding library Chromium used that can be exploited by simply sending a crafted image in the chat.
Re:Standalone Signal Desktop by halayli on Tuesday October 31, 2017 @10:36PM (#15598472)
same logic can be applied to a native app that is using libpng and an attacker exploits the lib in one way or another.
Re:Standalone Signal Desktop by munin on Tuesday October 31, 2017 @10:50PM (#15598505)
things you can do in the native app to mitigate this risk:

* run rendering in a sandbox

* closely monitor your deps for vulnerabilities and ship patches as quickly as possible

* choose deps with a better security track record, when possible

* independently scan, test, and validate the deps you bring in

things you can do in an electron app:

* pray

Re:Standalone Signal Desktop by Jahava on Tuesday October 31, 2017 @11:47PM (#15598679)
In all fairness...

> run rendering in a sandbox

Most major browsers, including Edge and Chrome, do this and are really good at it.

> closely monitor your deps for vulnerabilities and ship patches as quickly as possible

Most major browsers do this too, and they have well-established update pipelines that can patch vulnerabilities in short order.

> choose deps with a better security track record, when possible

Most major browsers do this (e.g., "boringssl").

> independently scan, test, and validate the deps you bring in

Most major browsers do this as part of QA and vulnerability scanning.

> things you can do in an electron app: > * pray

* leverage all of the work that thousands at Microsoft, Google, Mozilla, etc., put into deploying what I suspect are the most heavily-attacked, heavily-scrutinized, and heavily-audited software platforms in existence.

Not that I'm specifically advocating web apps over native apps, but I don't think your list does a good job outlining their advantages.

Re:Standalone Signal Desktop by flukus on Wednesday November 01, 2017 @01:00AM (#15598881)
That's likely to get fixed quickly and I can just apt-get upgrade. With electron we have to wait for google to fix it in chrome, wait for electron to update the chrome version or backport the patch, wait for the app developer to update their version of electron and then update it on your machine.
Re:Standalone Signal Desktop by jsnar on Tuesday October 31, 2017 @09:35PM (#15598278)
Re:Standalone Signal Desktop by halayli on Tuesday October 31, 2017 @10:38PM (#15598477)
browser security vulnerabilities are expensive and heavily scrutinized. Just because they are on top of it for reporting vulnerabilities and fixes so that you become aware of it doesn’t make the alternatives more secure. You just wouldn’t be aware of them which is more dangerous.
Re:Standalone Signal Desktop by orange8 on Tuesday October 31, 2017 @09:43PM (#15598301)
what do you suggest they should they use instead
Re:Standalone Signal Desktop by polpo on Tuesday October 31, 2017 @10:17PM (#15598420)
They could use NW.js instead, which stays up-to-date with the latest Chromium version, including security updates. They usually release on the same day as Chromium. https://nwjs.io/blog/
Re:Standalone Signal Desktop by baby on Wednesday November 01, 2017 @10:26AM (#15601383)
This is interesting, I feel like NW.js has lost the war against Electron, but I haven't closely been following the topic. Can anyone summarize the latest common opinion on the subject?
Re:Standalone Signal Desktop by polpo on Thursday November 02, 2017 @03:05PM (#15613296)
There was a period in late 2014-early 2015 where NW.js stagnated, but since then it's been very actively developed. I found this 2016 comparison pretty even-handed and comprehensive; it'd be nice to see an updated version for 2017. http://tangiblejs.com/posts/nw-js-and-electron-compared-2016...
Re:Standalone Signal Desktop by orange8 on Wednesday November 01, 2017 @10:11PM (#15607272)
I suspect most electron devs haven't even heard of NW.js even though it came first, so there wouldn't even be any comparison to begin with.
Re:Standalone Signal Desktop by orange8 on Tuesday October 31, 2017 @11:23PM (#15598599)
Good answer. Some are just good at putting down solutions, and don't even have the courage to suggest alternatives.
Re:Standalone Signal Desktop by qznc on Wednesday November 01, 2017 @02:57AM (#15599286)
Wire is a competitive messenger. One employee there writes a native app with Rust and Gtk. Seems to be something like a voluntary 20% protect though.

https://github.com/wireapp/coax

Re:Standalone Signal Desktop by orange8 on Wednesday November 01, 2017 @10:20PM (#15607313)
So you are suggesting they drop a battle-tested, production ready solution currently powering hundreds of apps (https://electron.atom.io/apps/) for one in beta that the developers warn in large capital letters "use at your own risk, still under development"?!
Re:Standalone Signal Desktop by superkuh on Wednesday November 01, 2017 @12:31AM (#15598797)
They could try not writing it in javascript and actually make a native application instead hiding behind semantics.
Re:Standalone Signal Desktop by orange8 on Wednesday November 01, 2017 @10:12PM (#15607277)
Still not anwering the question though, are you?
Re:Standalone Signal Desktop by StreamBright on Wednesday November 01, 2017 @06:33AM (#15600011)
Write native code without Electron, Chrome, other random attack vectors?
Re:Standalone Signal Desktop by orange8 on Wednesday November 01, 2017 @10:13PM (#15607281)
In what, specifically? Name just one platform without these "random attack vectors".
Re:Standalone Signal Desktop by jsnar on Wednesday November 01, 2017 @12:24AM (#15598773)