Android vulnerability hits Bitcoin apps and more

When a random number is not so random, security pays the price

Android users of Bitcoin are being advised to upgrade their apps and re-secure their wallets after the discovering of a weakness in a component of the operating system responsible for generating secure random numbers. The weakness also affects some secure communication networks, and renders users vulnerable to theft of their digital currency.

The weakness lies with the Android implementation of a piece of code which is supposed to spit out purely random numbers. Instead of working as it should, the numbers it produces aren’t as random as they seem. These numbers are used by Bitcoin users as the public and private keys in the series of mathematical problems which makes up the “blockchain”, the record of transactions. If they are slightly predictable, then as a result, it is theoretically possible to work out someone’s private key from the public signatures they post, and steal money contained in the wallet.

The vulnerability was highlighted by developer Mike Hearn, who created the Bitcoin Wallet app. That app has since been updated, as have Mycelium Wallet and, two other popular wallet apps for Android., a key website for the decentralised development community, advises users to “rotate” their keys. “This involves generating a new address with a repaired random number generator and then sending all the money in your wallet back to yourself”, they write. “Once your wallet is rotated, you will need to contact anyone who has stored addresses generated by your phone and give them a new one.”

However, the weakness in the random number generator has the potential to affect more than just bitcoin apps. Any app which relies on the generator for security is at risk, particularly if the programme requires a public and a private key. The nature of the flaw makes it overly easy to determine a private key if given a public key generated around the same time; as a result, any app which uses a form of public key cryptography, where the security of the encrypted content relies on the public and private keys being unrelated, is at risk if those keys were generated using the faulty generator.

In practice, though, the Bitcoin community is at the most risk here. It's one of the few situations where a public key is very public indeed, and the rewards for cracking it are so immediate that if people can try, they will. But it's hardly a mortal wound; the apps can be updated, and wallets resecured. If Bitcoin is really in danger, it comes from a source which many advocates of the digital money are celebrating. Earlier this month, a Texas court officially declared Bitcoin a "currency" in order to take action against a man accused of running a Bitcoin Ponzi scheme. What sounds like much-needed mainstream recognition is actually a double-edged sword, though. As a currency, it is now fair game for regulators. And sure enough, the New York Department of Financial Services is looking into the "Wild West for narcotraffickers and other criminals". Bitcoin will shortly need to grow up or shut up, it seems.


Alex Hern is a technology reporter for the Guardian. He was formerly staff writer at the New Statesman. You should follow Alex on Twitter.

Photo: Getty Images
Show Hide image

What's to be done about racial inequality?

David Cameron's words on equal opportunities are to be welcomed - now for some action, says Sunder Katwala.

David Cameron made the strongest, clearest and most high profile statement about ethnic inequalities and the need to tackle discrimination ever yet offered by a British Prime Minister in his leader’s speech to the Conservative Party conference in Manchester.
“Picture this. You’ve graduated with a good degree. You send out your CV far and wide. But you get rejection after rejection. What’s wrong? It’s not the qualifications or the previous experience. It’s just two words at the top: first name, surname. Do you know that in our country today: even if they have exactly the same qualifications, people with white-sounding names are nearly twice as likely to get call backs for jobs than people with ethnic-sounding names? … That, in 21st century Britain, is disgraceful. We can talk all we want about opportunity, but it’s meaningless unless people are really judged equally”, said Cameron.
While the proof of the pudding will be in the eating, this was a powerfully argued Prime Ministerial intervention – and a particularly well-timed one, for three reasons.

Firstly, the Prime Minister was able to root his case in an all-but-universally accepted appeal for equal opportunities. It will always prove more difficult in practice to put political energy and resources behind efforts to remedy discrimination against a minority of the population unless a convincing fairness case is made that values cherished across our whole society are at stake. Cameron’s argument, that any party which tells itself that it is the party of the ‘fair chance’ and ‘the equal shot’ must have a response when there is such clear evidence of discrimination, should prove persuasive to a Conservative Party that has not seen race inequalities as its natural territory. Cameron argued that the same principles should animate responses to discrimination when it comes to race, gender and social class. Put like that, wanting job interviews to be fair – by eradicating conscious and unconscious patterns of bias wherever possible – would strike most Britons as offering as clear a case of the values of fair play as wanting the best baker to win the Great British Bake-Off on television.
Secondly, Cameron’s intervention comes at a potential "tipping point" moment for fair opportunities across ethnic groups. Traditionally, ethnic discrimination has been discussed primarily through the lens of its impact on the most marginalised. Certainly, persistent gaps in the criminal justice system, mental health provision and unemployment rates remain stark for some minority groups. What has been less noticed is the emergence of a much more complex pattern of opportunity and disadvantage – not least as a consequence of significant ethnic minority progress.

