News for hackers. Stuff that matters.
Re:Chinese dev jailed and fined for posting DJI's private ke... by xvector on Thursday May 02, 2019 @01:17PM (#19810148)
Truly pathetic from DJI's side. And China, but that's to be expected at this point. They do not deserve to have white-hats find their vulns for them.

> "I am done. I will go to jail, and I have to take this stain ... in my life. My girlfriend begin to break up with me, woooo, my family are broken. Fuck!!! What are terrible things! Maybe the only thing I can do now is to die; it is so hard. I need to be free.”

This is horrifying. It honestly makes me feel sick for this poor developer. Companies and nations this cruel have no place in modern society.

Re:Chinese dev jailed and fined for posting DJI's private ke... by gnode on Thursday May 02, 2019 @02:59PM (#19811356)
My understanding is that the conviction was for deliberately (disregarding the accused's claim to the contrary) publicly sharing his employer's proprietary source code and private keys. Assuming this is actually true, then it's justified that there are legal consequences for sabotaging his employer like this, and most countries have laws penalising such behaviour.
Re:Chinese dev jailed and fined for posting DJI's private ke... by craftyguy on Thursday May 02, 2019 @09:01PM (#19814552)
Meanwhile, companies and governments are allowed to 'accidentally' expose all sorts of private information about millions of people without any meaningful punishment.
Re:Chinese dev jailed and fined for posting DJI's private ke... by londons_explore on Friday May 03, 2019 @03:13AM (#19816222)
DJI should take the majority of the blame for not protecting its private keys with hardware security modules.
Re:Chinese dev jailed and fined for posting DJI's private ke... by Havoc on Thursday May 02, 2019 @02:38PM (#19811089)
>Companies and nations this cruel have no place in modern society.

That's exactly the direction modern society IS moving towards

Re:Chinese dev jailed and fined for posting DJI's private ke... by 0xbadcafebee on Thursday May 02, 2019 @01:58PM (#19810590)
There's no reason to be that dramatic. The US often has worse impacts on people's lives. If you're poor and uneducated in this country, one mistake can lead to a lifetime of debt and a cycle of prisons, hospitals, mental health facilities, homeless shelters, and so on. There is no significant social safety net for a large swath of the population (we're talking tens of millions of people) and people's lives are often left in shambles by a system that doesn't operate on empathy.

But also, this person is only facing six months and $30,000. That is no reason to consider suicide. Of course it sucks, but their life isn't over.

Re:Chinese dev jailed and fined for posting DJI's private ke... by sli on Thursday May 02, 2019 @02:10PM (#19810775)
What does any of this have to do with a Chinese developer in China? This is just whataboutism.
Re:Chinese dev jailed and fined for posting DJI's private ke... by throwaway55321 on Thursday May 02, 2019 @02:24PM (#19810939)
No, it’s perspective because he’s replying to the comment, “Companies and nations this cruel have no place in modern society.”
Re:Chinese dev jailed and fined for posting DJI's private ke... by throwaway55321 on Thursday May 02, 2019 @02:23PM (#19810926)
This reminds me of Aaron Swartz‘s case.
Re:Chinese dev jailed and fined for posting DJI's private ke... by decoyworker on Thursday May 02, 2019 @02:26PM (#19810955)
In which way? In the way that Aaron Swartz accidentally broke into a closed area and extracted copyrighted material and then apologized for being so clumsy?
Re:Chinese dev jailed and fined for posting DJI's private ke... by ionwake on Thursday May 02, 2019 @02:55PM (#19811294)
No he means in the way they pressured a young programmer into killing himself as retribution for just looking at some research papers.

The similarity is the ott aspect.

Feel free to ask more questions.

Re:Chinese dev jailed and fined for posting DJI's private ke... by RubenSandwich on Thursday May 02, 2019 @01:23PM (#19810220)
It seems that a lot of people commenting did not read the whole article. The developer committed four internal repos to DJI's public Github: 'spray-system', 'Management-platform', 'real_time_serve_v1' and 'real_time_serve'. These repos contained a wide variety of secret keys. So it does seem that this was intentional. Even playing devil's advocate because many large companies, Facebook, Google, etc, have systems to mirror part of their internal repos to GitHub, but I can imagine that adding a new path is checked and double checked by multiple people. Also this wasn't just a mistake of one repo, it was four.

