Better HN
topnewbestaskshowjobs
Log inSign up

devit

4,235 karma · joined Sep 10, 2015 (11y ago) · 1,525 submissions

Submissions

comment 11y ago · link · parent

Why do they need that?

All they need is for a policeman to physically seize a device while it is unlocked.

Or even while it is locked with encryption keys stored in memory, and some custom tech to read the RAM from a running device.

I'd wager that people with sufficient physical security to prevent this are very rare, and it works against any sort of device that doesn't have a dead man's switch.

comment 11y ago · link · parent

Ada doesn't support safe GC-less memory allocation, which means it's either unsafe, far worse feature-wise than C or requires a GC which also makes it not strictly better than C.

As a consequence, it seems that if you use Ada's GC, you might as well use Java instead, and if you don't you might as well use C++ instead, which along with its unattractively verbose and not C-like syntax is probably why Ada is not very popular despite having been around for 30 years.

comment 11y ago · link · parent

What about mandatory "preferred form for modification" source code releases and mandatory bug bounties?

That is, if anyone finds a bug impacting safety in the ECU code, the manufacturer has to pay $1 million to them.

If any employee shows they release obfuscated source code, or the binary is not compiled from that source code, they get $100 million reward paid by the company and criminal charges are filed against those responsible.

comment 11y ago · link · parent

Surely they can just enter the target country illegally?

comment 11y ago · link · parent

It's because Rust is the first production language that is safe and strictly better than C (and that is likely to be strictly better than C++ as well once it gains some missing features).

For decades, it has been known that C and C++ are bad languages due to their unsafety, and the use of C/C++ is probably the top cause of bugs and security holes in software; however, switching required giving up performance or features.

Now that finally a solution to this problem has become available after so much time, it's natural that people are enthusiastic about it.

comment 11y ago · link · parent

No, it's pretty much totally unnecessary.

The API works on top of TLS, which already includes cryptographic authentication of all data (usually via SHA-1/2 HMAC or AES-GCM).

The hash would be computed at the client right after reading from disk and right before TLS enryption, and since they seem to terminate TLS at the storage server it would be computed right after TLS decryption and right before storage, so it doesn't seem to provide any gain.

I think they should just remove it, or at least make it optional.

comment 11y ago · link · parent

Finally some more reasonable prices in this space.

Eventually it could make sense for Backblaze to partner with someone like DigitalOcean or Linode and offer low cost bulk storage and low cost virtualization colocated in the same datacenter: these services seem to be a perfect complement for each other.

comment 11y ago · link · parent

One should of course verify its integrity BEFORE installing it and letting it replace spctl.

The real question is whether the spctl tool displays "Apple" in case of a valid (relative to generic CAs) certificate issued to "Apple". Hopefully that's not the case.

Another risk is a specifically designed executable capable of compromising spctl.

comment 11y ago · link · parent

Isn't this kind of thing beneficial if run with more reasonable margins and a subscription model for customers?

Basically, the customer subscribes to the service and gets discounted meals at the cost of not being able to choose the restaurant himself.

Restaurants can use the service whenever they expect to have empty tables, allowing to still profit for them, but with a reduced profit margin.

I'm not sure if it works for restaurants in particular, but it should work for businesses that cannot easily change supply levels, aren't selling something that is completely a commodity and ideally where varying suppliers is enjoyable for customers.

comment 11y ago · link · parent