Most strikingly of all, in educational outcomes, historic attainment gaps between ethnic minorities and their white British peers have disappeared over the last decade. In the aggregate, ethnic minorities get better GCSE results on average. Ethnic minority Britons are more likely, not less likely, to be university graduates than their fellow citizens. 

As a result of that progress, Cameron’s intervention comes at a moment of significant potential – but significant risk too. Britain’s ethnic minorities are the youngest and fastest-growing sections of British society. If that educational progress translates into economic success, it will make a significant contribution to the "Great British Take-Off" that the Prime Minister envisions. But if that does not happen, with educational convergence combined with current ‘ethnic penalties’ in employment and income persisting, then that potential could well curdle into frustration that the British promise of equal opportunities is not being kept.  Cameron also mirrored his own language in committing himself to both a ‘fight against extremism’ and a ‘fight against discrimination’: while those are distinct challenges and causes, actively pursuing both tracks simultaneously has the potential, at least, depolarise some debates about responses to extremism  - and so to help deepen the broad social coalitions we need for a more cohesive society too.

Thirdly, Cameron’s challenge could mark an important deepening in the political competition between the major parties on race issues. Many have been struck by the increase in political attention on the centre-right to race issues over the last five to ten years. The focus has been on the politics of representation. By increasing the number of non-white Conservative MPs from two to seventeen since 2005, Cameron has sent a powerful signal that Labour’s traditional claim to be ‘the party of ethnic minorities’ would now be contested. Cameron was again able to celebrate in Manchester several ways in which his Cabinet and Parliamentary benches demonstrate many successful journeys of migrant and minority integration in British society. That might perhaps help to ease the fears, about integration being impossible in an era of higher immigration, which the Home Secretary had articulated the previous day.

So symbolism can matter. But facial diversity is not enough. The politics of ethnic minority opportunity needs to be about more than visits to gurdwaras, diversity nights at the party conference fringes and unveiling statues of Mahatma Gandhi in Parliament Square. Jeremy Corbyn’s first speech as Labour leader did include one brief celebratory reference to Britain’s ethnic diversity – “as I travelled the country during the leadership campaign it was wonderful to see the diversity of all the people in our country” – and to Labour bringing in more black, Asian and ethnic minority members - but it did not include any substantial content on discrimination. Tim Farron acknowledged during his leadership campaign that the Liberal Democrats have struggled to get to the starting-line on race and diversity at all. The opposition parties too will no doubt now be challenged to match not just the Prime Minister’s rhetorical commitment to challenging inequalities but also to propose how it could be done in practice.

Non-white Britons expect substance, not just symbolism from all of the parties on race inequalites.  Survation’s large survey of ethnic minority voters for British Future showed the Conservatives winning more ethnic minority support than ever before – but just 29 per cent of non-white respondents were confident that the Conservatives are committed to treating people of every ethnic background equally, while 54 per cent said this of Labour. Respondents were twice as likely to say that the Conservatives needto do more to reach out – and the Prime Minister would seem to be committed to showing that he has got that message.  Moreover, there is evidence that ethnic inclusion could be important in broadening a party’s appeal to other younger, urban and more liberal white voters too – which is why it made sense for this issue to form part of a broader attempt by David Cameron to colonise the broad centre of British politics in his Manchester speech.

But the case for caution is that there has been limited policy attention to ethnic inequalities under the last two governments. Restaurateur Iqbal Wahhab decided to give up his role chairing an ethnic minority taskforce for successive governments, unconvinced there was a political commitment to do much more than convene a talking shop. Lib Dem equalities minister Lynne Featherstone did push the CV discrimination issue – but many Conservatives were sceptical. Cameron’s new commitment may face similar challenges from those whose instinct is to worry that more attention to discrimination or bias in the jobs market will mean more red tape for business.

Labour had a separate race inequalities manifesto in 2015, outside of its main election manifesto, while the Conservative manifesto did not contain significant commitments to racial inequality. The mid-campaign launch in Croydon of a series of race equality pledges showed an increasing awareness of the growing importance of ethnic minority votes - though the fact that they all involved aiming for increases of 20 per cent by 2020 gave them a slightly back-of-the-envelope feel. 

Prime Ministerial commitments have an important agenda-setting function. A generation ago the Stephen Lawrence case opened the eyes of middle England to racist violence and police failures, particularly through the Daily Mail’s persistent challenging of those injustices. A Conservative Prime Minister’s words could similarly make a big difference in the mainstreaming of the issue of inequalities of opportunity. What action should follow words? Between now and next year’s party conference season, that must will now be the test for this Conservative government – and for their political opponents too. 

Sunder Katwala is director of British Future and former general secretary of the Fabian Society.