I'm making no comment on if the punishment fit the crime, just that by reading the article it does seem that this was very much intentional.

Re:Chinese dev jailed and fined for posting DJI's private ke... by oh_sigh on Thursday May 02, 2019 @02:28PM (#19810976)
There have been thousands of instances of people unintentionally uploading their private keys to github. It seems at least plausible that this developer just didn't know the implications of what he was doing.
Re:Chinese dev jailed and fined for posting DJI's private ke... by forkLding on Thursday May 02, 2019 @02:59PM (#19811362)
Yea but you've breached NDA and likely committed some kind of intentional sabotage because this was done 4 times, so what happens to you is up to the courts and how you can argue it.
Re:Chinese dev jailed and fined for posting DJI's private ke... by oh_sigh on Thursday May 02, 2019 @07:23PM (#19813980)
If you can make a mistake once, you can make it 4 times.

If this guy was going for intentional sabotage, why not sell the keys on the dark web? Why not anonymously publish them on pastebin?

Why would he just upload them to github under his own name?

Re:Chinese dev jailed and fined for posting DJI's private ke... by acct1771 on Friday May 03, 2019 @08:05AM (#19817602)
Emotions make you stupid.
Re:Chinese dev jailed and fined for posting DJI's private ke... by adamnemecek on Thursday May 02, 2019 @03:08PM (#19811479)
It might not be international, he might have had a broken process or he was unfamiliar with it.

Like it's easy to make the same mistake if you weren't alerted to it the first time.

Re:Chinese dev jailed and fined for posting DJI's private ke... by ab_c on Thursday May 02, 2019 @01:26PM (#19810259)
I feel sorry for this dev as I've seen people do a lot of cluelessly dumb shit over the years when it comes to security.

For example, I worked in a place which hires co-op students and every year there'd be at least one university-educated student who --after being told not to-- would put their nondescript FOB security key card in their wallet. In the event they lose their wallet, any stranger can google the name found on their drivers license to find out information about them, their friends, or their place of employment.

Then there are the countless startups where the boss has decided they don't need to worry about security so their communal password is "password" and they keep their user database in plain text. Nobody takes security seriously until it blows up. And that tends to be the common attitude from business management: worry about it when it's a problem.

Re:Chinese dev jailed and fined for posting DJI's private ke... by fiddlerwoaroof on Thursday May 02, 2019 @01:40PM (#19810386)
This example isn't particularly good: I'm much more likely to lose a random keycard in my pocket than my wallet so, although having the keycard in my wallet might make it easier to figure out what door it opens, it also makes it much less likely that I'd lose my keycard in the first place.
Re:Chinese dev jailed and fined for posting DJI's private ke... by bcaa7f3a8bbc on Thursday May 02, 2019 @01:45PM (#19810457)
> I'm much more likely to lose a random keycard

On this example, I don't think it's a problem as well. First, the keycard has a PIN. After 3 failed attempts, it would either self-destruct the private key or lock itself down until a secret recovery code is provided. Second, private keys on keycards that are reported as lost can be revoked immediately.

Re:Chinese dev jailed and fined for posting DJI's private ke... by vl on Thursday May 02, 2019 @02:54PM (#19811282)
>after being told not to-- would put their nondescript FOB security key card in their wallet.

But what specifically are they supposed to do with the security key card? What mode of securing and transportation do you envision?

Re:Chinese dev jailed and fined for posting DJI's private ke... by rightbyte on Thursday May 02, 2019 @03:41PM (#19811890)
The same thing that we are supposed to do when we need to make up a new password every 3 months. Absolutely not add 1 to it and call it a day.
Re:Chinese dev jailed and fined for posting DJI's private ke... by Rebelgecko on Thursday May 02, 2019 @02:04PM (#19810671)
That's pretty lame, especially considering DJI's abysmal security practices.

For the Phantom 2, I think the root password to ssh into the drone was something like "12341234". For the Phantom 3, they make it more secure by upgrading the password to "Big~9China".

