229 points · by p_l · 2y ago · 103 comments
* https://news.ycombinator.com/item?id=38530885 - 363 comments
* https://news.ycombinator.com/item?id=38628635 - 139 comments
* https://news.ycombinator.com/item?id=38567687 - 298 comments
* https://news.ycombinator.com/item?id=38638865 - 235 comments
* https://news.ycombinator.com/item?id=38570654 - 2 comments
Trains were designed to break down after third-party repairs, hackers find - https://news.ycombinator.com/item?id=38638865 - Dec 2023 (232 comments)
Polish Hackers that repaired DRM trains threatened by train company - https://news.ycombinator.com/item?id=38628635 - Dec 2023 (139 comments)
Polish train maker denies claims its software bricked competitor rolling stock - https://news.ycombinator.com/item?id=38570654 - Dec 2023 (2 comments)
Dieselgate, but for trains – some heavyweight hardware hacking - https://news.ycombinator.com/item?id=38567687 - Dec 2023 (293 comments)
Polish trains lock up when serviced in third-party workshops - https://news.ycombinator.com/item?id=38530885 - Dec 2023 (359 comments)
> We (@redford, @mrtick and I) have reverse engineered the PLC code of NEWAG Impuls EMUs. These trains were locking up for arbitrary reasons after being serviced at third-party workshops. The manufacturer argued that this was because of malpractice by these workshops, and that they should be serviced by them instead of third parties.
> We found that the PLC code actually contained logic that would lock up the train with bogus error codes after some date, or if the train wasn't running for a given time. One version of the controller actually contained GPS coordinates to contain the behaviour to third party workshops.
> It was also possible to unlock the trains by pressing a key combination in the cabin controls. None of this was documented.
> The key unlock was deleted in newer PLC software versions, but the lock logic remained.
> After a certain update by NEWAG, the cabin controls would also display scary messages about copyright violations if the HMI detected a subset of conditions that should've engaged the lock but the train was still operational.
> The trains also had a GSM telemetry unit that was broadcasting lock conditions, and in some cases appeared to be able to lock the train remotely.
I would like to challenge this. The ethical problem comes from this two facts: they had code which disabled the vehicle in certain conditions AND this was not communicated in the manuals/contracts.
The two together is what is extremely dubious. If you implement a time based expiry system, and tell about it to the customers that I think is fair. The customer might of course opt to not buy the equipment under those terms, or only pay a significantly reduced fee, but that is just business. And it might be good business for both participants if everything is well documented and transparent, and these restrictions are reflected in the price, and everyone enters into the agreement with full knowledge and consent.
Why does this matter: Look at it from the developer’s perspective. Imagine that they are told by their bosses that they need to implement technological measures to disable the product when the licence expires. Would developing that be unethical? I don’t think so. It becomes unethical at the later point when the train operator is not told about this. How much of that is in or out of the view of the developers is an other question.
I’m not saying this is what happened. Clearly the gps based lockdown is not consistent with this story even under the most charitable interpretation. Something is fishy here and needs investigating. (The kind of investigation where the police with a warrant takes the repo and the communications of the company, and interviews everyone separately to figure out who did what and when, and who known what and when.)
But while the overall conduct of the company appears to be unethical, it is not necessarily true that the software engineers in question were also unethical. It depends on what they did know, and what they were asked to deliver.
It would be completely unacceptable to me if an auto manufacturer baked in a time lock in a car I purchased. Heck, Apple got slapped for appearing to throttle performance based on age. Why is it reasonable for a train manufacturer to pull this stunt?
To be clear, plausible deniability is also a big gray area when it comes to moral or ethical questions. It a timelock in the software seems unusual, engineers aren't off the hook simply because they didn't ask. If they did push back or ask for an explanation and were given false answers, sure they likely didn't do anything most would consider immoral. But if they just wrote the time lock because it was in a spec and didn't ask why a train should include a time bomb? Totally unethical in my book.
I remember a discussion of ethics on HN a few weeks or months back.
I said there are actions that promote the common good, actions that do not affect the common good, and actions that harm the common good.
I believe you view of "business" is in the category of harming the public good.
Also, I don't understand why so many software engineers are willing to write code that is clearly adverse to users so their managers can get their performance bonuses. What's the upside? Narrowly escape the next round of layoffs so you can do it all over again?
The tech companies are not our friends any more than they are the users friends, they collude against us and treat us as disposable. This will continue as long as engineers do not take a stand.
You know the type, that without question mechanically implements exactly what is written in the specification, no matter how wrong it is, technically or morally. If you are lucky that is, and not only get back a steaming pile of bugs.
The bugs in the date checking hints this wasn’t written by the sharpest guy in the room, unless it was deliberately made confusing, to not be easily pattern detected.
Not saying they were -- but not a bad alternative to declining the work outright
We may see more info next week as they are scheduled to present at the 37th CCC. https://events.ccc.de/congress/2023/infos/index.html
Q3k is active here, https://news.ycombinator.com/threads?id=q3k
Nowhere in it any of the "lockouts" are documented.
The manual was supposed to allow comprehensive maintenance and repair, without requiring manufacturer's input.
So libel on top of computer sabotage.
We need to bring back and legislate the right to repair and ownership rights.
Sometimes people do things even when those things are illegal. All that's left to do at that point is prosecute them.
“One time fix” is not the correct way to see a potential prosecution here. The question is if the system is setup to punish this behaviour or not. A particular prosecution of a particular company in a particular case feels like a one time fix but it acts to demonstrate that this behaviour is not acceptable, and that we have the legal framework and the willingness to punish it. Especially of course if the prosecution is succesfull.
It is a bit like calling a vehicle barrier on the side of a mountain serpentine road a “one time fix” just because it only ever caught a single runaway bus during its lifetime.
(Edit: Fixed inequality direction.)
Similar stuff is common in PLCs all across the world.
The right test is something like "year < 21 || year == 21 && (month < 11 || month == 11 && (day <= 21))". And yes, probably refactor that logic for clarity, but from this form you can see that it is not equivalent to the test above.
The error is what makes it so that instead of failing "unfixably" once 2021-11-21 happens, it instead simulates failure between nov. 21 and dec. 1, and dec. 1 and january 1, every year starting with 2021.
I hope everyone who operates these trains now knows what that is.
The other question this begs is, what other "interesting" hidden features did they add in the update?
Such are some of the few times when "making an example" is both necessary and justified.
Will be curious to see what happens.
It’s due to calibration data.
If the parts match up it uses the available calibration data, if not it ignores calibration data and reverts to uncalibrated state.
I’ve touched upon some of the details on calibration 4 months ago here on HN when it was a trending topic[0].
There were also multiple threads on earlier parts of the story, but those are the "origin" english language versions.