315 points · by zdw · 6y ago · 184 comments
Having access to something as insanely valuable as a bank 'master key' puts the employees at risk of blackmail, extortion, etc.
That's why you have HSMs, key ceremonies, Shamir's secret sharing etc. It's not just for trust, it's also for protection of those involved.
Unauthorized wire transfers can be undone, or covered by insurance. Loss of life cannot.
- The system is proven to be information theoretically secure (not just computationally)
- It uses only high school math
- The paper is only TWO PAGES LONG
I highly recommend printing this out on a single sheet of paper (double sided) and digging in.
https://news.ycombinator.com/item?id=23541949
https://github.com/simonfrey/s4
Additional references from the app's About page.
- What is Key Sharding? Shamir’s Secret Sharing Explained (Easy) https://www.youtube-nocookie.com/embed/TQ-DsEZBuQY
- Shamir's Secret Sharing - Solution and alternative to Lagrange (More in-depth) https://www.youtube-nocookie.com/embed/rWPZoz0aux4
This is my favorite video on Diffie-Hellman key exchange which is a slightly different problem (sharing a secret, without the constraint of dividing the key): https://www.youtube.com/watch?v=YEBfamv-_do (oh, hey, same channel! Guess I'll need to check out more videos from here!)
It's also so I can enter for regular maintenance without needing the tenant to be there.
[0]: https://en.m.wikipedia.org/wiki/Bangladesh_Bank_robbery
They lost more than $3.2 million from fraudulent transactions and will now have to replace more than 12 million cards for its customers after employees printed and then stole its master key in December 2018. Took them long enough to figure it out.
I can't read anymore. Is there anymore technical explanation?
Was it actually 'printed' ... on paper?
Was it even an actual encryption key or just a password or something?
What it means is that the master secret in the HSM is probably a 128bit AES key. The ways to generate this depend on the ceremony and the particular HSM, but the risk I have encountered in security consulting is the question of whether that master secret itself was just derived from simple components, like pbkdf2("secret phrase known to 3 people", 1000)
The consequence of compromising that key is that an attacker could use it to forge cards, or more usefully, instantiate a virtual card in software to fuzz cryptograms for different account numbers to get available balance information and then personalize cards for those.
This is a huge failure.
So just exporting the private key so easily without some pretty involved hight-tech HSM key extraction sounds insane.
It was not for security. Ever.
Credit Cards were introduced as a less-secure-but-more-convenient-check.
The store then would have a stock of "blank checks" with absolutely no security features where they would imprint with carbon paper and a pressure roll the credit card information and pretty much "mint" the client a check on the spot.
Over time the raised letters for the crude minting press morphed into a magnetic strip, but the process was still 100% the same. Outside of the US in the last decade (2yrs in the US) some little security was added with encryption keys and PINs. Which is nothing more than a digital signature the bank may or may not check (like it did with the actual signature on the previous mentioned blank checks minted by the store). This is the step that was compromised with the stolen keys. In other words, the few places where you have to insert your card chip into a reader and type a pin had their security degraded to the same level as places where you simply use your magnetic strip or type your numbers on an online store.
Yeah, no. Diners Club was the first credit card and was released in the 1950's to aggregate and streamline paying for things on account. It was, as the name suggests a line of credit. Checking accounts could become credit accounts if they allow overdrafts but this is not the normal intent.
It was not until First National of Seattle released a debit card (also now known as a check card) in 1978 that any of those plastic cards behaved as a check.
It's an important distinction because in one case (credit) the money transferred first is the bank's. This has important implications on who holds the liability and how long investigstions take into fraud allegations.
Chip security was added first overseas because online authorization was less ubiquitous. The US was able to have online terminals pretty much everywhere since the 1980's and knucklebusters became a rare sight in the 1990's. The chip security now is less to prevent card-present fraud in the US, more to prevent reauthorizations of stored CC information (see, target breach). With a chip or NFC the card generates a unique signature for every transaction so there's nothing a POS system could store to reauthorize future transactions.
This is why in the US for credit cards a pin is mostly unheard of and we are finally moving away from signatures which have been obsolete since the time offline batching mostly went away.
Edit: Consider 1980's America was under the monopoly of AT&T. This greatly influenced the design of payment card networks. Europe, for example, probably had probably over 100 different companies in dozens of countries, so universal online authorization was less feasible.
Credit cards, yes, started replacing the high APR credit-checks. And then moved to a mix of this and regular debit checks.
But the actual process, which was what i was describing, was still pretty much exactly the same used to validate a check (whichever type) at the bank branch. Where the bank will draw the funds from is not a important topic when we are talking about process of the transaction itself.
Edit: also the pin is verified each Transaction unlike with receipt signatures, which as you say were rarely checked by anyone.
At least in my experience this has increased a great deal more in the US in recent years.
Liability shift works like this: Historically the merchant is protected if they had good faith belief that the payment card was authorised via things like a mag stripe. After liability shift that goes away unless you use EMV. You checked the card was "real" with just a mag stripe? Not interested, the chargeback comes out of your money.
Your local gas station can keep using mag stripe readers for another decade if they like. But liability shift means places that see significant fraud will have an obvious economic incentive to go EMV, and that shifts the fraud onto nearby stations that didn't have fraud problems, so they go EMV and so on.
If you're a merchant with very low fraud rates it can make sense to do no Authorization step whatsoever. Any merchant, anywhere in the world, can do Settlement, which is the step that moves money from your account to theirs, based just on the card number. Only if it becomes a question as to whether this payment was authorized does it matter whether they did the Authorization step, a mag stripe read, the old fashioned impression machines, or a chip-and-PIN terminal.
Certain types of companies can find it makes sense to do no Authorization for groups of customers. One Click may be an example of that. You did a bunch of transactions, with a physical delivery address, what are the chances that a new transaction with the same delivery address and card details is fraud while the previous ones were not?
When NFC showed up, it was intended for plastic cards. This was pretty widely deployed. Then software companies integrated it with phones. This made the telcos unhappy, because these phones had a "secure element" that they did not control (traditionally the SIM card was the secure element, but these phones ignored that and that upset them; back then, a carrier being upset meant that your phone could not be used on their network). It also made processing networks unhappy, because they saw that they were losing control. (You don't need Mastercard and Visa when the phone can just use the Internet to ask Apple to authorize the transaction, after all.) So they flat-out stopped issuing cards with NFC. Then the final blow is that merchants were tired of paying credit card transaction fees, so they removed NFC readers from their stores, and banded together to make some shitty system to bill your purchase directly to your checking account. No more paying fees or pesky chargebacks.
The retail side blew up -- no consumer wanted it, and it was technologically bad. NFC readers are back in stores. The carrier side blew up -- SIM cards are gone and Apple or Samsung is your secure element provider. I am not sure what happened on the processing card network. I'm guessing they made some private deal with the NFC payment providers (Apple, Google, Garmin, Fitbit, etc.; enough companies in on the game that they can sit back and watch them fight each other while they profit).
I kind of got to watch this from both sides. I worked on Google Wallet when I started at Google in 2012. Used it pretty much every time I went to CVS. Then CVS removed their readers. Then Apple entered the market, and CVS once again accepts NFC cards.
So maybe gas pumps played a role; I don't drive so I don't interact with gas pumps ever. But there were much deeper problems. A lot of entrenched monopolies stood to lose a lot, so they were happy to impede progress wherever possible. There was never a good possible outcome, though -- let the incumbents keep their power, or let the upstart megacorps become the new incumbent. Plenty of VC money available if you think you can fix this problem, or become the new big guy ;)
At the same time fees could be raised 2% for non-chip transactions to incentivize upgrades.
And our (USA) law enforcement agencies promise us that any encryption master keys required by their grandiose plans will only be used in cases with proper legal court warrants (ignore the FISA court warrant abuse based on lies and deceit) and will be super secure and never stolen.
Just like those secret hacking tools stolen from the CIA.
Or these private master keys.
I understand that the illusion of control is very helpful for nervous passengers, but your luggage is leaving your control and it's mostly nylon fabric and plastic.
Also I think they used these locks on handgun / firearm containers that were declared when travelers with a CPL or LEO people traveled. Those are typically put into a hard container that is difficult to open unless you unlock the lock.
EDIT: last paragraph is wrong, please ignore that. Thanks guys.
The TSA is a lot more likely to steal your stuff than some random person with a printed key. Plus, if you use a real lock, they have the right to clip it off, which is trivial. Don't put stuff of value into checked luggage. Keep it on your person or ship it via a carrier who has insurance.
Life hack: you can pack a stripped AR lower, and it's legally a firearm. You must use a non-TSA lock, and the TSA (nominally) is not allowed to open it.
Though your core point is valid: your nylon luggage isn't going to keep anyone determined out.
But unless you travel with valuables quite often it is definitely cheaper to ship it insured.
I'm glad we don't need to trust the TSA with following any kind of security protocols. /s
An entity that is bankrupt and barely functional despite having a state mandated monopoly on an entire country's postal system.
As per article they're also running the SASSA social grant system which is a train wreck in itself and has been buried in legal disputes for years (not random small cases...a challenge to the legitimacy of their core mandate on grants).
Someone walking out the door with printed encryption keys sounds about right.
To be fair, plenty of state-mandated monopolies of postal systems still aren't profitable, often because they don't significantly control their revenue stream insofar as they don't set the prices of their products.
Currently people are paying a massive premium to utilize private courier to have their stuff privately couriered. People are literally going f that I don't care what it costs I don't trust the postal system.
A sane postal service would review this situation and try to understand why the people think "f you". SAPO has decided that the correct solution to this situation is to simply legally mandate that everyone has to use their useless service thus making couriers illegal for this category. Literally:
https://mybroadband.co.za/news/business/346729-online-stores...
I personally take a pretty dim view on "nobody wants this...fine...so we'll just force it by law" dynamics
The key factor has been unmitigated corruption and ineptitude.
They are actually - and SAPO is trying to legally enforce it. Whether it sticks or not...we shall see.
https://mybroadband.co.za/news/business/346729-online-stores...
I sometimes wonder whether accounting is like this too. Is financial audit just as much of a fig leaf? Can a skilled accountant also spot dozens of ways to embezzle?
It was great to see N26 come along and change that, and thank god for their native translations.
How do you summmon dang, with @dang?
The threat model in the two areas is a bit different, so different tactics are used. It doesn't mean that some people are trusted more than others, just that as groups they behave differently.
Is this legal?
Sounds like a lawsuit waiting to happen.
In any case it would make sense to have multiple master keys...say use a different master key for each batch of so many cards.. then if one key was compromised it wouldn't affect 12M cards.
https://hotforsecurity.bitdefender.com/blog/south-africas-po...
All you have are white hat security consultant experts that only have their dollars and reputation to work with. The public is highly vulnerable on those things yet I don't see politicians really caring.
Transnet/PRASA (railways)
Eskom (electricity)
SAA (airline)
All have had just totally monumental theft often at the top levels. It all seems to be pretty consequence free. Meanwhile, the hawks open immediate investigations and charge people almost immediately who are trying to expose things - which is kind of funny - 10 years to investigate totally obvious theft, 7 days to charge folks who are exposing it :)!
Every citizen who drives a motor vehicle must be issued a driver's licence by the state they reside in. This enables a minimum understanding of how a complex machine (the highway transportation system) works so that other drivers / participants of that system can use it safely. Without regulation, vehicle collisions would be rampant and the system would be far less stable.
Not all government regulation and oversight is bad.
I highly recommend reading the book "Click here to kill everybody" by Bruce Schneier [1]. Bruce has been in the cyber-security world for a long time now and is considered one of the world's foremost experts on cryptography and computer security. In this book he makes projections about the "internet of things (internet+)" and the security problems that will come with it. He strongly advocates for government oversight and legal reform in multiple areas.
FDA still allows companies to hide ingredients under the guise of "natural flavors" and "artificial flavors". I hope you aren't allergic to one of those!
> Every citizen who drives a motor vehicle must be issued a driver's licence by the state they reside in. This enables a minimum understanding of how a complex machine (the highway transportation system) works so that other drivers / participants of that system can use it safely.
License plate technology helps the government (and private companies) know where-ever you are at all times! https://www.bloomberg.com/news/articles/2018-12-06/why-priva... https://www.cnet.com/news/this-company-could-turn-every-home...
Government intervention rarely happens proactively, just as major market changes rarely happen proactively. Supplier failure on a large scale makes it apparent that change is necessary, and only then do changes follow, either from the top down by government intervention, or from the bottom up by the market.