Re:Chinese dev jailed and fined for posting DJI's private ke... by bitL on Thursday May 02, 2019 @02:44PM (#19811151)
Do you know one for Phantom 4? I'd like to adjust maximal allowed elevation (the hard limit gets in the way while shooting movies in mountains).
Re:Chinese dev jailed and fined for posting DJI's private ke... by Rebelgecko on Thursday May 02, 2019 @03:15PM (#19811551)
Don't know, sorry. It might be worth checking if that limit is enforced on the drone itself or the app. At least for the older drones, things like no fly zones around airports were only in the app. Messing with the firmware of the actual drone seemed nontrivial.
Re:Chinese dev jailed and fined for posting DJI's private ke... by bitL on Thursday May 02, 2019 @04:38PM (#19812617)
P4 was supposed to have it baked in the firmware as DJI didn't want to allow 3rd party apps to bypass that limit.
Re:Chinese dev jailed and fined for posting DJI's private ke... by penagwin on Thursday May 02, 2019 @03:07PM (#19811460)
Just curious, do you have any pictures from your drone at various heights? I don't have a gps/barometer on my drone yet and I'm curious how high say 300 ft looks like.
Re:Chinese dev jailed and fined for posting DJI's private ke... by bitL on Thursday May 02, 2019 @04:47PM (#19812706)
I don't have any public ones, though I found some video of P3 climbing continuously to 1600ft with altitude on the screen:

https://www.youtube.com/watch?v=1sC5cnm3zVQ

Re:Chinese dev jailed and fined for posting DJI's private ke... by outworlder on Thursday May 02, 2019 @04:46PM (#19812698)
Why aren't we questioning the fact that there were secrets stored in Git? This is terrible security practice, and this fallout is exactly the kind of issues we should expect to happen as consequence.
Re:Chinese dev jailed and fined for posting DJI's private ke... by AFascistWorld on Thursday May 02, 2019 @01:05PM (#19810014)
Maybe irrelevant but it's worth noting.

Sued and jailed for submitting vulnerability. Open through google search. https://www.caixinglobal.com/2016-10-17/are-chinas-ethical-h...

Re:Chinese dev jailed and fined for posting DJI's private ke... by bcaa7f3a8bbc on Thursday May 02, 2019 @02:08PM (#19810733)
From what I was told, around 2014 in China, there used to be a responsible-disclosure platform called WooYun that existed for a while (some of its articles has submitted to ~100 upvotes on HN). It was similar to HackerOne, and attracted a significant number of infosec researchers to hunt bugs and report it to the vendors.

Until 2016, when the government arrested its founders.

* WSJ: China’s ‘White-Hat’ Hackers Fear Dark Times After Community Founder Is Detained

https://blogs.wsj.com/chinarealtime/2016/08/01/chinas-white-...

* China Arrests 10 White Hats from WooYoun Ethical Hacking Community

https://news.softpedia.com/news/china-arrests-10-white-hats-...

Re:Chinese dev jailed and fined for posting DJI's private ke... by nicodjimenez on Thursday May 02, 2019 @01:33PM (#19810331)
China is setting an example here that intellectual property laws are to be taken seriously. It's not clear whether this particular case was intentional or not, but in general greater IP protection in China is definitely a good thing.
Re:Chinese dev jailed and fined for posting DJI's private ke... by bovermyer on Thursday May 02, 2019 @01:56PM (#19810568)
If you think jailing someone for a mistake is a good thing, then you have some serious humanity issues that you need to work on.
Re:Chinese dev jailed and fined for posting DJI's private ke... by gnode on Thursday May 02, 2019 @03:10PM (#19811492)
Except they don't believe it was a mistake; they go as far as calling it "hacking". That the accused claims it was a mistake means little.
Re:Chinese dev jailed and fined for posting DJI's private ke... by Veen on Thursday May 02, 2019 @02:36PM (#19811071)
You can be sent to jail for a mistake if it was caused by negligence.
Re:Chinese dev jailed and fined for posting DJI's private ke... by penagwin on Thursday May 02, 2019 @03:12PM (#19811523)
Well yeah obviously. The question is whether an individual should go to jail because of negligence.

Obviously, there is a real "It depends". Hit and kill an individual with your car because you were distracted? That could mean jail. Accidentally pushed code to the wrong repo? Should that mean jail time?