No, the system needs to be properly designed to be consistent, so the data will always be fine (as long as you don't permanently lose all the servers and backups).

Partitions and datacenter failures only determine whether the system is up or not, and thus its availability properties.

comment 11y ago · link · parent

> "our redundancy all runs through the same conduit and ninjas chopped it in half during a new buildout."

You can just consider that as a failure of the whole datacenter.

The ninjas could just as well chop all the external network connections, which would result in actual datacenter failure (from a client/service PoV), so it shouldn't increase the rate that much.

comment 11y ago · link · parent

Indeed, applying the CAP theorem to real-world databases makes no sense, because the CAP definition of "available" is unnecessarily restrictive.

The real tradeoff is much simpler: if you want a consistent system, it will be slower and more expensive.

Regarding availability in a consistent system, as long as more than half of the servers are working and connected with each other, they will be able to elect a leader and function in a consistent way (using the Raft protocol for instance). Now as long as a client can connect to at least 1/k of the servers in the majority it can just keep trying connecting to random servers until it finds a reachable one in the functioning majority in time proportional to k.

For systems within a single datacenter, redundant networking makes partitions almost impossible, and having enough hosts makes losing more than half almost impossible, so the only failure mode is losing the whole datacenter. For systems distributed among multiple datacenters, availability is almost guaranteed unless a global catastrophe causes a global Internet partition (such as Eurasia and America no longer being connected).

The only issues, again, are that it's more expensive because you need more nodes and redundant networking and that it's slower because nodes have to communicate among each other before commits can be confirmed, especially if that needs to be done across datacenters. In particular, write throughput does not necessarily scale with more nodes in a consistent system, since all writes could modify the same value (after reading it) and that's not parallelizable in the general case.

comment 11y ago · link · parent

How usable is Servo currently? Is the web security model fully implemented?

Has anyone in the team switched to using it for all their browsing? If not, when do you plan to start?

Anyway, thanks for working on this! Servo is one of the most important software projects, since it will hopefully give us a secure or at least securable browser, and maybe give a chance for Mozilla, the most trustable browser maker, to get the #1 market share spot.

comment 11y ago · link · parent

Well, for starters those standards don't seem to be targeted to individuals, and often the goal seems to be to just allow someone to say "I'm compliant with XXX" rather than telling them how to be secure.

The practical advice they give is in the form of obvious generalities ("setup your firewalls", "update your OS") without any concrete details on how to best do that or even a discussion on which attacks are prevented and which aren't

Threat model discussions, advice on choosing which threats you can realistically defend against, theoretical principles and talk about possible attacks also seem to be non-existent.

comment 11y ago · link · parent

That's not as secure as hibernation, because someone who can break into the running device can at least read all your new mail and if they aren't using an ad-hoc e-mail protocol or implemented it carelessly also read all mail and probably get the e-mail username and password too.

This also only really works for software specifically designed for this mode.

EDIT: it can actually be mostly secure if the client public key is sent before locking and then the encryption is done by the server: the attacker would only learn the number and timing of new messages and their size (assuming an ad-hoc protocol and very carefully implemented software).

It's also sort of possible to do it with generic software by simply dumping HTTPS TCP traffic to disk and decoding it once the system is unlocked (although it allows a MITM to fill up your disk unless the ciphersuite allows authentication with a key that doesn't allow decryption).

comment 11y ago · link · parent

You can do that on PC by hibernating instead of locking the screen (assuming it works on the OS and hardware being used) and then rebooting instead of shutting down after hibernation.

comment 11y ago · link · parent

Looks like they should look at who stole the money.

Even a very generous 100 engineer team paid at 300k/year for 3 years only costs 100 millions.

If no one is looking into it, it's reasonable to assume that whoever is supposed to look into it is the one who stole the money.

comment 11y ago · link · parent

It's rare for programs to contain integer constants that don't fit in 32 bits, and they aren't needed for 64-bit code/global memory references due to the introduction of addressing relative to the instruction pointer.

Also there is a 15 bytes instruction length limit that would have to be extended if 64-bit immediates were allowed on all instructions.

comment 11y ago · link · parent

To give some practically implementable advice, what you should do is run anything that parses untrusted input in a virtual machine or physically separate machine.

This means you should browse the web, read e-mail and read any Office/PDF/whatever files sent to you in a virtual machine that doesn't have access to anything more than strictly needed.

The reason is that most desktop software and OS kernels are not written with total security against NSA-like adversaries in mind, and as a result often have exploits that completely compromise the system. While they can still provide reasonable security against random attackers, they cannot provide any significant security against organizations (such as intelligence agencies) who can offer millions of dollars for exclusive access to unpatched exploits and MITM any connection.

