Better HN
topnewbestaskshowjobs
Log inSign up

staticassertion

13,486 karma · joined Jun 1, 2016 (10y ago) · 4,896 submissions

@insanitybit
Submissions

comment 8y ago · link · parent

I just don't get the "lambda locks you in" thing. You write a server the same way you always would, but like an extra 50LOC exists to make it work on lambda. So if I wanted to deploy elsewhere what would the big deal be?

Lambda also provides a lot more than containerized services, as the article mentions - I no longer have to patch my system, which is a huge operational/ security burden that many companies struggle with. The time to configure API Gateway/ Lambda feels trivial compared to the work involved in maintaining a patched FAAS solution.

comment 8y ago · link · parent

> The compiler doesn't go "oh you're dereferencing a pointer which may be null, fuck you", it goes "you're dereferencing a pointer so it can't be null, and thus I can remove anything assuming possible nullability".

:) This is what I'm trying to say.

comment 8y ago · link · parent

I write python for most of the day, professionally. I write Rust at home.

I'd say I spend similar time on the same problem with both, maybe a bit more upfront on Rust and a bit more on the tail with Python. This is, of course, disregarding libraries.

comment 8y ago · link · parent

I suppose that's true, yes. My point was more that your compiler is not hitting a line of code and saying "I know this is or is not UB" because it can not do that in the general case - it is definitely incorrect to say it is 'proving' this. Would you consider that an accurate representation?

comment 8y ago · link · parent

It's more complicated than this. C++ compilers can't just "reject" UB code - they don't have enough information at all times to prove that code invokes UB, the languages is not powerful enough to represent this in all cases.

When people say "just fix this in compilers, don't compile when they run into UB" it's a fundamental misunderstanding of the problem. Yes, in some cases the compiler can prove UB, and uses it to write optimiations, but it doesn't prove that all code is not invoking UB.

comment 8y ago · link · parent

> As far as I'm aware, if you stay within the confines of smart pointers (and don't drop down to the raw pointer it owns) you will never encounter undefined behavior.

No. Even with smart pointers it's possible (move out of unique_ptr, deref). But even with no pointers it's possible - index into an array without checking the bound, signed int overflow, etc.

comment 8y ago · link · parent

Wonderful, thank you for the link.

comment 8y ago · link · parent

Is there a whitepaper associated with this? I found the project page and the github page, but I want to see:

a) What's involved in getting the C code to be 'safe' - how much annotation overhead, etc

b) How this interacts with C Preprocessor

c) What the runtime overhead is (usually the killer)

comment 8y ago · link · parent

Now we have wordpress, medium, etc. It's never been easier to have a personal blog over HTTPS.

comment 8y ago · link · parent

> What about hosting HTTP content because you verify GPG signatures upon download?

Because the rest of the content is not verified?????? That's the whole point of HTTPS????????

comment 8y ago · link · parent

The disclaimer in that issue seems pretty clear - yes, this can be bypassed, this is not production ready, this is proof of concept. They explain that they could attain 'first runner' status in Chrome but ultimately the protection belongs built into the browser.

comment 8y ago · link · parent

No no no, you see, by making minorities safer we must then be making the majority feel less safe! Safety is a zero sum game after all.

comment 8y ago · link · parent

> For someone without disk encryption (many people, maybe most?),

I would say they should really use FDE. An attacker with that level of control can do a lot - FDE is designed for this type of attacker.

But yes, that is one attacker that this would protect against.

> With remote compromise of the system it is presumably possible to access the key if the browser is running via debuggers, it is at least a bit more work.

No need for debuggers, though that would certainly be one way to do it. This is not hard at all for an attacker, we see attackers hijacking processes all the time. Forcing the attacker to do 'a little more work' is not really the best place to spend time.

Firefox's threat is, in my opinion, malicious web pages, malicious extensions, or malicious use of/ abuse of their services etc (can't even imagine what abuse they see for their recent file sharing system). These probably take a significant amount of time and resources - these are the attackers they are probably dealing most days, if I had to guess. An attacker with unlimited offline access to an unencrypted hard drive seems pretty out of scope and better solved by the OS (I believe modern Windows and OSX systems actually FDE by default now). An attacker with full execution on the system also seems out of scope.

They could probably fix this master password thing pretty easily, it sounds simple enough and they might just because it's been called out, but my expectation is that this would probably not be a high priority otherwise.