Re:Chinese dev jailed and fined for posting DJI's private ke... by nicodjimenez on Thursday May 02, 2019 @02:30PM (#19811005)
Well it all depends on severity of the mistake. If you run someone over with a car, even if it was an accident, ther need to be consequences.
Re:Chinese dev jailed and fined for posting DJI's private ke... by bovermyer on Thursday May 02, 2019 @02:56PM (#19811321)
No, it really doesn't.

If you accidentally run someone over with a car, then there was definitely a failure of something, but it wasn't a moral failing. Punishment should never be used when correcting the underlying problem will have a more lasting positive impact.

In the car example, what do you think would be better - jailing the person who drove the car, or developing systems to prevent future such accidents?

Re:Chinese dev jailed and fined for posting DJI's private ke... by sdinsn on Thursday May 02, 2019 @02:03PM (#19810642)
Did you not read the article?
Re:Chinese dev jailed and fined for posting DJI's private ke... by nicodjimenez on Thursday May 02, 2019 @02:23PM (#19810920)
I did read it, it just wasn’t clear to me if it really was just an accident.
Re:Chinese dev jailed and fined for posting DJI's private ke... by devy on Thursday May 02, 2019 @12:54PM (#19809905)
I don't understand why this post has to put "Chinese" in the title?! If the dev was United States citizen, would you rename the title to American dev jailed? Absurdity!
Re:Chinese dev jailed and fined for posting DJI's private ke... by lostphilosopher on Thursday May 02, 2019 @01:33PM (#19810321)
HN "post" - Because that's the HN guideline.

> "Otherwise please use the original title, unless it is misleading or linkbait; don't editorialize." - https://news.ycombinator.com/newsguidelines.html

Register "post" - The Register is not a Chinese publication. The nation/legal system involved can't be assumed from the source, and is a vital part of the story since it's about a legal matter.

> "the Shenzhen Municipal People's Procuratorate – the local version of the Crown Prosecution Service – successfully prosecuted the developer in early April, before the Shenzhen District Court."

Had The Register _not_ included "Chinese" it could have been accused of "click baiting" since the Register's predominantly non Chinese[1] readership might have thought this was about laws that applied to them and clicked through.

Had the source been a Chinese publication writing about a American developer jailed, I'd imagine they would use "American dev jailed..." for exactly the same reasons.

1. "The Register is a leading global online tech publication, with more than nine million monthly unique browsers worldwide. The core audiences are the UK and US, accounting for more than six million. The bulk of the remaining readership are located in Canada, Australia and northern Europe." - https://www.theregister.co.uk/Profile/about_the_register/

Re:Chinese dev jailed and fined for posting DJI's private ke... by devy on Thursday May 02, 2019 @01:48PM (#19810490)
> HN "post" - Because that's the HN guideline.

I understand HN guideline here. I am talking about the Guardian's post.

Leaking private information to the public even unintentionally , that compromise the security of software and may cause public harm is illegal no matter which country you go. So the nationality of the one who leaked it is irrelevant as far as I am concerned.

Re:Chinese dev jailed and fined for posting DJI's private ke... by lostphilosopher on Thursday May 02, 2019 @04:36PM (#19812601)
This is a news story about a specific event. This specific event happened in China, to a Chinese citizen. The whole story is full of specifics - dates, amounts of money, company names, individual names, repository names, direct quotes, etc. These details are the story, the story does not exist with out them. Robbed of those details the article would convey nothing that people want to know. These details also help us relate to the story.

Human elected leader of country.

Weather occurring in geographic region.

Team lost game. Team won game. There will be more games.

Human incarcerated after conviction of crime.

Re:Chinese dev jailed and fined for posting DJI's private ke... by Canada on Thursday May 02, 2019 @03:34PM (#19811788)
Generally it isn't illegal under any system based on common law. A necessary component a crime is mens rea, which is the intention or knowledge of the wrongful act. The act alone, even if it is illegal doesn't constitute a crime.

By this principle it's not a crime for a delvery man to be in posession of contraband that he has no knowledge of. This isn't to be confused with not knowing something is illegal. That's no defense. It's about knowing or not knowing the consequences of your action.

That said there are lesser offences, misdemenors or summary offences, where mens rea is not required. They usually have fines but also can have limited jail time. For example, you can be punished for speeding and whether you knew you were doing it or not is irrelevent.

