News for hackers. Stuff that matters.
Re:British Airways faces record £183M fine for data breach by pjc50 on Monday July 08, 2019 @08:04AM (#20381987)
So: now what?

This is an absolutely vast fine. There have to be companies around the world that are all of a sudden going to take the security of Javascript seriously, who already have a big web app that pulls in hundreds of scripts compiled from tens of thousands of NPM modules. Is security band-aiding going to be applied, or are we going to have to see a radical re-architecting that acknowledges that every dependency is a liability as well as a benefit?

Re:British Airways faces record £183M fine for data breach by 7373737373 on Monday July 08, 2019 @08:31AM (#20382128)
It would be reasonable to expect an increased interest in security architectures. Unfortunately security has not been a main focus of businesses - research, development and actual use of secure systems is mostly limited to academic, financial, defense and intelligence circles.

Current programming languages provide no effective means of applying the principle of least authority to third party dependencies.

Examples: restricting I/O of an imported library, in many cases down to pure computation, as well as accounting for and limiting their resource use.

People, take a look at (object) capability security: https://en.wikipedia.org/wiki/Capability-based_security

Systems implementing this let you handle permissions like other objects, transferring them by simply including them as a function parameter.

There is no ambient authority, meaning a string of a file path is not sufficient to open a file. The function needs to have access to a capability object, which combines authority (the right to do something, say read a file) with designation (the path to a specific file).

When you create a new process, it starts without any capabilities, in which case it is restricted to pure computation.

Unlike current systems, this passing of permissions allows you to reason about what your code actually can do, it effectively limits its behavior, it creates reliable boundaries, because the program can't just construct permissions out of thin air.

Re:British Airways faces record £183M fine for data breach by ickyforce on Monday July 08, 2019 @09:39PM (#20388311)
Java has a SecurityManager[1] which does exactly that. Is there anything similar in other mainstream languages?

[1]: https://docs.oracle.com/javase/8/docs/api/java/lang/Security...

Re:British Airways faces record £183M fine for data breach by black_knight on Tuesday July 09, 2019 @04:24AM (#20389871)
As far as I understand SecurityManager, it is vastly different from capability based security.

In a system based on capabilities you would explicitly have to pass capabilities to any code which needs them (either as arguments to the call, or when loading the library – depending on what is natural). This means that priviledge is naturally minimised and transparent.

Compare that to SecurityManager where you have make a separate policy and checking process, separated from the actual calling of functions.

There was some work done to try to define a capability safe subset of Java (Joe-E was the name [0]). But it is sad that this is not the default security behaviour in Java, and thus no libraries use this.

[0]:https://en.wikipedia.org/wiki/Joe-E

Re:British Airways faces record £183M fine for data breach by 7373737373 on Tuesday July 09, 2019 @03:11AM (#20389610)
Stackless Python allows you to run tasks for a certain number of instructions: https://stackless.readthedocs.io/en/latest/library/stackless...

Unfortunately, the Python VM is impossible to sandbox much further as it is. You have (internal) resource security, but can't limit access to the network, or say a specific file in the filesystem. Mutable globals everywhere.

The https://en.wikipedia.org/wiki/E_programming_language has capability security, but no resource exhaustion protection.

The only systems were both where integrated were a series of 1980s operating systems (GNOSIS, KEYKOS, https://en.wikipedia.org/wiki/KeyKOS) that were designed to allow secure and accountable multi-user timesharing on mainframes. They are predecessors of the formally verified sel4 operating system.

There has never been a similar system on an OS/Processor independent virtual machine level. For fun, I created this little VM: https://esolangs.org/wiki/RarVM

Re:British Airways faces record £183M fine for data breach by K0nserv on Monday July 08, 2019 @09:37AM (#20382572)
That's a different, but related concern. Yes deep dependency graphs have a big trust problem, but at the very least in that case you can use CSP and SRI to verify the integrity after the asset has been built. A compromised node module also has the mitagting fator that it slowly propagates as people update which doesn't make the attack as immediate and it gives people an opportunity to review the code as they update.

For remote third party JS that's included on many websites you have an immediate and direct remote code exec vector. For something central like Google Analytics this would be devestating.

Re:British Airways faces record £183M fine for data breach by 1337biz on Monday July 08, 2019 @08:20AM (#20382069)
Unfortunately I expect just some insurances to pop up that cover data security fines. Unless the fees are getting really in-insurable, the cost of an insurance is probably just cheaper than actuary improving security.
Re:British Airways faces record £183M fine for data breach by gcthomas on Monday July 08, 2019 @09:02AM (#20382334)
It may well be that the insurance companies are less likely to get their minimum security demands for agreeing cover ignored than the internal managers looking to spend more money on security.