You can install Qubes [https://www.qubes-os.org] if you want a system that makes it more convenient and secure to use virtual machines this way (and you trust its authors to not have backdoored it).

Furthermore, you should only install software from official sources and when you install software, you should make sure to check its digital signature or hash (from a separate virtual machine, since the one you are browsing with is potentially compromised as discussed above)

If you don't already have a trusted signing key stored on your machine, you should download the file itself or something guaranteeing its integrity if available (signing key, HTTPS certificate, file hash) from multiple Internet connections, such as a residential ISP, mobile ISP and multiple instances of Tor and make sure the downloaded data is the same. This is very likely to foil a targeted attack specifically designed to give a special trojaned version of the file or a replaced signing key under the attacker's control.

Of course it's impossible to defend against the original authors of the software being malicious or compromised themselves, or against an attack designed to give everyone maliciously altered software when you don't have a trusted key/certificate, but those are more likely to be discovered. Even if the downloaded software is malicious, if you are separating software by virtual machine as described above, the damage will be limited to the virtual machine the software runs in.

There are a lot of other things to consider, such as defending from physically targeted attacks (e.g. someone breaking in your home and installing a keylogger) if you are not anonymous and keeping your anonymity if you are.

comment 11y ago · link · parent

It would break anyway because pages are usually designed to degrade when JavaScript is disabled, not when the JavaScript fails to load or behaves in an unexpected way.

For example the <noscript> tag works that way.

comment 11y ago · link · parent

You must give each new Javascript version a different filename (by including either the hash or a version number) and keep old Javascript version available forever or at least for a large enough timespan.

comment 11y ago · link · parent

Doesn't really seem a bad thing.

It seems natural that picking the best performer and the best song writer would give a better result than having the same person do it all.

It's a bit like complaining that in a videogame, the programming, game design and graphics are often done by different people.

comment 11y ago · link · parent

Is it more oppressive to utter two words or kick someone out of a social gathering?

comment 11y ago · link · parent

The author seems to mistakenly believe that Linux is a multi-user system where not everyone has root privileges.

The reality is that almost nobody uses it that way, it's not tested for that and due to the huge API surface area the chance of some kind of exploit is so large that it cannot be secured even if it people tried.

The only reason "root" exists currently is to make it less likely to accidentally change or destroy the operating system.

There is no way to provide a multi-user experience on a physically accessible system (cannot defend against physical attacks), and the way to provide it on a remotely accessible system is to assign a virtual machine to each user.

comment 11y ago · link · parent

If you consider signed blobs derivative works (which means hashing and producing a signature creates a derivative work), then any signed statement referring to an hash of the source code (or including the source itself) is also a derivative work.

This means that someone sending a PGP signed e-mail saying "I audited that the source code of GNU Foo with hash 0xdeadbeef... is free of backdoors" is violating GNU Foo's copyrights unless he releases his private keys.

This is obviously a very undesirable outcome, and so it's resonable to hope that hashing does not create derivative works, and thus signing doesn't either.

Including the scripts to install in the "preferred form" also seems very problematic because then you might also be forced to include a full copy of the hard drive of your development machine since that's an even more "preferred form" under that theory.

This is also a very undesirable outcome, so it's again reasonable to hope that "preferred form" does not necessarily include things that were absent in the original work and that aren't essential for reproducing the binary derived work itself.

comment 11y ago · link · parent

I think Google asks for 2-factor only when you are connecting from a new browser/device, so it would be highly suspicious to see that happening randomly.

Of course, the fact that he's asked for a password while being already logged in on Gmail is also suspicious, but less so since other sites do that.

comment 11y ago · link · parent

1. CFO is using Gmail without 2-factor authentication

2. CFO enters his Google credentials on a random website

3. CEO takes CFO e-mail as valid without checking for the existence and verifying a PGP signature

4. CEO sends Bitcoin for an existing customer to a new address he got by e-mail rather than to the established one

On the positive side, the CEO eventually sought confirmation from the customer.

comment 11y ago · link · parent

The Wii had an innovative controller and an exclusive game library, though.

The Fire TV instead copies the controller from the XBox and the game library from Android devices.

It seems far more similar to the Ouya console that recently got discontinued.

1
4748495051