What's unclear in this case is whether the developer knew or ought to have known there were secrets in the code, or that his push was to a public place. It's also unclear, at least to me, whether Chinese law requires mens rea.

Re:Chinese dev jailed and fined for posting DJI's private ke... by jldugger on Thursday May 02, 2019 @01:12PM (#19810072)
> If the dev was United States citizen, would you rename the title to American dev jailed

The only reason I can think of to not mention the nation that jailed someone for accidentally leaking their employers keys would be because the default assumption would be they are an American.

This wasn't a hack, there was no criminal intent. I think most people assume that the worst consequence for an accident like this is losing your job. The absurdity here is being fined, jailed, and receiving a criminal record.

Re:Chinese dev jailed and fined for posting DJI's private ke... by bdcravens on Thursday May 02, 2019 @01:07PM (#19810032)
The developer was prosecuted in China. HN guidelines also indicate the title should be unchanged from the original most of the time.
Re:Chinese dev jailed and fined for posting DJI's private ke... by mattnewton on Thursday May 02, 2019 @01:17PM (#19810142)
I would be really alarmed if this happened in America, as an American developer myself. I obviously wouldn’t think a mistake like this should be criminal.
Re:Chinese dev jailed and fined for posting DJI's private ke... by lkj on Thursday May 02, 2019 @01:13PM (#19810093)
Also note the hints at the original in the URL: "dji_dev_jailed_fined_leaking_aes_ssl_keys_github"

The Register decided that adding the nationality was good for clicks. :(

Re:Chinese dev jailed and fined for posting DJI's private ke... by mattnewton on Thursday May 02, 2019 @01:18PM (#19810155)
The fact that the developer was prosecuted under Chinese law is important to an audience of developers who want to know what precedent it sets for their own work.
Re:Chinese dev jailed and fined for posting DJI's private ke... by devy on Thursday May 02, 2019 @01:47PM (#19810478)
Sharing private information public either intentional or unintentional that leak customer data and weaken the software security is illegal in any country as far as I know.
Re:Chinese dev jailed and fined for posting DJI's private ke... by mattnewton on Thursday May 02, 2019 @05:39PM (#19813241)
He claims it was a mistake. Checking in private keys is a fairly common mistake and seems analogous here. https://m.slashdot.org/story/181081
Re:Chinese dev jailed and fined for posting DJI's private ke... by bcaa7f3a8bbc on Thursday May 02, 2019 @12:58PM (#19809938)
My first submission on Hacker News was the link below, 2 years ago. It didn't receive any upvote.

Click and see, it's fascinating.

* GitHub commit search: “remove private key”

https://news.ycombinator.com/item?id=14262124

Although most keys removed are just useless automatically generated test keys, but genuine keys do exist. Someone should write a crawler to monitor these commits, creates digital signatures from private keys to prove the leak, and notify the CA issuer to revoke them automatically.

Re:Chinese dev jailed and fined for posting DJI's private ke... by jldugger on Thursday May 02, 2019 @01:03PM (#19809989)
There are multiple bots that crawl github for pubkeys and other credentials.
Re:Chinese dev jailed and fined for posting DJI's private ke... by bcaa7f3a8bbc on Thursday May 02, 2019 @01:08PM (#19810041)
I know blackhats and grayhats must have been doing it for years. But I'm not aware there's any bot that acts in a whitehat manner to disclose it to affected parties and conduct public researches, is there? I mean, something like those RSA keys crawling projects by cryptographers that have discovered several types of non-random keys with zero security.
Re:Chinese dev jailed and fined for posting DJI's private ke... by jldugger on Thursday May 02, 2019 @01:14PM (#19810099)
I admit I've been on the receiving side of some notices about low value API keys. https://www.gitguardian.com for example, uses this sort of thing as a public service / sales lead I guess.
Re:Chinese dev jailed and fined for posting DJI's private ke... by bcaa7f3a8bbc on Thursday May 02, 2019 @01:15PM (#19810117)
Good to know, thanks for the info.
Re:Chinese dev jailed and fined for posting DJI's private ke... by detaro on Thursday May 02, 2019 @02:27PM (#19810974)