I would also be concerned about users making the assumption that if they use a master password that they are safer from attackers - that it 'raises the bar', when it is unlikely to meaningfully for almost any attacker. A false sense of security is not a good thing.

I'm not a browser developer so I could be totally off and this could all be stuff they're super concerned about.

comment 8y ago · link · parent

Got it - thanks, that's interesting. I'll probably check out how that worked.

comment 8y ago · link · parent

> The argument that "security is pointless unless it can prevent <nation-state> from obtaining the data" is a really tiresome strawman.

This sentence is a strawman as you've invented the opponent's argument (literally no one has mentioned the NSA), just for what it's worth.

Your assertions that:

a) An attacker would have to rely on keylogging

b) Keylogging is a substantial barrier for attacker

are unfounded.

comment 8y ago · link · parent

> All of your remote data is protected by whatever password you use, rather than by a high-entropy key (which means if you choose a poor password you might as well leave your data in plaintext).

Can you elaborate on this? What do you mean by 'protected' and 'high entropy key'? It makes it sound like they aren't key stretching, which seems unlikely. Can you provide a source here?

> Worse, they use dynamically-downloaded JavaScript to handle your password, which means even if you use a high-entropy passphrase Mozilla can at any time send you malicious JavaScript and snarf your passphrase.

I'm unsure why you think Mozilla would do this, or why you would be using Firefox at all if you expect them to push malware to your system.

> This means that any government Mozilla must obey can do the same thing.

I'm not sure this is true, mostly because it lacks any sort of precedent.

comment 8y ago · link · parent

Are you sure that Chrome uses keyring?

comment 8y ago · link · parent

A lot of people have problems modeling threats. For example, in the article:

> Anybody who ever designed a login function on a website will likely see the red flag here

A login function on a website and a master password for your local system have very different threat models. Applying one to the other is a helpful heuristic but ultimately leads you in the wrong direction.

If we ask 'who is the attacker in the situation' the answer for both is very different.

The attacker we worry about in web logins is generally remote. The attacks we are primarily concerned with are:

a) They can dump hashes, often through SQL injection

b) They can attempt to bruteforce passwords remotely

With a local attacker for a local password db we have to assume that the attacker is executing locally on the system. Our threat model generally does not include the ability to exfiltrate the db in an encrypted state - at least, that isn't where you start.

Threat modeling is critical to security - there are a billion things like this that Could Be Better but we use threat modeling to prioritize. At some point someone asked "who are we protecting against?" and the answer was "a very, very specific type of attacker that we do not see often". And so yes, they focused elsewhere.

edit: To be clear, I don't work for Mozilla and actually have no idea if my "at some point" comment is accurate! I'm just saying that's generally how it goes. It could easily be the case that this just slipped through the cracks or some such thing. I do not know Mozilla's internal threat model, I can only guess.

comment 8y ago · link · parent

Comparing VR today, in a world where portable devices dominate, to VR even a decade ago, in a world where cell phones were only just starting to be commonplace, seems really useless.

The world is an extremely different place. This is, in my opinion, still very early days - by which I mean that we are still in an exploratory phase.

We've never been closer to having the technology necessary for it to take off - resolution was always one huge blocker, portability, weight, 'culture' in terms of computing being something everyone has access to, GPU power, battery, etc.

comment 8y ago · link · parent

I really want to build a VR-based GUI for a Very Serious Program I'm writing in my free time. It's not a game.

So whether there are or aren't, there's clearly potential. It doesn't seem right to dismiss it just because it hasn't taken off yet - it's extremely early days.

comment 8y ago · link · parent

There's virtually no confusion...

comment 8y ago · link · parent

> in any event, it's more surface area. their web server being compromised and serving a bad shell script is just more that can go wrong.

If they were serving up a binary you would have the same exact threat that you mentioned.

The threat model barely, barely changes when talking about curl | sh vs downloading and manually executing a binary. Barely.

comment 8y ago · link · parent

This is the coolest fucking website.

comment 8y ago · link · parent

I saw one yesterday. There was a driver but like... come one, decades?

comment 8y ago · link · parent

How? It's over HTTPS, and you're already trusting them to execute code on your system... and it's not even root...

I see no way in which this "leaves your computer at their mercy" more than any other process of purposefully executing code they control on your system.

1
152153154
164